Class StandardIndexExporter
java.lang.Object
org.hibernate.tool.schema.spi.StandardIndexExporter
@SPI({USE,SUPPLY})
public final class StandardIndexExporter
extends Object
implements Exporter<Index>
Stock exporter for relational Index definitions.
Instantiate this class when standard index DDL is sufficient. Implement
Exporter directly when the database requires a different complete index
operation, and supply the result from Dialect.getIndexExporter().
- Since:
- 8.0
- See Also:
-
Field Summary
Fields inherited from interface Exporter
NO_COMMANDS -
Constructor Summary
ConstructorsConstructorDescriptionStandardIndexExporter(Dialect dialect) Create a standard index exporter owned bydialect. -
Method Summary
Modifier and TypeMethodDescriptionString[]getSqlCreateStrings(Index index, Metadata metadata, SqlStringGenerationContext context) Return the commands needed to createexportable, in execution order.String[]getSqlDropStrings(Index index, Metadata metadata, SqlStringGenerationContext context) Return the commands needed to dropexportable, in execution order.
-
Constructor Details
-
StandardIndexExporter
Create a standard index exporter owned bydialect.
-
-
Method Details
-
getSqlCreateStrings
public String[] getSqlCreateStrings(Index index, Metadata metadata, SqlStringGenerationContext context) Description copied from interface:ExporterReturn the commands needed to createexportable, in execution order.- Specified by:
getSqlCreateStringsin interfaceExporter<Index>
-
getSqlDropStrings
public String[] getSqlDropStrings(Index index, Metadata metadata, SqlStringGenerationContext context) Description copied from interface:ExporterReturn the commands needed to dropexportable, in execution order.- Specified by:
getSqlDropStringsin interfaceExporter<Index>
-