Class StandardSequenceExporter
java.lang.Object
org.hibernate.tool.schema.spi.StandardSequenceExporter
@SPI({USE,IMPLEMENT,SUPPLY})
public class StandardSequenceExporter
extends Object
implements Exporter<Sequence>
Standard exporter for relational Sequence definitions.
Extend this class only to customize qualification of a sequence name.
Retain the supplied Dialect for the lifetime of this exporter and supply the
exporter from Dialect.getSequenceExporter().
- Since:
- 8.0
- See Also:
-
Field Summary
Fields inherited from interface Exporter
NO_COMMANDS -
Constructor Summary
ConstructorsConstructorDescriptionStandardSequenceExporter(Dialect dialect) Create a standard sequence exporter owned bydialect. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetFormattedSequenceName(QualifiedSequenceName name, Metadata metadata, SqlStringGenerationContext context) Format the sequence name used by create and drop commands.String[]getSqlCreateStrings(Sequence sequence, Metadata metadata, SqlStringGenerationContext context) Return the commands needed to createexportable, in execution order.String[]getSqlDropStrings(Sequence sequence, Metadata metadata, SqlStringGenerationContext context) Return the commands needed to dropexportable, in execution order.
-
Constructor Details
-
StandardSequenceExporter
-
-
Method Details
-
getSqlCreateStrings
public String[] getSqlCreateStrings(Sequence sequence, Metadata metadata, SqlStringGenerationContext context) Description copied from interface:ExporterReturn the commands needed to createexportable, in execution order.- Specified by:
getSqlCreateStringsin interfaceExporter<Sequence>
-
getSqlDropStrings
public String[] getSqlDropStrings(Sequence sequence, Metadata metadata, SqlStringGenerationContext context) Description copied from interface:ExporterReturn the commands needed to dropexportable, in execution order.- Specified by:
getSqlDropStringsin interfaceExporter<Sequence>
-
getFormattedSequenceName
protected String getFormattedSequenceName(QualifiedSequenceName name, Metadata metadata, SqlStringGenerationContext context) Format the sequence name used by create and drop commands.
-