|
||||||||||
| 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 EntityManager. |
EntityManager |
createEntityManager(Map map)
Create a new EntityManager with the specified Map of properties. |
Cache |
getCache()
Access the cache that is associated with the entity manager factory (the "second level cache"). |
Metamodel |
getMetamodel()
Return an instance of Metamodel interface for access to the metamodel of the persistence unit. |
Map<String,Object> |
getProperties()
Get the properties and associated values that are in effect for the entity manager factory. |
QueryBuilder |
getQueryBuilder()
Return an instance of QueryBuilder for the creation of Criteria API objects. |
Set<String> |
getSupportedProperties()
Get the names of the properties that are supported for use with the entity manager factory. |
boolean |
isOpen()
Indicates whether the factory is open. |
| Method Detail |
|---|
EntityManager createEntityManager()
IllegalStateException - if the entity manager factory
has been closed.EntityManager createEntityManager(Map map)
IllegalStateException - if the entity manager factory
has been closed.QueryBuilder getQueryBuilder()
IllegalStateException - if the entity manager factory
has been closed.Metamodel getMetamodel()
IllegalStateException - if the entity manager has
been closed.boolean isOpen()
void close()
IllegalStateException - if the entity manager factory
has been closed.Map<String,Object> getProperties()
Set<String> getSupportedProperties()
Cache getCache()
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 | |||||||||