public class PrimaryKeyConstraint extends UniqueConstraint
Selectable
s are
null
or my collection of Selectable
s is not
unique
.Constructor and Description |
---|
PrimaryKeyConstraint(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
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) |
addFK, evaluate, getFKs
addSelectable, getSelectable, getSelectableCount, getSelectableList, getSelectables, resolve
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 boolean evaluate(RowEvent event) throws AxionException
Constraint
false
if the
constraint I represent has been violated.evaluate
in interface Constraint
evaluate
in class UniqueConstraint
AxionException
public boolean evaluate(RowEvent event, RowDecorator dec) throws AxionException
Constraint
false
if the
constraint I represent has been violated.evaluate
in interface Constraint
evaluate
in class UniqueConstraint
AxionException
public boolean evaluate(RowIterator oldRows, RowIterator newRows, Table table) throws AxionException
evaluate
in interface Constraint
evaluate
in class UniqueConstraint
AxionException