org.apache.openjpa.persistence
Class PersistenceProviderImpl
java.lang.Object
org.apache.openjpa.persistence.PersistenceProviderImpl
- All Implemented Interfaces:
- PersistenceProvider
public class PersistenceProviderImpl
- extends Object
- implements PersistenceProvider
Bootstrapping class that allows the creation of a stand-alone
EntityManager
.
- See Also:
Persistence.createEntityManagerFactory(String,Map)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PersistenceProviderImpl
public PersistenceProviderImpl()
createEntityManagerFactory
public EntityManagerFactory 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
. 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.
createEntityManagerFactory
public EntityManagerFactory createEntityManagerFactory(String name,
Map m)
- Specified by:
createEntityManagerFactory
in interface PersistenceProvider
createContainerEntityManagerFactory
public EntityManagerFactory createContainerEntityManagerFactory(PersistenceUnitInfo pui,
Map m)
- Specified by:
createContainerEntityManagerFactory
in interface PersistenceProvider
Copyright © 2006 Apache Software Foundation. All Rights Reserved.