org.axiondb.constraints

Class CheckConstraint

public class CheckConstraint extends BaseConstraint

A CHECK constraint, which is violated whenever the given conditionis violated.

Version: $Revision: 1.17 $ $Date: 2005/12/20 18:32:46 $

Author: Rodney Waldhoff Amrish Lal Jonathan Giron Ahimanikya Satapathy

Constructor Summary
CheckConstraint(String name)
Method Summary
booleanevaluate(RowEvent event)
booleanevaluate(RowEvent event, RowDecorator dec)
booleanevaluate(RowIterator oldRows, RowIterator newRows, Table table)
SelectablegetCondition()
voidresolve(Database db, TableIdentifier table)
voidsetCondition(Selectable where)

Constructor Detail

CheckConstraint

public CheckConstraint(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)

getCondition

public Selectable getCondition()

resolve

public void resolve(Database db, TableIdentifier table)

setCondition

public void setCondition(Selectable where)