Class WaitingObject
java.lang.Object
edu.internet2.middleware.grouper.ext.org.apache.ddlutils.io.WaitingObject
Represents an object waiting for insertion into the database. Is used by the
org.apache.ddlutils.io.DataToDatabaseSink
to insert the objects in the correct
order according to their foreign keys.- Version:
- $Revision: 289996 $
-
Constructor Summary
ConstructorDescriptionWaitingObject
(org.apache.commons.beanutils.DynaBean obj, Identity objIdentity) Creates a newWaitingObject
instance for the given object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPendingFK
(Identity fkIdentity) Adds the identity of another object that the object is waiting for.org.apache.commons.beanutils.DynaBean
Returns the waiting object.Returns the identities of the object that this object is waiting for.boolean
Determines whether there are any identities of waited-for objects registered with this waiting object.removePendingFK
(Identity fkIdentity) Removes the specified identity from list of identities of the waited-for objects.toString()
-
Constructor Details
-
WaitingObject
Creates a newWaitingObject
instance for the given object.- Parameters:
obj
- The object that is waitingobjIdentity
- The (original) identity of the object
-
-
Method Details
-
getObject
public org.apache.commons.beanutils.DynaBean getObject()Returns the waiting object.- Returns:
- The object
-
addPendingFK
Adds the identity of another object that the object is waiting for.- Parameters:
fkIdentity
- The identity of the waited-for object
-
getPendingFKs
Returns the identities of the object that this object is waiting for.- Returns:
- The identities
-
removePendingFK
Removes the specified identity from list of identities of the waited-for objects.- Parameters:
fkIdentity
- The identity to remove- Returns:
- The removed identity if any
-
hasPendingFKs
public boolean hasPendingFKs()Determines whether there are any identities of waited-for objects registered with this waiting object.- Returns:
true
if identities of waited-for objects are registered
-
toString
-