org.axiondb.constraints

Class UniqueConstraint

public class UniqueConstraint extends BaseSelectableBasedConstraint

A UNIQUE constraint, which is violated when my collection of Selectables is not unique within my table.

Version: $Revision: 1.16 $ $Date: 2007/11/13 19:04:02 $

Author: Rodney Waldhoff James Strachan Ahimanikya Satapathy

Constructor Summary
UniqueConstraint(String name)
UniqueConstraint(String name, String type)
Method Summary
voidaddFK(String name)
booleanevaluate(RowEvent event)
booleanevaluate(RowEvent event, RowDecorator dec)
booleanevaluate(RowEvent event, RowDecorator dec, boolean wasDeferred)
booleanevaluate(RowIterator oldRows, RowIterator newRows, Table table)
IteratorgetFKs()

Constructor Detail

UniqueConstraint

public UniqueConstraint(String name)

UniqueConstraint

public UniqueConstraint(String name, String type)

Method Detail

addFK

public void addFK(String name)

evaluate

public boolean evaluate(RowEvent event)

evaluate

public boolean evaluate(RowEvent event, RowDecorator dec)

evaluate

public boolean evaluate(RowEvent event, RowDecorator dec, boolean wasDeferred)

evaluate

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

getFKs

public Iterator getFKs()