|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ddlutils.io.WaitingObject
public class WaitingObject
Represents an object waiting for insertion into the database. Is used by the
DataToDatabaseSink
to insert the objects in the correct
order according to their foreign keys.
Constructor Summary | |
---|---|
WaitingObject(org.apache.commons.beanutils.DynaBean obj,
Identity objIdentity)
Creates a new WaitingObject instance for the given object. |
Method Summary | |
---|---|
void |
addPendingFK(Identity fkIdentity)
Adds the identity of another object that the object is waiting for. |
org.apache.commons.beanutils.DynaBean |
getObject()
Returns the waiting object. |
java.util.Iterator |
getPendingFKs()
Returns the identities of the object that this object is waiting for. |
boolean |
hasPendingFKs()
Determines whether there are any identities of waited-for objects registered with this waiting object. |
Identity |
removePendingFK(Identity fkIdentity)
Removes the specified identity from list of identities of the waited-for objects. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WaitingObject(org.apache.commons.beanutils.DynaBean obj, Identity objIdentity)
WaitingObject
instance for the given object.
obj
- The object that is waitingobjIdentity
- The (original) identity of the objectMethod Detail |
---|
public org.apache.commons.beanutils.DynaBean getObject()
public void addPendingFK(Identity fkIdentity)
fkIdentity
- The identity of the waited-for objectpublic java.util.Iterator getPendingFKs()
public Identity removePendingFK(Identity fkIdentity)
fkIdentity
- The identity to remove
public boolean hasPendingFKs()
true
if identities of waited-for objects are registeredpublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |