public class PersistenceProviderImpl extends Object implements javax.persistence.spi.PersistenceProvider, javax.persistence.spi.ProviderUtil
EntityManager
.Persistence.createEntityManagerFactory(String,Map)
Constructor and Description |
---|
PersistenceProviderImpl() |
Modifier and Type | Method and Description |
---|---|
OpenJPAEntityManagerFactory |
createContainerEntityManagerFactory(javax.persistence.spi.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 . |
void |
generateSchema(javax.persistence.spi.PersistenceUnitInfo info,
Map map) |
boolean |
generateSchema(String persistenceUnitName,
Map map) |
protected String |
getDefaultBrokerAlias() |
javax.persistence.spi.ProviderUtil |
getProviderUtil() |
javax.persistence.spi.LoadState |
isLoaded(Object obj)
Determines whether the specified object is loaded.
|
javax.persistence.spi.LoadState |
isLoadedWithoutReference(Object obj,
String attr)
Determines whether the attribute on the specified object is loaded.
|
javax.persistence.spi.LoadState |
isLoadedWithReference(Object obj,
String attr)
Determines whether the attribute on the specified object is loaded.
|
protected OpenJPAConfiguration |
newConfigurationImpl() |
void |
setPersistenceEnvironmentInfo(OpenJPAConfiguration conf,
javax.persistence.spi.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 javax.persistence.spi.PersistenceProvider
public OpenJPAEntityManagerFactory createContainerEntityManagerFactory(javax.persistence.spi.PersistenceUnitInfo pui, Map m)
createContainerEntityManagerFactory
in interface javax.persistence.spi.PersistenceProvider
public void generateSchema(javax.persistence.spi.PersistenceUnitInfo info, Map map)
generateSchema
in interface javax.persistence.spi.PersistenceProvider
public boolean generateSchema(String persistenceUnitName, Map map)
generateSchema
in interface javax.persistence.spi.PersistenceProvider
public void setPersistenceEnvironmentInfo(OpenJPAConfiguration conf, javax.persistence.spi.PersistenceUnitInfo pui)
public javax.persistence.spi.ProviderUtil getProviderUtil()
getProviderUtil
in interface javax.persistence.spi.PersistenceProvider
protected String getDefaultBrokerAlias()
protected OpenJPAConfiguration newConfigurationImpl()
public javax.persistence.spi.LoadState isLoaded(Object obj)
isLoaded
in interface javax.persistence.spi.ProviderUtil
public javax.persistence.spi.LoadState isLoadedWithReference(Object obj, String attr)
isLoadedWithReference
in interface javax.persistence.spi.ProviderUtil
public javax.persistence.spi.LoadState isLoadedWithoutReference(Object obj, String attr)
isLoadedWithoutReference
in interface javax.persistence.spi.ProviderUtil
Copyright © 2006–2019 Apache Software Foundation. All rights reserved.