Class StandardUniqueKeyExporter
java.lang.Object
org.hibernate.tool.schema.internal.StandardUniqueKeyExporter
- All Implemented Interfaces:
Exporter<Constraint>
An
Exporter
for unique constraints
. The type argument is
Constraint
, rather than UniqueKey
, allowing for Dialect
s
which create unique constraints for unique indexes.-
Field Summary
Fields inherited from interface org.hibernate.tool.schema.spi.Exporter
NO_COMMANDS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionString[]
getSqlCreateStrings
(Constraint constraint, Metadata metadata, SqlStringGenerationContext context) Get the commands needed for creation.String[]
getSqlDropStrings
(Constraint constraint, Metadata metadata, SqlStringGenerationContext context) Get the commands needed for dropping.
-
Constructor Details
-
StandardUniqueKeyExporter
-
-
Method Details
-
getSqlCreateStrings
public String[] getSqlCreateStrings(Constraint constraint, Metadata metadata, SqlStringGenerationContext context) Description copied from interface:Exporter
Get the commands needed for creation.- Specified by:
getSqlCreateStrings
in interfaceExporter<Constraint>
- Returns:
- The commands needed for creation scripting.
-
getSqlDropStrings
public String[] getSqlDropStrings(Constraint constraint, Metadata metadata, SqlStringGenerationContext context) Description copied from interface:Exporter
Get the commands needed for dropping.- Specified by:
getSqlDropStrings
in interfaceExporter<Constraint>
- Returns:
- The commands needed for drop scripting.
-