Class SQLiteDDLDialect
java.lang.Object
org.huiche.ddl.dialect.BaseDDLDialect
org.huiche.ddl.dialect.SQLiteDDLDialect
- All Implemented Interfaces:
DDLDialect
-
Field Summary
Fields inherited from class BaseDDLDialect
defaultTypeMapping, LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription自增语法片段boolean是否比较长度和精度解析表定义resolveType(Class<?> javaType, int length, int scale, boolean autoIncrement, EnumBy enumBy, Map<Class<?>, TypeDef> typeMapping) 解析数据库类型translate(AlterColumnComment statement) 翻译修改列注释语句translate(AlterDefault statement) 翻译设置默认值语句translate(AlterNullabe statement) 翻译新增列NOTNULL语句translate(AlterTableComment statement) 翻译修改表注释语句translate(CreateTable statement) 翻译建表语句translate(DropConstraint statement) 翻译删除约束语句translatePKinCreateTable(TableDef table) 翻译建表语句的主键Methods inherited from class BaseDDLDialect
compareColumn, compareTable, concatType, quote, resolveTableByJdbc, translate, translate, translate, translate, translate, translate, translateColumnMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DDLDialect
addPrimaryKeyAddNotNull, addUniqueAddNotNull, bigintType, blobType, booleanType, charType, clobType, dateType, dbTypeMapping, decimalType, embeddedColumnComment, embeddedTableComment, fallbackType, intType, jsonType, requiresExplicitNotNullForPrimaryKey, resolveEnumType, smallintType, timestrampType, timeType, tinyintType, translate, varcharType
-
Constructor Details
-
SQLiteDDLDialect
-
-
Method Details
-
autoIncrementSyntaxSegment
Description copied from interface:DDLDialect自增语法片段- Specified by:
autoIncrementSyntaxSegmentin interfaceDDLDialect- Overrides:
autoIncrementSyntaxSegmentin classBaseDDLDialect- Returns:
- 自增语法片段
-
resolveTable
Description copied from interface:DDLDialect解析表定义- Specified by:
resolveTablein interfaceDDLDialect- Overrides:
resolveTablein classBaseDDLDialect- Parameters:
clazz- 实体类enumBy- 枚举取值方式typeMapping- 类型映射- Returns:
- 表定义
-
resolveType
public TypeDef resolveType(Class<?> javaType, int length, int scale, boolean autoIncrement, EnumBy enumBy, Map<Class<?>, TypeDef> typeMapping) Description copied from interface:DDLDialect解析数据库类型- Specified by:
resolveTypein interfaceDDLDialect- Overrides:
resolveTypein classBaseDDLDialect- Parameters:
javaType- java类型length- 用户注解传入的长度scale- 用户注解传入的精度autoIncrement- 是否自增enumBy- 枚举读写取值方式typeMapping- 自定义类型映射- Returns:
- 解析后的类型定义
-
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
-
translatePKinCreateTable
Description copied from class:BaseDDLDialect翻译建表语句的主键- Overrides:
translatePKinCreateTablein classBaseDDLDialect- Parameters:
table- 表定义- Returns:
- 翻译后的SQL
-
compareLengthOrScale
public boolean compareLengthOrScale()Description copied from interface:DDLDialect是否比较长度和精度- Returns:
- 是否比较长度和精度
-