|
Ontimize 5.2072EN | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ontimize.db.sql.SQLConstraint
com.ontimize.db.sql.SQLUnique
| Field Summary | |
protected static java.lang.String |
UNIQUE
|
| Fields inherited from class com.ontimize.db.sql.SQLConstraint |
columns, CONSTRAINT, constraintName |
| Constructor Summary | |
SQLUnique(java.util.List columns)
Creates a new SQLPrimaryKey just indicating the column/s in
where the constraint is applied. |
|
SQLUnique(java.lang.String constraintName,
java.util.List columns)
Creates a new SQLUnique indicating the name of the constraint and the columns in
where the constraint is applied. |
|
| Method Summary | |
java.lang.String |
toString()
This method returns the SQL Statement to add a Unique constraint to a database table. |
| Methods inherited from class com.ontimize.db.sql.SQLConstraint |
getColumnList, getColumns, getConstraintName, setConstraintName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected static final java.lang.String UNIQUE
| Constructor Detail |
public SQLUnique(java.lang.String constraintName,
java.util.List columns)
SQLUnique indicating the name of the constraint and the columns in
where the constraint is applied.
constraintName - The name of the constraint.columns - The column/s that are going to be included into the constraint.public SQLUnique(java.util.List columns)
SQLPrimaryKey just indicating the column/s in
where the constraint is applied. The name of the constraint is generated by default.
columns - The column/s that are going to be included into the constraint.| Method Detail |
public java.lang.String toString()
String with the SQL Statement.
|
Ontimize | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||