Class OracleDDLDialect

java.lang.Object
org.huiche.ddl.dialect.BaseDDLDialect
org.huiche.ddl.dialect.OracleDDLDialect
All Implemented Interfaces:
DDLDialect

public class OracleDDLDialect extends BaseDDLDialect
Oracle DDL方言
Author:
Maning
  • Constructor Details

    • OracleDDLDialect

      public OracleDDLDialect(OracleDialect delegate)
      默认构造
      Parameters:
      delegate - 方言代理
  • Method Details

    • bigintType

      public TypeDef bigintType()
      Description copied from interface: DDLDialect
      bigint类型名称
      Returns:
      bigint类型名称
    • booleanType

      public TypeDef booleanType()
      Description copied from interface: DDLDialect
      boolean类型名称
      Returns:
      boolean类型名称
    • decimalType

      public TypeDef decimalType(int length, int scale)
      Description copied from interface: DDLDialect
      decimal类型名称
      Parameters:
      length - 长度
      scale - 精度
      Returns:
      decimal类型名称
    • intType

      public TypeDef intType()
      Description copied from interface: DDLDialect
      int类型名称
      Returns:
      int类型名称
    • jsonType

      public TypeDef jsonType()
      Description copied from interface: DDLDialect
      JSON类型
      Returns:
      JSON类型 不支持或不使用JSON类型可以回退clobType
    • smallintType

      public TypeDef smallintType()
      Description copied from interface: DDLDialect
      smallint类型名称
      Returns:
      smallint类型名称
    • timeType

      public TypeDef timeType()
      Description copied from interface: DDLDialect
      time类型名称
      Returns:
      time类型名称
    • tinyintType

      public TypeDef tinyintType()
      Description copied from interface: DDLDialect
      tinyint类型名称
      Returns:
      tinyint类型名称
    • varcharType

      public TypeDef varcharType(int length)
      Description copied from interface: DDLDialect
      varchar类型名称
      Parameters:
      length - 长度
      Returns:
      varchar类型名称
    • translate

      public List<String> translate(AlterNullabe statement)
      Description copied from interface: DDLDialect
      翻译新增列NOTNULL语句
      Specified by:
      translate in interface DDLDialect
      Overrides:
      translate in class BaseDDLDialect
      Parameters:
      statement - 语句
      Returns:
      翻译后的SQL
    • translate

      public List<String> translate(AlterColumnType statement)
      Description copied from interface: DDLDialect
      翻译修改列语句
      Specified by:
      translate in interface DDLDialect
      Overrides:
      translate in class BaseDDLDialect
      Parameters:
      statement - 语句
      Returns:
      翻译后的SQL
    • translate

      public List<String> translate(AlterDefault statement)
      Description copied from interface: DDLDialect
      翻译设置默认值语句
      Specified by:
      translate in interface DDLDialect
      Overrides:
      translate in class BaseDDLDialect
      Parameters:
      statement - 语句
      Returns:
      翻译后的SQL