public class PrimaryKey extends AbstractConstraint implements Constraint, Exportable
| Modifier | Constructor and Description |
|---|---|
protected |
PrimaryKey(TableSpecification table) |
| 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.
|
String |
getName()
Obtain the constraint name.
|
void |
setName(String name) |
String |
sqlConstraintStringInAlterTable(Dialect dialect) |
String |
sqlConstraintStringInCreateTable(Dialect dialect) |
addColumn, getColumns, getColumnSpan, getTable, internalAddColumn, internalColumnAccess, isCreationVetoed, sqlCreateStrings, sqlDropStringsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetColumns, getTablesqlCreateStrings, sqlDropStringsprotected PrimaryKey(TableSpecification table)
public String getName()
ConstraintgetName in interface ConstraintgetName in class AbstractConstraintpublic void setName(String name)
public String getExportIdentifier()
ExportablegetExportIdentifier in interface Exportablepublic String sqlConstraintStringInAlterTable(Dialect dialect)
sqlConstraintStringInAlterTable in class AbstractConstraintCopyright © 2018 JBoss by Red Hat. All rights reserved.