|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.jpa.EntityManagerFactoryImpl
public class EntityManagerFactoryImpl
EntityManagerFactory implementation. Caches the "persistence-unit" MetaData information when encountered (in J2SE mode).
| Field Summary | |
|---|---|
protected static org.datanucleus.util.Localiser |
LOCALISER
Localiser for messages. |
| Constructor Summary | |
|---|---|
EntityManagerFactoryImpl()
Constructor. |
|
EntityManagerFactoryImpl(javax.persistence.spi.PersistenceUnitInfo unitInfo,
java.util.Map overridingProps)
Constructor when working in a J2EE environment. |
|
EntityManagerFactoryImpl(java.lang.String unitName,
java.util.Map overridingProps)
Constructor when working in a J2SE environment. |
|
| Method Summary | |
|---|---|
void |
close()
Method to close the factory. |
javax.persistence.EntityManager |
createEntityManager()
Method to create an entity manager. |
javax.persistence.EntityManager |
createEntityManager(java.util.Map overridingProps)
Method to create an entity manager with the specified properties. |
Cache |
getCache()
Accessor for the second level cache. |
java.util.Map |
getProperties()
Get the properties and associated values that are in effect for the entity manager factory. |
java.util.Set<java.lang.String> |
getSupportedProperties()
Get the names of the properties that are supported for use with the entity manager factory. |
protected javax.jdo.PersistenceManagerFactory |
initialisePMF(org.datanucleus.metadata.PersistenceUnitMetaData unitMetaData,
java.util.Map overridingProps)
Method to initialise a PersistenceManagerFactory that will control the persistence. |
boolean |
isContainerManaged()
Accessor for whether the EMF is managed by a container. |
boolean |
isOpen()
Accessor for whether the factory is open |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.datanucleus.util.Localiser LOCALISER
| Constructor Detail |
|---|
public EntityManagerFactoryImpl()
public EntityManagerFactoryImpl(javax.persistence.spi.PersistenceUnitInfo unitInfo,
java.util.Map overridingProps)
unitInfo - The "persistent-unit" infooverridingProps - factory properties overriding those in the "persistence-unit"
public EntityManagerFactoryImpl(java.lang.String unitName,
java.util.Map overridingProps)
unitName - Name of the "persistent-unit" to useoverridingProps - factory properties overriding those in the "persistence-unit"| Method Detail |
|---|
public boolean isContainerManaged()
public void close()
close in interface javax.persistence.EntityManagerFactorypublic boolean isOpen()
isOpen in interface javax.persistence.EntityManagerFactorypublic javax.persistence.EntityManager createEntityManager()
createEntityManager in interface javax.persistence.EntityManagerFactorypublic javax.persistence.EntityManager createEntityManager(java.util.Map overridingProps)
createEntityManager in interface javax.persistence.EntityManagerFactoryoverridingProps - Properties to use for this manager
protected javax.jdo.PersistenceManagerFactory initialisePMF(org.datanucleus.metadata.PersistenceUnitMetaData unitMetaData,
java.util.Map overridingProps)
unitMetaData - The "persistence-unit" metadata (if any)overridingProps - Properties to override all others
public java.util.Map getProperties()
public java.util.Set<java.lang.String> getSupportedProperties()
public Cache getCache()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||