Class UniqueKey

java.lang.Object
org.hibernate.mapping.Constraint
org.hibernate.mapping.UniqueKey
All Implemented Interfaces:
Serializable, Exportable

public class UniqueKey extends Constraint
A mapping model object representing a unique key constraint on a relational database table.
See Also:
  • Constructor Details

    • UniqueKey

      public UniqueKey(Table table)
    • UniqueKey

      public UniqueKey()
  • Method Details

    • addColumn

      public void addColumn(Column column, String order)
    • getColumnOrderMap

      public Map<Column,String> getColumnOrderMap()
    • getExportIdentifier

      public String getExportIdentifier()
      Description copied from interface: Exportable
      Get a unique identifier to make sure we are not exporting the same database structure multiple times.
      Returns:
      The exporting identifier.
    • isNameExplicit

      public boolean isNameExplicit()
    • setNameExplicit

      public void setNameExplicit(boolean nameExplicit)
    • isExplicit

      public boolean isExplicit()
    • setExplicit

      public void setExplicit(boolean explicit)
    • hasNullableColumn

      public boolean hasNullableColumn()