Package cz.cvut.kbss.jopa.model
Interface PersistenceProvider
- All Known Implementing Classes:
JOPAPersistenceProvider
public interface PersistenceProvider
Interface implemented by the persistence provider.
It is invoked by the Persistence class in Java SE environments to create an EntityManagerFactory and/or to cause schema generation to occur.
-
Method Summary
Modifier and TypeMethodDescriptioncreateEntityManagerFactory
(String emName, Map<String, String> map) Called by Persistence class when an EntityManagerFactory is to be created.Return the utility interface implemented by the persistence provider.
-
Method Details
-
createEntityManagerFactory
Called by Persistence class when an EntityManagerFactory is to be created.- Parameters:
emName
- the name of the persistence unitmap
- a Map of properties for use by the persistence provider. These properties specify storage connection configuration and may also specify additional configuration.- Returns:
- EntityManagerFactory for the persistence unit, or null if the provider is not the right provider.
-
getProviderUtil
ProviderUtil getProviderUtil()Return the utility interface implemented by the persistence provider.- Returns:
- ProviderUtil interface
-