public class CreateTableBuilder extends AbstractCreateSqlBuilder
ALTER, CLOSE, COMMA, EQUALS, FUNCTION_CURRENT_DATE, FUNCTION_CURRENT_TIME, FUNCTION_CURRENT_TIMESTAMP, KEYWORD_AND, KEYWORD_AS, KEYWORD_ASC, KEYWORD_CHECK, KEYWORD_COLUMN, KEYWORD_CONSTRAINT, KEYWORD_CREATE, KEYWORD_DELETE, KEYWORD_DESC, KEYWORD_DISTINCT, KEYWORD_DROP, KEYWORD_FETCH, 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_REFERENCES, KEYWORD_RIGHT, KEYWORD_ROWS, KEYWORD_SELECT, KEYWORD_SEQUENCE, KEYWORD_SET, KEYWORD_START, KEYWORD_TABLE, KEYWORD_UNION, KEYWORD_UNIQUE, KEYWORD_UPDATE, KEYWORD_VALUES, KEYWORD_VIEW, KEYWORD_WHERE, KEYWORD_WITH, METADATA_ALIAS, 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 and Description |
|---|
CreateTableBuilder(ISqlDialect dialect,
String table)
Instantiates a new creates the table builder.
|
| Modifier and Type | Method and Description |
|---|---|
CreateTableBuilder |
check(String name,
String expression)
Check.
|
CreateTableBuilder |
column(String name,
DataType type)
Column.
|
CreateTableBuilder |
column(String name,
DataType type,
Boolean isPrimaryKey)
Column.
|
CreateTableBuilder |
column(String name,
DataType type,
Boolean isPrimaryKey,
Boolean isNullable)
Column.
|
CreateTableBuilder |
column(String name,
DataType type,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique)
Column.
|
CreateTableBuilder |
column(String name,
DataType type,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
Boolean isIdentity,
String... args)
Column.
|
CreateTableBuilder |
column(String name,
DataType type,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
String... args)
Column.
|
CreateTableBuilder |
column(String name,
Double type)
Column.
|
CreateTableBuilder |
column(String name,
Double type,
Boolean isPrimaryKey)
Column.
|
CreateTableBuilder |
column(String name,
Double type,
Boolean isPrimaryKey,
Boolean isNullable)
Column.
|
CreateTableBuilder |
column(String name,
Double type,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique)
Column.
|
CreateTableBuilder |
column(String name,
Double type,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
String... args)
Column.
|
CreateTableBuilder |
column(String name,
Double type,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
String args)
Column.
|
CreateTableBuilder |
column(String name,
int type)
Column.
|
CreateTableBuilder |
column(String name,
int type,
Boolean isPrimaryKey)
Column.
|
CreateTableBuilder |
column(String name,
int type,
Boolean isPrimaryKey,
Boolean isNullable)
Column.
|
CreateTableBuilder |
column(String name,
int type,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique)
Column.
|
CreateTableBuilder |
column(String name,
int type,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
String... args)
Column.
|
CreateTableBuilder |
column(String name,
int type,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
String args)
Column.
|
CreateTableBuilder |
column(String name,
String type)
Column.
|
CreateTableBuilder |
column(String name,
String type,
Boolean isPrimaryKey)
Column.
|
CreateTableBuilder |
column(String name,
String type,
Boolean isPrimaryKey,
Boolean isNullable)
Column.
|
CreateTableBuilder |
column(String name,
String type,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique)
Column.
|
CreateTableBuilder |
column(String name,
String type,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
String... args)
Column.
|
CreateTableBuilder |
column(String name,
String type,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
String args)
Column.
|
CreateTableBuilder |
columnBigint(String name)
Column bigint.
|
CreateTableBuilder |
columnBigint(String name,
Boolean isPrimaryKey)
Column bigint.
|
CreateTableBuilder |
columnBigint(String name,
Boolean isPrimaryKey,
Boolean isNullable)
Column bigint.
|
CreateTableBuilder |
columnBigint(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique)
Column bigint.
|
CreateTableBuilder |
columnBigint(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
Boolean isIdentity,
String... args)
Column bigint.
|
CreateTableBuilder |
columnBigint(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
Boolean isIdentity,
String args)
Column bigint.
|
CreateTableBuilder |
columnBit(String name)
Column bit.
|
CreateTableBuilder |
columnBit(String name,
Boolean isNullable)
Column bit.
|
CreateTableBuilder |
columnBit(String name,
Boolean isNullable,
String... args)
Column bit.
|
CreateTableBuilder |
columnBit(String name,
Boolean isNullable,
String args)
Column bit.
|
CreateTableBuilder |
columnBlob(String name)
Column blob.
|
CreateTableBuilder |
columnBlob(String name,
Boolean isNullable)
Column blob.
|
CreateTableBuilder |
columnBlob(String name,
Boolean isNullable,
String... args)
Column blob.
|
CreateTableBuilder |
columnBlob(String name,
Boolean isNullable,
String args)
Column blob.
|
CreateTableBuilder |
columnBoolean(String name)
Column boolean.
|
CreateTableBuilder |
columnBoolean(String name,
Boolean isPrimaryKey)
Column boolean.
|
CreateTableBuilder |
columnBoolean(String name,
Boolean isPrimaryKey,
Boolean isNullable)
Column boolean.
|
CreateTableBuilder |
columnBoolean(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique)
Column boolean.
|
CreateTableBuilder |
columnBoolean(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
String... args)
Column boolean.
|
CreateTableBuilder |
columnBoolean(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
String args)
Column boolean.
|
CreateTableBuilder |
columnChar(String name,
int length)
Column char.
|
CreateTableBuilder |
columnChar(String name,
int length,
Boolean isPrimaryKey)
Column char.
|
CreateTableBuilder |
columnChar(String name,
int length,
Boolean isPrimaryKey,
Boolean isNullable)
Column char.
|
CreateTableBuilder |
columnChar(String name,
int length,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique)
Column char.
|
CreateTableBuilder |
columnChar(String name,
int length,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
Boolean isIdentity,
String... args)
Column char.
|
CreateTableBuilder |
columnChar(String name,
int length,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
String args)
Column char.
|
CreateTableBuilder |
columnDate(String name)
Column date.
|
CreateTableBuilder |
columnDate(String name,
Boolean isPrimaryKey)
Column date.
|
CreateTableBuilder |
columnDate(String name,
Boolean isPrimaryKey,
Boolean isNullable)
Column date.
|
CreateTableBuilder |
columnDate(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique)
Column date.
|
CreateTableBuilder |
columnDate(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
String... args)
Column date.
|
CreateTableBuilder |
columnDate(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
String args)
Column date.
|
CreateTableBuilder |
columnDecimal(String name,
int precision,
int scale)
Column decimal.
|
CreateTableBuilder |
columnDecimal(String name,
int precision,
int scale,
Boolean isPrimaryKey)
Column decimal.
|
CreateTableBuilder |
columnDecimal(String name,
int precision,
int scale,
Boolean isPrimaryKey,
Boolean isNullable)
Column decimal.
|
CreateTableBuilder |
columnDecimal(String name,
int precision,
int scale,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique)
Column decimal.
|
CreateTableBuilder |
columnDecimal(String name,
int precision,
int scale,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
Boolean isIdentity,
String... args)
Column decimal.
|
CreateTableBuilder |
columnDecimal(String name,
int precision,
int scale,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
Boolean isIdentity,
String args)
Column decimal.
|
CreateTableBuilder |
columnDouble(String name)
Column double.
|
CreateTableBuilder |
columnDouble(String name,
Boolean isPrimaryKey)
Column double.
|
CreateTableBuilder |
columnDouble(String name,
Boolean isPrimaryKey,
Boolean isNullable)
Column double.
|
CreateTableBuilder |
columnDouble(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique)
Column double.
|
CreateTableBuilder |
columnDouble(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
String... args)
Column double.
|
CreateTableBuilder |
columnDouble(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
String args)
Column double.
|
CreateTableBuilder |
columnInteger(String name)
Column integer.
|
CreateTableBuilder |
columnInteger(String name,
Boolean isPrimaryKey)
Column integer.
|
CreateTableBuilder |
columnInteger(String name,
Boolean isPrimaryKey,
Boolean isNullable)
Column integer.
|
CreateTableBuilder |
columnInteger(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique)
Column integer.
|
CreateTableBuilder |
columnInteger(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
Boolean isIdentity,
String... args)
Column integer.
|
CreateTableBuilder |
columnInteger(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
Boolean isIdentity,
String args)
Column integer.
|
CreateTableBuilder |
columnReal(String name)
Column real.
|
CreateTableBuilder |
columnReal(String name,
Boolean isPrimaryKey)
Column real.
|
CreateTableBuilder |
columnReal(String name,
Boolean isPrimaryKey,
Boolean isNullable)
Column real.
|
CreateTableBuilder |
columnReal(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique)
Column real.
|
CreateTableBuilder |
columnReal(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
String... args)
Column real.
|
CreateTableBuilder |
columnReal(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
String args)
Column real.
|
CreateTableBuilder |
columnSmallint(String name)
Column smallint.
|
CreateTableBuilder |
columnSmallint(String name,
Boolean isPrimaryKey)
Column smallint.
|
CreateTableBuilder |
columnSmallint(String name,
Boolean isPrimaryKey,
Boolean isNullable)
Column smallint.
|
CreateTableBuilder |
columnSmallint(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique)
Column smallint.
|
CreateTableBuilder |
columnSmallint(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
String... args)
Column smallint.
|
CreateTableBuilder |
columnSmallint(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
String args)
Column smallint.
|
CreateTableBuilder |
columnTime(String name)
Column time.
|
CreateTableBuilder |
columnTime(String name,
Boolean isPrimaryKey)
Column time.
|
CreateTableBuilder |
columnTime(String name,
Boolean isPrimaryKey,
Boolean isNullable)
Column time.
|
CreateTableBuilder |
columnTime(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique)
Column time.
|
CreateTableBuilder |
columnTime(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
String... args)
Column time.
|
CreateTableBuilder |
columnTime(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
String args)
Column time.
|
CreateTableBuilder |
columnTimestamp(String name)
Column timestamp.
|
CreateTableBuilder |
columnTimestamp(String name,
Boolean isPrimaryKey)
Column timestamp.
|
CreateTableBuilder |
columnTimestamp(String name,
Boolean isPrimaryKey,
Boolean isNullable)
Column timestamp.
|
CreateTableBuilder |
columnTimestamp(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique)
Column timestamp.
|
CreateTableBuilder |
columnTimestamp(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
String... args)
Column timestamp.
|
CreateTableBuilder |
columnTimestamp(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
String args)
Column timestamp.
|
CreateTableBuilder |
columnTinyint(String name)
Column tinyint.
|
CreateTableBuilder |
columnTinyint(String name,
Boolean isPrimaryKey)
Column tinyint.
|
CreateTableBuilder |
columnTinyint(String name,
Boolean isPrimaryKey,
Boolean isNullable)
Column tinyint.
|
CreateTableBuilder |
columnTinyint(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique)
Column tinyint.
|
CreateTableBuilder |
columnTinyint(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
String... args)
Column tinyint.
|
CreateTableBuilder |
columnTinyint(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
String args)
Column tinyint.
|
CreateTableBuilder |
columnVarchar(String name,
int length)
Column varchar.
|
CreateTableBuilder |
columnVarchar(String name,
int length,
Boolean isPrimaryKey)
Column varchar.
|
CreateTableBuilder |
columnVarchar(String name,
int length,
Boolean isPrimaryKey,
Boolean isNullable)
Column varchar.
|
CreateTableBuilder |
columnVarchar(String name,
int length,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique)
Column varchar.
|
CreateTableBuilder |
columnVarchar(String name,
int length,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
Boolean isIdentity)
Column varchar.
|
CreateTableBuilder |
columnVarchar(String name,
int length,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
Boolean isIdentity,
String... args)
Column varchar.
|
CreateTableBuilder |
columnVarchar(String name,
int length,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
Boolean isIdentity,
String args)
Column varchar.
|
CreateTableBuilder |
foreignKey(String name,
String[] columns,
String referencedTable,
String[] referencedColumns)
Foreign key.
|
CreateTableBuilder |
foreignKey(String name,
String columns,
String referencedTable,
String referencedColumns)
Foreign key.
|
String |
generate()
Generate the result script.
|
protected void |
generateCheck(StringBuilder sql,
CreateTableCheckBuilder check)
Generate check.
|
protected void |
generateChecks(StringBuilder sql)
Generate checks.
|
protected void |
generateColumns(StringBuilder sql)
Generate columns.
|
protected void |
generateForeignKey(StringBuilder sql,
CreateTableForeignKeyBuilder foreignKey)
Generate foreign key.
|
protected void |
generateForeignKeys(StringBuilder sql)
Generate foreign keys.
|
protected void |
generatePrimaryKey(StringBuilder sql)
Generate primary key.
|
protected void |
generateTable(StringBuilder sql)
Generate table.
|
protected void |
generateUniqueIndex(StringBuilder sql,
CreateTableUniqueIndexBuilder uniqueIndex)
Generate unique index.
|
protected void |
generateUniqueIndices(StringBuilder sql)
Generate unique indices.
|
protected List<String[]> |
getColumns()
Gets the columns.
|
protected String |
getTable()
Gets the table.
|
CreateTableBuilder |
primaryKey(String columns)
Primary key.
|
CreateTableBuilder |
primaryKey(String[] columns)
Primary key.
|
CreateTableBuilder |
primaryKey(String name,
String columns)
Primary key.
|
CreateTableBuilder |
primaryKey(String name,
String[] columns)
Primary key.
|
protected String |
traverseColumnNames(Set<String> columns)
Traverse column names.
|
protected String |
traverseColumns()
Traverse columns.
|
CreateTableBuilder |
unique(String name,
String columns)
Unique.
|
CreateTableBuilder |
unique(String name,
String[] columns)
Unique.
|
generateCreatebuild, getDialect, toStringpublic CreateTableBuilder(ISqlDialect dialect, String table)
dialect - the dialecttable - the tableprotected String getTable()
public CreateTableBuilder column(String name, DataType type, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, Boolean isIdentity, String... args)
name - the nametype - the typeisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueisIdentity - the is identityargs - the argspublic CreateTableBuilder column(String name, DataType type, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String... args)
name - the nametype - the typeisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argspublic CreateTableBuilder column(String name, DataType type, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)
name - the nametype - the typeisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniquepublic CreateTableBuilder column(String name, DataType type, Boolean isPrimaryKey, Boolean isNullable)
name - the nametype - the typeisPrimaryKey - the is primary keyisNullable - the is nullablepublic CreateTableBuilder column(String name, DataType type, Boolean isPrimaryKey)
name - the nametype - the typeisPrimaryKey - the is primary keypublic CreateTableBuilder column(String name, DataType type)
name - the nametype - the typepublic CreateTableBuilder column(String name, int type, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String... args)
name - the nametype - the typeisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argspublic CreateTableBuilder column(String name, int type, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)
name - the nametype - the typeisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniquepublic CreateTableBuilder column(String name, int type, Boolean isPrimaryKey, Boolean isNullable)
name - the nametype - the typeisPrimaryKey - the is primary keyisNullable - the is nullablepublic CreateTableBuilder column(String name, int type, Boolean isPrimaryKey)
name - the nametype - the typeisPrimaryKey - the is primary keypublic CreateTableBuilder column(String name, int type)
name - the nametype - the typepublic CreateTableBuilder column(String name, int type, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String args)
name - the nametype - the typeisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argspublic CreateTableBuilder column(String name, Double type, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String... args)
name - the nametype - the typeisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argspublic CreateTableBuilder column(String name, Double type, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)
name - the nametype - the typeisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniquepublic CreateTableBuilder column(String name, Double type, Boolean isPrimaryKey, Boolean isNullable)
name - the nametype - the typeisPrimaryKey - the is primary keyisNullable - the is nullablepublic CreateTableBuilder column(String name, Double type, Boolean isPrimaryKey)
name - the nametype - the typeisPrimaryKey - the is primary keypublic CreateTableBuilder column(String name, Double type)
name - the nametype - the typepublic CreateTableBuilder column(String name, Double type, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String args)
name - the nametype - the typeisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argspublic CreateTableBuilder column(String name, String type, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String... args)
name - the nametype - the typeisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argspublic CreateTableBuilder column(String name, String type, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)
name - the nametype - the typeisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniquepublic CreateTableBuilder column(String name, String type, Boolean isPrimaryKey, Boolean isNullable)
name - the nametype - the typeisPrimaryKey - the is primary keyisNullable - the is nullablepublic CreateTableBuilder column(String name, String type, Boolean isPrimaryKey)
name - the nametype - the typeisPrimaryKey - the is primary keypublic CreateTableBuilder column(String name, String type)
name - the nametype - the typepublic CreateTableBuilder column(String name, String type, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String args)
name - the nametype - the typeisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argspublic CreateTableBuilder columnVarchar(String name, int length, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, Boolean isIdentity, String... args)
name - the namelength - the lengthisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueisIdentity - the is identityargs - the argspublic CreateTableBuilder columnVarchar(String name, int length, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, Boolean isIdentity, String args)
name - the namelength - the lengthisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueisIdentity - the is identityargs - the argspublic CreateTableBuilder columnVarchar(String name, int length, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, Boolean isIdentity)
name - the namelength - the lengthisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueisIdentity - the is uniquepublic CreateTableBuilder columnVarchar(String name, int length, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)
name - the namelength - the lengthisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniquepublic CreateTableBuilder columnVarchar(String name, int length, Boolean isPrimaryKey, Boolean isNullable)
name - the namelength - the lengthisPrimaryKey - the is primary keyisNullable - the is nullablepublic CreateTableBuilder columnVarchar(String name, int length, Boolean isPrimaryKey)
name - the namelength - the lengthisPrimaryKey - the is primary keypublic CreateTableBuilder columnVarchar(String name, int length)
name - the namelength - the lengthpublic CreateTableBuilder columnChar(String name, int length, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, Boolean isIdentity, String... args)
name - the namelength - the lengthisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueisIdentity - the is identityargs - the argspublic CreateTableBuilder columnChar(String name, int length, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String args)
name - the namelength - the lengthisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argspublic CreateTableBuilder columnChar(String name, int length, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)
name - the namelength - the lengthisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniquepublic CreateTableBuilder columnChar(String name, int length, Boolean isPrimaryKey, Boolean isNullable)
name - the namelength - the lengthisPrimaryKey - the is primary keyisNullable - the is nullablepublic CreateTableBuilder columnChar(String name, int length, Boolean isPrimaryKey)
name - the namelength - the lengthisPrimaryKey - the is primary keypublic CreateTableBuilder columnChar(String name, int length)
name - the namelength - the lengthpublic CreateTableBuilder columnDate(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String... args)
name - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argspublic CreateTableBuilder columnDate(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String args)
name - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argspublic CreateTableBuilder columnDate(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)
name - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniquepublic CreateTableBuilder columnDate(String name, Boolean isPrimaryKey, Boolean isNullable)
name - the nameisPrimaryKey - the is primary keyisNullable - the is nullablepublic CreateTableBuilder columnDate(String name, Boolean isPrimaryKey)
name - the nameisPrimaryKey - the is primary keypublic CreateTableBuilder columnDate(String name)
name - the namepublic CreateTableBuilder columnTime(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String... args)
name - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argspublic CreateTableBuilder columnTime(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String args)
name - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argspublic CreateTableBuilder columnTime(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)
name - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniquepublic CreateTableBuilder columnTime(String name, Boolean isPrimaryKey, Boolean isNullable)
name - the nameisPrimaryKey - the is primary keyisNullable - the is nullablepublic CreateTableBuilder columnTime(String name, Boolean isPrimaryKey)
name - the nameisPrimaryKey - the is primary keypublic CreateTableBuilder columnTime(String name)
name - the namepublic CreateTableBuilder columnTimestamp(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String... args)
name - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argspublic CreateTableBuilder columnTimestamp(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String args)
name - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argspublic CreateTableBuilder columnTimestamp(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)
name - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniquepublic CreateTableBuilder columnTimestamp(String name, Boolean isPrimaryKey, Boolean isNullable)
name - the nameisPrimaryKey - the is primary keyisNullable - the is nullablepublic CreateTableBuilder columnTimestamp(String name, Boolean isPrimaryKey)
name - the nameisPrimaryKey - the is primary keypublic CreateTableBuilder columnTimestamp(String name)
name - the namepublic CreateTableBuilder columnInteger(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, Boolean isIdentity, String... args)
name - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueisIdentity - the is identityargs - the argspublic CreateTableBuilder columnInteger(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, Boolean isIdentity, String args)
name - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueisIdentity - the is identityargs - the argspublic CreateTableBuilder columnInteger(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)
name - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniquepublic CreateTableBuilder columnInteger(String name, Boolean isPrimaryKey, Boolean isNullable)
name - the nameisPrimaryKey - the is primary keyisNullable - the is nullablepublic CreateTableBuilder columnInteger(String name, Boolean isPrimaryKey)
name - the nameisPrimaryKey - the is primary keypublic CreateTableBuilder columnInteger(String name)
name - the namepublic CreateTableBuilder columnTinyint(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String... args)
name - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argspublic CreateTableBuilder columnTinyint(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String args)
name - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argspublic CreateTableBuilder columnTinyint(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)
name - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniquepublic CreateTableBuilder columnTinyint(String name, Boolean isPrimaryKey, Boolean isNullable)
name - the nameisPrimaryKey - the is primary keyisNullable - the is nullablepublic CreateTableBuilder columnTinyint(String name, Boolean isPrimaryKey)
name - the nameisPrimaryKey - the is primary keypublic CreateTableBuilder columnTinyint(String name)
name - the namepublic CreateTableBuilder columnBigint(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, Boolean isIdentity, String... args)
name - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueisIdentity - the is identityargs - the argspublic CreateTableBuilder columnBigint(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, Boolean isIdentity, String args)
name - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueisIdentity - the is identityargs - the argspublic CreateTableBuilder columnBigint(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)
name - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniquepublic CreateTableBuilder columnBigint(String name, Boolean isPrimaryKey, Boolean isNullable)
name - the nameisPrimaryKey - the is primary keyisNullable - the is nullablepublic CreateTableBuilder columnBigint(String name, Boolean isPrimaryKey)
name - the nameisPrimaryKey - the is primary keypublic CreateTableBuilder columnBigint(String name)
name - the namepublic CreateTableBuilder columnSmallint(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String... args)
name - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argspublic CreateTableBuilder columnSmallint(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String args)
name - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argspublic CreateTableBuilder columnSmallint(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)
name - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniquepublic CreateTableBuilder columnSmallint(String name, Boolean isPrimaryKey, Boolean isNullable)
name - the nameisPrimaryKey - the is primary keyisNullable - the is nullablepublic CreateTableBuilder columnSmallint(String name, Boolean isPrimaryKey)
name - the nameisPrimaryKey - the is primary keypublic CreateTableBuilder columnSmallint(String name)
name - the namepublic CreateTableBuilder columnReal(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String... args)
name - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argspublic CreateTableBuilder columnReal(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String args)
name - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argspublic CreateTableBuilder columnReal(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)
name - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniquepublic CreateTableBuilder columnReal(String name, Boolean isPrimaryKey, Boolean isNullable)
name - the nameisPrimaryKey - the is primary keyisNullable - the is nullablepublic CreateTableBuilder columnReal(String name, Boolean isPrimaryKey)
name - the nameisPrimaryKey - the is primary keypublic CreateTableBuilder columnReal(String name)
name - the namepublic CreateTableBuilder columnDouble(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String... args)
name - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argspublic CreateTableBuilder columnDouble(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String args)
name - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argspublic CreateTableBuilder columnDouble(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)
name - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniquepublic CreateTableBuilder columnDouble(String name, Boolean isPrimaryKey, Boolean isNullable)
name - the nameisPrimaryKey - the is primary keyisNullable - the is nullablepublic CreateTableBuilder columnDouble(String name, Boolean isPrimaryKey)
name - the nameisPrimaryKey - the is primary keypublic CreateTableBuilder columnDouble(String name)
name - the namepublic CreateTableBuilder columnBoolean(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String... args)
name - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argspublic CreateTableBuilder columnBoolean(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, String args)
name - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argspublic CreateTableBuilder columnBoolean(String name, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)
name - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniquepublic CreateTableBuilder columnBoolean(String name, Boolean isPrimaryKey, Boolean isNullable)
name - the nameisPrimaryKey - the is primary keyisNullable - the is nullablepublic CreateTableBuilder columnBoolean(String name, Boolean isPrimaryKey)
name - the nameisPrimaryKey - the is primary keypublic CreateTableBuilder columnBoolean(String name)
name - the namepublic CreateTableBuilder columnBlob(String name, Boolean isNullable, String... args)
name - the nameisNullable - the is nullableargs - the argspublic CreateTableBuilder columnBlob(String name, Boolean isNullable, String args)
name - the nameisNullable - the is nullableargs - the argspublic CreateTableBuilder columnBlob(String name, Boolean isNullable)
name - the nameisNullable - the is nullablepublic CreateTableBuilder columnBlob(String name)
name - the namepublic CreateTableBuilder columnDecimal(String name, int precision, int scale, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, Boolean isIdentity, String... args)
name - the nameprecision - the precisionscale - the scaleisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueisIdentity - the is identityargs - the argspublic CreateTableBuilder columnDecimal(String name, int precision, int scale, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique, Boolean isIdentity, String args)
name - the nameprecision - the precisionscale - the scaleisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueisIdentity - the is identityargs - the argspublic CreateTableBuilder columnDecimal(String name, int precision, int scale, Boolean isPrimaryKey, Boolean isNullable, Boolean isUnique)
name - the nameprecision - the precisionscale - the scaleisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniquepublic CreateTableBuilder columnDecimal(String name, int precision, int scale, Boolean isPrimaryKey, Boolean isNullable)
name - the nameprecision - the precisionscale - the scaleisPrimaryKey - the is primary keyisNullable - the is nullablepublic CreateTableBuilder columnDecimal(String name, int precision, int scale, Boolean isPrimaryKey)
name - the nameprecision - the precisionscale - the scaleisPrimaryKey - the is primary keypublic CreateTableBuilder columnDecimal(String name, int precision, int scale)
name - the nameprecision - the precisionscale - the scalepublic CreateTableBuilder columnBit(String name, Boolean isNullable, String... args)
name - the nameisNullable - the is nullableargs - the argspublic CreateTableBuilder columnBit(String name, Boolean isNullable, String args)
name - the nameisNullable - the is nullableargs - the argspublic CreateTableBuilder columnBit(String name, Boolean isNullable)
name - the nameisNullable - the is nullablepublic CreateTableBuilder columnBit(String name)
name - the namepublic CreateTableBuilder primaryKey(String name, String[] columns)
name - the namecolumns - the columnspublic CreateTableBuilder primaryKey(String name, String columns)
name - the namecolumns - the columnspublic CreateTableBuilder primaryKey(String[] columns)
columns - the columnspublic CreateTableBuilder primaryKey(String columns)
columns - the columnspublic CreateTableBuilder foreignKey(String name, String[] columns, String referencedTable, String[] referencedColumns)
name - the namecolumns - the columnsreferencedTable - the referenced tablereferencedColumns - the referenced columnspublic CreateTableBuilder foreignKey(String name, String columns, String referencedTable, String referencedColumns)
name - the namecolumns - the columnsreferencedTable - the referenced tablereferencedColumns - the referenced columnspublic CreateTableBuilder unique(String name, String[] columns)
name - the namecolumns - the columnspublic CreateTableBuilder unique(String name, String columns)
name - the namecolumns - the columnspublic CreateTableBuilder check(String name, String expression)
name - the nameexpression - the expressionpublic String generate()
ISqlBuilderprotected void generateTable(StringBuilder sql)
sql - the sqlprotected void generateColumns(StringBuilder sql)
sql - the sqlprotected void generatePrimaryKey(StringBuilder sql)
sql - the sqlprotected void generateForeignKeys(StringBuilder sql)
sql - the sqlprotected void generateForeignKey(StringBuilder sql, CreateTableForeignKeyBuilder foreignKey)
sql - the sqlforeignKey - the foreign keyprotected void generateUniqueIndices(StringBuilder sql)
sql - the sqlprotected void generateUniqueIndex(StringBuilder sql, CreateTableUniqueIndexBuilder uniqueIndex)
sql - the sqluniqueIndex - the unique indexprotected void generateChecks(StringBuilder sql)
sql - the sqlprotected void generateCheck(StringBuilder sql, CreateTableCheckBuilder check)
sql - the sqlcheck - the checkprotected String traverseColumns()
Copyright © 2010–2018 Eclipse Foundation. All rights reserved.