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, isCreationVetoedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetColumns, getName, getTablepublic String getExportIdentifier()
ExportablegetExportIdentifier in interface Exportablepublic String[] sqlCreateStrings(Dialect dialect)
ExportablesqlCreateStrings in interface ExportablesqlCreateStrings in class AbstractConstraintdialect - 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 AbstractConstraintpublic String[] sqlDropStrings(Dialect dialect)
ExportablesqlDropStrings in interface ExportablesqlDropStrings in class AbstractConstraintdialect - The dialect for which to generate the SQL drop stringsCopyright © 2012 JBoss by Red Hat. All Rights Reserved.