public class SQLTableAlterConstraint extends SQLTableAlter
| Modifier and Type | Field and Description |
|---|---|
protected SQLConstraint |
constraint
The constraint that are going to be introduced into the database table.
|
add| Constructor and Description |
|---|
SQLTableAlterConstraint(String tableName,
boolean add)
Creates a new
SQLTableAlterConstraint indicating the name of
the table to be altered and the kind of operation to realize with the
parameter add. |
SQLTableAlterConstraint(String tableName,
boolean add,
SQLConstraint constraint)
Creates a new
SQLTableAlterConstraint indicating the name of
the table to be altered, the constraint that are going to be modified in
the database table and the kind of operation to realize with the
parameter add. |
| Modifier and Type | Method and Description |
|---|---|
SQLConstraint |
getConstraint()
Returns the constraint that are going to be introduced into the database
table.
|
void |
setConstraint(SQLConstraint constraint)
Set the constraint that are going to be introduced into the database
table.
|
isAdd, setAddgetTableNameprotected SQLConstraint constraint
public SQLTableAlterConstraint(String tableName, boolean add)
SQLTableAlterConstraint 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 CONSTRAINT and if
the parameter is false the operation will be DROP CONSTRAINT.tableName - The name of the table.add - The value of the parameter add. Indicates add or drop.public SQLTableAlterConstraint(String tableName, boolean add, SQLConstraint constraint)
SQLTableAlterConstraint indicating the name of
the table to be altered, the constraint 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 CONSTRAINT and if
the parameter is false the operation will be DROP CONSTRAINT.tableName - The name of the table.add - The value of the parameter add. Indicates add or drop.constraint - The SQLConstraint with whole definition of it.public SQLConstraint getConstraint()
SQLConstraintpublic void setConstraint(SQLConstraint constraint)
constraint - The SQLConstraint with whole definition of it.Copyright © 2016 Imatia Innovation S.L.. All rights reserved.