public class EntityManagerFactoryImpl extends EntityManagerFactoryImpl implements 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.EntityManagerFactory
isOpen, properties, serverSession, setupImpl
Constructor and Description |
---|
EntityManagerFactoryImpl(EntityManagerSetupImpl setupImpl,
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 |
---|---|
EntityManager |
createEntityManager()
PUBLIC:
Returns an EntityManager for this deployment
|
EntityManager |
createEntityManager(Map properties)
PUBLIC:
Returns an EntityManager for this deployment
|
protected EntityManagerImpl |
createEntityManagerImplInternal(Map properties,
boolean extended) |
close, createEntityManagerImpl, createEntityManagerImpl, finalize, getServerSession, isOpen, verifyOpen
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, isOpen
public EntityManagerFactoryImpl(ServerSession serverSession)
serverSession
- public EntityManagerFactoryImpl(EntityManagerSetupImpl setupImpl, Map properties)
serverSession
- public EntityManager createEntityManager()
createEntityManager
in interface EntityManagerFactory
public EntityManager createEntityManager(Map properties)
createEntityManager
in interface EntityManagerFactory
protected EntityManagerImpl createEntityManagerImplInternal(Map properties, boolean extended)
createEntityManagerImplInternal
in class EntityManagerFactoryImpl
Copyright © 2024. All rights reserved.