org.axiondb.constraints
Class NotNullConstraint
java.lang.Object
org.axiondb.constraints.BaseConstraint
org.axiondb.constraints.BaseSelectableBasedConstraint
org.axiondb.constraints.NotNullConstraint
- All Implemented Interfaces:
- Serializable, Constraint, SelectableBasedConstraint
public class NotNullConstraint
- extends BaseSelectableBasedConstraint
A NOT NULL constraint, which is violated whenever one or more of the specified
Selectable
s is null
.
- Version:
- $Revision: 1.16 $ $Date: 2005/12/20 18:32:46 $
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NotNullConstraint
public NotNullConstraint()
NotNullConstraint
public NotNullConstraint(String name)
evaluate
public boolean evaluate(RowEvent event)
throws AxionException
- Description copied from interface:
Constraint
- Evaluate the given event under me. Returns
false
if the
constraint I represent has been violated.
- Specified by:
evaluate
in interface Constraint
- Specified by:
evaluate
in class BaseSelectableBasedConstraint
- Throws:
AxionException
evaluate
public boolean evaluate(RowEvent event,
RowDecorator dec)
throws AxionException
- Description copied from interface:
Constraint
- Evaluate the given event under me. Returns
false
if the
constraint I represent has been violated.
- Specified by:
evaluate
in interface Constraint
- Specified by:
evaluate
in class BaseSelectableBasedConstraint
- Throws:
AxionException
noneNull
protected static boolean noneNull(RowDecorator dec,
Row row,
Iterator selectables)
throws AxionException
- Throws:
AxionException
evaluate
public boolean evaluate(RowIterator oldRows,
RowIterator newRows,
Table table)
throws AxionException
- Specified by:
evaluate
in interface Constraint
- Specified by:
evaluate
in class BaseSelectableBasedConstraint
- Throws:
AxionException
noneNull
protected static boolean noneNull(RowIterator newRows,
Table table,
Iterator selectables)
throws AxionException
- Throws:
AxionException