|
||||||||||
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)
|
String |
getName()
Get my name. |
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(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
AxionException
String getName()
String getType()
boolean isDeferrable()
boolean isDeferred()
void resolve(Database db, TableIdentifier table) throws AxionException
org.axiondb.Selectableidentifiers
I may have.
AxionException
void setDeferrable(boolean deferrable)
void setDeferred(boolean deferred) throws AxionException
deferrable
and deferred is true
.
AxionException
void setName(String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |