public class BasicRelation extends BasicNode implements Relation
| Modifier and Type | Field and Description |
|---|---|
protected int |
dnum |
protected boolean |
relationChanged |
protected int |
snum |
cloud, nodeManager, noderef, originalNoderef, temporaryNodeIdCLOUD_COMMITNODE_KEY| Constructor and Description |
|---|
BasicRelation(MMObjectNode node,
BasicCloud cloud) |
BasicRelation(MMObjectNode node,
BasicCloud cloud,
int id) |
BasicRelation(MMObjectNode node,
BasicRelationManager nodeManager) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
checkValid() |
void |
commit()
Commit the node to the database.
|
Node |
getDestination()
Retrieves the destination of the relation
|
RelationManager |
getRelationManager()
Retrieves the RelationManager used
|
Node |
getSource()
Retrieves the source of the relation
|
protected void |
init()
Initializes the node.
|
boolean |
isRelation()
Determine whether this Node is a Relation.
|
void |
setDestination(Node node)
set the destination of the relation
|
void |
setSource(Node node)
set the source of the relation
|
void |
setValueWithoutProcess(String fieldName,
Object value)
Like setObjectValue, but without processing, this is called by the other set-values.
|
Relation |
toRelation()
Returns this as a Relation.
|
cancel, checkAccount, checkCommit, checkCreate, checkDelete, checkWrite, countRelatedNodes, countRelatedNodes, createAlias, createFunctionValue, createParameters, delete, deleteAlias, deleteRelations, finalize, getAliases, getBooleanValue, getByteSize, getByteSize, getByteValue, getChanged, getCloud, getContext, getDateValue, getDoubleValue, getFloatValue, getFunctions, getInputStreamValue, getIntValue, getListValue, getLongValue, getNode, getNodeFunction, getNodeManager, getNodeValue, getNumber, getPossibleContexts, getRelatedNodes, getRelatedNodes, getRelations, getRelations, getSize, getStringValue, getValueWithoutProcess, getXMLValue, hasRelations, invalidateNode, isChanged, isChanged, isNew, isNull, mayChangeContext, mayDelete, mayWrite, setContext, setNode, setNodeManager, setNodeManager, setSize, setValueWithoutChecks, toNodeNumber, toStringcompareTo, countRelations, countRelations, createRelation, delete, deleteRelations, equals, getDecimalValue, getFieldValue, getFieldValue, getFunction, getFunctionMap, getFunctionValue, getObjectValue, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelations, getRelations, getRelations, getValue, getXMLValue, hashCode, isNodeManager, isRelationManager, processNull, setBooleanValue, setByteValue, setDateValue, setDecimalValue, setDoubleValue, setFloatValue, setInputStreamValue, setIntValue, setListValue, setLongValue, setNodeValue, setObjectValue, setStringValue, setValue, setXMLValue, toNodeManager, toRelationManager, validatecancel, countRelatedNodes, countRelatedNodes, countRelations, countRelations, createAlias, createParameters, createRelation, delete, delete, deleteAlias, deleteRelations, deleteRelations, getAliases, getBooleanValue, getByteValue, getChanged, getCloud, getContext, getDateValue, getDecimalValue, getDoubleValue, getFieldValue, getFieldValue, getFloatValue, getFunction, getFunctions, getFunctionValue, getInputStreamValue, getIntValue, getListValue, getLongValue, getNodeManager, getNodeValue, getNumber, getObjectValue, getPossibleContexts, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelations, getRelations, getRelations, getRelations, getRelations, getSize, getStringValue, getValue, getValueWithoutProcess, getXMLValue, getXMLValue, hasRelations, isChanged, isChanged, isNew, isNodeManager, isNull, isRelationManager, mayChangeContext, mayDelete, mayWrite, setBooleanValue, setByteValue, setContext, setDateValue, setDecimalValue, setDoubleValue, setFloatValue, setInputStreamValue, setIntValue, setListValue, setLongValue, setNodeManager, setNodeValue, setObjectValue, setStringValue, setValue, setXMLValue, toNodeManager, toRelationManager, toString, validatecompareToprotected int snum
protected int dnum
protected boolean relationChanged
BasicRelation(MMObjectNode node, BasicCloud cloud)
BasicRelation(MMObjectNode node, BasicRelationManager nodeManager)
BasicRelation(MMObjectNode node, BasicCloud cloud, int id)
public final boolean isRelation()
NodeisRelation in interface NodeisRelation in class AbstractNodetrue if this Node is a Relation.public Relation toRelation()
NodetoRelation in interface NodetoRelation in class AbstractNodeRelation objectprotected void init()
public Node getSource()
Relationpublic Node getDestination()
RelationgetDestination in interface Relationpublic void setSource(Node node)
Relationpublic void setDestination(Node node)
RelationsetDestination in interface Relationnode - the destination nodepublic RelationManager getRelationManager()
RelationgetRelationManager in interface Relationvoid checkValid()
public void setValueWithoutProcess(String fieldName, Object value)
AbstractNodesetValueWithoutProcess in interface NodesetValueWithoutProcess in class AbstractNodefieldName - name of fieldvalue - new value of the fieldpublic void commit()
BasicNodeBasicCloud.afterCommit(BasicNode)MMBase 1.9-SNAPSHOT - ${javadoctimestamp}