public class DB2UniqueDelegate extends DefaultUniqueDelegate
dialect
Constructor and Description |
---|
DB2UniqueDelegate(Dialect dialect)
Constructs a DB2UniqueDelegate
|
Modifier and Type | Method and Description |
---|---|
String |
getAlterTableToAddUniqueKeyCommand(UniqueKey uniqueKey,
Metadata metadata)
Get the SQL ALTER TABLE command to be used to create the given UniqueKey.
|
String |
getAlterTableToDropUniqueKeyCommand(UniqueKey uniqueKey,
Metadata metadata)
Get the SQL ALTER TABLE command to be used to drop the given UniqueKey.
|
getColumnDefinitionUniquenessFragment, getTableCreationUniqueConstraintsFragment, uniqueConstraintSql
public DB2UniqueDelegate(Dialect dialect)
dialect
- The dialectpublic String getAlterTableToAddUniqueKeyCommand(UniqueKey uniqueKey, Metadata metadata)
UniqueDelegate
getAlterTableToAddUniqueKeyCommand
in interface UniqueDelegate
getAlterTableToAddUniqueKeyCommand
in class DefaultUniqueDelegate
uniqueKey
- The UniqueKey instance. Contains all information about the columnsmetadata
- Access to the bootstrap mapping informationpublic String getAlterTableToDropUniqueKeyCommand(UniqueKey uniqueKey, Metadata metadata)
UniqueDelegate
getAlterTableToDropUniqueKeyCommand
in interface UniqueDelegate
getAlterTableToDropUniqueKeyCommand
in class DefaultUniqueDelegate
uniqueKey
- The UniqueKey instance. Contains all information about the columnsmetadata
- Access to the bootstrap mapping informationCopyright © 2017 JBoss by Red Hat. All rights reserved.