com.ontimize.db.sql
Class SQLTableAlterColumn
java.lang.Object
com.ontimize.db.sql.SQLTable
com.ontimize.db.sql.SQLTableAlter
com.ontimize.db.sql.SQLTableAlterColumn
- public class SQLTableAlterColumn
- extends SQLTableAlter
|
Field Summary |
protected SQLColumn |
column
The column that are going to be modified in the database table. |
|
Constructor Summary |
SQLTableAlterColumn(java.lang.String tableName,
boolean add)
Creates a new SQLTableAlterColumn indicating the name of the table to be altered and
the kind of operation to realize with the parameter add. |
SQLTableAlterColumn(java.lang.String tableName,
SQLColumn column,
boolean add)
Creates a new SQLTableAlterColumn indicating the name of the table to be altered, the column
that are going to be modified in the database table and the kind of operation to realize with the parameter add.
|
|
Method Summary |
SQLColumn |
getColumn()
Returns the column that are going to be modified in the database table. |
void |
setColumn(SQLColumn column)
Sets the column to be modified in the database table. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
column
protected SQLColumn column
- The column that are going to be modified in the database table.
SQLTableAlterColumn
public SQLTableAlterColumn(java.lang.String tableName,
boolean add)
- Creates a new
SQLTableAlterColumn indicating the name of the table to be altered and
the kind of operation to realize with the parameter add. If it is true the operation will be ADD COLUMN and
if the parameter is false the operation will be DROP COLUMN.
- Parameters:
tableName - The name of the table.add - The value of the parameter add. Indicates add or drop.
SQLTableAlterColumn
public SQLTableAlterColumn(java.lang.String tableName,
SQLColumn column,
boolean add)
- Creates a new
SQLTableAlterColumn indicating the name of the table to be altered, the column
that are going to be modified in the database table and the kind of operation to realize with the parameter add.
If it is true the operation will be ADD COLUMN and if the parameter is false the operation will be DROP COLUMN.
- Parameters:
tableName - The name of the table.column - The SQLColumn with whole definition of it.add - The value of the parameter add. Indicates add or drop.
getColumn
public SQLColumn getColumn()
- Returns the column that are going to be modified in the database table.
- Returns:
- a
SQLColumn
setColumn
public void setColumn(SQLColumn column)
- Sets the column to be modified in the database table.
- Parameters:
column - The SQLColumn to be modified.