public class PersistenceProviderImpl extends Object implements PersistenceProvider, ProviderUtil
EntityManager
.Constructor and Description |
---|
PersistenceProviderImpl() |
Modifier and Type | Method and Description |
---|---|
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) |
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
Copyright © 2006–2017 Apache Software Foundation. All rights reserved.