Top Description Fields Constructors Methods
org.hibernate.mapping

public Class PrimaryKey

extends Constraint
Class Inheritance
Imports
java.util.Iterator, org.hibernate.boot.model.relational.SqlStringGenerationContext, org.hibernate.dialect.Dialect, org.hibernate.internal.util.StringHelper, org.jboss.logging.Logger

Deprecated

as a consequence of Constraint being deprecated. See corresponding docs for further information.

A primary key constraint
Authors
Gavin King, Steve Ebersole

Field Summary

Modifier and TypeField and Description
private static final Logger

Constructor Summary

AccessConstructor and Description
public
PrimaryKey(Table table)

Deprecated as a consequence of Table being deprecated.

Method Summary

Modifier and TypeMethod and Description
public void
public String
public String
getExportIdentifier()

Implements org.hibernate.boot.model.relational.Exportable.getExportIdentifier.

Get a unique identifier to make sure we are not exporting the same database structure multiple times.
protected String
public String
public String
sqlConstraintString(SqlStringGenerationContext context, String constraintName, String defaultCatalog, String defaultSchema)

Implements abstract org.hibernate.mapping.Constraint.sqlConstraintString.

Inherited from org.hibernate.mapping.Constraint:
addColumnscolumnIteratorcontainsColumngenerateNamegenerateNamegetColumngetColumnIteratorgetColumnsgetColumnSpangetNamegetTablehashedNameisGeneratedsetNamesetTablesqlCreateStringsqlDropStringtoString

Field Detail

logback to summary
private static final Logger log

Constructor Detail

PrimaryKeyback to summary
public PrimaryKey(Table table)

Deprecated

as a consequence of Table being deprecated. See corresponding docs for further information.

Method Detail

addColumnback to summary
public void addColumn(Column column)

Overrides org.hibernate.mapping.Constraint.addColumn.

Annotations
@Override
generatedConstraintNamePrefixback to summary
public String generatedConstraintNamePrefix()

Implements abstract org.hibernate.mapping.Constraint.generatedConstraintNamePrefix.

Returns:String

Doc from org.hibernate.mapping.Constraint.generatedConstraintNamePrefix.

String The prefix to use in generated constraint names. Examples: "UK_", "FK_", and "PK_".

getExportIdentifierback to summary
public String getExportIdentifier()

Implements org.hibernate.boot.model.relational.Exportable.getExportIdentifier.

Doc from org.hibernate.boot.model.relational.Exportable.getExportIdentifier.

Get a unique identifier to make sure we are not exporting the same database structure multiple times.

Returns:String

The exporting identifier.

Annotations
@Override
getTableNameForLoggingback to summary
protected String getTableNameForLogging(Column column)
sqlConstraintStringback to summary
public String sqlConstraintString(Dialect dialect)
sqlConstraintStringback to summary
public String sqlConstraintString(SqlStringGenerationContext context, String constraintName, String defaultCatalog, String defaultSchema)

Implements abstract org.hibernate.mapping.Constraint.sqlConstraintString.

Annotations
@Override