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, sqlDropStrings
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getColumns, getTable
sqlCreateStrings, sqlDropStrings
protected PrimaryKey(TableSpecification table)
public java.lang.String getName()
Constraint
getName
in interface Constraint
getName
in class AbstractConstraint
public void setName(java.lang.String name)
public java.lang.String getExportIdentifier()
Exportable
getExportIdentifier
in interface Exportable
public java.lang.String sqlConstraintStringInCreateTable(Dialect dialect)
public java.lang.String sqlConstraintStringInAlterTable(Dialect dialect)
sqlConstraintStringInAlterTable
in class AbstractConstraint
Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.