Package org.hibernate.mapping
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Index()
-
Method Summary
-
-
-
Method Detail
-
buildSqlDropIndexString
public static String buildSqlDropIndexString(String name, String tableName)
-
buildSqlCreateIndexString
public static String buildSqlCreateIndexString(Dialect dialect, String name, String tableName, List<Column> columns, Map<Column,String> columnOrderMap, boolean unique)
-
buildSqlCreateIndexString
public static String buildSqlCreateIndexString(SqlStringGenerationContext context, String name, Table table, List<Column> columns, Map<Column,String> columnOrderMap, boolean unique, Metadata metadata)
-
getTable
public Table getTable()
-
setTable
public void setTable(Table table)
-
getColumnSpan
public int getColumnSpan()
-
getColumnIterator
@Deprecated public Iterator<Column> getColumnIterator()
Deprecated.
-
addColumn
public void addColumn(Column column)
-
containsColumn
public boolean containsColumn(Column column)
-
getName
public String getName()
-
setName
public void setName(String name)
-
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 interfaceExportable
- Returns:
- The exporting identifier.
-
-