org.hibernate.mapping
Class UniqueKey
java.lang.Object
org.hibernate.mapping.Constraint
org.hibernate.mapping.UniqueKey
- All Implemented Interfaces:
- Serializable, RelationalModel
public class UniqueKey
- extends Constraint
A relational unique key constraint
- See Also:
- Serialized Form
Methods inherited from class org.hibernate.mapping.Constraint |
addColumn, addColumns, columnIterator, containsColumn, getColumn, getColumnIterator, getColumns, getColumnSpan, getName, getTable, setName, setTable, toString |
UniqueKey
public UniqueKey()
sqlConstraintString
public String sqlConstraintString(Dialect dialect)
sqlConstraintString
public String sqlConstraintString(Dialect dialect,
String constraintName,
String defaultCatalog,
String defaultSchema)
- Specified by:
sqlConstraintString
in class Constraint
sqlCreateString
public String sqlCreateString(Dialect dialect,
Mapping p,
String defaultCatalog,
String defaultSchema)
- Specified by:
sqlCreateString
in interface RelationalModel
- Overrides:
sqlCreateString
in class Constraint
sqlDropString
public String sqlDropString(Dialect dialect,
String defaultCatalog,
String defaultSchema)
- Specified by:
sqlDropString
in interface RelationalModel
- Overrides:
sqlDropString
in class Constraint
isGenerated
public boolean isGenerated(Dialect dialect)
- Overrides:
isGenerated
in class Constraint
Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.