Package org.hibernate.mapping
Class Index
- java.lang.Object
-
- org.hibernate.mapping.Index
-
- All Implemented Interfaces:
Serializable
,Exportable
,RelationalModel
public class Index extends Object implements RelationalModel, Exportable, Serializable
A relational table index- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Index()
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hibernate.mapping.RelationalModel
sqlCreateString, sqlDropString
-
-
-
-
Method Detail
-
sqlCreateString
public String sqlCreateString(Mapping mapping, SqlStringGenerationContext context, String defaultCatalog, String defaultSchema) throws HibernateException
- Specified by:
sqlCreateString
in interfaceRelationalModel
- Throws:
HibernateException
-
buildSqlDropIndexString
public static String buildSqlDropIndexString(SqlStringGenerationContext context, Table table, String name, String defaultCatalog, String defaultSchema)
-
buildSqlDropIndexString
public static String buildSqlDropIndexString(String name, String tableName)
-
buildSqlCreateIndexString
public static String buildSqlCreateIndexString(SqlStringGenerationContext context, String name, Table table, Iterator<Column> columns, Map<Column,String> columnOrderMap, boolean unique, String defaultCatalog, String defaultSchema)
-
buildSqlCreateIndexString
public static String buildSqlCreateIndexString(Dialect dialect, String name, String tableName, Iterator<Column> columns, Map<Column,String> columnOrderMap, boolean unique)
-
buildSqlCreateIndexString
public static String buildSqlCreateIndexString(SqlStringGenerationContext context, String name, Table table, Iterator<Column> columns, Map<Column,String> columnOrderMap, boolean unique, Metadata metadata)
-
sqlDropString
public String sqlDropString(SqlStringGenerationContext context, String defaultCatalog, String defaultSchema)
- Specified by:
sqlDropString
in interfaceRelationalModel
-
getTable
public Table getTable()
-
setTable
public void setTable(Table table)
-
getColumnSpan
public int getColumnSpan()
-
addColumn
public void addColumn(Column column)
-
addColumns
public void addColumns(Iterator extraColumns)
-
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.
-
-