public class AmberEntityManagerFactory extends java.lang.Object implements EntityManagerFactory, java.io.Serializable, HandleAware
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
|
java.util.Set<java.lang.String> |
getSupportedProperties()
Returns the supported properties
|
boolean |
isOpen()
Returns true if the factory is open.
|
void |
setSerializationHandle(java.lang.Object handle)
Sets the serializable handle
|
java.lang.String |
toString() |
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()
getProperties
in interface EntityManagerFactory
public java.util.Set<java.lang.String> getSupportedProperties()
public Cache getCache()
getCache
in interface EntityManagerFactory
public void setSerializationHandle(java.lang.Object handle)
setSerializationHandle
in interface HandleAware
public java.lang.String toString()
toString
in class java.lang.Object
public CriteriaBuilder getCriteriaBuilder()
getCriteriaBuilder
in interface EntityManagerFactory
public Metamodel getMetamodel()
getMetamodel
in interface EntityManagerFactory
public PersistenceUnitUtil getPersistenceUnitUtil()
EntityManagerFactory
getPersistenceUnitUtil
in interface EntityManagerFactory