cuba.wired.jpa
Class WiredManagedEntityManagerFactory
java.lang.Object
cuba.wired.jpa.WiredManagedEntityManagerFactory
- All Implemented Interfaces:
- ResourceFactoryI, CubaEntityManagerFactory, javax.persistence.EntityManagerFactory
public class WiredManagedEntityManagerFactory
- extends java.lang.Object
- implements javax.persistence.EntityManagerFactory, ResourceFactoryI, CubaEntityManagerFactory
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WiredManagedEntityManagerFactory
public WiredManagedEntityManagerFactory(PersistenceUnitDesc persistenceUnitDesc,
WiredContainer container)
throws ConstructionException
- Throws:
ConstructionException
getPersistenceUnitInfo
public javax.persistence.spi.PersistenceUnitInfo getPersistenceUnitInfo()
getEntityManagerFactory
public javax.persistence.EntityManagerFactory getEntityManagerFactory()
createCubaEntityManager
public CubaEntityManager createCubaEntityManager()
- Description copied from interface:
CubaEntityManagerFactory
- Creates an EntityManager.
- Specified by:
createCubaEntityManager
in interface CubaEntityManagerFactory
- Returns:
- a CubaEntityManager
close
public void close()
- EntityManagerFactory methods
- Specified by:
close
in interface javax.persistence.EntityManagerFactory
createEntityManager
public javax.persistence.EntityManager createEntityManager()
- Specified by:
createEntityManager
in interface javax.persistence.EntityManagerFactory
createEntityManager
public javax.persistence.EntityManager createEntityManager(java.util.Map arg0)
- Specified by:
createEntityManager
in interface javax.persistence.EntityManagerFactory
isOpen
public boolean isOpen()
- Specified by:
isOpen
in interface javax.persistence.EntityManagerFactory