com.force.sdk.jpa
Class ForceEntityManagerFactory

java.lang.Object
  extended by org.datanucleus.jpa.EntityManagerFactoryImpl
      extended by com.force.sdk.jpa.ForceEntityManagerFactory
All Implemented Interfaces:
javax.persistence.EntityManagerFactory, javax.persistence.PersistenceUnitUtil, javax.persistence.PersistenceUtil

public class ForceEntityManagerFactory
extends org.datanucleus.jpa.EntityManagerFactoryImpl

Factory for creating the ForceEntityManager.

Author:
Fiaz Hossain

Field Summary
 
Fields inherited from class org.datanucleus.jpa.EntityManagerFactoryImpl
LOCALISER, LOGGER, pmf
 
Constructor Summary
ForceEntityManagerFactory(javax.persistence.spi.PersistenceUnitInfo unitInfo, Map overridingProps)
          creates an entity manager factory with the given persistence unit info and property overrides.
ForceEntityManagerFactory(String unitName, Map overridingProps)
          creates an entity manager factory via the unit name.
 
Method Summary
protected  javax.persistence.EntityManager newEntityManager(javax.persistence.PersistenceContextType contextType, javax.jdo.PersistenceManagerFactory pmf)
           
 
Methods inherited from class org.datanucleus.jpa.EntityManagerFactoryImpl
assertIsClosed, close, createEntityManager, createEntityManager, getCache, getCriteriaBuilder, getIdentifier, getMetamodel, getPersistenceUnitUtil, getProperties, getQueryCache, getQueryDatastoreCompilationCache, getQueryGenericCompilationCache, getSupportedProperties, initialisePMF, isContainerManaged, isLoaded, isLoaded, isOpen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForceEntityManagerFactory

public ForceEntityManagerFactory(javax.persistence.spi.PersistenceUnitInfo unitInfo,
                                 Map overridingProps)
creates an entity manager factory with the given persistence unit info and property overrides.

Parameters:
unitInfo - the persistence unit info for this application
overridingProps - a map of properties that should override the properties in the persistence unit

ForceEntityManagerFactory

public ForceEntityManagerFactory(String unitName,
                                 Map overridingProps)
creates an entity manager factory via the unit name.

Parameters:
unitName - the name of the persistence unit to use
overridingProps - a map of properties that should override the properties in the persistence unit
Method Detail

newEntityManager

protected javax.persistence.EntityManager newEntityManager(javax.persistence.PersistenceContextType contextType,
                                                           javax.jdo.PersistenceManagerFactory pmf)
Overrides:
newEntityManager in class org.datanucleus.jpa.EntityManagerFactoryImpl


Copyright © 2011. All Rights Reserved.