| Modifier and Type | Field and Description |
|---|---|
| private ArrayList | |
| private AlterTableAddConstraint |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | |
| public void | addConstraintCommand(DefineCommand
the statement to add command)Add a constraint statement to this statement. |
| protected void | changePrimaryKeysToNotNull(ArrayList<Column>
the list of columns columns)For the given list of columns, disable "nullable" for those columns that are primary key columns. |
| protected void | |
| protected ArrayList | Returns: the list of sequences (may be empty)the columns columns, boolean whether generated sequences should be temporary temporary)For the given list of columns, create sequences for identity columns (if needed), and then get the list of all sequences of the columns. |
| private ArrayList | |
| public AlterTableAddConstraint | |
| private boolean | Returns: whether another primary key with the same columns was already set and the specified primary key should be ignoredthe primary key primaryKey)Set the primary key, but also check if a primary key with different columns is already defined. |
| constraintCommands | back to summary |
|---|---|
| private ArrayList<DefineCommand> constraintCommands | |
| primaryKey | back to summary |
|---|---|
| private AlterTableAddConstraint primaryKey | |
| CommandWithColumns | back to summary |
|---|---|
| protected CommandWithColumns(SessionLocal session, Schema schema) | |
| addColumn | back to summary |
|---|---|
| public abstract void addColumn(Column column) Add a column to this table.
| |
| addConstraintCommand | back to summary |
|---|---|
| public void addConstraintCommand(DefineCommand command) Add a constraint statement to this statement. The primary key definition is one possible constraint statement.
| |
| changePrimaryKeysToNotNull | back to summary |
|---|---|
| protected void changePrimaryKeysToNotNull(ArrayList<Column> columns) For the given list of columns, disable "nullable" for those columns that are primary key columns. | |
| createConstraints | back to summary |
|---|---|
| protected void createConstraints() Create the constraints. | |
| generateSequences | back to summary |
|---|---|
| protected ArrayList For the given list of columns, create sequences for identity columns (if needed), and then get the list of all sequences of the columns. | |
| getConstraintCommands | back to summary |
|---|---|
| private ArrayList | |
| getPrimaryKey | back to summary |
|---|---|
| public AlterTableAddConstraint getPrimaryKey() | |
| setPrimaryKey | back to summary |
|---|---|
| private boolean setPrimaryKey(AlterTableAddConstraint primaryKey) Set the primary key, but also check if a primary key with different columns is already defined.
If an unnamed primary key with the same columns is already defined it is
removed from the list of constraints and this method returns
| |