public class VirtualNode extends MMObjectNode
aliases, initializing, isNew, oldBuilder, parent, sequence, VALUE_SHORTED, values| Constructor and Description |
|---|
VirtualNode(Map<String,Object> values)
Alternate constructor, to create a node with the values given.
|
VirtualNode(MMObjectBuilder parent)
Main constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkFieldExistance(String fieldName)
Overrides to no throw exception on non-existing fields
|
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 |
getOType()
Retrieve an object's object type.
|
int |
getRelationCount()
Returns the number of relations of this node.
|
int |
getRelationCount(String wantedtype)
Return the number of relations of this node, filtered on a specified type.
|
Enumeration<MMObjectNode> |
getRelations()
Return the relations of this node.
|
boolean |
hasRelations()
Returns whether this node has relations.
|
int |
insert(String userName)
Insert is not implemented on a virtual node.
|
boolean |
isVirtual()
Determines whether the node is virtual.
|
cancel, checkSerializable, clearChanged, clone, commit, compareTo, createParameters, defaultEquals, defaultToString, delPropertiesCache, delRelationsCache, delRelationsCache, equals, finish, getAllRelations, getBooleanValue, getBuilder, getByteSize, getByteSize, getByteValue, getChanged, getContext, getDateValue, getDBState, getDBType, getDoubleValue, getFloatValue, getFunction, getFunctions, getFunctionValue, getGUIIndicator, getInputStreamValue, getIntegerValue, getIntValue, getListValue, getLongValue, getName, getNodeValue, getNumber, getOldBuilder, getOldValues, getPossibleContexts, getProperties, getProperty, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelationNodes, getRelations, getRelations, getSize, getStringValue, getValue, getValues, getXMLValue, hashCode, insert, isChanged, isNew, isNull, putProperty, remove, removeRelations, retrieveValue, sendFieldChangeSignal, setAlias, setBuilder, setContext, setSize, setValue, start, storeValue, testValidData, toString, toXML, useAliasespublic VirtualNode(MMObjectBuilder parent)
parent - the node's parentpublic boolean isVirtual()
MMObjectNodeisVirtual in class MMObjectNodeprotected boolean checkFieldExistance(String fieldName)
checkFieldExistance in class MMObjectNodetrue if field exists and may be used.public boolean commit()
commit in class MMObjectNodefalsepublic int insert(String userName)
insert in class MMObjectNodeuserName - the name of the user who inserts the node. This value is ignoredUnsupportedOperationExceptionpublic boolean hasRelations()
hasRelations in class MMObjectNodefalsepublic Enumeration<MMObjectNode> getRelations()
getRelations in class MMObjectNodeEnumerationpublic int getRelationCount()
getRelationCount in class MMObjectNodepublic int getRelationCount(String wantedtype)
getRelationCount in class MMObjectNodewantedtype - the 'type' of related nodes (NOT the relations!).public int getAge()
getAge in class MMObjectNodepublic int getOType()
MMObjectNodegetOType in class MMObjectNodeMMBase 1.9-SNAPSHOT - ${javadoctimestamp}