ConstraintReferential
A referential constraint.
| 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)
Create the SQL statement of this object so a copy of the table can be
made.
|
| String |
getCreateSQLForCopy(Table forTable, String quotedName)
Create the SQL statement of this object so a copy of the table can be
made.
Parameters:
forTable - the table to create the object for
quotedName - the name of this object (quoted if necessary)
Returns:
the SQL statement
|
| String |
getCreateSQLForCopy(Table forTable, Table forRefTable, String quotedName, boolean internalIndex)
Create the SQL statement of this object so a copy of the table can be
made.
|
| String |
getCreateSQLForCopy(Table forTable, Table forRefTable, String quotedName, boolean internalIndex)
Create the SQL statement of this object so a copy of the table can be
made.
Parameters:
forTable - the table to create the object for
forRefTable - the referenced table
quotedName - the name of this object (quoted if necessary)
internalIndex - add the index name to the statement
Returns:
the SQL statement
|
| String |
getCreateSQLWithoutIndexes()
|
| String |
getCreateSQLWithoutIndexes()
|
| ConstraintActionType |
getDeleteAction()
|
| ConstraintActionType |
getDeleteAction()
|
| IndexColumn[] |
getRefColumns()
|
| IndexColumn[] |
getRefColumns()
|
| Table |
getRefTable()
|
| Table |
getRefTable()
|
| HashSet |
getReferencedColumns(Table table)
|
| HashSet |
getReferencedColumns(Table table)
|
| Index |
getUniqueIndex()
|
| Index |
getUniqueIndex()
|
| ConstraintActionType |
getUpdateAction()
|
| ConstraintActionType |
getUpdateAction()
|
| boolean |
isBefore()
|
| boolean |
isBefore()
|
| void |
rebuild()
|
| void |
rebuild()
|
| void |
removeChildrenAndResources(Session session)
|
| void |
removeChildrenAndResources(Session session)
|
| void |
setColumns(IndexColumn[] cols)
|
| void |
setColumns(IndexColumn[] cols)
|
| void |
setDeleteAction(ConstraintActionType action)
Set the action to apply (restrict, cascade,...) on a delete.
|
| void |
setDeleteAction(ConstraintActionType action)
Set the action to apply (restrict, cascade,...) on a delete.
Parameters:
action - the action
|
| void |
setIndex(Index index, boolean isOwner)
Set the index to use for this constraint.
|
| void |
setIndex(Index index, boolean isOwner)
Set the index to use for this 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)
|
| void |
setRefColumns(IndexColumn[] refCols)
|
| void |
setRefColumns(IndexColumn[] refCols)
|
| void |
setRefIndex(Index refIndex, boolean isRefOwner)
Set the index of the referenced table to use for this constraint.
|
| void |
setRefIndex(Index refIndex, boolean isRefOwner)
Set the index of the referenced table to use for this constraint.
Parameters:
refIndex - the index
isRefOwner - true if the index is generated by the system and
belongs to this constraint
|
| void |
setRefTable(Table refTable)
|
| void |
setRefTable(Table refTable)
|
| void |
setUpdateAction(ConstraintActionType action)
Set the action to apply (restrict, cascade,...) on an update.
|
| void |
setUpdateAction(ConstraintActionType action)
Set the action to apply (restrict, cascade,...) on an update.
Parameters:
action - the action
|
| boolean |
usesIndex(Index idx)
|
| boolean |
usesIndex(Index idx)
|
|