public class Index extends AbstractConstraint implements Constraint
Modifier | Constructor and Description |
---|---|
protected |
Index(Table table,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
buildSqlCreateIndexString(Dialect dialect,
java.lang.String name,
TableSpecification table,
java.lang.Iterable<Column> columns,
boolean unique) |
java.lang.String |
getExportIdentifier()
Get a unique identifier to make sure we are not exporting the same database structure multiple times.
|
java.lang.String |
sqlConstraintStringInAlterTable(Dialect dialect) |
java.lang.String[] |
sqlCreateStrings(Dialect dialect)
Gets the SQL strings for creating the database object.
|
java.lang.String[] |
sqlDropStrings(Dialect dialect)
Gets the SQL strings for dropping the database object.
|
addColumn, getColumns, getColumnSpan, getName, getTable, internalAddColumn, internalColumnAccess, isCreationVetoed
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getColumns, getName, getTable
protected Index(Table table, java.lang.String name)
public java.lang.String getExportIdentifier()
Exportable
getExportIdentifier
in interface Exportable
public java.lang.String[] sqlCreateStrings(Dialect dialect)
Exportable
sqlCreateStrings
in interface Exportable
sqlCreateStrings
in class AbstractConstraint
dialect
- The dialect for which to generate the SQL creation stringspublic static java.lang.String buildSqlCreateIndexString(Dialect dialect, java.lang.String name, TableSpecification table, java.lang.Iterable<Column> columns, boolean unique)
public java.lang.String sqlConstraintStringInAlterTable(Dialect dialect)
sqlConstraintStringInAlterTable
in class AbstractConstraint
public java.lang.String[] sqlDropStrings(Dialect dialect)
Exportable
sqlDropStrings
in interface Exportable
sqlDropStrings
in class AbstractConstraint
dialect
- The dialect for which to generate the SQL drop stringsCopyright © 2001-2012 Red Hat, Inc. All Rights Reserved.