| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private Domain | |
| private Expression | |
| private DomainColumnResolver |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| 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 Expression | Returns: the expressionthe session session, String the column name columnName)Get the check constraint expression for this column. |
| public Constraint. | getConstraintType()
Implements abstract org. The constraint type name |
| public String | |
| public String | getCreateSQLWithoutIndexes()
Implements abstract org. Get the SQL statement to create this constraint. |
| public Domain | |
| 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. |
| 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 boolean | usesIndex(Index
the index index)Implements abstract org. Check if this constraint needs the specified index. |
| domain | back to summary |
|---|---|
| private Domain domain | |
| expr | back to summary |
|---|---|
| private Expression expr | |
| resolver | back to summary |
|---|---|
| private DomainColumnResolver resolver | |
| ConstraintDomain | back to summary |
|---|---|
| public ConstraintDomain(Schema schema, int id, String name, Domain domain) | |
| check | back to summary |
|---|---|
| public void check(SessionLocal session, Value value) Check the specified value.
| |
| 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.
| |
| getCheckConstraint | back to summary |
|---|---|
| public Expression getCheckConstraint(SessionLocal session, String columnName) Get the check constraint expression for this column.
| |
| 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. | |
| getCreateSQLWithoutIndexes | back to summary |
|---|---|
| public String getCreateSQLWithoutIndexes() Implements abstract org. Doc from org. Get the SQL statement to create this constraint. | |
| getDomain | back to summary |
|---|---|
| public Domain getDomain() Returns the domain of 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. | |
| 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(SessionLocal session, Expression expr) Set the expression.
| |
| 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. | |
| usesIndex | back to summary |
|---|---|
| public boolean usesIndex(Index index) Implements abstract org. Doc from org. Check if this constraint needs the specified index. | |
| Modifier and Type | Field and Description |
|---|---|
| private final SessionLocal |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | |
| private boolean |
| session | back to summary |
|---|---|
| private final SessionLocal session | |
| CheckExistingData | back to summary |
|---|---|
| pack-priv CheckExistingData(SessionLocal session, Domain domain) | |
| checkColumn | back to summary |
|---|---|
| private boolean checkColumn(Domain domain, Column targetColumn) | |
| checkDomain | back to summary |
|---|---|
| private boolean checkDomain(Domain domain, Domain targetDomain) | |