Package org.hibernate.mapping
Class Index
java.lang.Object
org.hibernate.mapping.Index
- All Implemented Interfaces:
Serializable,Exportable
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddColumn(Selectable selectable) voidaddColumn(Selectable selectable, String order) Deprecated.Deprecated.usegetSelectables()intGet a unique identifier to make sure we are not exporting the same database structure multiple times.getName()getQuotedName(Dialect dialect) getTable()booleanisUnique()voidvoidsetOptions(String options) voidvoidsetUnique(boolean unique) toString()
-
Constructor Details
-
Index
public Index()
-
-
Method Details
-
getTable
-
setTable
-
setUnique
public void setUnique(boolean unique) -
isUnique
public boolean isUnique() -
getOptions
-
setOptions
-
getColumnSpan
public int getColumnSpan() -
getSelectables
-
getSelectableOrderMap
-
getColumns
Deprecated.usegetSelectables() -
getColumnOrderMap
Deprecated. -
addColumn
-
addColumn
-
getName
-
setName
-
getQuotedName
-
toString
-
getExportIdentifier
Description copied from interface:ExportableGet a unique identifier to make sure we are not exporting the same database structure multiple times.- Specified by:
getExportIdentifierin interfaceExportable- Returns:
- The exporting identifier.
-
getSelectableOrderMap()