Class PostgreSQLDDLDialect

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

public class PostgreSQLDDLDialect extends BaseDDLDialect
PostgreSQL DDL方言
Author:
Maning
  • Constructor Details

    • PostgreSQLDDLDialect

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

    • bigintType

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

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

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

      public TypeDef charType(int length)
      Description copied from interface: DDLDialect
      char类型名称
      Parameters:
      length - 长度
      Returns:
      char类型名称
    • clobType

      public TypeDef clobType()
      Description copied from interface: DDLDialect
      clob类型名称
      Returns:
      blob类型名称
    • 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类型名称
    • smallintType

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

      public TypeDef tinyintType()
      Description copied from interface: DDLDialect
      tinyint类型名称
      Returns:
      tinyint类型名称
    • 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(DropPrimaryKey statement)
      Description copied from interface: DDLDialect
      翻译删除主键语句
      Specified by:
      translate in interface DDLDialect
      Overrides:
      translate in class BaseDDLDialect
      Parameters:
      statement - 语句
      Returns:
      翻译后的SQL