com.caucho.env.jpa
Class EntityManagerFactoryProxy

java.lang.Object
  extended by com.caucho.env.jpa.EntityManagerFactoryProxy
All Implemented Interfaces:
java.io.Serializable, EntityManagerFactory

public class EntityManagerFactoryProxy
extends java.lang.Object
implements EntityManagerFactory, java.io.Serializable

The @PersistenceUnit, container managed entity manager proxy, used for third-party providers.

See Also:
Serialized Form

Nested Class Summary
static class EntityManagerFactoryProxy.Handle
           
 
Constructor Summary
EntityManagerFactoryProxy(PersistenceUnitManager persistenceUnit)
           
 
Method Summary
 void close()
          Close the factory an any resources.
 EntityManager createEntityManager()
          Create a new EntityManager with TRANSACTION type.
 EntityManager createEntityManager(java.util.Map map)
          Create a new EntityManager with the given properties.
 Cache getCache()
          Returns the entity manager cache
 CriteriaBuilder getCriteriaBuilder()
           
 Metamodel getMetamodel()
           
 PersistenceUnitUtil getPersistenceUnitUtil()
          Returns persistence unit utilities.
 java.util.Map getProperties()
          Returns the properties and values for the factory
 boolean isOpen()
          Returns true if the factory is open.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EntityManagerFactoryProxy

public EntityManagerFactoryProxy(PersistenceUnitManager persistenceUnit)
Method Detail

createEntityManager

public EntityManager createEntityManager()
Create a new EntityManager with TRANSACTION type.

Specified by:
createEntityManager in interface EntityManagerFactory

createEntityManager

public EntityManager createEntityManager(java.util.Map map)
Create a new EntityManager with the given properties.

Specified by:
createEntityManager in interface EntityManagerFactory

close

public void close()
Close the factory an any resources.

Specified by:
close in interface EntityManagerFactory

isOpen

public boolean isOpen()
Returns true if the factory is open.

Specified by:
isOpen in interface EntityManagerFactory

getProperties

public java.util.Map getProperties()
Description copied from interface: EntityManagerFactory
Returns the properties and values for the factory

Specified by:
getProperties in interface EntityManagerFactory

getCache

public Cache getCache()
Description copied from interface: EntityManagerFactory
Returns the entity manager cache

Specified by:
getCache in interface EntityManagerFactory

getCriteriaBuilder

public CriteriaBuilder getCriteriaBuilder()
Specified by:
getCriteriaBuilder in interface EntityManagerFactory

getMetamodel

public Metamodel getMetamodel()
Specified by:
getMetamodel in interface EntityManagerFactory

getPersistenceUnitUtil

public PersistenceUnitUtil getPersistenceUnitUtil()
Description copied from interface: EntityManagerFactory
Returns persistence unit utilities.

Specified by:
getPersistenceUnitUtil in interface EntityManagerFactory

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object