public abstract class CommandWithColumns extends SchemaCommand
transactionalcreate, parameters, prepareAlways, session, sqlStatement, sqlTokens| 限定符 | 构造器和说明 |
|---|---|
protected |
CommandWithColumns(SessionLocal session,
Schema schema) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 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, isWithParamValues, needRecompile, prepare, query, setCommand, setCteCleanups, setCurrentRowNumber, setParameterList, setPersistedObjectId, setPrepareAlways, setRow, setSession, setSQL, setWithParamValues, 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(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 temporarypublic AlterTableAddConstraint getPrimaryKey()
Copyright © 2022. All rights reserved.