public class AlterTableAlterColumn extends CommandWithColumns
transactionalcreate, parameters, prepareAlways, session, sqlStatement, sqlTokens| Constructor and Description |
|---|
AlterTableAlterColumn(SessionLocal session,
Schema schema) |
| Modifier and Type | Method and Description |
|---|---|
void |
addColumn(Column column)
Add a column to this table.
|
int |
getType()
Get the command type as defined in CommandInterface
|
void |
setAddAfter(java.lang.String after) |
void |
setAddBefore(java.lang.String before) |
void |
setAddFirst()
Add the column as the first column of the table.
|
void |
setBooleanFlag(boolean booleanFlag) |
void |
setColumnsToRemove(java.util.ArrayList<Column> columnsToRemove) |
void |
setDefaultExpression(Expression defaultExpression)
Set default or on update expression.
|
void |
setIfNotExists(boolean ifNotExists) |
void |
setIfTableExists(boolean b) |
void |
setNewColumn(Column newColumn) |
void |
setOldColumn(Column oldColumn) |
void |
setSelectivity(Expression selectivity) |
void |
setTableName(java.lang.String tableName) |
void |
setType(int type) |
void |
setUsingExpression(Expression usingExpression)
Set using expression.
|
long |
update()
Execute the statement.
|
addConstraintCommand, changePrimaryKeysToNotNull, createConstraints, generateSequences, getPrimaryKeygetSchemaisReadOnly, isRetryable, isTransactional, queryMeta, setTransactionalcheckCanceled, checkParameters, collectDependencies, getCteCleanups, getCurrentRowNumber, getDatabase, getObjectId, getParameters, getPersistedObjectId, getPlanSQL, getSession, getSimpleSQL, getSQL, getSQLTokens, isCacheable, isQuery, isWithParamValues, needRecompile, prepare, query, setCommand, setCteCleanups, setCurrentRowNumber, setParameterList, setPersistedObjectId, setPrepareAlways, setRow, setSession, setSQL, setWithParamValues, toStringpublic AlterTableAlterColumn(SessionLocal session, Schema schema)
public void setIfTableExists(boolean b)
public void setTableName(java.lang.String tableName)
public void setOldColumn(Column oldColumn)
public void setAddFirst()
public void setAddBefore(java.lang.String before)
public void setAddAfter(java.lang.String after)
public long update()
Preparedpublic void setType(int type)
public void setSelectivity(Expression selectivity)
public void setDefaultExpression(Expression defaultExpression)
defaultExpression - default or on update expressionpublic void setUsingExpression(Expression usingExpression)
usingExpression - using expressionpublic void setNewColumn(Column newColumn)
public int getType()
Preparedpublic void setIfNotExists(boolean ifNotExists)
public void addColumn(Column column)
CommandWithColumnsaddColumn in class CommandWithColumnscolumn - the column to addpublic void setColumnsToRemove(java.util.ArrayList<Column> columnsToRemove)
public void setBooleanFlag(boolean booleanFlag)