|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jpox.PersistenceConfiguration
org.jpox.ObjectManagerFactoryImpl
public class ObjectManagerFactoryImpl
ObjectManagerFactory responsible for creation of ObjectManagers for persistence of objects to datastores. Will typically be either extended or utilised by PersistenceManagerFactory (JDO) or EntityManagerFactory (JPA).
| Field Summary | |
|---|---|
protected Level2Cache |
cache
Level 2 Cache, caching across ObjectManagers. |
protected OMFContext |
omfContext
The context that this ObjectManagerFactory uses. |
| Fields inherited from class org.jpox.PersistenceConfiguration |
|---|
configurable, LOCALISER |
| Constructor Summary | |
|---|---|
ObjectManagerFactoryImpl()
Constructor. |
|
| Method Summary | |
|---|---|
void |
addFetchGroup(FetchGroup group)
Method to add a fetch group for use by this PMF. |
protected void |
assertIsOpen()
Asserts that the factory is open. |
void |
clearFetchGroups()
Clear all dynamic FetchGroups from use. |
void |
close()
Close the ObjectManagerFactory. |
FetchGroup |
createFetchGroup(java.lang.String name,
java.lang.Class cls)
Method to create a (dynamic) fetch group. |
FetchGroup |
getFetchGroup(java.lang.String name,
java.lang.Class cls)
Accessor for a fetch group for the specified class. |
FetchGroup[] |
getFetchGroups(java.lang.String name)
Accessor for the fetch groups for the specified name. |
Level2Cache |
getLevel2Cache()
Accessor for the DataStore (level 2) Cache |
OMFContext |
getOMFContext()
Gets the context for this ObjectManagerFactory |
PersistenceConfiguration |
getPersistenceConfiguration()
Accessor for the PersistenceConfiguration. |
static java.lang.String |
getVendorName()
Utility to get the vendor of JPOX. |
static java.lang.String |
getVersionNumber()
Utility to get the version of JPOX. |
protected void |
initialiseLevel2Cache()
Method to initialise the L2 cache. |
protected void |
initialiseOMFContext()
Method to initialise the OMFContext. |
protected void |
initialiseStoreManager(ClassLoaderResolver clr)
Method to initialise the StoreManager used by this factory. |
boolean |
isClosed()
Utility to return whether the factory is closed or not. |
protected void |
logConfiguration()
Method to log the configuration of this factory. |
void |
removeFetchGroup(java.lang.String name,
java.lang.Class cls)
Method to remove a dynamic FetchGroup from use by this PMF. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected OMFContext omfContext
protected Level2Cache cache
| Constructor Detail |
|---|
public ObjectManagerFactoryImpl()
| Method Detail |
|---|
protected void assertIsOpen()
JPOXUserException - if it is already closedprotected void logConfiguration()
protected void initialiseOMFContext()
protected void initialiseStoreManager(ClassLoaderResolver clr)
clr - ClassLoaderResolver to use for class loading issuesprotected void initialiseLevel2Cache()
public void close()
public boolean isClosed()
public OMFContext getOMFContext()
public PersistenceConfiguration getPersistenceConfiguration()
public Level2Cache getLevel2Cache()
public static java.lang.String getVersionNumber()
public static java.lang.String getVendorName()
public FetchGroup createFetchGroup(java.lang.String name,
java.lang.Class cls)
name - Name of the groupcls - Class being represented.public void addFetchGroup(FetchGroup group)
group - The FetchGroup
public FetchGroup getFetchGroup(java.lang.String name,
java.lang.Class cls)
name - Name of the groupcls - The class
public FetchGroup[] getFetchGroups(java.lang.String name)
name - Name of the group
public void removeFetchGroup(java.lang.String name,
java.lang.Class cls)
name - Name of the groupcls - The classpublic void clearFetchGroups()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||