public class Index extends AbstractConstraint implements Constraint
Modifier | Constructor and Description |
---|---|
protected |
Index(Table table,
String name) |
Modifier and Type | Method and Description |
---|---|
static String |
buildSqlCreateIndexString(Dialect dialect,
String name,
TableSpecification table,
Iterable<Column> columns,
boolean unique) |
String |
getExportIdentifier()
Get a unique identifier to make sure we are not exporting the same database structure multiple times.
|
String |
sqlConstraintStringInAlterTable(Dialect dialect) |
String[] |
sqlCreateStrings(Dialect dialect)
Gets the SQL strings for creating the database object.
|
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
public String getExportIdentifier()
Exportable
getExportIdentifier
in interface Exportable
public 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 String buildSqlCreateIndexString(Dialect dialect, String name, TableSpecification table, Iterable<Column> columns, boolean unique)
public String sqlConstraintStringInAlterTable(Dialect dialect)
sqlConstraintStringInAlterTable
in class AbstractConstraint
public String[] sqlDropStrings(Dialect dialect)
Exportable
sqlDropStrings
in interface Exportable
sqlDropStrings
in class AbstractConstraint
dialect
- The dialect for which to generate the SQL drop stringsCopyright © 2012 JBoss by Red Hat. All Rights Reserved.