Top Description Fields Constructors Methods
org.hibernate.tool.schema.internal

public Class StandardIndexExporter

extends Object
implements Exporter<Index>
Class Inheritance
All Implemented Interfaces
org.hibernate.tool.schema.spi.Exporter
Imports
java.util.Map, org.hibernate.boot.Metadata, org.hibernate.boot.model.relational.QualifiedNameImpl, .QualifiedTableName, .SqlStringGenerationContext, org.hibernate.dialect.Dialect, org.hibernate.mapping.Index, .Selectable, org.hibernate.tool.schema.spi.Exporter

An Exporter for indexes.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final Dialect

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
appendColumnList(Index index, StringBuilder createIndex)

protected Dialect
public String[]
getSqlCreateStrings(Index index, Metadata metadata, SqlStringGenerationContext context)

Implements org.hibernate.tool.schema.spi.Exporter.getSqlCreateStrings.

Deprecated as a consequence of Metadata being deprecated.
Get the commands needed for creation.
public String[]
getSqlDropStrings(Index index, Metadata metadata, SqlStringGenerationContext context)

Implements org.hibernate.tool.schema.spi.Exporter.getSqlDropStrings.

Deprecated as a consequence of Metadata being deprecated.
Get the commands needed for dropping.
private String
indexName(Index index, SqlStringGenerationContext context, Metadata metadata)

Deprecated as a consequence of Metadata being deprecated.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

dialectback to summary
private final Dialect dialect

Constructor Detail

StandardIndexExporterback to summary
public StandardIndexExporter(Dialect dialect)

Method Detail

appendColumnListback to summary
private void appendColumnList(Index index, StringBuilder createIndex)
getDialectback to summary
protected Dialect getDialect()
getSqlCreateStringsback to summary
public String[] getSqlCreateStrings(Index index, Metadata metadata, SqlStringGenerationContext context)

Implements org.hibernate.tool.schema.spi.Exporter.getSqlCreateStrings.

Doc from org.hibernate.tool.schema.spi.Exporter.getSqlCreateStrings.

Deprecated

as a consequence of Metadata being deprecated. See corresponding docs for further information.

Get the commands needed for creation.

Returns:String[]

The commands needed for creation scripting.

Annotations
@Override
getSqlDropStringsback to summary
public String[] getSqlDropStrings(Index index, Metadata metadata, SqlStringGenerationContext context)

Implements org.hibernate.tool.schema.spi.Exporter.getSqlDropStrings.

Doc from org.hibernate.tool.schema.spi.Exporter.getSqlDropStrings.

Deprecated

as a consequence of Metadata being deprecated. See corresponding docs for further information.

Get the commands needed for dropping.

Returns:String[]

The commands needed for drop scripting.

Annotations
@Override
indexNameback to summary
private String indexName(Index index, SqlStringGenerationContext context, Metadata metadata)

Deprecated

as a consequence of Metadata being deprecated. See corresponding docs for further information.