public class PrimaryKey extends AbstractConstraint implements Constraint, Exportable
| Modifier | Constructor and Description |
|---|---|
protected |
PrimaryKey(TableSpecification table) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getExportIdentifier()
Get a unique identifier to make sure we are not exporting the same database structure multiple times.
|
java.lang.String |
getName()
Obtain the constraint name.
|
void |
setName(java.lang.String name) |
java.lang.String |
sqlConstraintStringInAlterTable(Dialect dialect) |
java.lang.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 java.lang.String getName()
ConstraintgetName in interface ConstraintgetName in class AbstractConstraintpublic void setName(java.lang.String name)
public java.lang.String getExportIdentifier()
ExportablegetExportIdentifier in interface Exportablepublic java.lang.String sqlConstraintStringInCreateTable(Dialect dialect)
public java.lang.String sqlConstraintStringInAlterTable(Dialect dialect)
sqlConstraintStringInAlterTable in class AbstractConstraintCopyright © 2001-2013 Red Hat, Inc. All Rights Reserved.