org.hibernate.mapping
Class PrimaryKey
java.lang.Object
org.hibernate.mapping.Constraint
org.hibernate.mapping.PrimaryKey
- All Implemented Interfaces:
- Serializable, RelationalModel
public class PrimaryKey
- extends Constraint
A primary key constraint
- See Also:
- Serialized Form
Methods inherited from class org.hibernate.mapping.Constraint |
addColumn, addColumns, columnIterator, containsColumn, generateName, generateName, getColumn, getColumnIterator, getColumns, getColumnSpan, getName, getTable, hashedName, isGenerated, setName, setTable, sqlCreateString, sqlDropString, toString |
PrimaryKey
public PrimaryKey()
sqlConstraintString
public String sqlConstraintString(Dialect dialect)
sqlConstraintString
public String sqlConstraintString(Dialect dialect,
String constraintName,
String defaultCatalog,
String defaultSchema)
- Specified by:
sqlConstraintString
in class Constraint
generatedConstraintNamePrefix
public String generatedConstraintNamePrefix()
- Specified by:
generatedConstraintNamePrefix
in class Constraint
- Returns:
- String The prefix to use in generated constraint names. Examples:
"UK_", "FK_", and "PK_".
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.