javax.persistence
Interface EntityManagerFactory

All Known Implementing Classes:
AmberEntityManagerFactory, EntityManagerFactoryProxy

public interface EntityManagerFactory

Factory for getting an entity manager.


Method Summary
 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<java.lang.String,java.lang.Object> getProperties()
          Returns the properties and values for the factory
 boolean isOpen()
          Returns true if the factory is open.
 

Method Detail

createEntityManager

EntityManager createEntityManager()
Create a new EntityManager with TRANSACTION type.


createEntityManager

EntityManager createEntityManager(java.util.Map map)
Create a new EntityManager with the given properties.


getCriteriaBuilder

CriteriaBuilder getCriteriaBuilder()

getMetamodel

Metamodel getMetamodel()

isOpen

boolean isOpen()
Returns true if the factory is open.


close

void close()
Close the factory an any resources.


getProperties

java.util.Map<java.lang.String,java.lang.Object> getProperties()
Returns the properties and values for the factory

Since:
JPA 2.0

getCache

Cache getCache()
Returns the entity manager cache

Since:
JPA 2.0

getPersistenceUnitUtil

PersistenceUnitUtil getPersistenceUnitUtil()
Returns persistence unit utilities.

Since:
JPA 2.0