| java.lang.Object org.mmbase.bridge.util.AbstractNode org.mmbase.bridge.implementation.BasicNode
All known Subclasses: org.mmbase.bridge.implementation.BasicRelation, org.mmbase.bridge.implementation.BasicNodeManager,
Method Summary | |
public void | cancel() | protected void | checkAccount() | protected void | checkCommit() | protected void | checkCreate() | protected void | checkDelete() | protected void | checkWrite() | public void | commit() | public int | countRelatedNodes(NodeManager otherNodeManager, String role, String direction) | public int | countRelatedNodes(String type) | public void | createAlias(String aliasName) | protected FieldValue | createFunctionValue(Object result) | public Parameters | createParameters(String functionName) | public void | delete(boolean deleteRelations) | public void | deleteAlias(String aliasName) | public void | deleteRelations(String type) | protected void | finalize() Reverse the buffers, when changed and not stored... | public StringList | getAliases() | public boolean | getBooleanValue(String fieldName) | public int | getByteSize() | public int | getByteSize(SizeOf sizeof) | public byte[] | getByteValue(String fieldName) | public Set<String> | getChanged() | public Cloud | getCloud() | public String | getContext() | public Date | getDateValue(String fieldName) | public double | getDoubleValue(String fieldName) | public float | getFloatValue(String fieldName) | public Collection<Function<?>> | getFunctions() | public java.io.InputStream | getInputStreamValue(String fieldName) | public int | getIntValue(String fieldName) | public List | getListValue(String fieldName) | public long | getLongValue(String fieldName) | final protected MMObjectNode | getNode() Obtains a reference to the underlying MMObjectNode. | protected Function> | getNodeFunction(String functionName) | public NodeManager | getNodeManager() | public Node | getNodeValue(String fieldName) | public int | getNumber() | public StringList | getPossibleContexts() | protected NodeList | getRelatedNodes(NodeManager otherManager, String role) | public NodeList | getRelatedNodes(NodeManager otherManager, String role, String searchDir) | public RelationList | getRelations(String role, String otherNodeManager) | public RelationList | getRelations(String role, NodeManager nodeManager, String searchDir) Returns a list of relations of the given node. | public long | getSize(String fieldName) | public String | getStringValue(String fieldName) | public Object | getValueWithoutProcess(String fieldName) Like getObjectValue, but skips any processing that MMBase would normally perform on a field. | public Document | getXMLValue(String fieldName) | public boolean | hasRelations() | protected void | init() Initializes state in case of a transaction. | protected void | invalidateNode() Invalidates the reference to the underlying MMObjectNode,
replacing it with a virtual node that only inherits the number field. | public boolean | isChanged(String fieldName) | public boolean | isChanged() | public boolean | isNew() Returns whether this is a new (not yet committed) node. | public boolean | isNull(String fieldName) | public boolean | mayChangeContext() | public boolean | mayDelete() | public boolean | mayWrite() | public void | setContext(String context) | protected void | setNode(MMObjectNode n) Sets the reference to the underlying MMObjectNode. | protected void | setNodeManager(MMObjectNode node) | protected void | setSize(String fieldName, long size) | protected void | setValueWithoutChecks(String fieldName, Object value) Protected method to be able to set rnumber when creating a relation. | protected Integer | toNodeNumber(Object v) | public String | toString() |
account | protected String account(Code) | | The account this node is edited under.
This is needed to check whether people have not switched users during an edit.
|
temporaryNodeId | protected int temporaryNodeId(Code) | | Temporary node ID.
This is necessary since there is otherwise no sure (and quick) way to determine
whether a node is in 'edit' mode (i.e. has a temporary node).
Basically, a temporarynodeid is either -1 (invalid), or a negative number smaller than -1
(a temporary number assigned by the system).
|
BasicNode | BasicNode(MMObjectNode node, BasicNodeManager nodeManager)(Code) | | Instantiates a node, linking it to a specified node manager.
Use this constructor if the node you create uses a NodeManager that is not readily available
from the cloud (such as a temporary nodemanager for a result list).
Parameters: node - the MMObjectNode to base the node on Parameters: nodeManager - the NodeManager to use for administrating this Node throws: IllegalArgumentException - If node is null |
BasicNode | BasicNode(MMObjectNode node, BasicCloud cloud)(Code) | | Instantiates a node, linking it to a specified cloud
The NodeManager for the node is requested from the Cloud.
Parameters: node - the MMObjectNode to base the node on Parameters: cloud - the cloud to which this node belongs throws: IllegalArgumentException - If node is null |
BasicNode | BasicNode(MMObjectNode node, BasicCloud cloud, int id)(Code) | | Instantiates a new node (for insert), using a specified nodeManager.
Parameters: node - a temporary MMObjectNode that is the base for the node Parameters: cloud - the cloud to create the node in Parameters: id - the id of the node in the temporary cloud |
cancel | public void cancel()(Code) | | |
checkAccount | protected void checkAccount()(Code) | | |
checkCommit | protected void checkCommit()(Code) | | |
checkCreate | protected void checkCreate()(Code) | | |
checkDelete | protected void checkDelete()(Code) | | |
checkWrite | protected void checkWrite()(Code) | | |
commit | public void commit()(Code) | | |
countRelatedNodes | public int countRelatedNodes(String type)(Code) | | |
delete | public void delete(boolean deleteRelations)(Code) | | |
finalize | protected void finalize()(Code) | | Reverse the buffers, when changed and not stored...
|
getBooleanValue | public boolean getBooleanValue(String fieldName)(Code) | | |
getByteSize | public int getByteSize()(Code) | | |
getByteValue | public byte[] getByteValue(String fieldName)(Code) | | |
getDoubleValue | public double getDoubleValue(String fieldName)(Code) | | |
getFloatValue | public float getFloatValue(String fieldName)(Code) | | |
getLongValue | public long getLongValue(String fieldName)(Code) | | |
getNode | final protected MMObjectNode getNode()(Code) | | Obtains a reference to the underlying MMObjectNode.
If the underlying node was deleted, this returns a virtual node with
no info except the (original) node number.
the underlying MMObjectNode throws: NotFoundException - if no node was specified. |
getNumber | public int getNumber()(Code) | | |
getRelatedNodes | public NodeList getRelatedNodes(NodeManager otherManager, String role, String searchDir)(Code) | | Parameters: otherManager - node manager on the other side of the relation Parameters: role - role of the relation Parameters: searchDir - direction of the relation List of related nodes See Also: Queries.createRelatedNodesQuery See Also: Should perhaps be implemented with that. since: MMBase-1.6 |
getValueWithoutProcess | public Object getValueWithoutProcess(String fieldName)(Code) | | Like getObjectValue, but skips any processing that MMBase would normally perform on a field.
You can use this to get data from a field for validation purposes.
Parameters: fieldName - name of field since: MMBase-1.8 |
hasRelations | public boolean hasRelations()(Code) | | |
init | protected void init()(Code) | | Initializes state in case of a transaction.
|
invalidateNode | protected void invalidateNode()(Code) | | Invalidates the reference to the underlying MMObjectNode,
replacing it with a virtual node that only inherits the number field.
since: MMBase-1.6.4 |
isChanged | public boolean isChanged()(Code) | | |
isNew | public boolean isNew()(Code) | | Returns whether this is a new (not yet committed) node.
is a new node |
mayChangeContext | public boolean mayChangeContext()(Code) | | |
mayDelete | public boolean mayDelete()(Code) | | |
mayWrite | public boolean mayWrite()(Code) | | |
setNode | protected void setNode(MMObjectNode n)(Code) | | Sets the reference to the underlying MMObjectNode.
Parameters: n - the node to set a reference to. throws: IllegalArgumentException - is n is null since: MMBase-1.6.4 |
setSize | protected void setSize(String fieldName, long size)(Code) | | |
setValueWithoutChecks | protected void setValueWithoutChecks(String fieldName, Object value)(Code) | | Protected method to be able to set rnumber when creating a relation.
Parameters: fieldName - name of field Parameters: value - new value of field since: MMBase-1.7 |
Methods inherited from org.mmbase.bridge.util.AbstractNode | public void cancel()(Code)(Java Doc) protected void checkWrite()(Code)(Java Doc) public void commit()(Code)(Java Doc) final public int compareTo(Node o)(Code)(Java Doc) public int countRelatedNodes(NodeManager otherNodeManager, String role, String direction)(Code)(Java Doc) public int countRelatedNodes(String type)(Code)(Java Doc) final public int countRelations()(Code)(Java Doc) final public int countRelations(String type)(Code)(Java Doc) public void createAlias(String aliasName)(Code)(Java Doc) protected FieldValue createFunctionValue(Object result)(Code)(Java Doc) public Parameters createParameters(String functionName)(Code)(Java Doc) public Relation createRelation(Node destinationNode, RelationManager relationManager)(Code)(Java Doc) final public void delete()(Code)(Java Doc) public void delete(boolean deleteRelations)(Code)(Java Doc) public void deleteAlias(String aliasName)(Code)(Java Doc) final public void deleteRelations()(Code)(Java Doc) public void deleteRelations(String type) throws NotFoundException(Code)(Java Doc) final public boolean equals(Object o)(Code)(Java Doc) public StringList getAliases()(Code)(Java Doc) public boolean getBooleanValue(String fieldName)(Code)(Java Doc) public byte[] getByteValue(String fieldName)(Code)(Java Doc) public Set<String> getChanged()(Code)(Java Doc) public String getContext()(Code)(Java Doc) public Date getDateValue(String fieldName)(Code)(Java Doc) public double getDoubleValue(String fieldName)(Code)(Java Doc) final public FieldValue getFieldValue(String fieldName) throws NotFoundException(Code)(Java Doc) final public FieldValue getFieldValue(Field field)(Code)(Java Doc) public float getFloatValue(String fieldName)(Code)(Java Doc) final public Function> getFunction(String functionName)(Code)(Java Doc) public FieldValue getFunctionValue(String functionName, List parameters)(Code)(Java Doc) public java.io.InputStream getInputStreamValue(String fieldName)(Code)(Java Doc) public int getIntValue(String fieldName)(Code)(Java Doc) public List getListValue(String fieldName)(Code)(Java Doc) public long getLongValue(String fieldName)(Code)(Java Doc) protected Function> getNodeFunction(String functionName)(Code)(Java Doc) public Node getNodeValue(String fieldName)(Code)(Java Doc) public int getNumber()(Code)(Java Doc) final public Object getObjectValue(String fieldName)(Code)(Java Doc) public StringList getPossibleContexts()(Code)(Java Doc) final public NodeList getRelatedNodes()(Code)(Java Doc) final public NodeList getRelatedNodes(String type)(Code)(Java Doc) final public NodeList getRelatedNodes(NodeManager nodeManager)(Code)(Java Doc) final public NodeList getRelatedNodes(String type, String role, String searchDir)(Code)(Java Doc) public NodeList getRelatedNodes(NodeManager nodeManager, String role, String searchDir)(Code)(Java Doc) final public RelationList getRelations()(Code)(Java Doc) final public RelationList getRelations(String role)(Code)(Java Doc) final public RelationList getRelations(String role, NodeManager nodeManager)(Code)(Java Doc) public RelationList getRelations(String role, NodeManager nodeManager, String searchDir) throws NotFoundException(Code)(Java Doc) public RelationList getRelations(String role, String nodeManager) throws NotFoundException(Code)(Java Doc) public String getStringValue(String fieldName)(Code)(Java Doc) final public Object getValue(String fieldName)(Code)(Java Doc) public Document getXMLValue(String fieldName)(Code)(Java Doc) final public Element getXMLValue(String fieldName, Document tree)(Code)(Java Doc) public boolean hasRelations()(Code)(Java Doc) final public int hashCode()(Code)(Java Doc) public boolean isChanged(String fieldName)(Code)(Java Doc) public boolean isChanged()(Code)(Java Doc) public boolean isNew()(Code)(Java Doc) public boolean isNodeManager()(Code)(Java Doc) public boolean isNull(String fieldName)(Code)(Java Doc) public boolean isRelation()(Code)(Java Doc) public boolean isRelationManager()(Code)(Java Doc) public boolean mayChangeContext()(Code)(Java Doc) public boolean mayDelete()(Code)(Java Doc) public boolean mayWrite()(Code)(Java Doc) final public void processCommit()(Code)(Java Doc) protected Object processNull(int type, Field field)(Code)(Java Doc) final public void setBooleanValue(String fieldName, boolean value)(Code)(Java Doc) final public void setByteValue(String fieldName, byte[] value)(Code)(Java Doc) public void setContext(String context)(Code)(Java Doc) final public void setDateValue(String fieldName, Date value)(Code)(Java Doc) final public void setDoubleValue(String fieldName, double value)(Code)(Java Doc) final public void setFloatValue(String fieldName, float value)(Code)(Java Doc) final public void setInputStreamValue(String fieldName, InputStream value, long size)(Code)(Java Doc) final public void setIntValue(String fieldName, int value)(Code)(Java Doc) final public void setListValue(String fieldName, List value)(Code)(Java Doc) final public void setLongValue(String fieldName, long value)(Code)(Java Doc) final public void setNodeValue(String fieldName, Node value)(Code)(Java Doc) final public void setObjectValue(String fieldName, Object value)(Code)(Java Doc) abstract protected void setSize(String fieldName, long size)(Code)(Java Doc) final public void setStringValue(String fieldName, String value)(Code)(Java Doc) final public void setValue(String fieldName, Object value)(Code)(Java Doc) abstract protected void setValueWithoutChecks(String fieldName, Object value)(Code)(Java Doc) public void setValueWithoutProcess(String fieldName, Object value)(Code)(Java Doc) final public void setXMLValue(String fieldName, Document value)(Code)(Java Doc) public NodeManager toNodeManager()(Code)(Java Doc) protected Integer toNodeNumber(Object v)(Code)(Java Doc) public Relation toRelation()(Code)(Java Doc) public RelationManager toRelationManager()(Code)(Java Doc) public Collection<String> validate()(Code)(Java Doc)
|
|
|