org.axiondb.constraints
Class BaseSelectableBasedConstraint
java.lang.Object
org.axiondb.constraints.BaseConstraint
org.axiondb.constraints.BaseSelectableBasedConstraint
- All Implemented Interfaces:
- Constraint, SelectableBasedConstraint, Serializable
- Direct Known Subclasses:
- ForeignKeyConstraint, NotNullConstraint, NullConstraint, UniqueConstraint
- public abstract class BaseSelectableBasedConstraint
- extends BaseConstraint
- implements SelectableBasedConstraint
Abstract base SelectableBasedConstraintimplementation.
- Version:
- $Revision: 1.11 $ $Date: 2004/08/07 10:14:41 $
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseSelectableBasedConstraint
public BaseSelectableBasedConstraint(String name,
String type)
- Creates a
Constraintwith the given name and type
.
- Parameters:
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 null
evaluate
public abstract boolean evaluate(RowEvent event)
throws AxionException
- Description copied from interface:
Constraint
- Evaluate the given event under me. Returns
false if the
constraint I represent has been violated.
- Specified by:
evaluate in interface Constraint- Specified by:
evaluate in class BaseConstraint
- Throws:
AxionException
addSelectable
public void addSelectable(Selectable sel)
- Specified by:
addSelectable in interface SelectableBasedConstraint
getSelectableCount
public int getSelectableCount()
- Specified by:
getSelectableCount in interface SelectableBasedConstraint
getSelectable
public Selectable getSelectable(int i)
- Specified by:
getSelectable in interface SelectableBasedConstraint
getSelectableList
public List getSelectableList()
getSelectables
public Iterator getSelectables()
resolve
public void resolve(Database db,
TableIdentifier table)
throws AxionException
- This base implementation
resolvesall of the
Selectables in my list.
- Specified by:
resolve in interface Constraint- Overrides:
resolve in class BaseConstraint
- Throws:
AxionException