org.mmbase.datatypes.processors
Class FunctionValueIfEmptyCommitProcessor
java.lang.Object
org.mmbase.datatypes.processors.FunctionValueIfEmptyCommitProcessor
- All Implemented Interfaces:
- Serializable, CommitProcessor
public class FunctionValueIfEmptyCommitProcessor
- extends Object
- implements CommitProcessor
If this commit-processor is configured on a field, then on commit of the node, the value of a
certain function (on the same node), is set into the field, if the field is empty.
It also implements simply copying the value of another field in such cases (using the
'fieldName') parameter.
- Since:
- MMBase-1.8.5
- Version:
- $Id: FunctionValueIfEmptyCommitProcessor.java 41987 2010-04-20 16:14:35Z michiel $
- Author:
- Michiel Meeuwissen
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FunctionValueIfEmptyCommitProcessor
public FunctionValueIfEmptyCommitProcessor()
setFunctionName
public void setFunctionName(String fn)
setFieldName
public void setFieldName(String fn)
commit
public void commit(Node node,
Field field)
- Description copied from interface:
CommitProcessor
- Will be called on commit of the node.
- Specified by:
commit in interface CommitProcessor
MMBase2 Bridge 2.0-SNAPSHOT - 2013-05-29T22:05