类 DB2UniqueDelegate
- java.lang.Object
-
- org.hibernate.dialect.unique.DefaultUniqueDelegate
-
- org.hibernate.dialect.unique.DB2UniqueDelegate
-
- 所有已实现的接口:
UniqueDelegate
public class DB2UniqueDelegate extends DefaultUniqueDelegate
DB2 does not allow unique constraints on nullable columns. Rather than forcing "not null", use unique *indexes* instead.- 作者:
- Brett Meyer
-
-
字段概要
-
从类继承的字段 org.hibernate.dialect.unique.DefaultUniqueDelegate
dialect
-
-
构造器概要
构造器 构造器 说明 DB2UniqueDelegate(Dialect dialect)Constructs a DB2UniqueDelegate
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetAlterTableToAddUniqueKeyCommand(UniqueKey uniqueKey, Metadata metadata)Get the SQL ALTER TABLE command to be used to create the given UniqueKey.StringgetAlterTableToDropUniqueKeyCommand(UniqueKey uniqueKey, Metadata metadata)Get the SQL ALTER TABLE command to be used to drop the given UniqueKey.-
从类继承的方法 org.hibernate.dialect.unique.DefaultUniqueDelegate
getColumnDefinitionUniquenessFragment, getDropUnique, getTableCreationUniqueConstraintsFragment, uniqueConstraintSql
-
-
-
-
构造器详细资料
-
DB2UniqueDelegate
public DB2UniqueDelegate(Dialect dialect)
Constructs a DB2UniqueDelegate- 参数:
dialect- The dialect
-
-
方法详细资料
-
getAlterTableToAddUniqueKeyCommand
public String getAlterTableToAddUniqueKeyCommand(UniqueKey uniqueKey, Metadata metadata)
从接口复制的说明:UniqueDelegateGet the SQL ALTER TABLE command to be used to create the given UniqueKey.- 指定者:
getAlterTableToAddUniqueKeyCommand在接口中UniqueDelegate- 覆盖:
getAlterTableToAddUniqueKeyCommand在类中DefaultUniqueDelegate- 参数:
uniqueKey- The UniqueKey instance. Contains all information about the columnsmetadata- Access to the bootstrap mapping information- 返回:
- The ALTER TABLE command
-
getAlterTableToDropUniqueKeyCommand
public String getAlterTableToDropUniqueKeyCommand(UniqueKey uniqueKey, Metadata metadata)
从接口复制的说明:UniqueDelegateGet the SQL ALTER TABLE command to be used to drop the given UniqueKey.- 指定者:
getAlterTableToDropUniqueKeyCommand在接口中UniqueDelegate- 覆盖:
getAlterTableToDropUniqueKeyCommand在类中DefaultUniqueDelegate- 参数:
uniqueKey- The UniqueKey instance. Contains all information about the columnsmetadata- Access to the bootstrap mapping information- 返回:
- The ALTER TABLE command
-
-