public class UniqueKey extends AbstractConstraint implements Constraint
Modifier | Constructor and Description |
---|---|
protected |
UniqueKey(Table table,
String name) |
Modifier and Type | Method and Description |
---|---|
String |
getExportIdentifier()
Get a unique identifier to make sure we are not exporting the same database structure multiple times.
|
protected 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 String[] sqlDropStrings(Dialect dialect)
Exportable
sqlDropStrings
in interface Exportable
sqlDropStrings
in class AbstractConstraint
dialect
- The dialect for which to generate the SQL drop stringsprotected String sqlConstraintStringInAlterTable(Dialect dialect)
sqlConstraintStringInAlterTable
in class AbstractConstraint
Copyright © 2018 JBoss by Red Hat. All rights reserved.