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)
Get the SQL ALTER TABLE command to be used to create the given UniqueKey.
|
String |
getAlterTableToAddUniqueKeyCommand(UniqueKey uniqueKey,
String defaultCatalog,
String defaultSchema)
Get the SQL ALTER TABLE command to be used to create the given UniqueKey.
|
String |
getAlterTableToDropUniqueKeyCommand(UniqueKey uniqueKey)
Get the SQL ALTER TABLE command to be used to drop the given UniqueKey.
|
String |
getAlterTableToDropUniqueKeyCommand(UniqueKey uniqueKey,
String defaultCatalog,
String defaultSchema)
Get the SQL ALTER TABLE command to be used to drop the given UniqueKey.
|
getColumnDefinitionUniquenessFragment, getColumnDefinitionUniquenessFragment, getTableCreationUniqueConstraintsFragment, getTableCreationUniqueConstraintsFragment, uniqueConstraintSql, uniqueConstraintSql
public DB2UniqueDelegate(Dialect dialect)
dialect
- The dialectpublic String getAlterTableToAddUniqueKeyCommand(UniqueKey uniqueKey, String defaultCatalog, String defaultSchema)
UniqueDelegate
getAlterTableToAddUniqueKeyCommand
in interface UniqueDelegate
getAlterTableToAddUniqueKeyCommand
in class DefaultUniqueDelegate
uniqueKey
- The UniqueKey instance. Contains all information about the columnsdefaultCatalog
- The default catalogdefaultSchema
- The default schemapublic String getAlterTableToAddUniqueKeyCommand(UniqueKey uniqueKey)
UniqueDelegate
getAlterTableToAddUniqueKeyCommand
in interface UniqueDelegate
getAlterTableToAddUniqueKeyCommand
in class DefaultUniqueDelegate
uniqueKey
- The UniqueKey instance. Contains all information about the columns, as well as
schema/catalogpublic String getAlterTableToDropUniqueKeyCommand(UniqueKey uniqueKey, String defaultCatalog, String defaultSchema)
UniqueDelegate
getAlterTableToDropUniqueKeyCommand
in interface UniqueDelegate
getAlterTableToDropUniqueKeyCommand
in class DefaultUniqueDelegate
uniqueKey
- The UniqueKey instance. Contains all information about the columnsdefaultCatalog
- The default catalogdefaultSchema
- The default schemapublic String getAlterTableToDropUniqueKeyCommand(UniqueKey uniqueKey)
UniqueDelegate
getAlterTableToDropUniqueKeyCommand
in interface UniqueDelegate
getAlterTableToDropUniqueKeyCommand
in class DefaultUniqueDelegate
uniqueKey
- The UniqueKey instance. Contains all information about the columns, as well as
schema/catalogCopyright © 2001-2015 Red Hat, Inc. All Rights Reserved.