Ontimize 5.2072EN

com.ontimize.db.sql
Class SQLTableAlter

java.lang.Object
  extended bycom.ontimize.db.sql.SQLTable
      extended bycom.ontimize.db.sql.SQLTableAlter
Direct Known Subclasses:
SQLTableAlterColumn, SQLTableAlterConstraint

public class SQLTableAlter
extends SQLTable


Field Summary
protected  boolean add
          Parameter that indicates if character of the modification.
 
Fields inherited from class com.ontimize.db.sql.SQLTable
tableName
 
Constructor Summary
SQLTableAlter(java.lang.String tableName, boolean add)
          Creates a new SQLTableAlter indicating the name of the table to be altered and the kind of operation to realize with the parameter add.
 
Method Summary
 boolean isAdd()
          Returns as the parameter add is set.
 void setAdd(boolean add)
          Sets the value of the parameter add.
 
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

add

protected boolean add
Parameter that indicates if character of the modification. If it is true the operation to be realized is ADD and if it is false the operation to be realized is DROP

Constructor Detail

SQLTableAlter

public SQLTableAlter(java.lang.String tableName,
                     boolean add)
Creates a new SQLTableAlter 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 and if the parameter is false the operation will be DROP.

Parameters:
tableName - The name of the table.
add - Value of the parameter add.
Method Detail

isAdd

public boolean isAdd()
Returns as the parameter add is set. If it is true indicates that the operation is ADD, in the other side, if it is false indicates that the operation is DROP

Returns:
a boolean

setAdd

public void setAdd(boolean add)
Sets the value of the parameter add.

Parameters:
add -

Ontimize