public class CheckConstraint extends BaseConstraint
conditionis 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, toArraypublic void setCondition(Selectable where)
public Selectable getCondition()
public void resolve(Database db, TableIdentifier table) throws AxionException
BaseConstraintresolve in interface Constraintresolve in class BaseConstraintAxionExceptionpublic boolean evaluate(RowEvent event) throws AxionException
Constraintfalse if the
constraint I represent has been violated.evaluate in interface Constraintevaluate in class BaseConstraintAxionExceptionpublic boolean evaluate(RowEvent event, RowDecorator dec) throws AxionException
Constraintfalse if the
constraint I represent has been violated.AxionExceptionpublic boolean evaluate(RowIterator oldRows, RowIterator newRows, Table table) throws AxionException
AxionException