|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.jpa.rs.PersistenceFactoryBase
public class PersistenceFactoryBase
Manages the PersistenceContexts that are used by a JPA-RS deployment. Provides a single point to bootstrap and look up PersistenceContexts
Field Summary | |
---|---|
protected java.util.Map<java.lang.String,PersistenceContext> |
dynamicPersistenceContexts
|
Constructor Summary | |
---|---|
PersistenceFactoryBase()
|
Method Summary | |
---|---|
PersistenceContext |
bootstrapPersistenceContext(java.lang.String name,
EntityManagerFactory emf,
java.net.URI baseURI,
java.lang.String version,
boolean replace)
Bootstrap a PersistenceContext based on an pre-existing EntityManagerFactory |
void |
close()
Stop the factory. |
void |
closePersistenceContext(java.lang.String name)
Close the PersistenceContext of a given name and clean it out of our list of PersistenceContexts |
protected static java.util.Map<java.lang.String,java.lang.Object> |
createProperties(DynamicClassLoader dcl,
java.util.Map<java.lang.String,?> originalProperties)
Provide an initial set of properties for bootstrapping PersistenceContexts. |
PersistenceContext |
get(java.lang.String persistenceUnit,
java.net.URI defaultURI,
java.lang.String version,
java.util.Map<java.lang.String,java.lang.Object> initializationProperties)
|
PersistenceContext |
getDynamicPersistenceContext(java.lang.String name)
|
java.util.Set<java.lang.String> |
getPersistenceContextNames()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Map<java.lang.String,PersistenceContext> dynamicPersistenceContexts
Constructor Detail |
---|
public PersistenceFactoryBase()
Method Detail |
---|
public PersistenceContext bootstrapPersistenceContext(java.lang.String name, EntityManagerFactory emf, java.net.URI baseURI, java.lang.String version, boolean replace)
name
- emf
- baseURI
- replace
-
public void close()
close
in interface PersistenceContextFactory
public void closePersistenceContext(java.lang.String name)
closePersistenceContext
in interface PersistenceContextFactory
name
- protected static java.util.Map<java.lang.String,java.lang.Object> createProperties(DynamicClassLoader dcl, java.util.Map<java.lang.String,?> originalProperties)
dcl
- originalProperties
-
public PersistenceContext get(java.lang.String persistenceUnit, java.net.URI defaultURI, java.lang.String version, java.util.Map<java.lang.String,java.lang.Object> initializationProperties)
get
in interface PersistenceContextFactory
public java.util.Set<java.lang.String> getPersistenceContextNames()
getPersistenceContextNames
in interface PersistenceContextFactory
public PersistenceContext getDynamicPersistenceContext(java.lang.String name)
|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |