Package org.hibernate.dialect.unique
Class InformixUniqueDelegate
- java.lang.Object
-
- org.hibernate.dialect.unique.DefaultUniqueDelegate
-
- org.hibernate.dialect.unique.InformixUniqueDelegate
-
- All Implemented Interfaces:
UniqueDelegate
public class InformixUniqueDelegate extends DefaultUniqueDelegate
Informix requires the constraint name to come last on the alter table.
-
-
Field Summary
-
Fields inherited from class org.hibernate.dialect.unique.DefaultUniqueDelegate
dialect
-
-
Constructor Summary
Constructors Constructor Description InformixUniqueDelegate(Dialect dialect)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAlterTableToAddUniqueKeyCommand(UniqueKey uniqueKey, Metadata metadata)
Get the SQL ALTER TABLE command to be used to create the given UniqueKey.-
Methods inherited from class org.hibernate.dialect.unique.DefaultUniqueDelegate
getAlterTableToDropUniqueKeyCommand, getColumnDefinitionUniquenessFragment, getDropUnique, getTableCreationUniqueConstraintsFragment, uniqueConstraintSql
-
-
-
-
Constructor Detail
-
InformixUniqueDelegate
public InformixUniqueDelegate(Dialect dialect)
-
-
Method Detail
-
getAlterTableToAddUniqueKeyCommand
public java.lang.String getAlterTableToAddUniqueKeyCommand(UniqueKey uniqueKey, Metadata metadata)
Description copied from interface:UniqueDelegate
Get the SQL ALTER TABLE command to be used to create the given UniqueKey.- Specified by:
getAlterTableToAddUniqueKeyCommand
in interfaceUniqueDelegate
- Overrides:
getAlterTableToAddUniqueKeyCommand
in classDefaultUniqueDelegate
- Parameters:
uniqueKey
- The UniqueKey instance. Contains all information about the columnsmetadata
- Access to the bootstrap mapping information- Returns:
- The ALTER TABLE command
-
-