|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.applications.xmlimporter.TmpObject
A TmpObject represents a temporary object in a transaction. TmpObject instances can only be created by methods of Transaction, and have no meaning outside the context of the transaction in which they are created.
| Method Summary | |
void |
copyDestinationOf(TmpObject tmpObj)
Copies destination of relation in temporary cloud to this object. |
void |
copySourceOf(TmpObject tmpObj)
Copies source of relation in temporary cloud to this object. |
boolean |
getDisposeWhenNotReferenced()
DisposeWhenNotReferenced accessor. |
Object |
getField(String name)
Gets field of the temporary node. |
String |
getId()
Id accessor. |
String |
getKey()
Key accessor. |
int |
getMMBaseId()
MMBaseId accessor (for access objects). |
MMObjectNode |
getNode()
Gets the temporary node corresponding to this object. |
Vector |
getRelationsInPersistentCloud()
Gets the relations of this object in the persistent cloud. |
boolean |
isAccessObject()
Tests if this object is an accessed object (representing an object that already exists in the persistent cloud) or an input object. |
boolean |
isDestinationOf(TmpObject tempRel)
Tests if this node is the destination node of a relation. |
boolean |
isRelation()
Tests if this object is a relation. |
boolean |
isSourceOf(TmpObject tempRel)
Tests if this node is the source node of a relation. |
void |
setDestination(TmpObject tmpObj)
Sets destination for relation in temporary cloud. |
void |
setField(String name,
Object value)
Sets field of the temporary node represented by this TmpObject instance. |
void |
setSource(TmpObject tmpObj)
Sets source for relation in temporary cloud. |
String |
toString()
ToString() method, displays most important fields. |
String |
toXML()
Displays XML representation of this object, such as the XML code necessary to create this object in a transaction. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public Object getField(String name)
name - The field.
public void setField(String name,
Object value)
String and the type of the field is
TYPE_BYTE,
the string is decoded to bytes using Base64.
name - The field name.value - The field value.public Vector getRelationsInPersistentCloud()
public MMObjectNode getNode()
public String getKey()
public String getId()
public boolean isAccessObject()
public int getMMBaseId()
public boolean isRelation()
public boolean getDisposeWhenNotReferenced()
public boolean isSourceOf(TmpObject tempRel)
tempRel - Temporary relation node.
public boolean isDestinationOf(TmpObject tempRel)
tempRel - Temporary relation node.
public void setSource(TmpObject tmpObj)
tmpObj - The temporary object to set as source.public void setDestination(TmpObject tmpObj)
tmpObj - The temporary object to set as destination.public void copySourceOf(TmpObject tmpObj)
tmpObj - The temporary object to copy the source of.public void copyDestinationOf(TmpObject tmpObj)
tmpObj - The temporary object to copy the destination of.public String toString()
public String toXML()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||