FileDocCategorySizeDatePackage
EntityManagerFactoryImpl.javaAPI DocGlassfish v2 API4430Tue May 22 16:54:24 BST 2007oracle.toplink.essentials.internal.ejb.cmp3

EntityManagerFactoryImpl

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.

see
javax.persistence.EntityManager
see
oracle.toplink.essentials.ejb.cmp3.EntityManager
see
oracle.toplink.essentials.ejb.cmp3.EntityManagerFactory

Fields Summary
Constructors Summary
public EntityManagerFactoryImpl(ServerSession serverSession)
Will return an instance of the Factory. Should only be called by TopLink.

param
serverSession

        super(serverSession);
    
public EntityManagerFactoryImpl(EntityManagerSetupImpl setupImpl, Map properties)
Will return an instance of the Factory. Should only be called by TopLink.

param
serverSession

        super(setupImpl, properties);
    
Methods Summary
public javax.persistence.EntityManagercreateEntityManager()
PUBLIC: Returns an EntityManager for this deployment

        return (EntityManager) createEntityManagerImpl(false);
    
public javax.persistence.EntityManagercreateEntityManager(java.util.Map properties)
PUBLIC: Returns an EntityManager for this deployment

        return (EntityManager) createEntityManagerImpl(properties, false);
    
protected oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerImplcreateEntityManagerImplInternal(java.util.Map properties, boolean extended)

        return new EntityManagerImpl(this, properties, false, extended);