public abstract class CommandWithColumns extends SchemaCommand
transactional
create, 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(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 ArrayList<Sequence> |
generateSequences(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.
|
getSchema
isReadOnly, isTransactional, queryMeta, setTransactional
checkCanceled, 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, update
public abstract void addColumn(Column column)
column
- the column to addpublic void addConstraintCommand(DefineCommand command)
command
- the statement to addprotected void changePrimaryKeysToNotNull(ArrayList<Column> columns)
columns
- the list of columnsprotected void createConstraints()
protected ArrayList<Sequence> generateSequences(ArrayList<Column> columns, boolean temporary)
columns
- the columnstemporary
- whether generated sequences should be temporaryCopyright © 2020 JBoss by Red Hat. All rights reserved.