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.StringgetAlterTableToAddUniqueKeyCommand(UniqueKey uniqueKey, Metadata metadata, SqlStringGenerationContext context)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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.dialect.unique.UniqueDelegate
getAlterTableToAddUniqueKeyCommand, getAlterTableToDropUniqueKeyCommand, getColumnDefinitionUniquenessFragment, getTableCreationUniqueConstraintsFragment
-
-
-
-
Constructor Detail
-
InformixUniqueDelegate
public InformixUniqueDelegate(Dialect dialect)
-
-
Method Detail
-
getAlterTableToAddUniqueKeyCommand
public java.lang.String getAlterTableToAddUniqueKeyCommand(UniqueKey uniqueKey, Metadata metadata, SqlStringGenerationContext context)
Description copied from interface:UniqueDelegateGet the SQL ALTER TABLE command to be used to create the given UniqueKey.- Specified by:
getAlterTableToAddUniqueKeyCommandin interfaceUniqueDelegate- Overrides:
getAlterTableToAddUniqueKeyCommandin classDefaultUniqueDelegate- Parameters:
uniqueKey- The UniqueKey instance. Contains all information about the columnsmetadata- Access to the bootstrap mapping informationcontext- A context for SQL string generation- Returns:
- The ALTER TABLE command
-
-