Ontimize 5.2072EN

com.ontimize.db.sql
Class SQLTableAlterColumn

java.lang.Object
  extended bycom.ontimize.db.sql.SQLTable
      extended bycom.ontimize.db.sql.SQLTableAlter
          extended bycom.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.
 
Fields inherited from class com.ontimize.db.sql.SQLTableAlter
add
 
Fields inherited from class com.ontimize.db.sql.SQLTable
tableName
 
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 com.ontimize.db.sql.SQLTableAlter
isAdd, setAdd
 
Methods inherited from class com.ontimize.db.sql.SQLTable
getTableName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

column

protected SQLColumn column
The column that are going to be modified in the database table.

Constructor Detail

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.
Method Detail

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.

Ontimize