org.hibernate.dialect.unique
Class DB2UniqueDelegate
java.lang.Object
org.hibernate.dialect.unique.DefaultUniqueDelegate
org.hibernate.dialect.unique.DB2UniqueDelegate
- All Implemented Interfaces:
- UniqueDelegate
public class DB2UniqueDelegate
- extends DefaultUniqueDelegate
DB2 does not allow unique constraints on nullable columns. Rather than
forcing "not null", use unique *indexes* instead.
Method Summary |
String |
applyUniquesOnAlter(UniqueKey uniqueKey)
If creating unique constraints in separate alter statements is
supported, generate the necessary "alter" syntax for the given key. |
String |
applyUniquesOnAlter(UniqueKey uniqueKey,
String defaultCatalog,
String defaultSchema)
If creating unique constraints in separate alter statements is
supported, generate the necessary "alter" syntax for the given key. |
String |
dropUniquesOnAlter(UniqueKey uniqueKey)
If dropping unique constraints in separate alter statements is
supported, generate the necessary "alter" syntax for the given key. |
String |
dropUniquesOnAlter(UniqueKey uniqueKey,
String defaultCatalog,
String defaultSchema)
If dropping unique constraints in separate alter statements is
supported, generate the necessary "alter" syntax for the given key. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DB2UniqueDelegate
public DB2UniqueDelegate(Dialect dialect)
applyUniquesOnAlter
public String applyUniquesOnAlter(UniqueKey uniqueKey,
String defaultCatalog,
String defaultSchema)
- Description copied from interface:
UniqueDelegate
- If creating unique constraints in separate alter statements is
supported, generate the necessary "alter" syntax for the given key.
- Specified by:
applyUniquesOnAlter
in interface UniqueDelegate
- Overrides:
applyUniquesOnAlter
in class DefaultUniqueDelegate
- Returns:
- String
applyUniquesOnAlter
public String applyUniquesOnAlter(UniqueKey uniqueKey)
- Description copied from interface:
UniqueDelegate
- If creating unique constraints in separate alter statements is
supported, generate the necessary "alter" syntax for the given key.
- Specified by:
applyUniquesOnAlter
in interface UniqueDelegate
- Overrides:
applyUniquesOnAlter
in class DefaultUniqueDelegate
- Returns:
- String
dropUniquesOnAlter
public String dropUniquesOnAlter(UniqueKey uniqueKey,
String defaultCatalog,
String defaultSchema)
- Description copied from interface:
UniqueDelegate
- If dropping unique constraints in separate alter statements is
supported, generate the necessary "alter" syntax for the given key.
- Specified by:
dropUniquesOnAlter
in interface UniqueDelegate
- Overrides:
dropUniquesOnAlter
in class DefaultUniqueDelegate
- Returns:
- String
dropUniquesOnAlter
public String dropUniquesOnAlter(UniqueKey uniqueKey)
- Description copied from interface:
UniqueDelegate
- If dropping unique constraints in separate alter statements is
supported, generate the necessary "alter" syntax for the given key.
- Specified by:
dropUniquesOnAlter
in interface UniqueDelegate
- Overrides:
dropUniquesOnAlter
in class DefaultUniqueDelegate
- Returns:
- String
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.