|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 static Localiser |
LOCALISER
Localisation of messages. |
protected OMFContext |
omfContext
The context that this ObjectManagerFactory uses. |
| Constructor Summary | |
|---|---|
ObjectManagerFactoryImpl()
Constructor. |
|
| Method Summary | |
|---|---|
protected void |
addInternalFetchGroup(FetchGroup grp)
Method to add a dynamic FetchGroup for use by this OMF. |
protected void |
assertConfigurable()
Asserts that a change to a configuration property is allowed. |
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. |
PersistenceConfiguration |
getConfiguration()
Accessor for the persistence configuration. |
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 |
StoreManager |
getStoreManager()
Convenience accessor for the StoreManager. |
static java.lang.String |
getVersionNumber()
Utility to get the version of DataNucleus. |
boolean |
hasLevel2Cache()
Return whether there is an 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 boolean |
isConfigurable()
Accessor for whether this is still configurable (can set more properties etc). |
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. |
protected void |
setIsNotConfigurable()
Method to set that this is no longer configurable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Localiser LOCALISER
protected OMFContext omfContext
| 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()
public void close()
public OMFContext getOMFContext()
public PersistenceConfiguration getConfiguration()
public boolean hasLevel2Cache()
public Level2Cache getLevel2Cache()
public static java.lang.String getVersionNumber()
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
protected boolean isConfigurable()
protected void setIsNotConfigurable()
protected void assertConfigurable()
NucleusUserException - if not configurable. Override in subclass if wanting other exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||