Class StandardForeignKeyExporter
- java.lang.Object
-
- org.hibernate.tool.schema.internal.StandardForeignKeyExporter
-
- All Implemented Interfaces:
Exporter<ForeignKey>
public class StandardForeignKeyExporter extends Object implements Exporter<ForeignKey>
AnExporter
for foreign key constraints.
-
-
Field Summary
-
Fields inherited from interface org.hibernate.tool.schema.spi.Exporter
NO_COMMANDS
-
-
Constructor Summary
Constructors Constructor Description StandardForeignKeyExporter(Dialect dialect)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]
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 Detail
-
StandardForeignKeyExporter
public StandardForeignKeyExporter(Dialect dialect)
-
-
Method Detail
-
getSqlCreateStrings
public String[] getSqlCreateStrings(ForeignKey foreignKey, Metadata metadata, SqlStringGenerationContext context)
Description copied from interface:Exporter
Get the commands needed for creation.- Specified by:
getSqlCreateStrings
in interfaceExporter<ForeignKey>
- Returns:
- The commands needed for creation scripting.
-
getSqlDropStrings
public String[] getSqlDropStrings(ForeignKey foreignKey, Metadata metadata, SqlStringGenerationContext context)
Description copied from interface:Exporter
Get the commands needed for dropping.- Specified by:
getSqlDropStrings
in interfaceExporter<ForeignKey>
- Returns:
- The commands needed for drop scripting.
-
-