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, uniqueConstraintSqlpublic DB2UniqueDelegate(Dialect dialect)
dialect - The dialectpublic String getAlterTableToAddUniqueKeyCommand(UniqueKey uniqueKey, String defaultCatalog, String defaultSchema)
UniqueDelegategetAlterTableToAddUniqueKeyCommand in interface UniqueDelegategetAlterTableToAddUniqueKeyCommand in class DefaultUniqueDelegateuniqueKey - The UniqueKey instance. Contains all information about the columnsdefaultCatalog - The default catalogdefaultSchema - The default schemapublic String getAlterTableToAddUniqueKeyCommand(UniqueKey uniqueKey)
UniqueDelegategetAlterTableToAddUniqueKeyCommand in interface UniqueDelegategetAlterTableToAddUniqueKeyCommand in class DefaultUniqueDelegateuniqueKey - The UniqueKey instance. Contains all information about the columns, as well as
schema/catalogpublic String getAlterTableToDropUniqueKeyCommand(UniqueKey uniqueKey, String defaultCatalog, String defaultSchema)
UniqueDelegategetAlterTableToDropUniqueKeyCommand in interface UniqueDelegategetAlterTableToDropUniqueKeyCommand in class DefaultUniqueDelegateuniqueKey - The UniqueKey instance. Contains all information about the columnsdefaultCatalog - The default catalogdefaultSchema - The default schemapublic String getAlterTableToDropUniqueKeyCommand(UniqueKey uniqueKey)
UniqueDelegategetAlterTableToDropUniqueKeyCommand in interface UniqueDelegategetAlterTableToDropUniqueKeyCommand in class DefaultUniqueDelegateuniqueKey - The UniqueKey instance. Contains all information about the columns, as well as
schema/catalogCopyright © 2001-2015 Red Hat, Inc. All Rights Reserved.