public class EntityManagerFactoryProxy extends java.lang.Object implements EntityManagerFactory, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
EntityManagerFactoryProxy.Handle |
Constructor and Description |
---|
EntityManagerFactoryProxy(PersistenceUnitManager persistenceUnit) |
Modifier and Type | Method and Description |
---|---|
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() |
public EntityManagerFactoryProxy(PersistenceUnitManager persistenceUnit)
public EntityManager createEntityManager()
createEntityManager
in interface EntityManagerFactory
public EntityManager createEntityManager(java.util.Map map)
createEntityManager
in interface EntityManagerFactory
public void close()
close
in interface EntityManagerFactory
public boolean isOpen()
isOpen
in interface EntityManagerFactory
public java.util.Map getProperties()
EntityManagerFactory
getProperties
in interface EntityManagerFactory
public Cache getCache()
EntityManagerFactory
getCache
in interface EntityManagerFactory
public CriteriaBuilder getCriteriaBuilder()
getCriteriaBuilder
in interface EntityManagerFactory
public Metamodel getMetamodel()
getMetamodel
in interface EntityManagerFactory
public PersistenceUnitUtil getPersistenceUnitUtil()
EntityManagerFactory
getPersistenceUnitUtil
in interface EntityManagerFactory
public java.lang.String toString()
toString
in class java.lang.Object