de.akquinet.jbosscc.needle.db.configuration
Class PersistenceConfigurationFactory

java.lang.Object
  extended by de.akquinet.jbosscc.needle.db.configuration.PersistenceConfigurationFactory

public final class PersistenceConfigurationFactory
extends Object

Factory to create and access the configured persistence context.


Constructor Summary
PersistenceConfigurationFactory(Class<?>[] cfgClazzes)
           
PersistenceConfigurationFactory(String persistenceUnit)
           
 
Method Summary
 boolean equals(Object obj)
           
 javax.persistence.EntityManager getEntityManager()
          Returns the EntityManager instance which is associated with the configured persistence context.
 javax.persistence.EntityManagerFactory getEntityManagerFactory()
          Returns the EntityManagerFactory.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistenceConfigurationFactory

public PersistenceConfigurationFactory(String persistenceUnit)

PersistenceConfigurationFactory

public PersistenceConfigurationFactory(Class<?>[] cfgClazzes)
Method Detail

getEntityManager

public javax.persistence.EntityManager getEntityManager()
Returns the EntityManager instance which is associated with the configured persistence context.

Returns:
EntityManager

getEntityManagerFactory

public javax.persistence.EntityManagerFactory getEntityManagerFactory()
Returns the EntityManagerFactory.

Returns:
EntityManagerFactory

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2013 akquinet AG. All Rights Reserved.