| Modifier and Type | Field and Description |
|---|---|
| private Database | |
| pack-priv OrderedHashSet | |
| private Session | |
| private Table |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv Index | Returns: new indexint[] col, HsqlNameManager.HsqlName name,boolean unique)Because of the way indexes and column data are held in memory and on disk, it is necessary to recreate the table when an index is added to a non-empty cached table. |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | addUniqueConstraint(int[]
int[] cols, HsqlNameManager.HsqlName nameA unique constraint relies on a unique index on the table. |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | checkAddColumn(ColumnSchema
the Column to add to the Table, t col)Checks if the attributes of the Column argument, c, are compatible with the operation of adding such a Column to the Table argument, table. |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| private void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv OrderedHashSet | dropConstraintsAndIndexes(OrderedHashSet<Table> tableSet, OrderedHashSet<HsqlNameManager.
|
| pack-priv void | dropConstraintsAndIndexes(OrderedHashSet<HsqlNameManager.
Drops a set of fk constraints, their indexes and other indexes in table. |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public Table | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| private void | |
| pack-priv void | setColDefaultExpression(int
int colIndex, Expression Expression def)performs the work for changing the default value of a column |
| pack-priv void | setColNullability(ColumnSchema
Column column, boolean boolean nullable)performs the work for changing the nullability of a column |
| pack-priv void | |
| pack-priv void | |
| public boolean | |
| pack-priv void | updateConstraints(OrderedHashSet<Table> tableSet, OrderedHashSet<HsqlNameManager.
|
| pack-priv void |
| database | back to summary |
|---|---|
| private Database database | |
| emptySet | back to summary |
|---|---|
| pack-priv OrderedHashSet<HsqlNameManager. | |
| session | back to summary |
|---|---|
| private Session session | |
| table | back to summary |
|---|---|
| private Table table | |
| TableWorks | back to summary |
|---|---|
| public TableWorks(Session session, Table table) | |
| addCheckConstraint | back to summary |
|---|---|
| pack-priv void addCheckConstraint(Constraint c) | |
| addColumn | back to summary |
|---|---|
| pack-priv void addColumn(ColumnSchema column, int colIndex, HsqlArrayList<Constraint> constraints) | |
| addForeignKey | back to summary |
|---|---|
| pack-priv void addForeignKey(Constraint c) Creates a foreign key on an existing table. Foreign keys are enforced by indexes on both the referencing (child) and referenced (main) tables. Since version 1.7.2, a unique constraint on the referenced columns must exist. The non-unique index on the referencing table is now always created whether or not a PK or unique constraint index on the columns exist. Foreign keys on temp tables can reference other temp tables with the same rules above. Foreign keys on permanent tables cannot reference temp tables. Duplicate foreign keys are now disallowed.
| |
| addIndex | back to summary |
|---|---|
| pack-priv Index addIndex(int[] col, HsqlNameManager. Because of the way indexes and column data are held in memory and on disk, it is necessary to recreate the table when an index is added to a non-empty cached table. With empty tables, Index objects are simply added With MEOMRY and TEXT tables, a new index is built up and nodes for earch row are interlinked (fredt@users)
| |
| addPrimaryKey | back to summary |
|---|---|
| pack-priv void addPrimaryKey(Constraint constraint) | |
| addSystemPeriod | back to summary |
|---|---|
| pack-priv void addSystemPeriod(PeriodDefinition period) | |
| addUniqueConstraint | back to summary |
|---|---|
| pack-priv void addUniqueConstraint(int[] cols, HsqlNameManager. A unique constraint relies on a unique index on the table. It can cover a single column or multiple columns. All constraint names are unique within the database. Duplicate constraints (more than one unique constraint on the same set of columns) are not allowed. (fredt@users)
| |
| addUniqueConstraint | back to summary |
|---|---|
| pack-priv void addUniqueConstraint(Constraint constraint) | |
| alterIndex | back to summary |
|---|---|
| pack-priv void alterIndex(Index index, int[] columns) | |
| checkAddColumn | back to summary |
|---|---|
| pack-priv void checkAddColumn(ColumnSchema col) Checks if the attributes of the Column argument, c, are compatible with the operation of adding such a Column to the Table argument, table.
| |
| checkAddDomainConstraint | back to summary |
|---|---|
pack-priv void checkAddDomainConstraint(Type domain, Constraint check)
| |
| checkConvertColDataType | back to summary |
|---|---|
pack-priv void checkConvertColDataType(ColumnSchema oldCol, ColumnSchema newCol)
| |
| checkCreateForeignKey | back to summary |
|---|---|
| pack-priv void checkCreateForeignKey(Table fkTable, Constraint c) | |
| checkModifyTable | back to summary |
|---|---|
| private void checkModifyTable(boolean withContents) | |
| dropColumn | back to summary |
|---|---|
| pack-priv void dropColumn(int colIndex, boolean cascade) | |
| dropConstraint | back to summary |
|---|---|
| pack-priv void dropConstraint(String name, boolean cascade) | |
| dropConstraintsAndIndexes | back to summary |
|---|---|
| pack-priv OrderedHashSet | |
| dropConstraintsAndIndexes | back to summary |
|---|---|
| pack-priv void dropConstraintsAndIndexes(OrderedHashSet<HsqlNameManager. Drops a set of fk constraints, their indexes and other indexes in table. Uses sets of names which may contain names that are unrelated to this table. | |
| dropIndex | back to summary |
|---|---|
| pack-priv void dropIndex(String indexName) Because of the way indexes and column data are held in memory and on disk, it is necessary to recreate the table when an index is added to or removed from a non-empty table. Originally, this method would break existing foreign keys as the table order in the DB was changed. The new table is now linked in place of the old table (fredt@users)
| |
| dropSystemPeriod | back to summary |
|---|---|
| pack-priv void dropSystemPeriod(boolean cascade) | |
| dropSystemVersioning | back to summary |
|---|---|
| pack-priv void dropSystemVersioning(boolean cascade) | |
| getTable | back to summary |
|---|---|
| public Table getTable() | |
| moveData | back to summary |
|---|---|
| pack-priv void moveData(Table oldTable, Table newTable, int[] colIndex, int adjust) | |
| registerConstraintNames | back to summary |
|---|---|
| pack-priv void registerConstraintNames(HsqlArrayList<Constraint> constraints) | |
| removeColumnNotNullConstraints | back to summary |
|---|---|
| pack-priv void removeColumnNotNullConstraints(int colIndex) | |
| retypeColumn | back to summary |
|---|---|
| pack-priv void retypeColumn(ColumnSchema oldCol, ColumnSchema newCol) Allows changing the type only.
| |
| retypeColumn | back to summary |
|---|---|
private void retypeColumn(ColumnSchema column, int colIndex)
| |
| setColDefaultExpression | back to summary |
|---|---|
| pack-priv void setColDefaultExpression(int colIndex, Expression def) performs the work for changing the default value of a column
| |
| setColNullability | back to summary |
|---|---|
| pack-priv void setColNullability(ColumnSchema column, boolean nullable) performs the work for changing the nullability of a column
| |
| setNewTableInSchema | back to summary |
|---|---|
| pack-priv void setNewTableInSchema(Table newTable) | |
| setNewTablesInSchema | back to summary |
|---|---|
| pack-priv void setNewTablesInSchema(OrderedHashSet<Table> tableSet) | |
| setTableType | back to summary |
|---|---|
| public boolean setTableType(int newType) Changes the type of the table
| |
| updateConstraints | back to summary |
|---|---|
| pack-priv void updateConstraints(OrderedHashSet<Table> tableSet, OrderedHashSet<HsqlNameManager. | |
| updateConstraints | back to summary |
|---|---|
| pack-priv void updateConstraints(Table t, OrderedHashSet<HsqlNameManager. | |