public abstract class BaseSelectableBasedConstraint extends BaseConstraint implements SelectableBasedConstraint
SelectableBasedConstraintimplementation.| Constructor and Description |
|---|
BaseSelectableBasedConstraint(java.lang.String name,
java.lang.String type)
Creates a
Constraintwith the given name and type
. |
| Modifier and Type | Method and Description |
|---|---|
void |
addSelectable(Selectable sel) |
abstract boolean |
evaluate(RowEvent event)
Evaluate the given event under me.
|
abstract boolean |
evaluate(RowEvent event,
RowDecorator dec)
Evaluate the given event under me.
|
abstract boolean |
evaluate(RowIterator oldRows,
RowIterator newRows,
Table table) |
Selectable |
getSelectable(int i) |
int |
getSelectableCount() |
java.util.List |
getSelectableList() |
java.util.Iterator |
getSelectables() |
void |
resolve(Database db,
TableIdentifier table)
This base implementation
resolvesall of the
Selectables in my list. |
getName, getType, isDeferrable, isDeferred, setDeferrable, setDeferred, setName, toArrayclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, getType, isDeferrable, isDeferred, setDeferrable, setDeferred, setNamepublic BaseSelectableBasedConstraint(java.lang.String name,
java.lang.String type)
Constraintwith the given name and type
.name - the name of this constraint (see BaseConstraint.setName(java.lang.String)) which may be
nulltype - the type of this constraint (see BaseConstraint.getType()), which should not
be nullpublic abstract boolean evaluate(RowEvent event) throws AxionException
Constraintfalse if the
constraint I represent has been violated.evaluate in interface Constraintevaluate in class BaseConstraintAxionExceptionpublic abstract boolean evaluate(RowEvent event, RowDecorator dec) throws AxionException
Constraintfalse if the
constraint I represent has been violated.evaluate in interface ConstraintAxionExceptionpublic abstract boolean evaluate(RowIterator oldRows, RowIterator newRows, Table table) throws AxionException
evaluate in interface ConstraintAxionExceptionpublic void addSelectable(Selectable sel)
addSelectable in interface SelectableBasedConstraintpublic final int getSelectableCount()
getSelectableCount in interface SelectableBasedConstraintpublic final Selectable getSelectable(int i)
getSelectable in interface SelectableBasedConstraintpublic final java.util.List getSelectableList()
public final java.util.Iterator getSelectables()
public void resolve(Database db, TableIdentifier table) throws AxionException
resolvesall of the
Selectables in my list.resolve in interface Constraintresolve in class BaseConstraintAxionException