public abstract class BaseSelectableBasedConstraint extends BaseConstraint implements SelectableBasedConstraint
SelectableBasedConstraint
implementation.Constructor and Description |
---|
BaseSelectableBasedConstraint(java.lang.String name,
java.lang.String type)
Creates a
Constraint with 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
resolves all of the
Selectable s in my list. |
getName, getType, isDeferrable, isDeferred, setDeferrable, setDeferred, setName, toArray
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, getType, isDeferrable, isDeferred, setDeferrable, setDeferred, setName
public BaseSelectableBasedConstraint(java.lang.String name, java.lang.String type)
Constraint
with the given name and type
.name
- the name of this constraint (see BaseConstraint.setName(java.lang.String)
) which may be
null
type
- the type of this constraint (see BaseConstraint.getType()
), which should not
be null
public abstract 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 abstract boolean evaluate(RowEvent event, RowDecorator dec) throws AxionException
Constraint
false
if the
constraint I represent has been violated.evaluate
in interface Constraint
AxionException
public abstract boolean evaluate(RowIterator oldRows, RowIterator newRows, Table table) throws AxionException
evaluate
in interface Constraint
AxionException
public void addSelectable(Selectable sel)
addSelectable
in interface SelectableBasedConstraint
public final int getSelectableCount()
getSelectableCount
in interface SelectableBasedConstraint
public final Selectable getSelectable(int i)
getSelectable
in interface SelectableBasedConstraint
public final java.util.List getSelectableList()
public final java.util.Iterator getSelectables()
public void resolve(Database db, TableIdentifier table) throws AxionException
resolves
all of the
Selectable
s in my list.resolve
in interface Constraint
resolve
in class BaseConstraint
AxionException