ConstraintUnique

A unique constraint. This object always backed by a unique index.

Methods
void checkExistingData(Session session)
void checkExistingData(Session session)
void checkRow(Session session, Table t, Row oldRow, Row newRow)
void checkRow(Session session, Table t, Row oldRow, Row newRow)
IndexColumn[] getColumns()
IndexColumn[] getColumns()
Constraint.Type getConstraintType()
Constraint.Type getConstraintType()
String getCreateSQL()
String getCreateSQL()
String getCreateSQLForCopy(Table forTable, String quotedName)
String getCreateSQLForCopy(Table forTable, String quotedName)
String getCreateSQLWithoutIndexes()
String getCreateSQLWithoutIndexes()
HashSet getReferencedColumns(Table table)
HashSet getReferencedColumns(Table table)
Index getUniqueIndex()
Index getUniqueIndex()
boolean isBefore()
boolean isBefore()
void rebuild()
void rebuild()
void removeChildrenAndResources(Session session)
void removeChildrenAndResources(Session session)
void setColumns(IndexColumn[] columns)
void setColumns(IndexColumn[] columns)
void setIndex(Index index, boolean isOwner)
Set the index to use for this unique constraint.
void setIndex(Index index, boolean isOwner)
Set the index to use for this unique constraint.
Parameters:
index - the index
isOwner - true if the index is generated by the system and belongs to this constraint
void setIndexOwner(Index index)
void setIndexOwner(Index index)
boolean usesIndex(Index idx)
boolean usesIndex(Index idx)