public abstract class CommandWithColumns extends SchemaCommand
transactionalcreate, parameters, prepareAlways, session, sqlStatement| Modifier | Constructor and Description |
|---|---|
protected |
CommandWithColumns(Session 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 auto-increment
columns (if needed), and then get the list of all sequences of the
columns.
|
getSchemaisReadOnly, isTransactional, queryMeta, setTransactionalcheckCanceled, checkParameters, getCteCleanups, getCurrentObjectId, getCurrentRowNumber, getObjectId, getParameters, getPlanSQL, getSession, getSQL, getSQL, getSQL, getType, isCacheable, isQuery, needRecompile, prepare, query, setCommand, setCteCleanups, setCurrentRowNumber, setObjectId, setParameterList, setPrepareAlways, setRow, setSession, setSQL, toString, updatepublic 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 temporary