org.mmbase.bridge.util
Class ChangedNode

java.lang.Object
  extended by org.mmbase.bridge.util.NodeWrapper
      extended by org.mmbase.bridge.util.ChangedNode
All Implemented Interfaces:
Comparable<Node>, Node

public class ChangedNode
extends NodeWrapper

A nodewrapper in which fields are explicitely marked as 'changed' (even though they may actually not be).

Since:
MMBase-1.9.2
Version:
$Id: ChangedNode.java 40140 2009-12-07 16:25:31Z michiel $
Author:
Michiel Meeuwissen

Field Summary
 
Fields inherited from class org.mmbase.bridge.util.NodeWrapper
node
 
Fields inherited from interface org.mmbase.bridge.Node
CLOUD_COMMITNODE_KEY
 
Constructor Summary
ChangedNode(Node node, String... fields)
           
 
Method Summary
 Set<String> getChanged()
          A Set of Strings containing the names of all changed fields.
 boolean isChanged()
          Whether field values were changed since the last commit.
 boolean isChanged(String fieldName)
          Whether a certain field's value was changed since the last commit.
 
Methods inherited from class org.mmbase.bridge.util.NodeWrapper
cancel, commit, compareTo, countRelatedNodes, countRelatedNodes, countRelations, countRelations, createAlias, createParameters, createRelation, delete, delete, deleteAlias, deleteRelations, deleteRelations, equals, getAliases, getBooleanValue, getByteValue, getCloud, getContext, getDateValue, getDecimalValue, getDoubleValue, getFieldValue, getFieldValue, getFloatValue, getFunction, getFunctions, getFunctionValue, getInputStreamValue, getIntValue, getListValue, getLongValue, getNode, getNodeManager, getNodeValue, getNumber, getObjectValue, getPossibleContexts, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelations, getRelations, getRelations, getRelations, getRelations, getSize, getStringValue, getValue, getValueWithoutProcess, getXMLValue, getXMLValue, hashCode, hasRelations, isNew, isNodeManager, isNull, isRelation, isRelationManager, mayChangeContext, mayDelete, mayWrite, setBooleanValue, setByteValue, setContext, setDateValue, setDecimalValue, setDoubleValue, setFloatValue, setInputStreamValue, setIntValue, setListValue, setLongValue, setNodeManager, setNodeValue, setObjectValue, setStringValue, setValue, setValueWithoutProcess, setXMLValue, toNodeManager, toRelation, toRelationManager, toString, validate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChangedNode

public ChangedNode(Node node,
                   String... fields)
Method Detail

isChanged

public boolean isChanged(String fieldName)
Description copied from interface: Node
Whether a certain field's value was changed since the last commit.

Specified by:
isChanged in interface Node
Overrides:
isChanged in class NodeWrapper
Parameters:
fieldName - the name of the field
Returns:
true when field's value was changed

isChanged

public boolean isChanged()
Description copied from interface: Node
Whether field values were changed since the last commit.

Specified by:
isChanged in interface Node
Overrides:
isChanged in class NodeWrapper
Returns:
true when changed

getChanged

public Set<String> getChanged()
Description copied from interface: Node
A Set of Strings containing the names of all changed fields.

Specified by:
getChanged in interface Node
Overrides:
getChanged in class NodeWrapper
Returns:
Set of changed fields


MMBase 2.0-SNAPSHOT - null