|
EclipseLink 2.2.0, build 'v20110202-r8913' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.tools.schemaframework.PopulationManager
public class PopulationManager
Purpose: This class is used to populate example data into the database, it allows for circular references to be resolved.
Responsibilities:
Field Summary | |
---|---|
protected static PopulationManager |
defaultManager
Store the default instance. |
protected java.util.Hashtable |
registeredObjects
Store the objects registered. |
Constructor Summary | |
---|---|
PopulationManager()
|
Method Summary | |
---|---|
void |
addAllObjectsForAbstractClass(java.lang.Class objectsClass,
org.eclipse.persistence.internal.sessions.AbstractSession session,
java.util.Vector allObjects)
Add all of the objects of the class and all of its subclasses. |
void |
addAllObjectsForAbstractClass(java.lang.Class objectsClass,
Session session,
java.util.Vector allObjects)
Add all of the objects of the class and all of its subclasses. |
void |
addAllObjectsForClass(java.lang.Class objectsClass,
java.util.List allObjects)
Add all of the objects of the class. |
boolean |
containsObject(java.lang.Class objectsClass,
java.lang.String objectsName)
Check if the object is registered given its name. |
boolean |
containsObject(java.lang.Object objectToCheck,
java.lang.String objectsName)
Check if the object is registered given its name. |
java.util.Vector |
getAllClasses()
Return all of the objects registered. |
java.util.Vector |
getAllObjects()
Return all of the objects registered. |
java.util.Vector |
getAllObjectsForAbstractClass(java.lang.Class objectsClass)
Return all of the objects of the class and all of its subclasses. |
java.util.Vector |
getAllObjectsForAbstractClass(java.lang.Class objectsClass,
org.eclipse.persistence.internal.sessions.AbstractSession session)
Return all of the objects of the class and all of its subclasses. |
java.util.Vector |
getAllObjectsForClass(java.lang.Class objectsClass)
Return all of the objects of the class. |
static PopulationManager |
getDefaultManager()
Lazy initialize the default instance. |
java.lang.Object |
getObject(java.lang.Class objectsClass,
java.lang.String objectsName)
Return the object registered given its name. |
java.util.Hashtable |
getRegisteredObjects()
Return the registered objects. |
java.lang.Object |
registerObject(java.lang.Class javaClass,
java.lang.Object objectToRegister,
java.lang.String objectsName)
Register the object given its name. |
java.lang.Object |
registerObject(java.lang.Object objectToRegister,
java.lang.String objectsName)
Register the object given its name. |
void |
removeObject(java.lang.Class classToRemove,
java.lang.String objectsName)
Remove the object given its class and name. |
java.lang.Object |
removeObject(java.lang.Object objectToRemove,
java.lang.String objectsName)
Remove the object given its name. |
static void |
resetDefaultManager()
Reset the default instance. |
static void |
setDefaultManager(PopulationManager theDefaultManager)
Set the default instance. |
void |
setRegisteredObjects(java.util.Hashtable registeredObjects)
Set the registered objects. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Hashtable registeredObjects
protected static PopulationManager defaultManager
Constructor Detail |
---|
public PopulationManager()
Method Detail |
---|
public void addAllObjectsForAbstractClass(java.lang.Class objectsClass, org.eclipse.persistence.internal.sessions.AbstractSession session, java.util.Vector allObjects)
public void addAllObjectsForAbstractClass(java.lang.Class objectsClass, Session session, java.util.Vector allObjects)
public void addAllObjectsForClass(java.lang.Class objectsClass, java.util.List allObjects)
public boolean containsObject(java.lang.Class objectsClass, java.lang.String objectsName)
public boolean containsObject(java.lang.Object objectToCheck, java.lang.String objectsName)
public java.util.Vector getAllClasses()
public java.util.Vector getAllObjects()
public java.util.Vector getAllObjectsForAbstractClass(java.lang.Class objectsClass)
public java.util.Vector getAllObjectsForAbstractClass(java.lang.Class objectsClass, org.eclipse.persistence.internal.sessions.AbstractSession session)
public java.util.Vector getAllObjectsForClass(java.lang.Class objectsClass)
public static PopulationManager getDefaultManager()
public java.lang.Object getObject(java.lang.Class objectsClass, java.lang.String objectsName)
public java.util.Hashtable getRegisteredObjects()
public java.lang.Object registerObject(java.lang.Class javaClass, java.lang.Object objectToRegister, java.lang.String objectsName)
public java.lang.Object registerObject(java.lang.Object objectToRegister, java.lang.String objectsName)
public void removeObject(java.lang.Class classToRemove, java.lang.String objectsName)
public java.lang.Object removeObject(java.lang.Object objectToRemove, java.lang.String objectsName)
public static void resetDefaultManager()
public static void setDefaultManager(PopulationManager theDefaultManager)
public void setRegisteredObjects(java.util.Hashtable registeredObjects)
|
EclipseLink 2.2.0, build 'v20110202-r8913' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |