Interface Exporter<T extends Exportable>
- All Known Implementing Classes:
StandardForeignKeyExporter, StandardIndexExporter, StandardSequenceExporter, StandardTableExporter, StandardUserDefinedTypeExporter
Exports a relational database object as SQL create and drop commands.
Implement this contract when a database requires a complete DDL operation
different from Hibernate's stock exporter. Return commands in execution
order and return NO_COMMANDS when no command is required. An exporter must
not execute SQL or retain the per-call metadata or generation context.
Supply each database-object specialization from the corresponding Dialect method.
- Since:
- 8.0
- See Also:
- API Note:
- This is an ORM-centric contract.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionString[]getSqlCreateStrings(T exportable, Metadata metadata, SqlStringGenerationContext context) Return the commands needed to createexportable, in execution order.String[]getSqlDropStrings(T exportable, Metadata metadata, SqlStringGenerationContext context) Return the commands needed to dropexportable, in execution order.
-
Field Details
-
NO_COMMANDS
An immutable empty command result.
-
-
Method Details
-
getSqlCreateStrings
Return the commands needed to createexportable, in execution order. -
getSqlDropStrings
Return the commands needed to dropexportable, in execution order.
-