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 TypeMethodDescriptionvoid
addColumn
(Selectable selectable) void
addColumn
(Selectable selectable, String order) Deprecated.Deprecated.usegetSelectables()
int
Get a unique identifier to make sure we are not exporting the same database structure multiple times.getName()
getQuotedName
(Dialect dialect) getTable()
boolean
isUnique()
void
void
setOptions
(String options) void
void
setUnique
(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:Exportable
Get a unique identifier to make sure we are not exporting the same database structure multiple times.- Specified by:
getExportIdentifier
in interfaceExportable
- Returns:
- The exporting identifier.
-
getSelectableOrderMap()