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.
|
boolean |
isCreationVetoed(Dialect dialect) |
String |
sqlConstraintStringInAlterTable(Dialect dialect) |
String |
sqlConstraintStringInCreateTable(Dialect dialect) |
addColumn, getColumns, getColumnSpan, getName, getTable, internalAddColumn, internalColumnAccess, sqlCreateStrings, sqlDropStrings
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getColumns, getName, getTable
sqlCreateStrings, sqlDropStrings
public String getExportIdentifier()
Exportable
getExportIdentifier
in interface Exportable
public boolean isCreationVetoed(Dialect dialect)
isCreationVetoed
in class AbstractConstraint
public String sqlConstraintStringInAlterTable(Dialect dialect)
sqlConstraintStringInAlterTable
in class AbstractConstraint
Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.