Class StandardForeignKeyExporter
java.lang.Object
org.hibernate.tool.schema.internal.StandardForeignKeyExporter
- All Implemented Interfaces:
Exporter<ForeignKey>
An
Exporter for foreign key constraints.-
Field Summary
Fields inherited from interface org.hibernate.tool.schema.spi.Exporter
NO_COMMANDS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]getSqlCreateStrings(ForeignKey foreignKey, Metadata metadata, SqlStringGenerationContext context) Get the commands needed for creation.String[]getSqlDropStrings(ForeignKey foreignKey, Metadata metadata, SqlStringGenerationContext context) Get the commands needed for dropping.
-
Constructor Details
-
StandardForeignKeyExporter
-
-
Method Details
-
getSqlCreateStrings
public String[] getSqlCreateStrings(ForeignKey foreignKey, Metadata metadata, SqlStringGenerationContext context) Description copied from interface:ExporterGet the commands needed for creation.- Specified by:
getSqlCreateStringsin interfaceExporter<ForeignKey>- Returns:
- The commands needed for creation scripting.
-
getSqlDropStrings
public String[] getSqlDropStrings(ForeignKey foreignKey, Metadata metadata, SqlStringGenerationContext context) Description copied from interface:ExporterGet the commands needed for dropping.- Specified by:
getSqlDropStringsin interfaceExporter<ForeignKey>- Returns:
- The commands needed for drop scripting.
-