public class CheckConstraint extends BaseConstraint
condition
is violated.Constructor and Description |
---|
CheckConstraint(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(RowEvent event)
Evaluate the given event under me.
|
boolean |
evaluate(RowEvent event,
RowDecorator dec)
Evaluate the given event under me.
|
boolean |
evaluate(RowIterator oldRows,
RowIterator newRows,
Table table) |
Selectable |
getCondition() |
void |
resolve(Database db,
TableIdentifier table)
This base implementation is a no-op.
|
void |
setCondition(Selectable where) |
getName, getType, isDeferrable, isDeferred, setDeferrable, setDeferred, setName, toArray
public void setCondition(Selectable where)
public Selectable getCondition()
public void resolve(Database db, TableIdentifier table) throws AxionException
BaseConstraint
resolve
in interface Constraint
resolve
in class BaseConstraint
AxionException
public boolean evaluate(RowEvent event) throws AxionException
Constraint
false
if the
constraint I represent has been violated.evaluate
in interface Constraint
evaluate
in class BaseConstraint
AxionException
public boolean evaluate(RowEvent event, RowDecorator dec) throws AxionException
Constraint
false
if the
constraint I represent has been violated.AxionException
public boolean evaluate(RowIterator oldRows, RowIterator newRows, Table table) throws AxionException
AxionException