Top Description Fields Methods
org.hibernate.tool.schema.spi

public Interface Exporter<T extends org.hibernate.boot.model.relational.Exportable>

Known Direct Implementers
org.hibernate.dialect.Teradata14Dialect.TeradataIndexExporter, org.hibernate.tool.schema.internal.StandardAuxiliaryDatabaseObjectExporter, org.hibernate.tool.schema.internal.StandardForeignKeyExporter, org.hibernate.tool.schema.internal.StandardIndexExporter, org.hibernate.tool.schema.internal.StandardSequenceExporter, org.hibernate.tool.schema.internal.StandardTableExporter, org.hibernate.tool.schema.internal.StandardUniqueKeyExporter
Imports
org.hibernate.boot.Metadata, org.hibernate.boot.model.relational.Exportable, .SqlStringGenerationContext

Defines a contract for exporting of database objects (tables, sequences, etc) for use in SQL CREATE and DROP scripts.

This is an ORM-centric contract

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
public static final String[]

Method Summary

Modifier and TypeMethod and Description
public default String[]

Returns:

The commands needed for creation scripting.
getSqlCreateStrings
(T exportable, Metadata metadata)

Deprecated Will be removed in favor of the variant accepting SqlStringGenerationContext
Get the commands needed for creation.
public default String[]

Returns:

The commands needed for creation scripting.
getSqlCreateStrings
(T exportable, Metadata metadata, SqlStringGenerationContext context)

Get the commands needed for creation.

public default String[]

Returns:

The commands needed for drop scripting.
getSqlDropStrings
(T exportable, Metadata metadata)

Deprecated Will be removed in favor of the variant accepting SqlStringGenerationContext
Get the commands needed for dropping.
public default String[]

Returns:

The commands needed for drop scripting.
getSqlDropStrings
(T exportable, Metadata metadata, SqlStringGenerationContext context)

Get the commands needed for dropping.

Field Detail

NO_COMMANDSback to summary
public static final String[] NO_COMMANDS

Method Detail

getSqlCreateStringsback to summary
public default String[] getSqlCreateStrings(T exportable, Metadata metadata)

Deprecated

Will be removed in favor of the variant accepting SqlStringGenerationContext

Get the commands needed for creation.

Returns:String[]

The commands needed for creation scripting.

Annotations
@Deprecated
See Also
getSqlCreateStrings(Exportable, Metadata, SqlStringGenerationContext)
getSqlCreateStringsback to summary
public default String[] getSqlCreateStrings(T exportable, Metadata metadata, SqlStringGenerationContext context)

Get the commands needed for creation.

Returns:String[]

The commands needed for creation scripting.

getSqlDropStringsback to summary
public default String[] getSqlDropStrings(T exportable, Metadata metadata)

Deprecated

Will be removed in favor of the variant accepting SqlStringGenerationContext

Get the commands needed for dropping.

Returns:String[]

The commands needed for drop scripting.

Annotations
@Deprecated
See Also
getSqlDropStrings(Exportable, Metadata, SqlStringGenerationContext)
getSqlDropStringsback to summary
public default String[] getSqlDropStrings(T exportable, Metadata metadata, SqlStringGenerationContext context)

Get the commands needed for dropping.

Returns:String[]

The commands needed for drop scripting.