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 EntityManagerFactorypublic EntityManager createEntityManager(java.util.Map map)
createEntityManager in interface EntityManagerFactorypublic void close()
close in interface EntityManagerFactorypublic boolean isOpen()
isOpen in interface EntityManagerFactorypublic java.util.Map getProperties()
getProperties in interface EntityManagerFactorypublic java.util.Set<java.lang.String> getSupportedProperties()
public Cache getCache()
getCache in interface EntityManagerFactorypublic void setSerializationHandle(java.lang.Object handle)
setSerializationHandle in interface HandleAwarepublic java.lang.String toString()
toString in class java.lang.Objectpublic CriteriaBuilder getCriteriaBuilder()
getCriteriaBuilder in interface EntityManagerFactorypublic Metamodel getMetamodel()
getMetamodel in interface EntityManagerFactorypublic PersistenceUnitUtil getPersistenceUnitUtil()
EntityManagerFactorygetPersistenceUnitUtil in interface EntityManagerFactory