| java.lang.Object org.mmbase.module.core.MMObjectNode org.mmbase.module.core.VirtualNode
All known Subclasses: org.mmbase.module.core.ClusterNode, org.mmbase.storage.search.ResultNode,
VirtualNode | public class VirtualNode extends MMObjectNode (Code) | | 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.
author: Pierre van Rooden version: $Id: VirtualNode.java,v 1.15 2007/02/11 19:21:11 nklasens Exp $ |
VirtualNode | public VirtualNode(MMObjectBuilder parent)(Code) | | Main constructor.
Parameters: parent - the node's parent |
VirtualNode | public VirtualNode(Map<String, Object> values)(Code) | | Alternate constructor, to create a node with the values given.
|
checkFieldExistance | protected boolean checkFieldExistance(String fieldName)(Code) | | Overrides to no throw exception on non-existing fields
|
commit | public boolean commit()(Code) | | commit : commits the node to the database or other storage system.
Generally, commiting a virtual node has no effect, so the basic
implementation returns false.
false |
getAge | public int getAge()(Code) | | Returns the node's age
A virtual node is always new (0)
the age in days (0) |
getOType | public int getOType()(Code) | | |
getRelationCount | public int getRelationCount()(Code) | | A virtual node never has relations.
0, because Virtual nodes have no relations. |
getRelationCount | public int getRelationCount(String wantedtype)(Code) | | A virtual node never has relations.
Parameters: wantedtype - the 'type' of related nodes (NOT the relations!). 0, because Virtual nodes have no relations. |
hasRelations | public boolean hasRelations()(Code) | | A virtual node never has relations.
false |
isVirtual | public boolean isVirtual()(Code) | | |
Methods inherited from org.mmbase.module.core.MMObjectNode | public void cancel()(Code)(Java Doc) protected boolean checkFieldExistance(String fieldName)(Code)(Java Doc) public boolean clearChanged()(Code)(Java Doc) public boolean commit()(Code)(Java Doc) public boolean commit(UserContext user)(Code)(Java Doc) public Parameters createParameters(String functionName)(Code)(Java Doc) public boolean defaultEquals(MMObjectNode n)(Code)(Java Doc) String defaultToString()(Code)(Java Doc) public void delPropertiesCache()(Code)(Java Doc) public void delRelationsCache()(Code)(Java Doc) public static void delRelationsCache(Integer number)(Code)(Java Doc) public boolean equals(Object o)(Code)(Java Doc) public void finish()(Code)(Java Doc) public int getAge()(Code)(Java Doc) public Enumeration<MMObjectNode> getAllRelations()(Code)(Java Doc) public boolean getBooleanValue(String fieldName)(Code)(Java Doc) public MMObjectBuilder getBuilder()(Code)(Java Doc) public int getByteSize()(Code)(Java Doc) public int getByteSize(SizeOf sizeof)(Code)(Java Doc) public byte[] getByteValue(String fieldName)(Code)(Java Doc) public Set<String> getChanged()(Code)(Java Doc) public String getContext(UserContext user)(Code)(Java Doc) public int getDBState(String fieldName)(Code)(Java Doc) public int getDBType(String fieldName)(Code)(Java Doc) public Date getDateValue(String fieldName)(Code)(Java Doc) public double getDoubleValue(String fieldName)(Code)(Java Doc) public float getFloatValue(String fieldName)(Code)(Java Doc) public Function> getFunction(String functionName)(Code)(Java Doc) public Object getFunctionValue(String functionName, List> parameters)(Code)(Java Doc) public Collection<Function<?>> getFunctions()(Code)(Java Doc) public String getGUIIndicator()(Code)(Java Doc) public InputStream getInputStreamValue(String fieldName)(Code)(Java Doc) public int getIntValue(String fieldName)(Code)(Java Doc) public Integer getIntegerValue(String fieldName)(Code)(Java Doc) public List getListValue(String fieldName)(Code)(Java Doc) public long getLongValue(String fieldName)(Code)(Java Doc) public String getName()(Code)(Java Doc) public MMObjectNode getNodeValue(String fieldName)(Code)(Java Doc) public int getNumber()(Code)(Java Doc) public int getOType()(Code)(Java Doc) public Map<String, Object> getOldValues()(Code)(Java Doc) public Set<String> getPossibleContexts(UserContext user)(Code)(Java Doc) public Hashtable<String, MMObjectNode> getProperties()(Code)(Java Doc) public MMObjectNode getProperty(String key)(Code)(Java Doc) public Vector<MMObjectNode> getRelatedNodes()(Code)(Java Doc) public Vector<MMObjectNode> getRelatedNodes(String type)(Code)(Java Doc) public Vector<MMObjectNode> getRelatedNodes(String type, int search_type)(Code)(Java Doc) public Vector<MMObjectNode> getRelatedNodes(String type, String role, int search_type)(Code)(Java Doc) public int getRelationCount()(Code)(Java Doc) public int getRelationCount(String wt)(Code)(Java Doc) protected List<MMObjectNode> getRelationNodes()(Code)(Java Doc) public Enumeration<MMObjectNode> getRelations()(Code)(Java Doc) public Enumeration<MMObjectNode> getRelations(int otype)(Code)(Java Doc) public Enumeration<MMObjectNode> getRelations(String wantedtype)(Code)(Java Doc) public long getSize(String fieldName)(Code)(Java Doc) public String getStringValue(String fieldName)(Code)(Java Doc) public Object getValue(String fieldName)(Code)(Java Doc) public Map<String, Object> getValues()(Code)(Java Doc) public Document getXMLValue(String fieldName)(Code)(Java Doc) public boolean hasRelations()(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public int insert(String userName)(Code)(Java Doc) public int insert(UserContext user)(Code)(Java Doc) public boolean isChanged()(Code)(Java Doc) public boolean isNew()(Code)(Java Doc) public boolean isNull(String fieldName)(Code)(Java Doc) public boolean isVirtual()(Code)(Java Doc) public void putProperty(MMObjectNode node)(Code)(Java Doc) public void remove(UserContext user)(Code)(Java Doc) public void removeRelations()(Code)(Java Doc) public Object retrieveValue(String fieldName)(Code)(Java Doc) public boolean sendFieldChangeSignal(String fieldName)(Code)(Java Doc) public void setAlias(String alias)(Code)(Java Doc) public void setContext(UserContext user, String context, boolean now)(Code)(Java Doc) public void setSize(String fieldName, long size)(Code)(Java Doc) public boolean setValue(String fieldName, Object fieldValue)(Code)(Java Doc) public void start()(Code)(Java Doc) public void storeValue(String fieldName, Object fieldValue)(Code)(Java Doc) public void testValidData() throws InvalidDataException(Code)(Java Doc) public String toString()(Code)(Java Doc) protected Document toXML(Object value, String fieldName)(Code)(Java Doc) void useAliases()(Code)(Java Doc)
|
|
|