| Modifier and Type | Field and Description |
|---|---|
| private Expression | |
| private TableFilter |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | checkExistingData(SessionLocal
the session session)Implements abstract org. Check the existing data. |
| public void | checkRow(SessionLocal
the session session, Table the table t, Row the old row oldRow, Row the new row newRow)Implements abstract org. Check if this row fulfils the constraint. |
| public Constraint. | getConstraintType()
Implements abstract org. The constraint type name |
| public String | |
| public String | getCreateSQLForCopy(Table
the new table forTable, String the quoted name quotedName)Overrides org. Build a SQL statement to re-create the object, or to create a copy of the object with a different name or referencing a different table |
| public String | getCreateSQLWithoutIndexes()
Implements abstract org. Get the SQL statement to create this constraint. |
| public Expression | getExpression()
Overrides org. Returns the CHECK expression or null. |
| public HashSet | getReferencedColumns(Table
the table table)Implements abstract org. Get all referenced columns. |
| private String | |
| public boolean | isBefore()
Implements abstract org. Check if this constraint needs to be checked before updating the data. |
| public boolean | isEverything(ExpressionVisitor
the visitor visitor)Overrides org. Visit all elements in the constraint. |
| public void | rebuild()
Implements abstract org. This method is called after a related table has changed (the table was renamed, or columns have been renamed). |
| public void | removeChildrenAndResources(SessionLocal
the session session)Implements abstract org. Delete all dependent children objects and resources of this object. |
| public void | |
| public void | setIndexOwner(Index
the index index)Implements abstract org. This index is now the owner of the specified index. |
| public void | |
| public boolean | usesIndex(Index
the index index)Implements abstract org. Check if this constraint needs the specified index. |
| expr | back to summary |
|---|---|
| private Expression expr | |
| filter | back to summary |
|---|---|
| private TableFilter filter | |
| ConstraintCheck | back to summary |
|---|---|
| public ConstraintCheck(Schema schema, int id, String name, Table table) | |
| checkExistingData | back to summary |
|---|---|
| public void checkExistingData(SessionLocal session) Implements abstract org. Doc from org. Check the existing data. This method is called if the constraint is added after data has been inserted into the table.
| |
| checkRow | back to summary |
|---|---|
| public void checkRow(SessionLocal session, Table t, Row oldRow, Row newRow) Implements abstract org. Doc from org. Check if this row fulfils the constraint. This method throws an exception if not.
| |
| getConstraintType | back to summary |
|---|---|
| public Constraint. Implements abstract org. Doc from org. The constraint type name
| |
| getCreateSQL | back to summary |
|---|---|
| public String getCreateSQL() Implements abstract org. Doc from org. Construct the CREATE ... SQL statement for this object. | |
| getCreateSQLForCopy | back to summary |
|---|---|
| public String getCreateSQLForCopy(Table forTable, String quotedName) Overrides org. Doc from org. Build a SQL statement to re-create the object, or to create a copy of the object with a different name or referencing a different table | |
| getCreateSQLWithoutIndexes | back to summary |
|---|---|
| public String getCreateSQLWithoutIndexes() Implements abstract org. Doc from org. Get the SQL statement to create this constraint. | |
| getExpression | back to summary |
|---|---|
| public Expression getExpression() Overrides org. Doc from org. Returns the CHECK expression or null.
| |
| getReferencedColumns | back to summary |
|---|---|
| public HashSet Implements abstract org. Doc from org. Get all referenced columns. | |
| getShortDescription | back to summary |
|---|---|
| private String getShortDescription() | |
| isBefore | back to summary |
|---|---|
| public boolean isBefore() Implements abstract org. Doc from org. Check if this constraint needs to be checked before updating the data.
| |
| isEverything | back to summary |
|---|---|
| public boolean isEverything(ExpressionVisitor visitor) Overrides org. Doc from org. Visit all elements in the constraint.
| |
| rebuild | back to summary |
|---|---|
| public void rebuild() Implements abstract org. Doc from org. This method is called after a related table has changed (the table was renamed, or columns have been renamed).
| |
| removeChildrenAndResources | back to summary |
|---|---|
| public void removeChildrenAndResources(SessionLocal session) Implements abstract org. Doc from org. Delete all dependent children objects and resources of this object.
| |
| setExpression | back to summary |
|---|---|
| public void setExpression(Expression expr) | |
| setIndexOwner | back to summary |
|---|---|
| public void setIndexOwner(Index index) Implements abstract org. Doc from org. This index is now the owner of the specified index. | |
| setTableFilter | back to summary |
|---|---|
| public void setTableFilter(TableFilter filter) | |
| usesIndex | back to summary |
|---|---|
| public boolean usesIndex(Index index) Implements abstract org. Doc from org. Check if this constraint needs the specified index. | |