| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | Constraint.
This class consists of the data structure for a Constraint. |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Expression | |
| pack-priv int | |
| pack-priv Constraint. | |
| public static final Constraint[] | |
| pack-priv boolean | |
| private boolean | |
| pack-priv boolean | |
| pack-priv OrderedHashSet | |
| private HsqlNameManager. | |
| pack-priv int | |
| pack-priv RangeVariable | |
| pack-priv OrderedHashSet |
| Access | Constructor and Description |
|---|---|
| private | |
| public | Constraint(HsqlNameManager.
Constructor declaration for PK and UNIQUE |
| public | |
| public | Constraint(HsqlNameManager.
Constructor for main constraints (foreign key references in PK table) |
| public | Constraint(HsqlNameManager.
name of constraint name,list of referencing columns refCols, HsqlNameManager.referenced table mainTableName,list of referenced columns mainCols, int constraint type type, int triggered action on delete deleteAction, int triggered action on update updateAction, int matchType)General constructor for foreign key constraints. |
| public | |
| public | Constraint(HsqlNameManager.
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | checkInsert(Session session, Table table, Object[] data, Object[] oldData)
Checks for foreign key or check constraint violation when inserting a row into the child table. |
| pack-priv void | checkReferencedRows(Session session, Table table)
Check used before creating a new foreign key cosntraint, this method checks all rows of a table to ensure they all have a corresponding row in the main table. |
| pack-priv Constraint | |
| public void | |
| pack-priv RowIterator | |
| pack-priv RowIterator | |
| private static String | |
| public String | |
| public HsqlNameManager. | |
| public long | |
| public OrderedHashSet | |
| public Expression | |
| public String | |
| public int | |
| public int | |
| public int | |
| public String | |
| public HsqlException | |
| private void | getFKStatement(StringBuilder sb)
Generates the foreign key declaration for a given Constraint object. |
| public Table | |
| public int[] | |
| public Index | |
| public HsqlNameManager. | |
| public HsqlNameManager. | |
| public HsqlNameManager. | |
| private Expression | |
| public Grantee | |
| public Table | |
| public int[] | |
| public OrderedHashSet | |
| public Index | |
| public HsqlNameManager. | |
| public HsqlNameManager. | |
| public String | |
| public int | |
| public HsqlNameManager. | |
| public int | |
| public String | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| public boolean | |
| public boolean | |
| pack-priv boolean | isEquivalent(Table mainTable, int[] mainCols, Table refTable, int[] refCols)
Compares this with another constraint column set. |
| public boolean | |
| public boolean | |
| pack-priv boolean | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | updateTable(Session
Session session, Table reference to the old version of the table oldTable, Table reference to the new version of the table newTable, int[] indexes at which table column is added or removed colIndex, int -1, 0, +1 to indicate if column is added or removed adjust)Used to update constrains to reflect structural changes in a table. |
| check | back to summary |
|---|---|
| pack-priv Expression check | |
| constType | back to summary |
|---|---|
| pack-priv int constType | |
| core | back to summary |
|---|---|
| pack-priv Constraint. | |
| emptyArray | back to summary |
|---|---|
| public static final Constraint[] emptyArray | |
| isForward | back to summary |
|---|---|
| pack-priv boolean isForward | |
| isNotNull | back to summary |
|---|---|
| private boolean isNotNull | |
| isSimpleIdentityPK | back to summary |
|---|---|
| pack-priv boolean isSimpleIdentityPK | |
| mainColSet | back to summary |
|---|---|
| pack-priv OrderedHashSet<String> mainColSet | |
| name | back to summary |
|---|---|
| private HsqlNameManager. | |
| notNullColumnIndex | back to summary |
|---|---|
| pack-priv int notNullColumnIndex | |
| rangeVariable | back to summary |
|---|---|
| pack-priv RangeVariable rangeVariable | |
| refColSet | back to summary |
|---|---|
| pack-priv OrderedHashSet<String> refColSet | |
| Constraint | back to summary |
|---|---|
| private Constraint() | |
| Constraint | back to summary |
|---|---|
| public Constraint(HsqlNameManager. Constructor declaration for PK and UNIQUE | |
| Constraint | back to summary |
|---|---|
| public Constraint(HsqlNameManager. | |
| Constraint | back to summary |
|---|---|
| public Constraint(HsqlNameManager. Constructor for main constraints (foreign key references in PK table) | |
| Constraint | back to summary |
|---|---|
| public Constraint(HsqlNameManager. General constructor for foreign key constraints.
| |
| Constraint | back to summary |
|---|---|
| public Constraint(HsqlNameManager. | |
| Constraint | back to summary |
|---|---|
| public Constraint(HsqlNameManager. | |
| checkCheckConstraint | back to summary |
|---|---|
| pack-priv void checkCheckConstraint(Session session, Table table, Object[] data) | |
| checkCheckConstraint | back to summary |
|---|---|
| pack-priv void checkCheckConstraint(Session session, Table table, ColumnSchema column, Object data) | |
| checkCheckConstraint | back to summary |
|---|---|
| pack-priv void checkCheckConstraint(Session session, Table table) | |
| checkInsert | back to summary |
|---|---|
| pack-priv void checkInsert(Session session, Table table, Object[] data, Object[] oldData) Checks for foreign key or check constraint violation when inserting a row into the child table. | |
| checkReferencedRows | back to summary |
|---|---|
| pack-priv void checkReferencedRows(Session session, Table table) Check used before creating a new foreign key cosntraint, this method checks all rows of a table to ensure they all have a corresponding row in the main table. | |
| duplicate | back to summary |
|---|---|
| pack-priv Constraint duplicate() | |
| extendFKIndexColumns | back to summary |
|---|---|
| public void extendFKIndexColumns(Session session, int[] colIndexExt) | |
| findFkRef | back to summary |
|---|---|
| pack-priv RowIterator findFkRef(Session session, Object[] row) New method to find any referencing row for a foreign key (finds row in child table). If ON DELETE CASCADE is specified for this constraint, then the method finds the first row among the rows of the table ordered by the index and doesn't throw. Without ON DELETE CASCADE, the method attempts to find any row that exists. If no row is found, null is returned. (fredt@users)
| |
| findUniqueRows | back to summary |
|---|---|
| pack-priv RowIterator findUniqueRows(Session session, Object[] row) Finds a row matching the values in UNIQUE columns. | |
| getActionString | back to summary |
|---|---|
| private static String getActionString(int action) Returns the foreign key action rule. | |
| getAlterSQL | back to summary |
|---|---|
| public String getAlterSQL() | |
| getCatalogName | back to summary |
|---|---|
| public HsqlNameManager. Implements org. | |
| getChangeTimestamp | back to summary |
|---|---|
| public long getChangeTimestamp() Implements org. | |
| getCheckColumnExpressions | back to summary |
|---|---|
| public OrderedHashSet | |
| getCheckExpression | back to summary |
|---|---|
| public Expression getCheckExpression() | |
| getCheckSQL | back to summary |
|---|---|
| public String getCheckSQL() Returns the SQL for the expression in CHECK clause | |
| getConstraintType | back to summary |
|---|---|
| public int getConstraintType() Returns the type of constraint | |
| getDeferability | back to summary |
|---|---|
| public int getDeferability() | |
| getDeleteAction | back to summary |
|---|---|
| public int getDeleteAction() The ON DELETE triggered action of (foreign key) constraint | |
| getDeleteActionString | back to summary |
|---|---|
| public String getDeleteActionString() | |
| getException | back to summary |
|---|---|
| public HsqlException getException(Object[] data) | |
| getFKStatement | back to summary |
|---|---|
| private void getFKStatement(StringBuilder sb) Generates the foreign key declaration for a given Constraint object. | |
| getMain | back to summary |
|---|---|
| public Table getMain() Returns the main table | |
| getMainColumns | back to summary |
|---|---|
| public int[] getMainColumns() Returns the main table column index array | |
| getMainIndex | back to summary |
|---|---|
| public Index getMainIndex() Returns the main index | |
| getMainName | back to summary |
|---|---|
| public HsqlNameManager. | |
| getMainTableName | back to summary |
|---|---|
| public HsqlNameManager. | |
| getName | back to summary |
|---|---|
| public HsqlNameManager. Implements org. Returns the HsqlName. | |
| getNewCheckExpression | back to summary |
|---|---|
| private Expression getNewCheckExpression(Session session) | |
| getOwner | back to summary |
|---|---|
| public Grantee getOwner() Implements org. | |
| getRef | back to summary |
|---|---|
| public Table getRef() Returns the reference table | |
| getRefColumns | back to summary |
|---|---|
| public int[] getRefColumns() Returns the reference table column index array | |
| getReferences | back to summary |
|---|---|
| public OrderedHashSet Overrides default org. | |
| getRefIndex | back to summary |
|---|---|
| public Index getRefIndex() Returns the reference index | |
| getRefName | back to summary |
|---|---|
| public HsqlNameManager. | |
| getSchemaName | back to summary |
|---|---|
| public HsqlNameManager. Implements org. | |
| getSQL | back to summary |
|---|---|
| public String getSQL() Implements org. | |
| getType | back to summary |
|---|---|
| public int getType() Implements org. | |
| getUniqueName | back to summary |
|---|---|
| public HsqlNameManager. | |
| getUpdateAction | back to summary |
|---|---|
| public int getUpdateAction() The ON UPDATE triggered action of (foreign key) constraint | |
| getUpdateActionString | back to summary |
|---|---|
| public String getUpdateActionString() | |
| hasColumn | back to summary |
|---|---|
| pack-priv boolean hasColumn(int colIndex) | |
| hasColumnOnly | back to summary |
|---|---|
| pack-priv boolean hasColumnOnly(int colIndex) | |
| hasColumnPlus | back to summary |
|---|---|
| pack-priv boolean hasColumnPlus(int colIndex) | |
| hasCoreTriggeredAction | back to summary |
|---|---|
| public boolean hasCoreTriggeredAction() | |
| hasTriggeredAction | back to summary |
|---|---|
| public boolean hasTriggeredAction() | |
| isEquivalent | back to summary |
|---|---|
| pack-priv boolean isEquivalent(Table mainTable, int[] mainCols, Table refTable, int[] refCols) Compares this with another constraint column set. This implementation only checks FOREIGN KEY constraints. | |
| isNotNull | back to summary |
|---|---|
| public boolean isNotNull() Returns true if the expression in CHECK is a simple IS NOT NULL | |
| isUniqueOrPK | back to summary |
|---|---|
| public boolean isUniqueOrPK() | |
| isUniqueWithColumns | back to summary |
|---|---|
| pack-priv boolean isUniqueWithColumns(int[] cols) Compares this with another constraint column set. This is used only for UNIQUE constraints. | |
| prepareCheckConstraint | back to summary |
|---|---|
| pack-priv void prepareCheckConstraint(Session session, Table table) | |
| prepareDomainCheckConstraint | back to summary |
|---|---|
| pack-priv void prepareDomainCheckConstraint(Session session) | |
| recompile | back to summary |
|---|---|
| pack-priv void recompile(Session session, Table newTable) | |
| setColumnsIndexes | back to summary |
|---|---|
| pack-priv void setColumnsIndexes(Table table) | |
| setSimpleIdentityPK | back to summary |
|---|---|
| pack-priv void setSimpleIdentityPK() | |
| updateTable | back to summary |
|---|---|
| pack-priv void updateTable(Session session, Table oldTable, Table newTable, int[] colIndex, int adjust) Used to update constrains to reflect structural changes in a table. Prior checks must ensure that this method does not throw. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int[] | |
| pack-priv int | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv int[] | |
| pack-priv Index | |
| pack-priv HsqlNameManager. | |
| pack-priv Table | |
| pack-priv HsqlNameManager. | |
| pack-priv int | |
| pack-priv int[] | |
| pack-priv Index | |
| pack-priv HsqlNameManager. | |
| pack-priv Table | |
| pack-priv HsqlNameManager. | |
| pack-priv HsqlNameManager. | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv Constraint. |
| addedRefCols | back to summary |
|---|---|
| pack-priv int[] addedRefCols | |
| deleteAction | back to summary |
|---|---|
| pack-priv int deleteAction | |
| hasDeleteAction | back to summary |
|---|---|
| pack-priv boolean hasDeleteAction | |
| hasUpdateAction | back to summary |
|---|---|
| pack-priv boolean hasUpdateAction | |
| mainCols | back to summary |
|---|---|
| pack-priv int[] mainCols | |
| mainIndex | back to summary |
|---|---|
| pack-priv Index mainIndex | |
| mainName | back to summary |
|---|---|
| pack-priv HsqlNameManager. | |
| mainTable | back to summary |
|---|---|
| pack-priv Table mainTable | |
| mainTableName | back to summary |
|---|---|
| pack-priv HsqlNameManager. | |
| matchType | back to summary |
|---|---|
| pack-priv int matchType | |
| refCols | back to summary |
|---|---|
| pack-priv int[] refCols | |
| refIndex | back to summary |
|---|---|
| pack-priv Index refIndex | |
| refName | back to summary |
|---|---|
| pack-priv HsqlNameManager. | |
| refTable | back to summary |
|---|---|
| pack-priv Table refTable | |
| refTableName | back to summary |
|---|---|
| pack-priv HsqlNameManager. | |
| uniqueName | back to summary |
|---|---|
| pack-priv HsqlNameManager. | |
| updateAction | back to summary |
|---|---|
| pack-priv int updateAction | |
| ConstraintCore | back to summary |
|---|---|
| pack-priv ConstraintCore() | |
| duplicate | back to summary |
|---|---|
| pack-priv Constraint. | |