public class EntityManagerFactoryImpl extends EntityManagerFactoryImpl implements javax.persistence.EntityManagerFactory
Purpose: Provides the implementation for the EntityManager Factory.
Description: This class will store a reference to the active ServerSession. When a request is made for an EntityManager an new EntityManager is created with the ServerSession and returned. The primary consumer of these EntityManager is assumed to be either the Container. There is one EntityManagerFactory per deployment.
EntityManager,
EntityManager,
oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryisOpen, properties, serverSession, setupImpl| Constructor and Description |
|---|
EntityManagerFactoryImpl(EntityManagerSetupImpl setupImpl,
java.util.Map properties)
Will return an instance of the Factory.
|
EntityManagerFactoryImpl(ServerSession serverSession)
Will return an instance of the Factory.
|
| Modifier and Type | Method and Description |
|---|---|
javax.persistence.EntityManager |
createEntityManager()
PUBLIC:
Returns an EntityManager for this deployment
|
javax.persistence.EntityManager |
createEntityManager(java.util.Map properties)
PUBLIC:
Returns an EntityManager for this deployment
|
protected EntityManagerImpl |
createEntityManagerImplInternal(java.util.Map properties,
boolean extended) |
close, createEntityManagerImpl, createEntityManagerImpl, finalize, getServerSession, isOpen, verifyOpenpublic EntityManagerFactoryImpl(ServerSession serverSession)
serverSession - public EntityManagerFactoryImpl(EntityManagerSetupImpl setupImpl, java.util.Map properties)
serverSession - public javax.persistence.EntityManager createEntityManager()
createEntityManager in interface javax.persistence.EntityManagerFactorypublic javax.persistence.EntityManager createEntityManager(java.util.Map properties)
createEntityManager in interface javax.persistence.EntityManagerFactoryprotected EntityManagerImpl createEntityManagerImplInternal(java.util.Map properties, boolean extended)
createEntityManagerImplInternal in class EntityManagerFactoryImpl