|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.PersistenceConfiguration
org.datanucleus.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.datanucleus.PersistenceConfiguration |
|---|
LOCALISER |
| Constructor Summary | |
|---|---|
ObjectManagerFactoryImpl()
Constructor. |
|
| Method Summary | |
|---|---|
protected void |
addInternalFetchGroup(FetchGroup grp)
Method to add a dynamic FetchGroup for use by this OMF. |
void |
close()
Close the ObjectManagerFactory. |
protected FetchGroup |
createInternalFetchGroup(java.lang.Class cls,
java.lang.String name)
Method to create a new internal fetch group for the class+name. |
protected FetchGroupManager |
getFetchGroupManager()
Convenience accessor for the FetchGroupManager. |
java.util.Set<FetchGroup> |
getFetchGroupsWithName(java.lang.String name)
Accessor for the fetch groups for the specified name. |
protected FetchGroup |
getInternalFetchGroup(java.lang.Class cls,
java.lang.String name)
Accessor for an internal fetch group for the specified class. |
Level2Cache |
getLevel2Cache()
Accessor for the DataStore (level 2) Cache |
OMFContext |
getOMFContext()
Gets the context for this ObjectManagerFactory |
PersistenceConfiguration |
getPersistenceConfiguration()
Accessor for the PersistenceConfiguration. |
StoreManager |
getStoreManager()
Convenience accessor for the StoreManager. |
static java.lang.String |
getVendorName()
Utility to get the vendor of DataNucleus. |
static java.lang.String |
getVersionNumber()
Utility to get the version of DataNucleus. |
boolean |
hasLevel2Cache()
Return whether there is an L2 cache. |
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. |
protected void |
logConfiguration()
Method to log the configuration of this factory. |
protected void |
removeInternalFetchGroup(FetchGroup grp)
Method to remove a dynamic FetchGroup from use by this OMF. |
| 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 logConfiguration()
protected void initialiseOMFContext()
protected void initialiseStoreManager(ClassLoaderResolver clr)
clr - ClassLoaderResolver to use for class loading issuespublic StoreManager getStoreManager()
protected void initialiseLevel2Cache()
public void close()
public OMFContext getOMFContext()
public PersistenceConfiguration getPersistenceConfiguration()
public boolean hasLevel2Cache()
public Level2Cache getLevel2Cache()
public static java.lang.String getVersionNumber()
public static java.lang.String getVendorName()
protected FetchGroupManager getFetchGroupManager()
protected void addInternalFetchGroup(FetchGroup grp)
grp - The groupprotected void removeInternalFetchGroup(FetchGroup grp)
grp - The group
protected FetchGroup createInternalFetchGroup(java.lang.Class cls,
java.lang.String name)
cls - Class that it applies toname - Name of group
protected FetchGroup getInternalFetchGroup(java.lang.Class cls,
java.lang.String name)
cls - The classname - Name of the group
NucleusUserException - if the class is not persistablepublic java.util.Set<FetchGroup> getFetchGroupsWithName(java.lang.String name)
name - Name of the group
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||