public class AlterTableAlterColumn extends CommandWithColumns
transactional
create, 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(String after) |
void |
setAddBefore(String before) |
void |
setAddFirst()
Add the column as the first column of the table.
|
void |
setColumnsToRemove(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(String tableName) |
void |
setType(int type) |
void |
setVisible(boolean visible) |
int |
update()
Execute the statement.
|
addConstraintCommand, changePrimaryKeysToNotNull, createConstraints, generateSequences
getSchema
isReadOnly, isTransactional, queryMeta, setTransactional
checkCanceled, 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, toString
public void setIfTableExists(boolean b)
public void setTableName(String tableName)
public void setOldColumn(Column oldColumn)
public void setAddFirst()
public void setAddBefore(String before)
public void setAddAfter(String after)
public int update()
Prepared
public 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()
Prepared
public void setIfNotExists(boolean ifNotExists)
public void addColumn(Column column)
CommandWithColumns
addColumn
in class CommandWithColumns
column
- the column to addpublic void setVisible(boolean visible)
Copyright © 2020 JBoss by Red Hat. All rights reserved.