接口 Dialect

所有已知实现类:
AbstractDialect, MySQLDialect, OracleDialect, PostgreSQLDialect, SQLiteDialect

public interface Dialect

database dialect.

  • 嵌套类概要

    嵌套类
    修饰符和类型 接口 说明
    static class  Dialect.Keyworld
    The Class Keyworld.
  • 字段概要

    字段
    修饰符和类型 字段 说明
    static int DEFAULT_LIMIT
    默认的查询返回条数.
    static java.lang.String LIMIT_PARAM_NAME
    命名参数查询的查询条件默认数量名称.
    static char PARAM_NAME_START_SYMBOL
    The param name start symbol.
    static java.lang.String PRIMARY_KEY_INDEX_NAME
    The primary key index name.
    static java.lang.String START_PARAM_NAME
    命名参数查询的查询条件默认起始位置名称.
  • 方法概要

    修饰符和类型 方法 说明
    default java.lang.String buildAlterTableAddColumnDDL​(java.lang.String tableName, Column... columns)
    Builds the alter table add column DDL.
    java.lang.String buildAlterTableAddColumnDDL​(java.lang.String schema, java.lang.String tableName, Column... columns)
    Builds the alter table add column DDL.
    default java.lang.String buildAlterTableDDL​(java.lang.String tableName)
    Builds the alter table sql.
    default java.lang.String buildAlterTableDDL​(java.lang.String schema, java.lang.String tableName)
    Builds the alter table sql.
    java.lang.String buildAlterTableDDL​(java.lang.String schema, java.lang.String tableName, Column[] addColumns, Column[] modifyColumns, Column[] dropColumns)
    Builds the alter table DDL.
    default java.lang.String buildAlterTableDropColumnDDL​(Column column)
    Builds the alter table drop column DDL.
    default java.lang.String buildAlterTableDropColumnDDL​(java.lang.String tableName, Column... columns)
    Builds the alter table drop column DDL.
    java.lang.String buildAlterTableDropColumnDDL​(java.lang.String schema, java.lang.String tableName, Column... columns)
    Builds the alter table drop column DDL.
    java.lang.String buildAlterTableDropColumnDDL​(java.lang.String schema, java.lang.String tableName, java.lang.String... columnNames)
    Builds the alter table drop column DDL.
    default java.lang.String buildAlterTableModifyColumnDDL​(java.lang.String tableName, Column... columns)
    Builds the alter table modify column DDL.
    java.lang.String buildAlterTableModifyColumnDDL​(java.lang.String schema, java.lang.String tableName, Column... columns)
    Builds the alter table modify column DDL.
    default java.lang.String buildColumnSql​(java.lang.String columnName, cn.featherfly.common.repository.operate.AggregateFunction aggregateFunction)
    build sql for column with aggregate function.
    default java.lang.String buildColumnSql​(java.lang.String columnName, cn.featherfly.common.repository.operate.Function function)
    build sql for column with aggregate function.
    default java.lang.String buildColumnSql​(java.lang.String columnName, java.lang.String tableAlias)
    build sql for column with aggregate function.
    default java.lang.String buildColumnSql​(java.lang.String columnName, java.lang.String tableAlias, cn.featherfly.common.repository.operate.AggregateFunction aggregateFunction)
    build sql for column with tableAlias and aggregate function.
    default java.lang.String buildColumnSql​(java.lang.String columnName, java.lang.String tableAlias, cn.featherfly.common.repository.operate.AggregateFunction aggregateFunction, java.lang.String asName)
    build sql for column with tableAlias and aggregate function.
    default java.lang.String buildColumnSql​(java.lang.String columnName, java.lang.String tableAlias, cn.featherfly.common.repository.operate.Function function)
    build sql for column with tableAlias and aggregate function.
    default java.lang.String buildColumnSql​(java.lang.String columnName, java.lang.String tableAlias, java.lang.String asName)
    build sql for column with aggregate function.
    default java.lang.String buildCreateDataBaseDDL​(java.lang.String dataBaseName)
    Builds the create data base sql.
    default java.lang.String buildCreateIndexDDL​(java.lang.String tableName, java.lang.String indexName, java.lang.String[] columns)
    Builds the create index DDL.
    default java.lang.String buildCreateIndexDDL​(java.lang.String tableName, java.lang.String indexName, java.lang.String[] columns, boolean unique)
    Builds the create index DDL.
    default java.lang.String buildCreateIndexDDL​(java.lang.String schema, java.lang.String tableName, java.lang.String indexName, java.lang.String[] columns)
    Builds the create index DDL.
    default java.lang.String buildCreateIndexDDL​(java.lang.String schema, java.lang.String tableName, java.lang.String indexName, java.lang.String[] columns, boolean unique)
    Builds the create index DDL.
    default java.lang.String buildCreateSchemaDDL​(java.lang.String schemaName)
    Builds the create schema DDL.
    java.lang.String buildCreateTableDDL​(Table table)
    Builds the create table sql.
    default java.lang.String buildDropDataBaseDDL​(java.lang.String dataBaseName)
    Builds the drop data base sql.
    default java.lang.String buildDropDataBaseDDL​(java.lang.String dataBaseName, boolean ifExists)
    Builds the drop data base sql.
    default java.lang.String buildDropDDL​(java.lang.String schema, java.lang.String name, Keywords type, boolean ifExists)
    Builds the drop DDL.
    default java.lang.String buildDropIndexDDL​(java.lang.String tableName, java.lang.String indexName)
    Builds the drop index sql.
    default java.lang.String buildDropIndexDDL​(java.lang.String tableName, java.lang.String indexName, boolean ifExists)
    Builds the drop index sql.
    default java.lang.String buildDropIndexDDL​(java.lang.String schema, java.lang.String tableName, java.lang.String indexName)
    Builds the drop index sql.
    default java.lang.String buildDropIndexDDL​(java.lang.String schema, java.lang.String tableName, java.lang.String indexName, boolean ifExists)
    Builds the drop index sql.
    default java.lang.String buildDropSchemaDDL​(java.lang.String schemaName)
    Builds the drop schema DDL.
    default java.lang.String buildDropSchemaDDL​(java.lang.String schemaName, boolean ifExists)
    Builds the drop schema DDL.
    default java.lang.String buildDropTableDDL​(java.lang.String tableName)
    Builds the drop table sql.
    default java.lang.String buildDropTableDDL​(java.lang.String tableName, boolean ifExists)
    Builds the drop table sql.
    default java.lang.String buildDropTableDDL​(java.lang.String schema, java.lang.String tableName)
    Builds the drop table sql.
    default java.lang.String buildDropTableDDL​(java.lang.String schema, java.lang.String tableName, boolean ifExists)
    Builds the drop table sql.
    default java.lang.String buildDropTableDDL​(java.lang.String schema, java.lang.String tableName, boolean ifExists, boolean cascade)
    Builds the drop table sql.
    default java.lang.String buildDropViewDDL​(java.lang.String viewName)
    Builds the drop view sql.
    default java.lang.String buildDropViewDDL​(java.lang.String schema, java.lang.String viewName)
    Builds the drop view sql.
    default java.lang.String buildDropViewDDL​(java.lang.String schema, java.lang.String viewName, boolean ifExists)
    Builds the drop view sql.
    default java.lang.String buildInsertBatchSql​(java.lang.String tableName, java.lang.String[] columnNames, int insertAmount)
    dialect for database supports batch insert.
    default java.lang.String buildTableSql​(TableElement table)
    build sql for table.
    default java.lang.String buildTableSql​(java.lang.String tableName)
    build sql for table.
    default java.lang.String buildTableSql​(java.lang.String tableName, java.lang.String tableAlias)
    build sql for table with tableAlias.
    default java.lang.String convertTableOrColumnName​(java.lang.String tableOrColumnName)
    convert column or table name if necessary.
    default java.lang.String getColumnTypeName​(java.sql.SQLType sqlType)
    Gets the column type name.
    default java.lang.String getDefaultSchema​(java.lang.String catalog)
    Gets the default schema.
    default int getDefaultSize​(java.sql.SQLType sqlType)
    Gets the default size.
    default java.lang.String getFunction​(cn.featherfly.common.repository.operate.Function function)
    get converted aggregate function.
    java.lang.String getInitSqlFooter()
    Gets the inits the sql footer.
    java.lang.String getInitSqlHeader()
    Gets the inits the sql header.
    default java.lang.String getKeyword​(Keywords keywords)
    get converted keywords.
    default java.lang.String getKeyword​(cn.featherfly.common.repository.operate.LogicOperator keywords)
    get converted keywords.
    default java.lang.String getKeyword​(cn.featherfly.common.repository.operate.SortOperator keywords)
    get converted keywords.
    default Dialect.Keyworld getKeywords()
    get converted keywords.
    java.lang.String getPaginationSql​(java.lang.String sql, int start, int limit)
    转换普通sql为带分页的sql
    java.lang.Object[] getPaginationSqlParameter​(java.lang.Object[] params, int start, int limit)
    返回分页参数的数组
    java.util.Map<java.lang.String,​java.lang.Object> getPaginationSqlParameter​(java.util.Map<java.lang.String,​java.lang.Object> params, int start, int limit)
    返回分页参数的MAP
    java.lang.String getParamNamedPaginationSql​(java.lang.String sql, int start, int limit)
    转换普通命名sql为带分页的sql,此sql为带命名参数sql, 如select * from user where user_name = :username
    java.lang.String getParamNamedPaginationSql​(java.lang.String sql, int start, int limit, char startSymbol)
    转换普通命名sql为带分页的sql,此sql为带命名参数sql, 如select * from user where user_name = {startSymal}username.
    default java.lang.String getPrimaryKeyIndexName()
    Gets the primary key index name.
    java.lang.String getWrapSign()
    Gets the wrap sign.
    default boolean isAutoGenerateKeyBatch()
    Checks if is auto generate key batch.
    default boolean isInsertBatch()
    Checks if is insert batch.
    default boolean isKeywordsUppercase()
    Checks if is keywords uppercase.
    default boolean isTableAndColumnNameUppercase()
    Checks if is table and column name uppercase.
    java.lang.String valueToSql​(java.lang.Object value, int sqlType)
    转换为SQL语句中使用的字符串
    java.lang.String wrapName​(java.lang.String name)
    包装名称,避免关键字问题
  • 字段详细资料

    • START_PARAM_NAME

      static final java.lang.String START_PARAM_NAME
      命名参数查询的查询条件默认起始位置名称.
      另请参阅:
      常量字段值
    • LIMIT_PARAM_NAME

      static final java.lang.String LIMIT_PARAM_NAME
      命名参数查询的查询条件默认数量名称.
      另请参阅:
      常量字段值
    • PRIMARY_KEY_INDEX_NAME

      static final java.lang.String PRIMARY_KEY_INDEX_NAME
      The primary key index name.
      另请参阅:
      常量字段值
    • PARAM_NAME_START_SYMBOL

      static final char PARAM_NAME_START_SYMBOL
      The param name start symbol.
      另请参阅:
      常量字段值
    • DEFAULT_LIMIT

      static final int DEFAULT_LIMIT
      默认的查询返回条数.
      另请参阅:
      常量字段值
  • 方法详细资料

    • getPaginationSql

      java.lang.String getPaginationSql​(java.lang.String sql, int start, int limit)

      转换普通sql为带分页的sql

      .
      参数:
      sql - 带转换的sql
      start - 起始数
      limit - 数量
      返回:
      返回转换好的分页sql
    • getPaginationSqlParameter

      java.lang.Object[] getPaginationSqlParameter​(java.lang.Object[] params, int start, int limit)

      返回分页参数的数组

      .
      参数:
      params - 参数数组
      start - 起始数
      limit - 数量
      返回:
      分页参数的数组
    • getPaginationSqlParameter

      java.util.Map<java.lang.String,​java.lang.Object> getPaginationSqlParameter​(java.util.Map<java.lang.String,​java.lang.Object> params, int start, int limit)

      返回分页参数的MAP

      .
      参数:
      params - 参数MAP
      start - 起始数
      limit - 数量
      返回:
      分页参数的MAP
    • getParamNamedPaginationSql

      java.lang.String getParamNamedPaginationSql​(java.lang.String sql, int start, int limit)

      转换普通命名sql为带分页的sql,此sql为带命名参数sql, 如select * from user where user_name = :username

      .
      参数:
      sql - 带转换的sql
      start - 起始数
      limit - 数量
      返回:
      返回转换好的分页sql
    • getParamNamedPaginationSql

      java.lang.String getParamNamedPaginationSql​(java.lang.String sql, int start, int limit, char startSymbol)

      转换普通命名sql为带分页的sql,此sql为带命名参数sql, 如select * from user where user_name = {startSymal}username.

      .
      参数:
      sql - 带转换的sql
      start - 起始数
      limit - 数量
      startSymbol - 命名参数的起始符号
      返回:
      返回转换好的分页sql
    • valueToSql

      java.lang.String valueToSql​(java.lang.Object value, int sqlType)

      转换为SQL语句中使用的字符串

      .
      参数:
      value - 值
      sqlType - sql类型
      返回:
      the string
    • wrapName

      java.lang.String wrapName​(java.lang.String name)

      包装名称,避免关键字问题

      .
      参数:
      name - 名称(列明,表名等)
      返回:
      包装后的名称
    • isAutoGenerateKeyBatch

      default boolean isAutoGenerateKeyBatch()
      Checks if is auto generate key batch.
      返回:
      true, if is auto generate key batch
    • isInsertBatch

      default boolean isInsertBatch()
      Checks if is insert batch.
      返回:
      true, if is insert batch
    • getInitSqlHeader

      java.lang.String getInitSqlHeader()
      Gets the inits the sql header.
      返回:
      the inits the sql header
    • getInitSqlFooter

      java.lang.String getInitSqlFooter()
      Gets the inits the sql footer.
      返回:
      the inits the sql footer
    • buildInsertBatchSql

      default java.lang.String buildInsertBatchSql​(java.lang.String tableName, java.lang.String[] columnNames, int insertAmount)
      dialect for database supports batch insert.
      参数:
      tableName - the table name
      columnNames - the column names
      insertAmount - the insert amount
      返回:
      the string
    • isKeywordsUppercase

      default boolean isKeywordsUppercase()
      Checks if is keywords uppercase.
      返回:
      true, if is keywords uppercase
    • isTableAndColumnNameUppercase

      default boolean isTableAndColumnNameUppercase()
      Checks if is table and column name uppercase.
      返回:
      true, if is table and column name uppercase
    • getKeywords

      default Dialect.Keyworld getKeywords()
      get converted keywords.
      返回:
      sql key words
    • getKeyword

      default java.lang.String getKeyword​(cn.featherfly.common.repository.operate.SortOperator keywords)
      get converted keywords.
      参数:
      keywords - sql keywords
      返回:
      sql key words
    • getKeyword

      default java.lang.String getKeyword​(cn.featherfly.common.repository.operate.LogicOperator keywords)
      get converted keywords.
      参数:
      keywords - sql keywords
      返回:
      sql key words
    • getKeyword

      default java.lang.String getKeyword​(Keywords keywords)
      get converted keywords.
      参数:
      keywords - sql keywords
      返回:
      sql key words
    • getFunction

      default java.lang.String getFunction​(cn.featherfly.common.repository.operate.Function function)
      get converted aggregate function.
      参数:
      function - aggregate function
      返回:
      sql aggregate function
    • buildColumnSql

      default java.lang.String buildColumnSql​(java.lang.String columnName, cn.featherfly.common.repository.operate.Function function)
      build sql for column with aggregate function.
      参数:
      columnName - columnName
      function - function
      返回:
      sql
    • buildColumnSql

      default java.lang.String buildColumnSql​(java.lang.String columnName, cn.featherfly.common.repository.operate.AggregateFunction aggregateFunction)
      build sql for column with aggregate function.
      参数:
      columnName - columnName
      aggregateFunction - aggregateFunction
      返回:
      sql
    • buildColumnSql

      default java.lang.String buildColumnSql​(java.lang.String columnName, java.lang.String tableAlias)
      build sql for column with aggregate function.
      参数:
      columnName - columnName
      tableAlias - tableAlias
      返回:
      sql
    • buildColumnSql

      default java.lang.String buildColumnSql​(java.lang.String columnName, java.lang.String tableAlias, java.lang.String asName)
      build sql for column with aggregate function.
      参数:
      columnName - columnName
      tableAlias - tableAlias
      asName - asName
      返回:
      sql
    • buildColumnSql

      default java.lang.String buildColumnSql​(java.lang.String columnName, java.lang.String tableAlias, cn.featherfly.common.repository.operate.AggregateFunction aggregateFunction)
      build sql for column with tableAlias and aggregate function.
      参数:
      columnName - columnName
      tableAlias - tableAlias
      aggregateFunction - aggregateFunction
      返回:
      sql
    • buildColumnSql

      default java.lang.String buildColumnSql​(java.lang.String columnName, java.lang.String tableAlias, cn.featherfly.common.repository.operate.AggregateFunction aggregateFunction, java.lang.String asName)
      build sql for column with tableAlias and aggregate function.
      参数:
      columnName - columnName
      tableAlias - tableAlias
      aggregateFunction - aggregateFunction
      asName - asName
      返回:
      sql
    • buildColumnSql

      default java.lang.String buildColumnSql​(java.lang.String columnName, java.lang.String tableAlias, cn.featherfly.common.repository.operate.Function function)
      build sql for column with tableAlias and aggregate function.
      参数:
      columnName - columnName
      tableAlias - tableAlias
      function - function
      返回:
      sql
    • convertTableOrColumnName

      default java.lang.String convertTableOrColumnName​(java.lang.String tableOrColumnName)
      convert column or table name if necessary.
      参数:
      tableOrColumnName - column or table name
      返回:
      sql
    • buildTableSql

      default java.lang.String buildTableSql​(TableElement table)
      build sql for table.
      参数:
      table - table
      返回:
      sql
    • buildTableSql

      default java.lang.String buildTableSql​(java.lang.String tableName)
      build sql for table.
      参数:
      tableName - tableName
      返回:
      sql
    • buildTableSql

      default java.lang.String buildTableSql​(java.lang.String tableName, java.lang.String tableAlias)
      build sql for table with tableAlias.
      参数:
      tableName - tableName
      tableAlias - tableAlias
      返回:
      sql
    • buildCreateDataBaseDDL

      default java.lang.String buildCreateDataBaseDDL​(java.lang.String dataBaseName)
      Builds the create data base sql.
      参数:
      dataBaseName - the data base name
      返回:
      the string
    • buildDropDataBaseDDL

      default java.lang.String buildDropDataBaseDDL​(java.lang.String dataBaseName)
      Builds the drop data base sql.
      参数:
      dataBaseName - the data base name
      返回:
      the string
    • buildDropDataBaseDDL

      default java.lang.String buildDropDataBaseDDL​(java.lang.String dataBaseName, boolean ifExists)
      Builds the drop data base sql.
      参数:
      dataBaseName - the data base name
      ifExists - the if exists
      返回:
      the string
    • buildCreateSchemaDDL

      default java.lang.String buildCreateSchemaDDL​(java.lang.String schemaName)
      Builds the create schema DDL.
      参数:
      schemaName - the schema name
      返回:
      the string
    • buildDropSchemaDDL

      default java.lang.String buildDropSchemaDDL​(java.lang.String schemaName)
      Builds the drop schema DDL.
      参数:
      schemaName - the schema name
      返回:
      the string
    • buildDropSchemaDDL

      default java.lang.String buildDropSchemaDDL​(java.lang.String schemaName, boolean ifExists)
      Builds the drop schema DDL.
      参数:
      schemaName - the schema name
      ifExists - the if exists
      返回:
      the string
    • buildCreateTableDDL

      java.lang.String buildCreateTableDDL​(Table table)
      Builds the create table sql.
      参数:
      table - the table
      返回:
      the string
    • buildDropTableDDL

      default java.lang.String buildDropTableDDL​(java.lang.String tableName)
      Builds the drop table sql.
      参数:
      tableName - the table name
      返回:
      the string
    • buildDropTableDDL

      default java.lang.String buildDropTableDDL​(java.lang.String tableName, boolean ifExists)
      Builds the drop table sql.
      参数:
      tableName - the table name
      ifExists - the if exists
      返回:
      the string
    • buildDropTableDDL

      default java.lang.String buildDropTableDDL​(java.lang.String schema, java.lang.String tableName)
      Builds the drop table sql.
      参数:
      schema - the schema
      tableName - the table name
      返回:
      the string
    • buildDropTableDDL

      default java.lang.String buildDropTableDDL​(java.lang.String schema, java.lang.String tableName, boolean ifExists)
      Builds the drop table sql.
      参数:
      schema - the database schema
      tableName - the table name
      ifExists - the if exists
      返回:
      the string
    • buildDropTableDDL

      default java.lang.String buildDropTableDDL​(java.lang.String schema, java.lang.String tableName, boolean ifExists, boolean cascade)
      Builds the drop table sql.
      参数:
      schema - the database schema
      tableName - the table name
      ifExists - the if exists
      cascade - the cascade
      返回:
      the string
    • buildAlterTableDDL

      default java.lang.String buildAlterTableDDL​(java.lang.String tableName)
      Builds the alter table sql.
      参数:
      tableName - the table name
      返回:
      the string
    • buildAlterTableDDL

      default java.lang.String buildAlterTableDDL​(java.lang.String schema, java.lang.String tableName)
      Builds the alter table sql.
      参数:
      schema - the schema
      tableName - the table name
      返回:
      the string
    • buildAlterTableDDL

      java.lang.String buildAlterTableDDL​(java.lang.String schema, java.lang.String tableName, Column[] addColumns, Column[] modifyColumns, Column[] dropColumns)
      Builds the alter table DDL.
      参数:
      schema - the database name
      tableName - the table name
      addColumns - the add columns
      modifyColumns - the modify columns
      dropColumns - the drop columns
      返回:
      the string
    • buildAlterTableAddColumnDDL

      default java.lang.String buildAlterTableAddColumnDDL​(java.lang.String tableName, Column... columns)
      Builds the alter table add column DDL.
      参数:
      tableName - the table name
      columns - the columns
      返回:
      the string
    • buildAlterTableAddColumnDDL

      java.lang.String buildAlterTableAddColumnDDL​(java.lang.String schema, java.lang.String tableName, Column... columns)
      Builds the alter table add column DDL.
      参数:
      schema - the database name
      tableName - the table name
      columns - the columns
      返回:
      the string
    • buildAlterTableModifyColumnDDL

      default java.lang.String buildAlterTableModifyColumnDDL​(java.lang.String tableName, Column... columns)
      Builds the alter table modify column DDL.
      参数:
      tableName - the table name
      columns - the columns
      返回:
      the string
    • buildAlterTableModifyColumnDDL

      java.lang.String buildAlterTableModifyColumnDDL​(java.lang.String schema, java.lang.String tableName, Column... columns)
      Builds the alter table modify column DDL.
      参数:
      schema - the database name
      tableName - the table name
      columns - the columns
      返回:
      the string
    • buildAlterTableDropColumnDDL

      default java.lang.String buildAlterTableDropColumnDDL​(Column column)
      Builds the alter table drop column DDL.
      参数:
      column - the column
      返回:
      the string
    • buildAlterTableDropColumnDDL

      default java.lang.String buildAlterTableDropColumnDDL​(java.lang.String tableName, Column... columns)
      Builds the alter table drop column DDL.
      参数:
      tableName - the table name
      columns - the columns
      返回:
      the string
    • buildAlterTableDropColumnDDL

      java.lang.String buildAlterTableDropColumnDDL​(java.lang.String schema, java.lang.String tableName, Column... columns)
      Builds the alter table drop column DDL.
      参数:
      schema - the database name
      tableName - the table name
      columns - the columns
      返回:
      the string
    • buildAlterTableDropColumnDDL

      java.lang.String buildAlterTableDropColumnDDL​(java.lang.String schema, java.lang.String tableName, java.lang.String... columnNames)
      Builds the alter table drop column DDL.
      参数:
      schema - the database name
      tableName - the table name
      columnNames - the column names
      返回:
      the string
    • buildDropViewDDL

      default java.lang.String buildDropViewDDL​(java.lang.String viewName)
      Builds the drop view sql.
      参数:
      viewName - the view name
      返回:
      the string
    • buildDropViewDDL

      default java.lang.String buildDropViewDDL​(java.lang.String schema, java.lang.String viewName)
      Builds the drop view sql.
      参数:
      schema - the database name
      viewName - the view name
      返回:
      the string
    • buildDropViewDDL

      default java.lang.String buildDropViewDDL​(java.lang.String schema, java.lang.String viewName, boolean ifExists)
      Builds the drop view sql.
      参数:
      schema - the database name
      viewName - the view name
      ifExists - the if exists
      返回:
      the string
    • buildDropDDL

      default java.lang.String buildDropDDL​(java.lang.String schema, java.lang.String name, Keywords type, boolean ifExists)
      Builds the drop DDL.
      参数:
      schema - the schema
      name - the name
      type - the type
      ifExists - the if exists
      返回:
      the string
    • buildCreateIndexDDL

      default java.lang.String buildCreateIndexDDL​(java.lang.String tableName, java.lang.String indexName, java.lang.String[] columns)
      Builds the create index DDL.
      参数:
      tableName - the table name
      indexName - the index name
      columns - the columns
      返回:
      the string
    • buildCreateIndexDDL

      default java.lang.String buildCreateIndexDDL​(java.lang.String tableName, java.lang.String indexName, java.lang.String[] columns, boolean unique)
      Builds the create index DDL.
      参数:
      tableName - the table name
      indexName - the index name
      columns - the columns
      unique - the unique
      返回:
      the string
    • buildCreateIndexDDL

      default java.lang.String buildCreateIndexDDL​(java.lang.String schema, java.lang.String tableName, java.lang.String indexName, java.lang.String[] columns)
      Builds the create index DDL.
      参数:
      schema - the schema
      tableName - the table name
      indexName - the index name
      columns - the columns
      返回:
      the string
    • buildCreateIndexDDL

      default java.lang.String buildCreateIndexDDL​(java.lang.String schema, java.lang.String tableName, java.lang.String indexName, java.lang.String[] columns, boolean unique)
      Builds the create index DDL.
      参数:
      schema - the schema
      tableName - the table name
      indexName - the index name
      columns - the columns
      unique - the unique
      返回:
      the string
    • buildDropIndexDDL

      default java.lang.String buildDropIndexDDL​(java.lang.String tableName, java.lang.String indexName)
      Builds the drop index sql.
      参数:
      tableName - the table name
      indexName - the index name
      返回:
      the string
    • buildDropIndexDDL

      default java.lang.String buildDropIndexDDL​(java.lang.String tableName, java.lang.String indexName, boolean ifExists)
      Builds the drop index sql.
      参数:
      tableName - the table name
      indexName - the index name
      ifExists - the if exists
      返回:
      the string
    • buildDropIndexDDL

      default java.lang.String buildDropIndexDDL​(java.lang.String schema, java.lang.String tableName, java.lang.String indexName)
      Builds the drop index sql.
      参数:
      schema - the schema
      tableName - the table name
      indexName - the index name
      返回:
      the string
    • buildDropIndexDDL

      default java.lang.String buildDropIndexDDL​(java.lang.String schema, java.lang.String tableName, java.lang.String indexName, boolean ifExists)
      Builds the drop index sql.
      参数:
      schema - the schema
      tableName - the table name
      indexName - the index name
      ifExists - the if exists
      返回:
      the string
    • getColumnTypeName

      default java.lang.String getColumnTypeName​(java.sql.SQLType sqlType)
      Gets the column type name.
      参数:
      sqlType - the sql type
      返回:
      the column type name
    • getDefaultSchema

      default java.lang.String getDefaultSchema​(java.lang.String catalog)
      Gets the default schema.
      参数:
      catalog - the catalog
      返回:
      the default schema
    • getDefaultSize

      default int getDefaultSize​(java.sql.SQLType sqlType)
      Gets the default size.
      参数:
      sqlType - the sql type
      返回:
      the default size
    • getPrimaryKeyIndexName

      default java.lang.String getPrimaryKeyIndexName()
      Gets the primary key index name.
      返回:
      the primary key index name
    • getWrapSign

      java.lang.String getWrapSign()
      Gets the wrap sign.
      返回:
      the wrap sign