primaryKey
private final boolean primaryKey
Comparable<Constraint>
, HasSQL
Constraint.Type
private IndexColumn[]
private Index
private boolean
private final boolean
table
AGGREGATE, comment, COMMENT, CONSTANT, CONSTRAINT, database, DOMAIN, FUNCTION_ALIAS, INDEX, RIGHT, ROLE, SCHEMA, SEQUENCE, SETTING, SYNONYM, TABLE_OR_VIEW, trace, TRIGGER, USER
ADD_PLAN_INFORMATION, DEFAULT_SQL_FLAGS, NO_CASTS, QUOTE_ONLY_WHEN_REQUIRED, REPLACE_LOBS_FOR_TRACE, TRACE_SQL_FLAGS
ConstraintUnique(Schema schema,
int id,
String name,
Table table,
boolean primaryKey)
void
checkExistingData(SessionLocal session)
void
checkRow(SessionLocal session,
Table t,
Row oldRow,
Row newRow)
getCreateSQLForCopy(Table forTable,
String quotedName)
private String
getCreateSQLForCopy(Table forTable,
String quotedName,
boolean internalIndex)
getIndex()
getReferencedColumns(Table table)
boolean
isBefore()
void
rebuild()
void
removeChildrenAndResources(SessionLocal session)
void
setColumns(IndexColumn[] columns)
void
void
setIndexOwner(Index index)
boolean
compareTo, getExpression, getReferencedConstraint, getRefTable, getTable, getType, isEverything, isHidden
getSchema, getSQL, getSQL
checkRename, getChildren, getComment, getCreateSQLForMeta, getDatabase, getDropSQL, getId, getModificationId, getName, invalidate, isTemporary, isValid, rename, setComment, setModified, setObjectName, setTemporary, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTraceSQL
Constraint
getConstraintType
in class Constraint
DbObject
getCreateSQLForCopy
in class DbObject
forTable
- the new tablequotedName
- the quoted nameConstraint
getCreateSQLWithoutIndexes
in class Constraint
DbObject
getCreateSQL
in class DbObject
index
- the indexisOwner
- true if the index is generated by the system and belongs
to this constraintDbObject
removeChildrenAndResources
in class DbObject
session
- the sessionConstraint
checkRow
in class Constraint
session
- the sessiont
- the tableoldRow
- the old rownewRow
- the new rowConstraint
usesIndex
in class Constraint
idx
- the indexConstraint
setIndexOwner
in class Constraint
index
- the indexConstraint
getReferencedColumns
in class Constraint
table
- the tableConstraint
isBefore
in class Constraint
Constraint
checkExistingData
in class Constraint
session
- the sessionConstraint
getIndex
in class Constraint
Constraint
rebuild
in class Constraint