public class EntityManagerFactoryImpl extends Object implements EntityManagerLiteFactory
| Constructor and Description |
|---|
EntityManagerFactoryImpl(com.j256.ormlite.support.ConnectionSource connectionSource,
PersistenceConfig persistenceConfig)
Create an EntityManagerFactoryImpl object
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the factory, releasing any resources that it holds.
|
EntityManagerLite |
createEntityManager()
Create a new application-managed EntityManager.
|
EntityManagerLite |
createEntityManager(Map<String,Object> map)
Create a new application-managed EntityManager with the specified Map of properties.
|
Map<String,Object> |
getProperties()
Get the properties and associated values that are in effect for the entity manager factory.
|
boolean |
isOpen()
Indicates whether the factory is open.
|
public EntityManagerFactoryImpl(com.j256.ormlite.support.ConnectionSource connectionSource,
PersistenceConfig persistenceConfig)
connectionSource - Database connection providerpersistenceConfig - PersistenceUnitAdmin Unit configuration informationpublic EntityManagerLite createEntityManager()
createEntityManager in interface EntityManagerLiteFactoryIllegalStateException - if the entity manager factory has been closedpublic EntityManagerLite createEntityManager(Map<String,Object> map)
createEntityManager in interface EntityManagerLiteFactorymap - properties for entity managerIllegalStateException - if the entity manager factory has been closedpublic void close()
close in interface EntityManagerLiteFactoryIllegalStateException - if the entity manager factory has been closedpublic boolean isOpen()
isOpen in interface EntityManagerLiteFactorypublic Map<String,Object> getProperties()
getProperties in interface EntityManagerLiteFactoryIllegalStateException - if the entity manager factory has been closedThis documentation is licensed by Andrew Bowley under the GPLv3 License.