Class Index

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

public class Index extends Object implements Exportable, Serializable
A mapping model object representing an index on a relational database table.

We regularize the semantics of unique constraints on nullable columns: two null values are not considered to be "equal" for the purpose of determining uniqueness, just as specified by ANSI SQL and common sense.

See Also:
  • Constructor Details

    • Index

      public Index()
  • Method Details

    • getTable

      public Table getTable()
    • setTable

      public void setTable(Table table)
    • setUnique

      public void setUnique(boolean unique)
    • isUnique

      public boolean isUnique()
    • getType

      public String getType()
    • setType

      public void setType(String type)
    • getUsing

      public String getUsing()
    • setUsing

      public void setUsing(String using)
    • getOptions

      public String getOptions()
    • setOptions

      public void setOptions(String options)
    • getColumnSpan

      public int getColumnSpan()
    • getSelectables

      public List<Selectable> getSelectables()
    • getSelectableOrderMap

      public Map<Selectable, String> getSelectableOrderMap()
    • addColumn

      public void addColumn(Selectable selectable)
    • addColumn

      public void addColumn(Selectable selectable, String order)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getQuotedName

      public String getQuotedName(Dialect dialect)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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.
      Specified by:
      getExportIdentifier in interface Exportable
      Returns:
      The exporting identifier.