org.axiondb.constraints
public abstract class BaseConstraint extends Object implements Constraint
Version: $Revision: 1.16 $ $Date: 2005/12/20 18:32:46 $
Constructor Summary | |
---|---|
BaseConstraint(String name, String type)
Creates a Constraint with the
given name and type. |
Method Summary | |
---|---|
abstract boolean | evaluate(RowEvent event) |
String | getName() |
String | getType() |
boolean | isDeferrable() |
boolean | isDeferred() |
void | resolve(Database db, TableIdentifier table) This base implementation is a no-op. |
void | setDeferrable(boolean deferrable) |
void | setDeferred(boolean deferred) |
void | setName(String name)
Sets the name of this constraint. |
protected TableIdentifier[] | toArray(TableIdentifier table) |
Parameters: name the name of this constraint (see BaseConstraint)
which may be null
type the type of this constraint (see BaseConstraint),
which should not be null
null
a unique
name is programatically generated.