org.axiondb.constraints

Class NotNullConstraint

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.16 $ $Date: 2005/12/20 18:32:46 $

Author: Rodney Waldhoff Ahimanikya Satapathy

Constructor Summary
NotNullConstraint()
NotNullConstraint(String name)
Method Summary
booleanevaluate(RowEvent event)
booleanevaluate(RowEvent event, RowDecorator dec)
booleanevaluate(RowIterator oldRows, RowIterator newRows, Table table)
protected static booleannoneNull(RowDecorator dec, Row row, Iterator selectables)
protected static booleannoneNull(RowIterator newRows, Table table, Iterator selectables)

Constructor Detail

NotNullConstraint

public NotNullConstraint()

NotNullConstraint

public NotNullConstraint(String name)

Method Detail

evaluate

public boolean evaluate(RowEvent event)

evaluate

public boolean evaluate(RowEvent event, RowDecorator dec)

evaluate

public boolean evaluate(RowIterator oldRows, RowIterator newRows, Table table)

noneNull

protected static boolean noneNull(RowDecorator dec, Row row, Iterator selectables)

noneNull

protected static boolean noneNull(RowIterator newRows, Table table, Iterator selectables)