public class UniqueConstraint extends BaseSelectableBasedConstraint
Selectable
s is
not unique within my table.Constructor and Description |
---|
UniqueConstraint(java.lang.String name) |
UniqueConstraint(java.lang.String name,
java.lang.String type) |
Modifier and Type | Method and Description |
---|---|
void |
addFK(java.lang.String name) |
boolean |
evaluate(RowEvent event)
Evaluate the given event under me.
|
boolean |
evaluate(RowEvent event,
RowDecorator dec)
Evaluate the given event under me.
|
boolean |
evaluate(RowEvent event,
RowDecorator dec,
boolean wasDeferred) |
boolean |
evaluate(RowIterator oldRows,
RowIterator newRows,
Table table) |
java.util.Iterator |
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 UniqueConstraint(java.lang.String name)
public UniqueConstraint(java.lang.String name, java.lang.String type)
public boolean evaluate(RowEvent event) throws AxionException
Constraint
false
if the
constraint I represent has been violated.evaluate
in interface Constraint
evaluate
in class BaseSelectableBasedConstraint
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 BaseSelectableBasedConstraint
AxionException
public boolean evaluate(RowEvent event, RowDecorator dec, boolean wasDeferred) throws AxionException
AxionException
public boolean evaluate(RowIterator oldRows, RowIterator newRows, Table table) throws AxionException
evaluate
in interface Constraint
evaluate
in class BaseSelectableBasedConstraint
AxionException
public void addFK(java.lang.String name)
public java.util.Iterator getFKs()