Class DB2DDLDialect
java.lang.Object
org.huiche.ddl.dialect.BaseDDLDialect
org.huiche.ddl.dialect.DB2DDLDialect
- All Implemented Interfaces:
DDLDialect
-
Field Summary
Fields inherited from class BaseDDLDialect
defaultTypeMapping, LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean添加主键时,检查添加notnullboolean添加唯一时,检查添加notnulljsonType()JSON类型boolean列为主键时是否需要显式定义NOTNULLtinyint类型名称翻译新增列语句translate(AddPrimaryKey statement) 翻译新增主键语句翻译新增唯一索引语句translate(AlterColumnType statement) 翻译修改列语句translate(AlterDefault statement) 翻译设置默认值语句translate(AlterNullabe statement) 翻译新增列NOTNULL语句translate(DropConstraint statement) 翻译删除约束语句translate(DropPrimaryKey statement) 翻译删除主键语句Methods inherited from class BaseDDLDialect
autoIncrementSyntaxSegment, compareColumn, compareTable, concatType, quote, resolveTable, resolveTableByJdbc, resolveType, translate, translate, translate, translate, translateColumn, translatePKinCreateTableMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DDLDialect
bigintType, blobType, booleanType, charType, clobType, compareLengthOrScale, dateType, dbTypeMapping, decimalType, embeddedColumnComment, embeddedTableComment, fallbackType, intType, resolveEnumType, smallintType, timestrampType, timeType, translate, varcharType
-
Constructor Details
-
DB2DDLDialect
-
-
Method Details
-
addPrimaryKeyAddNotNull
public boolean addPrimaryKeyAddNotNull()Description copied from interface:DDLDialect添加主键时,检查添加notnull- Returns:
- 添加主键时,检查添加notnull
-
addUniqueAddNotNull
public boolean addUniqueAddNotNull()Description copied from interface:DDLDialect添加唯一时,检查添加notnull- Returns:
- 添加唯一时,检查添加notnull
-
jsonType
-
requiresExplicitNotNullForPrimaryKey
public boolean requiresExplicitNotNullForPrimaryKey()Description copied from interface:DDLDialect列为主键时是否需要显式定义NOTNULL- Returns:
- 列为主键时是否需要显式定义NOTNULL
-
tinyintType
-
translate
Description copied from interface:DDLDialect翻译新增列语句- Specified by:
translatein interfaceDDLDialect- Overrides:
translatein classBaseDDLDialect- Parameters:
statement- 语句- Returns:
- 翻译后的SQL
-
translate
Description copied from interface:DDLDialect翻译新增列NOTNULL语句- Specified by:
translatein interfaceDDLDialect- Overrides:
translatein classBaseDDLDialect- Parameters:
statement- 语句- Returns:
- 翻译后的SQL
-
translate
Description copied from interface:DDLDialect翻译新增主键语句- Specified by:
translatein interfaceDDLDialect- Overrides:
translatein classBaseDDLDialect- Parameters:
statement- 语句- Returns:
- 翻译后的SQL
-
translate
Description copied from interface:DDLDialect翻译新增唯一索引语句- Specified by:
translatein interfaceDDLDialect- Overrides:
translatein classBaseDDLDialect- Parameters:
statement- 语句- Returns:
- 翻译后的SQL
-
translate
Description copied from interface:DDLDialect翻译修改列语句- Specified by:
translatein interfaceDDLDialect- Overrides:
translatein classBaseDDLDialect- Parameters:
statement- 语句- Returns:
- 翻译后的SQL
-
translate
Description copied from interface:DDLDialect翻译删除主键语句- Specified by:
translatein interfaceDDLDialect- Overrides:
translatein classBaseDDLDialect- Parameters:
statement- 语句- Returns:
- 翻译后的SQL
-
translate
Description copied from interface:DDLDialect翻译设置默认值语句- Specified by:
translatein interfaceDDLDialect- Overrides:
translatein classBaseDDLDialect- Parameters:
statement- 语句- Returns:
- 翻译后的SQL
-
translate
Description copied from interface:DDLDialect翻译删除约束语句- Specified by:
translatein interfaceDDLDialect- Overrides:
translatein classBaseDDLDialect- Parameters:
statement- 语句- Returns:
- 翻译后的SQL
-