Package org.hibernate.tool.schema.spi
Interface Exporter<T extends Exportable>
-
- All Known Implementing Classes:
StandardAuxiliaryDatabaseObjectExporter
,StandardForeignKeyExporter
,StandardIndexExporter
,StandardSequenceExporter
,StandardTableExporter
,StandardUniqueKeyExporter
public interface Exporter<T extends Exportable>
Defines a contract for exporting of database objects (tables, sequences, etc) for use in SQLCREATE
andDROP
scripts. This is an ORM-centric contract
-
-
Field Summary
Fields Modifier and Type Field Description static String[]
NO_COMMANDS
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String[]
getSqlCreateStrings(T exportable, Metadata metadata, SqlStringGenerationContext context)
Get the commands needed for creation.String[]
getSqlDropStrings(T exportable, Metadata metadata, SqlStringGenerationContext context)
Get the commands needed for dropping.
-
-
-
Field Detail
-
NO_COMMANDS
static final String[] NO_COMMANDS
-
-
Method Detail
-
getSqlCreateStrings
String[] getSqlCreateStrings(T exportable, Metadata metadata, SqlStringGenerationContext context)
Get the commands needed for creation.- Returns:
- The commands needed for creation scripting.
-
getSqlDropStrings
String[] getSqlDropStrings(T exportable, Metadata metadata, SqlStringGenerationContext context)
Get the commands needed for dropping.- Returns:
- The commands needed for drop scripting.
-
-