Class AbstractTableBuilder<TABLE_BUILDER extends AbstractTableBuilder>

Type Parameters:
TABLE_BUILDER - the generic type
All Implemented Interfaces:
ISqlBuilder, ISqlKeywords
Direct Known Subclasses:
AlterTableBuilder, CreateTableBuilder, CreateTemporaryTableBuilder

public abstract class AbstractTableBuilder<TABLE_BUILDER extends AbstractTableBuilder> extends AbstractCreateSqlBuilder
The Create Table Builder.
  • Field Details

    • columns

      protected final List<String[]> columns
      The columns.
  • Constructor Details

    • AbstractTableBuilder

      public AbstractTableBuilder(ISqlDialect dialect, String table)
      Instantiates a new creates the table builder.
      Parameters:
      dialect - the dialect
      table - the table
  • Method Details

    • unique

      public TABLE_BUILDER unique(String name, String[] columns)
      Unique.
      Parameters:
      name - the name
      columns - the columns
      Returns:
      the table builder
    • unique

      public TABLE_BUILDER unique(String name, String[] columns, String type, String order)
      Unique.
      Parameters:
      name - the name
      columns - the columns
      type - the type
      order - the order
      Returns:
      the table builder
    • primaryKey

      public TABLE_BUILDER primaryKey(String name, String[] columns)
      Primary key.
      Parameters:
      name - the name
      columns - the columns
      Returns:
      the table builder
    • primaryKey

      public TABLE_BUILDER primaryKey(String[] columns)
      Primary key.
      Parameters:
      columns - the columns
      Returns:
      the table builder
    • foreignKey

      public TABLE_BUILDER foreignKey(String name, String[] columns, String referencedTable, String referencedTableSchema, String[] referencedColumns)
      Foreign key.
      Parameters:
      name - the name
      columns - the columns
      referencedTable - the referenced table
      referencedTableSchema - the referenced table schema
      referencedColumns - the referenced columns
      Returns:
      the table builder
    • check

      public TABLE_BUILDER check(String name, String expression)
      Check.
      Parameters:
      name - the name
      expression - the expression
      Returns:
      the table builder
    • index

      public TABLE_BUILDER index(String name, Boolean isUnique, String order, String type, Set<String> columns)
      Index.
      Parameters:
      name - the name
      isUnique - whether the index is unique
      order - the order
      type - the type
      columns - the list of the columns names
      Returns:
      the table builder
    • getTable

      protected String getTable()
      Gets the table.
      Returns:
      the table
    • getColumns

      protected List<String[]> getColumns()
      Gets the columns.
      Returns:
      the columns
    • column

      public TABLE_BUILDER column(String name, DataType type, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, Boolean isIdentity, Boolean isFuzzyIndexEnabled, String... args)
      Column.
      Parameters:
      name - the name
      type - the type
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      isIdentity - the is identity
      isFuzzyIndexEnabled - the is fuzzy index enabled
      args - the args
      Returns:
      the creates the table builder
    • column

      public TABLE_BUILDER column(String name, DataType type, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, Boolean isFuzzyIndexEnabled, String... args)
      Column.
      Parameters:
      name - the name
      type - the type
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      isFuzzyIndexEnabled - the is fuzzy index enabled
      args - the args
      Returns:
      the creates the table builder
    • column

      public TABLE_BUILDER column(String name, DataType type, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String... args)
      Column.
      Parameters:
      name - the name
      type - the type
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      args - the args
      Returns:
      the creates the table builder
    • column

      public TABLE_BUILDER column(String name, DataType type, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)
      Column.
      Parameters:
      name - the name
      type - the type
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      Returns:
      the creates the table builder
    • column

      public TABLE_BUILDER column(String name, DataType type, Boolean isPrimaryKey, Boolean isNullable)
      Column.
      Parameters:
      name - the name
      type - the type
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      Returns:
      the creates the table builder
    • column

      public TABLE_BUILDER column(String name, DataType type, Boolean isPrimaryKey)
      Column.
      Parameters:
      name - the name
      type - the type
      isPrimaryKey - the is primary key
      Returns:
      the creates the table builder
    • column

      public TABLE_BUILDER column(String name, DataType type)
      Column.
      Parameters:
      name - the name
      type - the type
      Returns:
      the creates the table builder
    • column

      public TABLE_BUILDER column(String name, int type, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String... args)
      Column.
      Parameters:
      name - the name
      type - the type
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      args - the args
      Returns:
      the creates the table builder
    • column

      public TABLE_BUILDER column(String name, int type, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)
      Column.
      Parameters:
      name - the name
      type - the type
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      Returns:
      the creates the table builder
    • column

      public TABLE_BUILDER column(String name, int type, Boolean isPrimaryKey, Boolean isNullable)
      Column.
      Parameters:
      name - the name
      type - the type
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      Returns:
      the creates the table builder
    • column

      public TABLE_BUILDER column(String name, int type, Boolean isPrimaryKey)
      Column.
      Parameters:
      name - the name
      type - the type
      isPrimaryKey - the is primary key
      Returns:
      the creates the table builder
    • column

      public TABLE_BUILDER column(String name, int type)
      Column.
      Parameters:
      name - the name
      type - the type
      Returns:
      the creates the table builder
    • column

      public TABLE_BUILDER column(String name, int type, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String args)
      Column.
      Parameters:
      name - the name
      type - the type
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      args - the args
      Returns:
      the creates the table builder
    • column

      public TABLE_BUILDER column(String name, Double type, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String... args)
      Column.
      Parameters:
      name - the name
      type - the type
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      args - the args
      Returns:
      the creates the table builder
    • column

      public TABLE_BUILDER column(String name, Double type, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)
      Column.
      Parameters:
      name - the name
      type - the type
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      Returns:
      the creates the table builder
    • column

      public TABLE_BUILDER column(String name, Double type, Boolean isPrimaryKey, Boolean isNullable)
      Column.
      Parameters:
      name - the name
      type - the type
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      Returns:
      the creates the table builder
    • column

      public TABLE_BUILDER column(String name, Double type, Boolean isPrimaryKey)
      Column.
      Parameters:
      name - the name
      type - the type
      isPrimaryKey - the is primary key
      Returns:
      the creates the table builder
    • column

      public TABLE_BUILDER column(String name, Double type)
      Column.
      Parameters:
      name - the name
      type - the type
      Returns:
      the creates the table builder
    • column

      public TABLE_BUILDER column(String name, Double type, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String args)
      Column.
      Parameters:
      name - the name
      type - the type
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      args - the args
      Returns:
      the creates the table builder
    • column

      public TABLE_BUILDER column(String name, String type, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String... args)
      Column.
      Parameters:
      name - the name
      type - the type
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      args - the args
      Returns:
      the creates the table builder
    • column

      public TABLE_BUILDER column(String name, String type, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)
      Column.
      Parameters:
      name - the name
      type - the type
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      Returns:
      the creates the table builder
    • column

      public TABLE_BUILDER column(String name, String type, Boolean isPrimaryKey, Boolean isNullable)
      Column.
      Parameters:
      name - the name
      type - the type
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      Returns:
      the creates the table builder
    • column

      public TABLE_BUILDER column(String name, String type, Boolean isPrimaryKey)
      Column.
      Parameters:
      name - the name
      type - the type
      isPrimaryKey - the is primary key
      Returns:
      the creates the table builder
    • column

      public TABLE_BUILDER column(String name, String type)
      Column.
      Parameters:
      name - the name
      type - the type
      Returns:
      the creates the table builder
    • column

      public TABLE_BUILDER column(String name, String type, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String args)
      Column.
      Parameters:
      name - the name
      type - the type
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      args - the args
      Returns:
      the creates the table builder
    • columnVarchar

      public TABLE_BUILDER columnVarchar(String name, int length, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, Boolean isIdentity, String... args)
      Column varchar.
      Parameters:
      name - the name
      length - the length
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      isIdentity - the is identity
      args - the args
      Returns:
      the creates the table builder
    • columnVarchar

      public TABLE_BUILDER columnVarchar(String name, int length, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, Boolean isIdentity, String args)
      Column varchar.
      Parameters:
      name - the name
      length - the length
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      isIdentity - the is identity
      args - the args
      Returns:
      the creates the table builder
    • columnVarchar

      public TABLE_BUILDER columnVarchar(String name, int length, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, Boolean isIdentity)
      Column varchar.
      Parameters:
      name - the name
      length - the length
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      isIdentity - the is unique
      Returns:
      the creates the table builder
    • columnVarchar

      public TABLE_BUILDER columnVarchar(String name, int length, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)
      Column varchar.
      Parameters:
      name - the name
      length - the length
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      Returns:
      the creates the table builder
    • columnVarchar

      public TABLE_BUILDER columnVarchar(String name, int length, Boolean isPrimaryKey, Boolean isNullable)
      Column varchar.
      Parameters:
      name - the name
      length - the length
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      Returns:
      the creates the table builder
    • columnVarchar

      public TABLE_BUILDER columnVarchar(String name, int length, Boolean isPrimaryKey)
      Column varchar.
      Parameters:
      name - the name
      length - the length
      isPrimaryKey - the is primary key
      Returns:
      the creates the table builder
    • columnVarchar

      public TABLE_BUILDER columnVarchar(String name, int length)
      Column varchar.
      Parameters:
      name - the name
      length - the length
      Returns:
      the creates the table builder
    • columnNvarchar

      public TABLE_BUILDER columnNvarchar(String name, int length, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, Boolean isIdentity, String... args)
      Column nvarchar.
      Parameters:
      name - the name
      length - the length
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      isIdentity - the is identity
      args - the args
      Returns:
      the creates the table builder
    • columnNvarchar

      public TABLE_BUILDER columnNvarchar(String name, int length, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, Boolean isIdentity, String args)
      Column nvarchar.
      Parameters:
      name - the name
      length - the length
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      isIdentity - the is identity
      args - the args
      Returns:
      the creates the table builder
    • columnNvarchar

      public TABLE_BUILDER columnNvarchar(String name, int length, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, Boolean isIdentity)
      Column nvarchar.
      Parameters:
      name - the name
      length - the length
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      isIdentity - the is unique
      Returns:
      the creates the table builder
    • columnNvarchar

      public TABLE_BUILDER columnNvarchar(String name, int length, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)
      Column nvarchar.
      Parameters:
      name - the name
      length - the length
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      Returns:
      the creates the table builder
    • columnNvarchar

      public TABLE_BUILDER columnNvarchar(String name, int length, Boolean isPrimaryKey, Boolean isNullable)
      Column nvarchar.
      Parameters:
      name - the name
      length - the length
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      Returns:
      the creates the table builder
    • columnNvarchar

      public TABLE_BUILDER columnNvarchar(String name, int length, Boolean isPrimaryKey)
      Column nvarchar.
      Parameters:
      name - the name
      length - the length
      isPrimaryKey - the is primary key
      Returns:
      the creates the table builder
    • columnNvarchar

      public TABLE_BUILDER columnNvarchar(String name, int length)
      Column nvarchar.
      Parameters:
      name - the name
      length - the length
      Returns:
      the creates the table builder
    • columnChar

      public TABLE_BUILDER columnChar(String name, int length, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, Boolean isIdentity, String... args)
      Column char.
      Parameters:
      name - the name
      length - the length
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      isIdentity - the is identity
      args - the args
      Returns:
      the creates the table builder
    • columnChar

      public TABLE_BUILDER columnChar(String name, int length, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String args)
      Column char.
      Parameters:
      name - the name
      length - the length
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      args - the args
      Returns:
      the creates the table builder
    • columnChar

      public TABLE_BUILDER columnChar(String name, int length, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)
      Column char.
      Parameters:
      name - the name
      length - the length
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      Returns:
      the creates the table builder
    • columnChar

      public TABLE_BUILDER columnChar(String name, int length, Boolean isPrimaryKey, Boolean isNullable)
      Column char.
      Parameters:
      name - the name
      length - the length
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      Returns:
      the creates the table builder
    • columnChar

      public TABLE_BUILDER columnChar(String name, int length, Boolean isPrimaryKey)
      Column char.
      Parameters:
      name - the name
      length - the length
      isPrimaryKey - the is primary key
      Returns:
      the creates the table builder
    • columnChar

      public TABLE_BUILDER columnChar(String name, int length)
      Column char.
      Parameters:
      name - the name
      length - the length
      Returns:
      the creates the table builder
    • columnDate

      public TABLE_BUILDER columnDate(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String... args)
      Column date.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      args - the args
      Returns:
      the creates the table builder
    • columnDate

      public TABLE_BUILDER columnDate(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String args)
      Column date.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      args - the args
      Returns:
      the creates the table builder
    • columnDate

      public TABLE_BUILDER columnDate(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)
      Column date.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      Returns:
      the creates the table builder
    • columnDate

      public TABLE_BUILDER columnDate(String name, Boolean isPrimaryKey, Boolean isNullable)
      Column date.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      Returns:
      the creates the table builder
    • columnDate

      public TABLE_BUILDER columnDate(String name, Boolean isPrimaryKey)
      Column date.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      Returns:
      the creates the table builder
    • columnDate

      public TABLE_BUILDER columnDate(String name)
      Column date.
      Parameters:
      name - the name
      Returns:
      the creates the table builder
    • columnTime

      public TABLE_BUILDER columnTime(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String... args)
      Column time.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      args - the args
      Returns:
      the creates the table builder
    • columnTime

      public TABLE_BUILDER columnTime(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String args)
      Column time.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      args - the args
      Returns:
      the creates the table builder
    • columnTime

      public TABLE_BUILDER columnTime(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)
      Column time.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      Returns:
      the creates the table builder
    • columnTime

      public TABLE_BUILDER columnTime(String name, Boolean isPrimaryKey, Boolean isNullable)
      Column time.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      Returns:
      the creates the table builder
    • columnTime

      public TABLE_BUILDER columnTime(String name, Boolean isPrimaryKey)
      Column time.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      Returns:
      the creates the table builder
    • columnTime

      public TABLE_BUILDER columnTime(String name)
      Column time.
      Parameters:
      name - the name
      Returns:
      the creates the table builder
    • columnTimestamp

      public TABLE_BUILDER columnTimestamp(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String... args)
      Column timestamp.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      args - the args
      Returns:
      the creates the table builder
    • columnTimestamp

      public TABLE_BUILDER columnTimestamp(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String args)
      Column timestamp.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      args - the args
      Returns:
      the creates the table builder
    • columnTimestamp

      public TABLE_BUILDER columnTimestamp(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)
      Column timestamp.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      Returns:
      the creates the table builder
    • columnTimestamp

      public TABLE_BUILDER columnTimestamp(String name, Boolean isPrimaryKey, Boolean isNullable)
      Column timestamp.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      Returns:
      the creates the table builder
    • columnTimestamp

      public TABLE_BUILDER columnTimestamp(String name, Boolean isPrimaryKey)
      Column timestamp.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      Returns:
      the creates the table builder
    • columnTimestamp

      public TABLE_BUILDER columnTimestamp(String name)
      Column timestamp.
      Parameters:
      name - the name
      Returns:
      the creates the table builder
    • columnInteger

      public TABLE_BUILDER columnInteger(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, Boolean isIdentity, String... args)
      Column integer.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      isIdentity - the is identity
      args - the args
      Returns:
      the creates the table builder
    • columnInteger

      public TABLE_BUILDER columnInteger(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, Boolean isIdentity, String args)
      Column integer.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      isIdentity - the is identity
      args - the args
      Returns:
      the creates the table builder
    • columnInteger

      public TABLE_BUILDER columnInteger(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)
      Column integer.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      Returns:
      the creates the table builder
    • columnInteger

      public TABLE_BUILDER columnInteger(String name, Boolean isPrimaryKey, Boolean isNullable)
      Column integer.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      Returns:
      the creates the table builder
    • columnInteger

      public TABLE_BUILDER columnInteger(String name, Boolean isPrimaryKey)
      Column integer.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      Returns:
      the creates the table builder
    • columnInteger

      public TABLE_BUILDER columnInteger(String name)
      Column integer.
      Parameters:
      name - the name
      Returns:
      the creates the table builder
    • columnTinyint

      public TABLE_BUILDER columnTinyint(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String... args)
      Column tinyint.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      args - the args
      Returns:
      the creates the table builder
    • columnTinyint

      public TABLE_BUILDER columnTinyint(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String args)
      Column tinyint.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      args - the args
      Returns:
      the creates the table builder
    • columnTinyint

      public TABLE_BUILDER columnTinyint(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)
      Column tinyint.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      Returns:
      the creates the table builder
    • columnTinyint

      public TABLE_BUILDER columnTinyint(String name, Boolean isPrimaryKey, Boolean isNullable)
      Column tinyint.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      Returns:
      the creates the table builder
    • columnTinyint

      public TABLE_BUILDER columnTinyint(String name, Boolean isPrimaryKey)
      Column tinyint.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      Returns:
      the creates the table builder
    • columnTinyint

      public TABLE_BUILDER columnTinyint(String name)
      Column tinyint.
      Parameters:
      name - the name
      Returns:
      the creates the table builder
    • columnBigint

      public TABLE_BUILDER columnBigint(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, Boolean isIdentity, String... args)
      Column bigint.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      isIdentity - the is identity
      args - the args
      Returns:
      the creates the table builder
    • columnBigint

      public TABLE_BUILDER columnBigint(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, Boolean isIdentity, String args)
      Column bigint.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      isIdentity - the is identity
      args - the args
      Returns:
      the creates the table builder
    • columnBigint

      public TABLE_BUILDER columnBigint(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)
      Column bigint.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      Returns:
      the creates the table builder
    • columnBigint

      public TABLE_BUILDER columnBigint(String name, Boolean isPrimaryKey, Boolean isNullable)
      Column bigint.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      Returns:
      the creates the table builder
    • columnBigint

      public TABLE_BUILDER columnBigint(String name, Boolean isPrimaryKey)
      Column bigint.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      Returns:
      the creates the table builder
    • columnBigint

      public TABLE_BUILDER columnBigint(String name)
      Column bigint.
      Parameters:
      name - the name
      Returns:
      the creates the table builder
    • columnSmallint

      public TABLE_BUILDER columnSmallint(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String... args)
      Column smallint.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      args - the args
      Returns:
      the creates the table builder
    • columnSmallint

      public TABLE_BUILDER columnSmallint(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String args)
      Column smallint.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      args - the args
      Returns:
      the creates the table builder
    • columnSmallint

      public TABLE_BUILDER columnSmallint(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)
      Column smallint.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      Returns:
      the creates the table builder
    • columnSmallint

      public TABLE_BUILDER columnSmallint(String name, Boolean isPrimaryKey, Boolean isNullable)
      Column smallint.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      Returns:
      the creates the table builder
    • columnSmallint

      public TABLE_BUILDER columnSmallint(String name, Boolean isPrimaryKey)
      Column smallint.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      Returns:
      the creates the table builder
    • columnSmallint

      public TABLE_BUILDER columnSmallint(String name)
      Column smallint.
      Parameters:
      name - the name
      Returns:
      the creates the table builder
    • columnReal

      public TABLE_BUILDER columnReal(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String... args)
      Column real.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      args - the args
      Returns:
      the creates the table builder
    • columnReal

      public TABLE_BUILDER columnReal(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String args)
      Column real.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      args - the args
      Returns:
      the creates the table builder
    • columnReal

      public TABLE_BUILDER columnReal(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)
      Column real.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      Returns:
      the creates the table builder
    • columnReal

      public TABLE_BUILDER columnReal(String name, Boolean isPrimaryKey, Boolean isNullable)
      Column real.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      Returns:
      the creates the table builder
    • columnReal

      public TABLE_BUILDER columnReal(String name, Boolean isPrimaryKey)
      Column real.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      Returns:
      the creates the table builder
    • columnReal

      public TABLE_BUILDER columnReal(String name)
      Column real.
      Parameters:
      name - the name
      Returns:
      the creates the table builder
    • columnFloat

      public TABLE_BUILDER columnFloat(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String... args)
      Column float.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      args - the args
      Returns:
      the creates the table builder
    • columnFloat

      public TABLE_BUILDER columnFloat(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String args)
      Column float.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      args - the args
      Returns:
      the creates the table builder
    • columnFloat

      public TABLE_BUILDER columnFloat(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)
      Column float.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      Returns:
      the creates the table builder
    • columnFloat

      public TABLE_BUILDER columnFloat(String name, Boolean isPrimaryKey, Boolean isNullable)
      Column float.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      Returns:
      the creates the table builder
    • columnFloat

      public TABLE_BUILDER columnFloat(String name, Boolean isPrimaryKey)
      Column float.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      Returns:
      the creates the table builder
    • columnFloat

      public TABLE_BUILDER columnFloat(String name)
      Column float.
      Parameters:
      name - the name
      Returns:
      the creates the table builder
    • columnDouble

      public TABLE_BUILDER columnDouble(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String... args)
      Column double.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      args - the args
      Returns:
      the creates the table builder
    • columnDouble

      public TABLE_BUILDER columnDouble(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String args)
      Column double.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      args - the args
      Returns:
      the creates the table builder
    • columnDouble

      public TABLE_BUILDER columnDouble(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)
      Column double.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      Returns:
      the creates the table builder
    • columnDouble

      public TABLE_BUILDER columnDouble(String name, Boolean isPrimaryKey, Boolean isNullable)
      Column double.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      Returns:
      the creates the table builder
    • columnDouble

      public TABLE_BUILDER columnDouble(String name, Boolean isPrimaryKey)
      Column double.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      Returns:
      the creates the table builder
    • columnDouble

      public TABLE_BUILDER columnDouble(String name)
      Column double.
      Parameters:
      name - the name
      Returns:
      the creates the table builder
    • columnBoolean

      public TABLE_BUILDER columnBoolean(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String... args)
      Column boolean.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      args - the args
      Returns:
      the creates the table builder
    • columnBoolean

      public TABLE_BUILDER columnBoolean(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String args)
      Column boolean.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      args - the args
      Returns:
      the creates the table builder
    • columnBoolean

      public TABLE_BUILDER columnBoolean(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)
      Column boolean.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      Returns:
      the creates the table builder
    • columnBoolean

      public TABLE_BUILDER columnBoolean(String name, Boolean isPrimaryKey, Boolean isNullable)
      Column boolean.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      Returns:
      the creates the table builder
    • columnBoolean

      public TABLE_BUILDER columnBoolean(String name, Boolean isPrimaryKey)
      Column boolean.
      Parameters:
      name - the name
      isPrimaryKey - the is primary key
      Returns:
      the creates the table builder
    • columnBoolean

      public TABLE_BUILDER columnBoolean(String name)
      Column boolean.
      Parameters:
      name - the name
      Returns:
      the creates the table builder
    • columnBlob

      public TABLE_BUILDER columnBlob(String name, Boolean isNullable, String... args)
      Column blob.
      Parameters:
      name - the name
      isNullable - the is nullable
      args - the args
      Returns:
      the creates the table builder
    • columnBlob

      public TABLE_BUILDER columnBlob(String name, Boolean isNullable, String args)
      Column blob.
      Parameters:
      name - the name
      isNullable - the is nullable
      args - the args
      Returns:
      the creates the table builder
    • columnBlob

      public TABLE_BUILDER columnBlob(String name, Boolean isNullable)
      Column blob.
      Parameters:
      name - the name
      isNullable - the is nullable
      Returns:
      the creates the table builder
    • columnBlob

      public TABLE_BUILDER columnBlob(String name)
      Column blob.
      Parameters:
      name - the name
      Returns:
      the creates the table builder
    • columnDecimal

      public TABLE_BUILDER columnDecimal(String name, int length, int scale, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, Boolean isIdentity, String... args)
      Column decimal.
      Parameters:
      name - the name
      length - the length
      scale - the scale
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      isIdentity - the is identity
      args - the args
      Returns:
      the creates the table builder
    • columnDecimal

      public TABLE_BUILDER columnDecimal(String name, int length, int scale, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, Boolean isIdentity, String args)
      Column decimal.
      Parameters:
      name - the name
      length - the length
      scale - the scale
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      isIdentity - the is identity
      args - the args
      Returns:
      the creates the table builder
    • columnDecimal

      public TABLE_BUILDER columnDecimal(String name, int length, int scale, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)
      Column decimal.
      Parameters:
      name - the name
      length - the length
      scale - the scale
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      isUnique - the is unique
      Returns:
      the creates the table builder
    • columnDecimal

      public TABLE_BUILDER columnDecimal(String name, int length, int scale, Boolean isPrimaryKey, Boolean isNullable)
      Column decimal.
      Parameters:
      name - the name
      length - the length
      scale - the scale
      isPrimaryKey - the is primary key
      isNullable - the is nullable
      Returns:
      the creates the table builder
    • columnDecimal

      public TABLE_BUILDER columnDecimal(String name, int length, int scale, Boolean isPrimaryKey)
      Column decimal.
      Parameters:
      name - the name
      length - the length
      scale - the scale
      isPrimaryKey - the is primary key
      Returns:
      the creates the table builder
    • columnDecimal

      public TABLE_BUILDER columnDecimal(String name, int length, int scale)
      Column decimal.
      Parameters:
      name - the name
      length - the length
      scale - the scale
      Returns:
      the creates the table builder
    • columnBit

      public TABLE_BUILDER columnBit(String name, Boolean isNullable, String... args)
      Column bit.
      Parameters:
      name - the name
      isNullable - the is nullable
      args - the args
      Returns:
      the creates the table builder
    • columnBit

      public TABLE_BUILDER columnBit(String name, Boolean isNullable, String args)
      Column bit.
      Parameters:
      name - the name
      isNullable - the is nullable
      args - the args
      Returns:
      the creates the table builder
    • columnBit

      public TABLE_BUILDER columnBit(String name, Boolean isNullable)
      Column bit.
      Parameters:
      name - the name
      isNullable - the is nullable
      Returns:
      the creates the table builder
    • columnBit

      public TABLE_BUILDER columnBit(String name)
      Column bit.
      Parameters:
      name - the name
      Returns:
      the creates the table builder
    • columnVarbinary

      public TABLE_BUILDER columnVarbinary(String name, Boolean isNullable, String... args)
      Column varbinary.
      Parameters:
      name - the name
      isNullable - the is nullable
      args - the args
      Returns:
      the creates the table builder
    • columnVarbinary

      public TABLE_BUILDER columnVarbinary(String name, Boolean isNullable, String args)
      Column varbinary.
      Parameters:
      name - the name
      isNullable - the is nullable
      args - the args
      Returns:
      the creates the table builder
    • columnVarbinary

      public TABLE_BUILDER columnVarbinary(String name, Boolean isNullable)
      Column varbinary.
      Parameters:
      name - the name
      isNullable - the is nullable
      Returns:
      the creates the table builder
    • columnVarbinary

      public TABLE_BUILDER columnVarbinary(String name)
      Column varbinary.
      Parameters:
      name - the name
      Returns:
      the creates the table builder
    • generateTable

      protected void generateTable(StringBuilder sql)
      Generate table.
      Parameters:
      sql - the sql
    • generateColumns

      protected void generateColumns(StringBuilder sql)
      Generate columns.
      Parameters:
      sql - the sql
    • generateColumnNamesForDrop

      protected void generateColumnNamesForDrop(StringBuilder sql)
      Generate column names.
      Parameters:
      sql - the sql
    • generateColumnsForAlter

      protected void generateColumnsForAlter(StringBuilder sql)
      Generate columns for alter.
      Parameters:
      sql - the sql
    • traverseColumns

      protected String traverseColumns()
      Traverse columns.
      Returns:
      the string
    • traverseColumnsForAlter

      protected String traverseColumnsForAlter()
      Traverse columns for alter.
      Returns:
      the string
    • traverseColumnNamesForDrop

      protected String traverseColumnNamesForDrop()
      Traverse columns.
      Returns:
      the string
    • traverseNames

      protected String traverseNames(Set<String> names)
      Traverse column names.
      Parameters:
      names - the columns
      Returns:
      the string
    • splitValues

      protected String[] splitValues(String columns)
      Split values.
      Parameters:
      columns - the columns
      Returns:
      the string[]