public abstract class CommandWithColumns extends SchemaCommand
transactionalcreate, parameters, prepareAlways, session, sqlStatement, sqlTokens| Modifier | Constructor and Description |
|---|---|
protected |
CommandWithColumns(SessionLocal session,
Schema schema) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addColumn(Column column)
Add a column to this table.
|
void |
addConstraintCommand(DefineCommand command)
Add a constraint statement to this statement.
|
protected void |
changePrimaryKeysToNotNull(java.util.ArrayList<Column> columns)
For the given list of columns, disable "nullable" for those columns that
are primary key columns.
|
protected void |
createConstraints()
Create the constraints.
|
protected java.util.ArrayList<Sequence> |
generateSequences(java.util.ArrayList<Column> columns,
boolean 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.
|
AlterTableAddConstraint |
getPrimaryKey() |
getSchemaisReadOnly, isTransactional, queryMeta, setTransactionalcheckCanceled, checkParameters, collectDependencies, getCteCleanups, getCurrentRowNumber, getObjectId, getParameters, getPersistedObjectId, getPlanSQL, getSession, getSimpleSQL, getSQL, getSQLTokens, getType, isCacheable, isQuery, needRecompile, prepare, query, setCommand, setCteCleanups, setCurrentRowNumber, setParameterList, setPersistedObjectId, setPrepareAlways, setRow, setSession, setSQL, toString, updateprotected CommandWithColumns(SessionLocal session, Schema schema)
public abstract void addColumn(Column column)
column - the column to addpublic void addConstraintCommand(DefineCommand command)
command - the statement to addprotected void changePrimaryKeysToNotNull(java.util.ArrayList<Column> columns)
columns - the list of columnsprotected void createConstraints()
protected java.util.ArrayList<Sequence> generateSequences(java.util.ArrayList<Column> columns, boolean temporary)
columns - the columnstemporary - whether generated sequences should be temporarypublic AlterTableAddConstraint getPrimaryKey()