Interface Exporter<T extends Exportable>

All Known Implementing Classes:
StandardForeignKeyExporter, StandardIndexExporter, StandardSequenceExporter, StandardTableExporter, StandardUserDefinedTypeExporter

@SPI({USE,IMPLEMENT,SUPPLY}) public interface Exporter<T extends Exportable>

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 Details

    • NO_COMMANDS

      static final String[] NO_COMMANDS
      An immutable empty command result.
  • Method Details