public class AlterTableAlterColumn extends CommandWithColumns
transactionalcreate, parameters, prepareAlways, session, sqlStatement| Constructor and Description |
|---|
AlterTableAlterColumn(Session 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 |
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 |
setVisible(boolean visible) |
int |
update()
Execute the statement.
|
addConstraintCommand, changePrimaryKeysToNotNull, createConstraints, generateSequencesgetSchemaisReadOnly, isTransactional, queryMeta, setTransactionalcheckCanceled, checkParameters, getCteCleanups, getCurrentObjectId, getCurrentRowNumber, getObjectId, getParameters, getPlanSQL, getSession, getSQL, getSQL, getSQL, isCacheable, isQuery, needRecompile, prepare, query, setCommand, setCteCleanups, setCurrentRowNumber, setObjectId, setParameterList, setPrepareAlways, setRow, setSession, setSQL, toStringpublic 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 int update()
Preparedpublic void setType(int type)
public void setSelectivity(Expression selectivity)
public void setDefaultExpression(Expression defaultExpression)
defaultExpression - default or on update 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 setVisible(boolean visible)