|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.persistence.PersistenceProviderImpl
public class PersistenceProviderImpl
Bootstrapping class that allows the creation of a stand-alone
EntityManager
.
Persistence.createEntityManagerFactory(String,Map)
Field Summary | |
---|---|
(package private) static String |
CLASS_TRANSFORMER_OPTIONS
|
Constructor Summary | |
---|---|
PersistenceProviderImpl()
|
Method Summary | |
---|---|
OpenJPAEntityManagerFactory |
createContainerEntityManagerFactory(PersistenceUnitInfo pui,
Map m)
|
OpenJPAEntityManagerFactory |
createEntityManagerFactory(String name,
Map m)
|
OpenJPAEntityManagerFactory |
createEntityManagerFactory(String name,
String resource,
Map m)
Loads the entity manager specified by name , applying
the properties in m as overrides to the properties defined
in the XML configuration file for name . |
protected String |
getDefaultBrokerAlias()
|
ProviderUtil |
getProviderUtil()
|
LoadState |
isLoaded(Object obj)
Determines whether the specified object is loaded. |
LoadState |
isLoadedWithoutReference(Object obj,
String attr)
Determines whether the attribute on the specified object is loaded. |
LoadState |
isLoadedWithReference(Object obj,
String attr)
Determines whether the attribute on the specified object is loaded. |
protected OpenJPAConfiguration |
newConfigurationImpl()
|
void |
setPersistenceEnvironmentInfo(OpenJPAConfiguration conf,
PersistenceUnitInfo pui)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final String CLASS_TRANSFORMER_OPTIONS
Constructor Detail |
---|
public PersistenceProviderImpl()
Method Detail |
---|
public OpenJPAEntityManagerFactory createEntityManagerFactory(String name, String resource, Map m)
name
, applying
the properties in m
as overrides to the properties defined
in the XML configuration file for name
. If name
is null
, this method loads the XML in the resource
identified by resource
, and uses the first resource found
when doing this lookup, regardless of the name specified in the XML
resource or the name of the jar that the resource is contained in.
This does no pooling of EntityManagersFactories.
public OpenJPAEntityManagerFactory createEntityManagerFactory(String name, Map m)
createEntityManagerFactory
in interface PersistenceProvider
public OpenJPAEntityManagerFactory createContainerEntityManagerFactory(PersistenceUnitInfo pui, Map m)
createContainerEntityManagerFactory
in interface PersistenceProvider
public void setPersistenceEnvironmentInfo(OpenJPAConfiguration conf, PersistenceUnitInfo pui)
public ProviderUtil getProviderUtil()
getProviderUtil
in interface PersistenceProvider
protected String getDefaultBrokerAlias()
protected OpenJPAConfiguration newConfigurationImpl()
public LoadState isLoaded(Object obj)
isLoaded
in interface ProviderUtil
public LoadState isLoadedWithReference(Object obj, String attr)
isLoadedWithReference
in interface ProviderUtil
public LoadState isLoadedWithoutReference(Object obj, String attr)
isLoadedWithoutReference
in interface ProviderUtil
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |