|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.bridge.util.AbstractNode
org.mmbase.bridge.implementation.BasicNode
org.mmbase.bridge.implementation.BasicRelation
public class BasicRelation
| Field Summary | |
|---|---|
protected int |
dnum
|
protected boolean |
relationChanged
|
protected int |
snum
|
| Fields inherited from class org.mmbase.bridge.implementation.BasicNode |
|---|
cloud, nodeManager, noderef, originalNoderef, temporaryNodeId |
| Fields inherited from interface org.mmbase.bridge.Node |
|---|
CLOUD_COMMITNODE_KEY |
| Constructor Summary | |
|---|---|
BasicRelation(MMObjectNode node,
BasicCloud cloud)
|
|
BasicRelation(MMObjectNode node,
BasicCloud cloud,
int id)
|
|
BasicRelation(MMObjectNode node,
BasicRelationManager nodeManager)
|
|
| Method Summary | |
|---|---|
(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. |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Field Detail |
|---|
protected int snum
protected int dnum
protected boolean relationChanged
| Constructor Detail |
|---|
BasicRelation(MMObjectNode node,
BasicCloud cloud)
BasicRelation(MMObjectNode node,
BasicRelationManager nodeManager)
BasicRelation(MMObjectNode node,
BasicCloud cloud,
int id)
| Method Detail |
|---|
public final boolean isRelation()
Node
isRelation in interface NodeisRelation in class AbstractNodetrue if this Node is a Relation.public Relation toRelation()
Node
toRelation in interface NodetoRelation in class AbstractNodeRelation objectprotected void init()
init in class BasicNodepublic Node getSource()
Relation
getSource in interface Relationpublic Node getDestination()
Relation
getDestination in interface Relationpublic void setSource(Node node)
Relation
setSource in interface Relationnode - the source nodepublic void setDestination(Node node)
Relation
setDestination in interface Relationnode - the destination nodepublic RelationManager getRelationManager()
Relation
getRelationManager in interface Relationvoid checkValid()
public void setValueWithoutProcess(String fieldName,
Object value)
AbstractNode
setValueWithoutProcess in interface NodesetValueWithoutProcess in class AbstractNodefieldName - name of fieldvalue - new value of the fieldpublic void commit()
BasicNodeBasicCloud.afterCommit(BasicNode)
commit in interface Nodecommit in class BasicNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||