org.axiondb.constraints
Class NullConstraint

java.lang.Object
  extended by org.axiondb.constraints.BaseConstraint
      extended by org.axiondb.constraints.BaseSelectableBasedConstraint
          extended by org.axiondb.constraints.NullConstraint
All Implemented Interfaces:
Serializable, Constraint, SelectableBasedConstraint

public class NullConstraint
extends BaseSelectableBasedConstraint

A NULL constraint, which is never violated but may be created and dropped.

Version:
$Revision: 1.10 $ $Date: 2005/12/20 18:32:46 $
See Also:
Serialized Form

Constructor Summary
NullConstraint()
           
NullConstraint(String name)
           
 
Method Summary
 boolean evaluate(RowEvent event)
          Returns true.
 boolean evaluate(RowEvent event, RowDecorator dec)
          Evaluate the given event under me.
 boolean evaluate(RowIterator oldRows, RowIterator newRows, Table table)
           
 
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

NullConstraint

public NullConstraint()

NullConstraint

public NullConstraint(String name)
Method Detail

evaluate

public boolean evaluate(RowEvent event)
                 throws AxionException
Returns true.

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

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