Class AbstractTableBuilder<TABLE_BUILDER extends AbstractTableBuilder>
java.lang.Object
org.eclipse.dirigible.database.sql.builders.AbstractSqlBuilder
org.eclipse.dirigible.database.sql.builders.AbstractCreateSqlBuilder
org.eclipse.dirigible.database.sql.builders.table.AbstractTableBuilder<TABLE_BUILDER>
- All Implemented Interfaces:
ISqlBuilder,ISqlKeywords
- Direct Known Subclasses:
AlterTableBuilder,CreateTableBuilder
public abstract class AbstractTableBuilder<TABLE_BUILDER extends AbstractTableBuilder> extends AbstractCreateSqlBuilder
The Create Table Builder.
-
Field Summary
Fields inherited from interface org.eclipse.dirigible.database.sql.ISqlKeywords
ALTER, CLOSE, COMMA, EQUALS, FUNCTION_CURRENT_DATE, FUNCTION_CURRENT_TIME, FUNCTION_CURRENT_TIMESTAMP, KEYWORD_ADD, KEYWORD_ALTER, KEYWORD_AND, KEYWORD_AS, KEYWORD_ASC, KEYWORD_CHECK, KEYWORD_COLUMN, KEYWORD_CONSTRAINT, KEYWORD_CREATE, KEYWORD_DATABASE_DROP_RESTRICT, KEYWORD_DELETE, KEYWORD_DESC, KEYWORD_DISTINCT, KEYWORD_DROP, KEYWORD_FETCH, KEYWORD_FOR, KEYWORD_FOR_UPDATE, KEYWORD_FOREIGN, KEYWORD_FROM, KEYWORD_FULL, KEYWORD_GROUP_BY, KEYWORD_HAVING, KEYWORD_IDENTITY, KEYWORD_INDEX, KEYWORD_INNER, KEYWORD_INSERT, KEYWORD_INTO, KEYWORD_JOIN, KEYWORD_KEY, KEYWORD_LEFT, KEYWORD_LIMIT, KEYWORD_NEXT, KEYWORD_NEXT_VALUE_FOR, KEYWORD_NOT, KEYWORD_NULL, KEYWORD_OFFSET, KEYWORD_ON, KEYWORD_ONLY, KEYWORD_OR, KEYWORD_ORDER_BY, KEYWORD_OUTER, KEYWORD_PRIMARY, KEYWORD_PUBLIC, KEYWORD_REFERENCES, KEYWORD_RIGHT, KEYWORD_ROWS, KEYWORD_SELECT, KEYWORD_SEQUENCE, KEYWORD_SEQUENCE_CYCLE, KEYWORD_SEQUENCE_EMPTY_STRING_FOR_BOOLEAN_TYPES, KEYWORD_SEQUENCE_INCREMENT_BY, KEYWORD_SEQUENCE_MAXVALUE, KEYWORD_SEQUENCE_MINVALUE, KEYWORD_SEQUENCE_NO_MAXVALUE, KEYWORD_SEQUENCE_NO_MINVALUE, KEYWORD_SEQUENCE_RESET_BY, KEYWORD_SEQUENCE_RESTART_WITH, KEYWORD_SEQUENCE_START_WITH, KEYWORD_SET, KEYWORD_START, KEYWORD_SYNONYM, KEYWORD_TABLE, KEYWORD_UNION, KEYWORD_UNIQUE, KEYWORD_UPDATE, KEYWORD_VALUES, KEYWORD_VIEW, KEYWORD_WHERE, KEYWORD_WITH, METADATA_ALIAS, METADATA_CALC_VIEW, METADATA_GLOBAL_TEMPORARY, METADATA_LOCAL_TEMPORARY, METADATA_SYNONYM, METADATA_SYSTEM_TABLE, METADATA_TABLE, METADATA_TABLE_TYPES, METADATA_VIEW, OPEN, QUESTION, SPACE, STAR, TABLE, UNDERSCROE -
Constructor Summary
Constructors Constructor Description AbstractTableBuilder(ISqlDialect dialect, String table)Instantiates a new creates the table builder. -
Method Summary
Modifier and Type Method Description TABLE_BUILDERcolumn(String name, int type)Column.TABLE_BUILDERcolumn(String name, int type, Boolean isPrimaryKey)Column.TABLE_BUILDERcolumn(String name, int type, Boolean isPrimaryKey, Boolean isNullable)Column.TABLE_BUILDERcolumn(String name, int type, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)Column.TABLE_BUILDERcolumn(String name, int type, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String args)Column.TABLE_BUILDERcolumn(String name, int type, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String... args)Column.TABLE_BUILDERcolumn(String name, Double type)Column.TABLE_BUILDERcolumn(String name, Double type, Boolean isPrimaryKey)Column.TABLE_BUILDERcolumn(String name, Double type, Boolean isPrimaryKey, Boolean isNullable)Column.TABLE_BUILDERcolumn(String name, Double type, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)Column.TABLE_BUILDERcolumn(String name, Double type, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String args)Column.TABLE_BUILDERcolumn(String name, Double type, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String... args)Column.TABLE_BUILDERcolumn(String name, String type)Column.TABLE_BUILDERcolumn(String name, String type, Boolean isPrimaryKey)Column.TABLE_BUILDERcolumn(String name, String type, Boolean isPrimaryKey, Boolean isNullable)Column.TABLE_BUILDERcolumn(String name, String type, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)Column.TABLE_BUILDERcolumn(String name, String type, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String args)Column.TABLE_BUILDERcolumn(String name, String type, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String... args)Column.TABLE_BUILDERcolumn(String name, DataType type)Column.TABLE_BUILDERcolumn(String name, DataType type, Boolean isPrimaryKey)Column.TABLE_BUILDERcolumn(String name, DataType type, Boolean isPrimaryKey, Boolean isNullable)Column.TABLE_BUILDERcolumn(String name, DataType type, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)Column.TABLE_BUILDERcolumn(String name, DataType type, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, Boolean isIdentity, String... args)Column.TABLE_BUILDERcolumn(String name, DataType type, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String... args)Column.TABLE_BUILDERcolumnBigint(String name)Column bigint.TABLE_BUILDERcolumnBigint(String name, Boolean isPrimaryKey)Column bigint.TABLE_BUILDERcolumnBigint(String name, Boolean isPrimaryKey, Boolean isNullable)Column bigint.TABLE_BUILDERcolumnBigint(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)Column bigint.TABLE_BUILDERcolumnBigint(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, Boolean isIdentity, String args)Column bigint.TABLE_BUILDERcolumnBigint(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, Boolean isIdentity, String... args)Column bigint.TABLE_BUILDERcolumnBit(String name)Column bit.TABLE_BUILDERcolumnBit(String name, Boolean isNullable)Column bit.TABLE_BUILDERcolumnBit(String name, Boolean isNullable, String args)Column bit.TABLE_BUILDERcolumnBit(String name, Boolean isNullable, String... args)Column bit.TABLE_BUILDERcolumnBlob(String name)Column blob.TABLE_BUILDERcolumnBlob(String name, Boolean isNullable)Column blob.TABLE_BUILDERcolumnBlob(String name, Boolean isNullable, String args)Column blob.TABLE_BUILDERcolumnBlob(String name, Boolean isNullable, String... args)Column blob.TABLE_BUILDERcolumnBoolean(String name)Column boolean.TABLE_BUILDERcolumnBoolean(String name, Boolean isPrimaryKey)Column boolean.TABLE_BUILDERcolumnBoolean(String name, Boolean isPrimaryKey, Boolean isNullable)Column boolean.TABLE_BUILDERcolumnBoolean(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)Column boolean.TABLE_BUILDERcolumnBoolean(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String args)Column boolean.TABLE_BUILDERcolumnBoolean(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String... args)Column boolean.TABLE_BUILDERcolumnChar(String name, int length)Column char.TABLE_BUILDERcolumnChar(String name, int length, Boolean isPrimaryKey)Column char.TABLE_BUILDERcolumnChar(String name, int length, Boolean isPrimaryKey, Boolean isNullable)Column char.TABLE_BUILDERcolumnChar(String name, int length, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)Column char.TABLE_BUILDERcolumnChar(String name, int length, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, Boolean isIdentity, String... args)Column char.TABLE_BUILDERcolumnChar(String name, int length, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String args)Column char.TABLE_BUILDERcolumnDate(String name)Column date.TABLE_BUILDERcolumnDate(String name, Boolean isPrimaryKey)Column date.TABLE_BUILDERcolumnDate(String name, Boolean isPrimaryKey, Boolean isNullable)Column date.TABLE_BUILDERcolumnDate(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)Column date.TABLE_BUILDERcolumnDate(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String args)Column date.TABLE_BUILDERcolumnDate(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String... args)Column date.TABLE_BUILDERcolumnDecimal(String name, int precision, int scale)Column decimal.TABLE_BUILDERcolumnDecimal(String name, int precision, int scale, Boolean isPrimaryKey)Column decimal.TABLE_BUILDERcolumnDecimal(String name, int precision, int scale, Boolean isPrimaryKey, Boolean isNullable)Column decimal.TABLE_BUILDERcolumnDecimal(String name, int precision, int scale, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)Column decimal.TABLE_BUILDERcolumnDecimal(String name, int precision, int scale, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, Boolean isIdentity, String args)Column decimal.TABLE_BUILDERcolumnDecimal(String name, int precision, int scale, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, Boolean isIdentity, String... args)Column decimal.TABLE_BUILDERcolumnDouble(String name)Column double.TABLE_BUILDERcolumnDouble(String name, Boolean isPrimaryKey)Column double.TABLE_BUILDERcolumnDouble(String name, Boolean isPrimaryKey, Boolean isNullable)Column double.TABLE_BUILDERcolumnDouble(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)Column double.TABLE_BUILDERcolumnDouble(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String args)Column double.TABLE_BUILDERcolumnDouble(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String... args)Column double.TABLE_BUILDERcolumnFloat(String name)Column float.TABLE_BUILDERcolumnFloat(String name, Boolean isPrimaryKey)Column float.TABLE_BUILDERcolumnFloat(String name, Boolean isPrimaryKey, Boolean isNullable)Column float.TABLE_BUILDERcolumnFloat(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)Column float.TABLE_BUILDERcolumnFloat(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String args)Column float.TABLE_BUILDERcolumnFloat(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String... args)Column float.TABLE_BUILDERcolumnInteger(String name)Column integer.TABLE_BUILDERcolumnInteger(String name, Boolean isPrimaryKey)Column integer.TABLE_BUILDERcolumnInteger(String name, Boolean isPrimaryKey, Boolean isNullable)Column integer.TABLE_BUILDERcolumnInteger(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)Column integer.TABLE_BUILDERcolumnInteger(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, Boolean isIdentity, String args)Column integer.TABLE_BUILDERcolumnInteger(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, Boolean isIdentity, String... args)Column integer.TABLE_BUILDERcolumnNvarchar(String name, int length)Column nvarchar.TABLE_BUILDERcolumnNvarchar(String name, int length, Boolean isPrimaryKey)Column nvarchar.TABLE_BUILDERcolumnNvarchar(String name, int length, Boolean isPrimaryKey, Boolean isNullable)Column nvarchar.TABLE_BUILDERcolumnNvarchar(String name, int length, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)Column nvarchar.TABLE_BUILDERcolumnNvarchar(String name, int length, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, Boolean isIdentity)Column nvarchar.TABLE_BUILDERcolumnNvarchar(String name, int length, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, Boolean isIdentity, String args)Column nvarchar.TABLE_BUILDERcolumnNvarchar(String name, int length, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, Boolean isIdentity, String... args)Column nvarchar.TABLE_BUILDERcolumnReal(String name)Column real.TABLE_BUILDERcolumnReal(String name, Boolean isPrimaryKey)Column real.TABLE_BUILDERcolumnReal(String name, Boolean isPrimaryKey, Boolean isNullable)Column real.TABLE_BUILDERcolumnReal(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)Column real.TABLE_BUILDERcolumnReal(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String args)Column real.TABLE_BUILDERcolumnReal(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String... args)Column real.TABLE_BUILDERcolumnSmallint(String name)Column smallint.TABLE_BUILDERcolumnSmallint(String name, Boolean isPrimaryKey)Column smallint.TABLE_BUILDERcolumnSmallint(String name, Boolean isPrimaryKey, Boolean isNullable)Column smallint.TABLE_BUILDERcolumnSmallint(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)Column smallint.TABLE_BUILDERcolumnSmallint(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String args)Column smallint.TABLE_BUILDERcolumnSmallint(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String... args)Column smallint.TABLE_BUILDERcolumnTime(String name)Column time.TABLE_BUILDERcolumnTime(String name, Boolean isPrimaryKey)Column time.TABLE_BUILDERcolumnTime(String name, Boolean isPrimaryKey, Boolean isNullable)Column time.TABLE_BUILDERcolumnTime(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)Column time.TABLE_BUILDERcolumnTime(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String args)Column time.TABLE_BUILDERcolumnTime(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String... args)Column time.TABLE_BUILDERcolumnTimestamp(String name)Column timestamp.TABLE_BUILDERcolumnTimestamp(String name, Boolean isPrimaryKey)Column timestamp.TABLE_BUILDERcolumnTimestamp(String name, Boolean isPrimaryKey, Boolean isNullable)Column timestamp.TABLE_BUILDERcolumnTimestamp(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)Column timestamp.TABLE_BUILDERcolumnTimestamp(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String args)Column timestamp.TABLE_BUILDERcolumnTimestamp(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String... args)Column timestamp.TABLE_BUILDERcolumnTinyint(String name)Column tinyint.TABLE_BUILDERcolumnTinyint(String name, Boolean isPrimaryKey)Column tinyint.TABLE_BUILDERcolumnTinyint(String name, Boolean isPrimaryKey, Boolean isNullable)Column tinyint.TABLE_BUILDERcolumnTinyint(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)Column tinyint.TABLE_BUILDERcolumnTinyint(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String args)Column tinyint.TABLE_BUILDERcolumnTinyint(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String... args)Column tinyint.TABLE_BUILDERcolumnVarchar(String name, int length)Column varchar.TABLE_BUILDERcolumnVarchar(String name, int length, Boolean isPrimaryKey)Column varchar.TABLE_BUILDERcolumnVarchar(String name, int length, Boolean isPrimaryKey, Boolean isNullable)Column varchar.TABLE_BUILDERcolumnVarchar(String name, int length, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)Column varchar.TABLE_BUILDERcolumnVarchar(String name, int length, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, Boolean isIdentity)Column varchar.TABLE_BUILDERcolumnVarchar(String name, int length, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, Boolean isIdentity, String args)Column varchar.TABLE_BUILDERcolumnVarchar(String name, int length, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, Boolean isIdentity, String... args)Column varchar.protected voidgenerateColumnNamesForDrop(StringBuilder sql)Generate column names.protected voidgenerateColumns(StringBuilder sql)Generate columns.protected voidgenerateTable(StringBuilder sql)Generate table.protected List<String[]>getColumns()Gets the columns.protected StringgetTable()Gets the table.protected String[]splitValues(String columns)Split values.protected StringtraverseColumnNamesForDrop()Traverse columns.protected StringtraverseColumns()Traverse columns.protected StringtraverseNames(Set<String> names)Traverse column names.Methods inherited from class org.eclipse.dirigible.database.sql.builders.AbstractCreateSqlBuilder
generateAlter, generateCreateMethods inherited from class org.eclipse.dirigible.database.sql.builders.AbstractSqlBuilder
build, encapsulate, encapsulateMany, getDialect, isCaseSensitive, isColumn, isNumeric, isValue, toString
-
Constructor Details
-
AbstractTableBuilder
Instantiates a new creates the table builder.- Parameters:
dialect- the dialecttable- the table
-
-
Method Details
-
getTable
Gets the table.- Returns:
- the table
-
getColumns
Gets the columns.- Returns:
- the columns
-
column
public TABLE_BUILDER column(String name, DataType type, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, Boolean isIdentity, String... args)Column.- Parameters:
name- the nametype- the typeisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is uniqueisIdentity- the is identityargs- 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 nametype- the typeisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is uniqueargs- 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 nametype- the typeisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is unique- Returns:
- the creates the table builder
-
column
Column.- Parameters:
name- the nametype- the typeisPrimaryKey- the is primary keyisNullable- the is nullable- Returns:
- the creates the table builder
-
column
Column.- Parameters:
name- the nametype- the typeisPrimaryKey- the is primary key- Returns:
- the creates the table builder
-
column
Column.- Parameters:
name- the nametype- 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 nametype- the typeisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is uniqueargs- 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 nametype- the typeisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is unique- Returns:
- the creates the table builder
-
column
Column.- Parameters:
name- the nametype- the typeisPrimaryKey- the is primary keyisNullable- the is nullable- Returns:
- the creates the table builder
-
column
Column.- Parameters:
name- the nametype- the typeisPrimaryKey- the is primary key- Returns:
- the creates the table builder
-
column
Column.- Parameters:
name- the nametype- 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 nametype- the typeisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is uniqueargs- 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 nametype- the typeisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is uniqueargs- 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 nametype- the typeisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is unique- Returns:
- the creates the table builder
-
column
Column.- Parameters:
name- the nametype- the typeisPrimaryKey- the is primary keyisNullable- the is nullable- Returns:
- the creates the table builder
-
column
Column.- Parameters:
name- the nametype- the typeisPrimaryKey- the is primary key- Returns:
- the creates the table builder
-
column
Column.- Parameters:
name- the nametype- 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 nametype- the typeisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is uniqueargs- 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 nametype- the typeisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is uniqueargs- 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 nametype- the typeisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is unique- Returns:
- the creates the table builder
-
column
Column.- Parameters:
name- the nametype- the typeisPrimaryKey- the is primary keyisNullable- the is nullable- Returns:
- the creates the table builder
-
column
Column.- Parameters:
name- the nametype- the typeisPrimaryKey- the is primary key- Returns:
- the creates the table builder
-
column
Column.- Parameters:
name- the nametype- 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 nametype- the typeisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is uniqueargs- 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 namelength- the lengthisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is uniqueisIdentity- the is identityargs- 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 namelength- the lengthisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is uniqueisIdentity- the is identityargs- 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 namelength- the lengthisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is uniqueisIdentity- 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 namelength- the lengthisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- 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 namelength- the lengthisPrimaryKey- the is primary keyisNullable- the is nullable- Returns:
- the creates the table builder
-
columnVarchar
Column varchar.- Parameters:
name- the namelength- the lengthisPrimaryKey- the is primary key- Returns:
- the creates the table builder
-
columnVarchar
Column varchar.- Parameters:
name- the namelength- 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 namelength- the lengthisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is uniqueisIdentity- the is identityargs- 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 namelength- the lengthisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is uniqueisIdentity- the is identityargs- 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 namelength- the lengthisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is uniqueisIdentity- 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 namelength- the lengthisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- 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 namelength- the lengthisPrimaryKey- the is primary keyisNullable- the is nullable- Returns:
- the creates the table builder
-
columnNvarchar
Column nvarchar.- Parameters:
name- the namelength- the lengthisPrimaryKey- the is primary key- Returns:
- the creates the table builder
-
columnNvarchar
Column nvarchar.- Parameters:
name- the namelength- 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 namelength- the lengthisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is uniqueisIdentity- the is identityargs- 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 namelength- the lengthisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is uniqueargs- 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 namelength- the lengthisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is unique- Returns:
- the creates the table builder
-
columnChar
Column char.- Parameters:
name- the namelength- the lengthisPrimaryKey- the is primary keyisNullable- the is nullable- Returns:
- the creates the table builder
-
columnChar
Column char.- Parameters:
name- the namelength- the lengthisPrimaryKey- the is primary key- Returns:
- the creates the table builder
-
columnChar
Column char.- Parameters:
name- the namelength- 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 nameisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is uniqueargs- 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 nameisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is uniqueargs- 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 nameisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is unique- Returns:
- the creates the table builder
-
columnDate
Column date.- Parameters:
name- the nameisPrimaryKey- the is primary keyisNullable- the is nullable- Returns:
- the creates the table builder
-
columnDate
Column date.- Parameters:
name- the nameisPrimaryKey- the is primary key- Returns:
- the creates the table builder
-
columnDate
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 nameisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is uniqueargs- 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 nameisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is uniqueargs- 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 nameisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is unique- Returns:
- the creates the table builder
-
columnTime
Column time.- Parameters:
name- the nameisPrimaryKey- the is primary keyisNullable- the is nullable- Returns:
- the creates the table builder
-
columnTime
Column time.- Parameters:
name- the nameisPrimaryKey- the is primary key- Returns:
- the creates the table builder
-
columnTime
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 nameisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is uniqueargs- 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 nameisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is uniqueargs- 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 nameisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is unique- Returns:
- the creates the table builder
-
columnTimestamp
Column timestamp.- Parameters:
name- the nameisPrimaryKey- the is primary keyisNullable- the is nullable- Returns:
- the creates the table builder
-
columnTimestamp
Column timestamp.- Parameters:
name- the nameisPrimaryKey- the is primary key- Returns:
- the creates the table builder
-
columnTimestamp
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 nameisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is uniqueisIdentity- the is identityargs- 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 nameisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is uniqueisIdentity- the is identityargs- 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 nameisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is unique- Returns:
- the creates the table builder
-
columnInteger
Column integer.- Parameters:
name- the nameisPrimaryKey- the is primary keyisNullable- the is nullable- Returns:
- the creates the table builder
-
columnInteger
Column integer.- Parameters:
name- the nameisPrimaryKey- the is primary key- Returns:
- the creates the table builder
-
columnInteger
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 nameisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is uniqueargs- 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 nameisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is uniqueargs- 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 nameisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is unique- Returns:
- the creates the table builder
-
columnTinyint
Column tinyint.- Parameters:
name- the nameisPrimaryKey- the is primary keyisNullable- the is nullable- Returns:
- the creates the table builder
-
columnTinyint
Column tinyint.- Parameters:
name- the nameisPrimaryKey- the is primary key- Returns:
- the creates the table builder
-
columnTinyint
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 nameisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is uniqueisIdentity- the is identityargs- 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 nameisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is uniqueisIdentity- the is identityargs- 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 nameisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is unique- Returns:
- the creates the table builder
-
columnBigint
Column bigint.- Parameters:
name- the nameisPrimaryKey- the is primary keyisNullable- the is nullable- Returns:
- the creates the table builder
-
columnBigint
Column bigint.- Parameters:
name- the nameisPrimaryKey- the is primary key- Returns:
- the creates the table builder
-
columnBigint
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 nameisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is uniqueargs- 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 nameisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is uniqueargs- 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 nameisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is unique- Returns:
- the creates the table builder
-
columnSmallint
Column smallint.- Parameters:
name- the nameisPrimaryKey- the is primary keyisNullable- the is nullable- Returns:
- the creates the table builder
-
columnSmallint
Column smallint.- Parameters:
name- the nameisPrimaryKey- the is primary key- Returns:
- the creates the table builder
-
columnSmallint
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 nameisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is uniqueargs- 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 nameisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is uniqueargs- 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 nameisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is unique- Returns:
- the creates the table builder
-
columnReal
Column real.- Parameters:
name- the nameisPrimaryKey- the is primary keyisNullable- the is nullable- Returns:
- the creates the table builder
-
columnReal
Column real.- Parameters:
name- the nameisPrimaryKey- the is primary key- Returns:
- the creates the table builder
-
columnReal
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 nameisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is uniqueargs- 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 nameisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is uniqueargs- 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 nameisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is unique- Returns:
- the creates the table builder
-
columnFloat
Column float.- Parameters:
name- the nameisPrimaryKey- the is primary keyisNullable- the is nullable- Returns:
- the creates the table builder
-
columnFloat
Column float.- Parameters:
name- the nameisPrimaryKey- the is primary key- Returns:
- the creates the table builder
-
columnFloat
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 nameisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is uniqueargs- 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 nameisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is uniqueargs- 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 nameisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is unique- Returns:
- the creates the table builder
-
columnDouble
Column double.- Parameters:
name- the nameisPrimaryKey- the is primary keyisNullable- the is nullable- Returns:
- the creates the table builder
-
columnDouble
Column double.- Parameters:
name- the nameisPrimaryKey- the is primary key- Returns:
- the creates the table builder
-
columnDouble
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 nameisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is uniqueargs- 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 nameisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is uniqueargs- 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 nameisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is unique- Returns:
- the creates the table builder
-
columnBoolean
Column boolean.- Parameters:
name- the nameisPrimaryKey- the is primary keyisNullable- the is nullable- Returns:
- the creates the table builder
-
columnBoolean
Column boolean.- Parameters:
name- the nameisPrimaryKey- the is primary key- Returns:
- the creates the table builder
-
columnBoolean
Column boolean.- Parameters:
name- the name- Returns:
- the creates the table builder
-
columnBlob
Column blob.- Parameters:
name- the nameisNullable- the is nullableargs- the args- Returns:
- the creates the table builder
-
columnBlob
Column blob.- Parameters:
name- the nameisNullable- the is nullableargs- the args- Returns:
- the creates the table builder
-
columnBlob
Column blob.- Parameters:
name- the nameisNullable- the is nullable- Returns:
- the creates the table builder
-
columnBlob
Column blob.- Parameters:
name- the name- Returns:
- the creates the table builder
-
columnDecimal
public TABLE_BUILDER columnDecimal(String name, int precision, int scale, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, Boolean isIdentity, String... args)Column decimal.- Parameters:
name- the nameprecision- the precisionscale- the scaleisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is uniqueisIdentity- the is identityargs- the args- Returns:
- the creates the table builder
-
columnDecimal
public TABLE_BUILDER columnDecimal(String name, int precision, int scale, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, Boolean isIdentity, String args)Column decimal.- Parameters:
name- the nameprecision- the precisionscale- the scaleisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is uniqueisIdentity- the is identityargs- the args- Returns:
- the creates the table builder
-
columnDecimal
public TABLE_BUILDER columnDecimal(String name, int precision, int scale, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)Column decimal.- Parameters:
name- the nameprecision- the precisionscale- the scaleisPrimaryKey- the is primary keyisNullable- the is nullableisUnique- the is unique- Returns:
- the creates the table builder
-
columnDecimal
public TABLE_BUILDER columnDecimal(String name, int precision, int scale, Boolean isPrimaryKey, Boolean isNullable)Column decimal.- Parameters:
name- the nameprecision- the precisionscale- the scaleisPrimaryKey- the is primary keyisNullable- the is nullable- Returns:
- the creates the table builder
-
columnDecimal
Column decimal.- Parameters:
name- the nameprecision- the precisionscale- the scaleisPrimaryKey- the is primary key- Returns:
- the creates the table builder
-
columnDecimal
Column decimal.- Parameters:
name- the nameprecision- the precisionscale- the scale- Returns:
- the creates the table builder
-
columnBit
Column bit.- Parameters:
name- the nameisNullable- the is nullableargs- the args- Returns:
- the creates the table builder
-
columnBit
Column bit.- Parameters:
name- the nameisNullable- the is nullableargs- the args- Returns:
- the creates the table builder
-
columnBit
Column bit.- Parameters:
name- the nameisNullable- the is nullable- Returns:
- the creates the table builder
-
columnBit
Column bit.- Parameters:
name- the name- Returns:
- the creates the table builder
-
generateTable
Generate table.- Parameters:
sql- the sql
-
generateColumns
Generate columns.- Parameters:
sql- the sql
-
generateColumnNamesForDrop
Generate column names.- Parameters:
sql- the sql
-
traverseColumns
Traverse columns.- Returns:
- the string
-
traverseColumnNamesForDrop
Traverse columns.- Returns:
- the string
-
traverseNames
Traverse column names.- Parameters:
names- the columns- Returns:
- the string
-
splitValues
Split values.- Parameters:
columns- the columns- Returns:
- the string[]
-