cuba.wired.jpa
Class WiredManagedEntityManagerFactory

java.lang.Object
  extended by 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


Constructor Summary
WiredManagedEntityManagerFactory(PersistenceUnitDesc persistenceUnitDesc, WiredContainer container)
           
 
Method Summary
 void close()
          EntityManagerFactory methods
 CubaEntityManager createCubaEntityManager()
          Creates an EntityManager.
 javax.persistence.EntityManager createEntityManager()
           
 javax.persistence.EntityManager createEntityManager(java.util.Map arg0)
           
 javax.persistence.EntityManagerFactory getEntityManagerFactory()
           
 javax.persistence.spi.PersistenceUnitInfo getPersistenceUnitInfo()
           
 boolean isOpen()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WiredManagedEntityManagerFactory

public WiredManagedEntityManagerFactory(PersistenceUnitDesc persistenceUnitDesc,
                                        WiredContainer container)
                                 throws ConstructionException
Throws:
ConstructionException
Method Detail

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