public class TmpObject extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) static String |
_DNUMBER |
(package private) static String |
_SNUMBER |
(package private) static String |
DNUMBER |
(package private) static String |
NUMBER |
(package private) static String |
RNUMBER |
(package private) static String |
SNUMBER |
| Constructor and Description |
|---|
TmpObject(UserTransactionInfo uti,
String objectId,
boolean relationFlag,
boolean disposeWhenNotReferenced)
Creates new import TmpObject.
|
TmpObject(UserTransactionInfo uti,
String objectId,
int mmbaseId)
Creates new access TmpObject.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
List<MMObjectNode> |
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.
|
static final String NUMBER
static final String RNUMBER
static final String SNUMBER
static final String DNUMBER
static final String _SNUMBER
static final String _DNUMBER
TmpObject(UserTransactionInfo uti, String objectId, boolean relationFlag, boolean disposeWhenNotReferenced)
uti - transaction info for current user.objectId - user-specified id for the new object
(must be unique in this transaction context),
or null for anonymous object.relationFlag - relation flag: true if this is a relation, false
otherwise.disposeWhenNotReferenced - flag: true if this object is
to be dropped when it has no relations on commit, false otherwise.TmpObject(UserTransactionInfo uti, String objectId, int mmbaseId)
uti - transaction info for current user.objectId - user-specified id for the new object
(must be unique in this transaction context),
or null for anonymous object.mmbaseId - the MMBase id.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 List<MMObjectNode> 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()
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}