Package org.hibernate.tool.schema.spi
Interface Exporter<T extends Exportable>
-
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 java.lang.String[]
NO_COMMANDS
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default java.lang.String[]
getSqlCreateStrings(T exportable, Metadata metadata)
Deprecated.Will be removed in favor of the variant acceptingSqlStringGenerationContext
default java.lang.String[]
getSqlCreateStrings(T exportable, Metadata metadata, SqlStringGenerationContext context)
Get the commands needed for creation.default java.lang.String[]
getSqlDropStrings(T exportable, Metadata metadata)
Deprecated.Will be removed in favor of the variant acceptingSqlStringGenerationContext
default java.lang.String[]
getSqlDropStrings(T exportable, Metadata metadata, SqlStringGenerationContext context)
Get the commands needed for dropping.
-
-
-
Method Detail
-
getSqlCreateStrings
@Deprecated default java.lang.String[] getSqlCreateStrings(T exportable, Metadata metadata)
Deprecated.Will be removed in favor of the variant acceptingSqlStringGenerationContext
Get the commands needed for creation.- Returns:
- The commands needed for creation scripting.
- See Also:
getSqlCreateStrings(Exportable, Metadata, SqlStringGenerationContext)
-
getSqlCreateStrings
default java.lang.String[] getSqlCreateStrings(T exportable, Metadata metadata, SqlStringGenerationContext context)
Get the commands needed for creation.- Returns:
- The commands needed for creation scripting.
-
getSqlDropStrings
@Deprecated default java.lang.String[] getSqlDropStrings(T exportable, Metadata metadata)
Deprecated.Will be removed in favor of the variant acceptingSqlStringGenerationContext
Get the commands needed for dropping.- Returns:
- The commands needed for drop scripting.
- See Also:
getSqlDropStrings(Exportable, Metadata, SqlStringGenerationContext)
-
getSqlDropStrings
default java.lang.String[] getSqlDropStrings(T exportable, Metadata metadata, SqlStringGenerationContext context)
Get the commands needed for dropping.- Returns:
- The commands needed for drop scripting.
-
-