|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EntityManagerFactory
Interface used to interact with the entity manager factory for the persistence unit.
| Method Summary | |
|---|---|
void |
close()
Close the factory, releasing any resources that it holds. |
EntityManager |
createEntityManager()
Create a new application-managed EntityManager. |
EntityManager |
createEntityManager(Map map)
Create a new application-managed EntityManager with the specified Map of properties. |
Cache |
getCache()
Access the cache that is associated with the entity manager factory (the "second level cache"). |
CriteriaBuilder |
getCriteriaBuilder()
Return an instance of CriteriaBuilder for the creation of CriteriaQuery objects. |
Metamodel |
getMetamodel()
Return an instance of Metamodel interface for access to the metamodel of the persistence unit. |
PersistenceUnitUtil |
getPersistenceUnitUtil()
Return interface providing access to utility methods for the persistence unit. |
Map<String,Object> |
getProperties()
Get the properties and associated values that are in effect for the entity manager factory. |
boolean |
isOpen()
Indicates whether the factory is open. |
| Method Detail |
|---|
EntityManager createEntityManager()
IllegalStateException - if the entity manager factory has been closedEntityManager createEntityManager(Map map)
map - properties for entity manager
IllegalStateException - if the entity manager factory has been closedCriteriaBuilder getCriteriaBuilder()
IllegalStateException - if the entity manager factory has been closedMetamodel getMetamodel()
IllegalStateException - if the entity manager factory has been closedboolean isOpen()
void close()
IllegalStateException - if the entity manager factory has been closedMap<String,Object> getProperties()
IllegalStateException - if the entity manager factory has been closedCache getCache()
IllegalStateException - if the entity manager factory has been closedPersistenceUnitUtil getPersistenceUnitUtil()
IllegalStateException - if the entity manager factory has been closed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||