|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Constraint
A database constraint, such as UNIQUE or NOT NULL.
| Method Summary | |
|---|---|
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)
|
java.lang.String |
getName()
Get my name. |
java.lang.String |
getType()
Get a human-readable descrption of the type of constraint I represent. |
boolean |
isDeferrable()
Return whether or not I am deferrable. |
boolean |
isDeferred()
Return whether or not I am deferred. |
void |
resolve(Database db,
TableIdentifier table)
Resolve any unresolved org.axiondb.Selectableidentifiers I may have. |
void |
setDeferrable(boolean deferrable)
Set whether or not I am deferrable. |
void |
setDeferred(boolean deferred)
Set whether or not I am deferred. |
void |
setName(java.lang.String name)
Set my name. |
| Method Detail |
|---|
boolean evaluate(RowEvent event)
throws AxionException
false if the
constraint I represent has been violated.
AxionException
boolean evaluate(RowEvent event,
RowDecorator dec)
throws AxionException
false if the
constraint I represent has been violated.
AxionException
boolean evaluate(RowIterator oldRows,
RowIterator newRows,
Table table)
throws AxionException
AxionExceptionjava.lang.String getName()
java.lang.String getType()
boolean isDeferrable()
boolean isDeferred()
void resolve(Database db,
TableIdentifier table)
throws AxionException
org.axiondb.Selectableidentifiers I may have.
AxionExceptionvoid setDeferrable(boolean deferrable)
void setDeferred(boolean deferred)
throws AxionException
deferrableand deferred is true.
AxionExceptionvoid setName(java.lang.String name)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||