org.axiondb.constraints
Class NotNullConstraint

java.lang.Object
  extended byorg.axiondb.constraints.BaseConstraint
      extended byorg.axiondb.constraints.BaseSelectableBasedConstraint
          extended byorg.axiondb.constraints.NotNullConstraint
All Implemented Interfaces:
Constraint, SelectableBasedConstraint, Serializable

public class NotNullConstraint
extends BaseSelectableBasedConstraint

A NOT NULL constraint, which is violated whenever one or more of the specified Selectables is null.

Version:
$Revision: 1.15 $ $Date: 2004/09/09 23:47:45 $
See Also:
Serialized Form

Constructor Summary
NotNullConstraint()
           
NotNullConstraint(String name)
           
 
Method Summary
 boolean evaluate(RowEvent event)
          Evaluate the given event under me.
protected static boolean noneNull(RowDecorator dec, Row row, Iterator selectables)
           
 
Methods inherited from class org.axiondb.constraints.BaseSelectableBasedConstraint
addSelectable, getSelectable, getSelectableCount, getSelectableList, getSelectables, resolve
 
Methods inherited from class org.axiondb.constraints.BaseConstraint
getName, getType, isDeferrable, isDeferred, setDeferrable, setDeferred, setName, toArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.axiondb.Constraint
getName, getType, isDeferrable, isDeferred, setDeferrable, setDeferred, setName
 

Constructor Detail

NotNullConstraint

public NotNullConstraint()

NotNullConstraint

public NotNullConstraint(String name)
Method Detail

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

noneNull

protected static boolean noneNull(RowDecorator dec,
                                  Row row,
                                  Iterator selectables)
                           throws AxionException
Throws:
AxionException