|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mmbase.module.core.MMObjectNode
org.mmbase.module.core.VirtualNode
VirtualNode is a representation of a virtual objectnode. Virtual Object nodes are nodes that are not stored in a databasetable. Note that a temporary node is not virtual. This class captures a number of methods that would normally require datbase access, such as obtaining relations or determining age of a node.
| Field Summary |
| Fields inherited from class org.mmbase.module.core.MMObjectNode |
alias, changed, initializing, parent, prefix, properties, relatedCache, relationsCache, VALUE_NULL, values, virtual |
| Constructor Summary | |
VirtualNode(MMObjectBuilder parent)
Main contructor. |
|
| Method Summary | |
boolean |
commit()
commit : commits the node to the database or other storage system. |
int |
getAge()
Returns the node's age A virtual node is always new (0) |
int |
getRelationCount()
Returns the number of relations of this node. |
int |
getRelationCount(java.lang.String wantedtype)
Return the number of relations of this node, filtered on a specified type. |
java.util.Enumeration |
getRelations()
Return the relations of this node. |
boolean |
hasRelations()
Returns whether this node has relations. |
int |
insert(java.lang.String userName)
Insert is not implemented on a virtual node. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public VirtualNode(MMObjectBuilder parent)
parent - the node's parent, generally (but not necessarily) an instance
of a virtual builder.| Method Detail |
public boolean commit()
commit in class MMObjectNodefalsepublic int insert(java.lang.String userName)
insert in class MMObjectNodejava.lang.UnsupportedOperationExceptionpublic boolean hasRelations()
hasRelations in class MMObjectNodefalsepublic java.util.Enumeration getRelations()
getRelations in class MMObjectNodeEnumerationpublic int getRelationCount()
getRelationCount in class MMObjectNodepublic int getRelationCount(java.lang.String wantedtype)
getRelationCount in class MMObjectNodewantedtype - the 'type' of related nodes (NOT the relations!).
int indicating the number of nodes foundpublic int getAge()
getAge in class MMObjectNode
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||