primaryKey
Primary key.
- Parameters:
name- the namecolumns- the columns- Returns:
- the table builder
TABLE_BUILDER - the generic typeISqlBuilder, ISqlKeywordsAlterTableBuilder, CreateTableBuilder, CreateTemporaryTableBuilderALTER, CLOSE, COMMA, DOT, 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_COLUMNSTORE, KEYWORD_CONSTRAINT, KEYWORD_CREATE, KEYWORD_DATA, KEYWORD_DATABASE_DROP_CASCADE, KEYWORD_DATABASE_DROP_RESTRICT, KEYWORD_DELETE, KEYWORD_DESC, KEYWORD_DISTINCT, KEYWORD_DROP, KEYWORD_DYNAMIC, KEYWORD_EVENT, KEYWORD_EXTERNAL, KEYWORD_FETCH, KEYWORD_FOR, KEYWORD_FOR_UPDATE, KEYWORD_FOREIGN, KEYWORD_FROM, KEYWORD_FULL, KEYWORD_GLOBAL_TEMPORARY, KEYWORD_GLOBAL_TEMPORARY_COLUMN, KEYWORD_GROUP_BY, KEYWORD_HAVING, KEYWORD_HYBRID, KEYWORD_ICEBERG, KEYWORD_IDENTITY, KEYWORD_INDEX, KEYWORD_INNER, KEYWORD_INSERT, KEYWORD_INTO, KEYWORD_JOIN, KEYWORD_KEY, KEYWORD_LEFT, KEYWORD_LIKE, KEYWORD_LIMIT, KEYWORD_NEXT, KEYWORD_NEXT_VALUE_FOR, KEYWORD_NO, 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_ROW, KEYWORD_ROWS, KEYWORD_ROWSTORE, KEYWORD_SCHEMA, 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_TABLE_TYPE, KEYWORD_UNION, KEYWORD_UNIQUE, KEYWORD_UPDATE, KEYWORD_VALUES, KEYWORD_VIEW, KEYWORD_WHERE, KEYWORD_WITH, METADATA_ALIAS, METADATA_BASE_TABLE, METADATA_CALC_VIEW, METADATA_GLOBAL_TEMPORARY, METADATA_GLOBAL_TEMPORARY_COLUMN, METADATA_LOCAL_TEMPORARY, METADATA_SYNONYM, METADATA_SYSTEM_TABLE, METADATA_TABLE, METADATA_TABLE_STRUCTURES, METADATA_TABLE_TYPES, METADATA_VIEW, OPEN, QUESTION, SEMICOLON, SPACE, STAR, TABLE, UNDERSCROEAbstractTableBuilder(ISqlDialect dialect,
String table) column(String name,
int type,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
String args) column(String name,
int type,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
String... args) column(String name,
Double type,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
String args) column(String name,
Double type,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
String... args) column(String name,
String type,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
String args) column(String name,
String type,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
String... args) column(String name,
DataType type,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
Boolean isIdentity,
Boolean isFuzzyIndexEnabled,
String... args) column(String name,
DataType type,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
Boolean isFuzzyIndexEnabled,
String... args) column(String name,
DataType type,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
String... args) columnBigint(String name) columnBigint(String name,
Boolean isPrimaryKey) columnBigint(String name,
Boolean isPrimaryKey,
Boolean isNullable) columnBigint(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique) columnBigint(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
Boolean isIdentity,
String args) columnBigint(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
Boolean isIdentity,
String... args) columnBlob(String name) columnBlob(String name,
Boolean isNullable) columnBlob(String name,
Boolean isNullable,
String args) columnBlob(String name,
Boolean isNullable,
String... args) columnBoolean(String name) columnBoolean(String name,
Boolean isPrimaryKey) columnBoolean(String name,
Boolean isPrimaryKey,
Boolean isNullable) columnBoolean(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique) columnBoolean(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
String... args) columnChar(String name,
int length) columnChar(String name,
int length,
Boolean isPrimaryKey) columnChar(String name,
int length,
Boolean isPrimaryKey,
Boolean isNullable) columnChar(String name,
int length,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique) columnChar(String name,
int length,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
Boolean isIdentity,
String... args) columnChar(String name,
int length,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
String args) columnDate(String name) columnDate(String name,
Boolean isPrimaryKey) columnDate(String name,
Boolean isPrimaryKey,
Boolean isNullable) columnDate(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique) columnDecimal(String name,
int length,
int scale) columnDecimal(String name,
int length,
int scale,
Boolean isPrimaryKey) columnDecimal(String name,
int length,
int scale,
Boolean isPrimaryKey,
Boolean isNullable) columnDecimal(String name,
int length,
int scale,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique) columnDecimal(String name,
int length,
int scale,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
Boolean isIdentity,
String args) columnDecimal(String name,
int length,
int scale,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
Boolean isIdentity,
String... args) columnDouble(String name) columnDouble(String name,
Boolean isPrimaryKey) columnDouble(String name,
Boolean isPrimaryKey,
Boolean isNullable) columnDouble(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique) columnDouble(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
String... args) columnFloat(String name) columnFloat(String name,
Boolean isPrimaryKey) columnFloat(String name,
Boolean isPrimaryKey,
Boolean isNullable) columnFloat(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique) columnFloat(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
String... args) columnInteger(String name) columnInteger(String name,
Boolean isPrimaryKey) columnInteger(String name,
Boolean isPrimaryKey,
Boolean isNullable) columnInteger(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique) columnInteger(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
Boolean isIdentity,
String args) columnInteger(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
Boolean isIdentity,
String... args) columnNvarchar(String name,
int length) columnNvarchar(String name,
int length,
Boolean isPrimaryKey) columnNvarchar(String name,
int length,
Boolean isPrimaryKey,
Boolean isNullable) columnNvarchar(String name,
int length,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique) columnNvarchar(String name,
int length,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
Boolean isIdentity) columnNvarchar(String name,
int length,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
Boolean isIdentity,
String args) columnNvarchar(String name,
int length,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
Boolean isIdentity,
String... args) columnReal(String name) columnReal(String name,
Boolean isPrimaryKey) columnReal(String name,
Boolean isPrimaryKey,
Boolean isNullable) columnReal(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique) columnSmallint(String name) columnSmallint(String name,
Boolean isPrimaryKey) columnSmallint(String name,
Boolean isPrimaryKey,
Boolean isNullable) columnSmallint(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique) columnSmallint(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
String args) columnSmallint(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
String... args) columnTime(String name) columnTime(String name,
Boolean isPrimaryKey) columnTime(String name,
Boolean isPrimaryKey,
Boolean isNullable) columnTime(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique) columnTimestamp(String name) columnTimestamp(String name,
Boolean isPrimaryKey) columnTimestamp(String name,
Boolean isPrimaryKey,
Boolean isNullable) columnTimestamp(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique) columnTimestamp(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
String args) columnTimestamp(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
String... args) columnTinyint(String name) columnTinyint(String name,
Boolean isPrimaryKey) columnTinyint(String name,
Boolean isPrimaryKey,
Boolean isNullable) columnTinyint(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique) columnTinyint(String name,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
String... args) columnVarbinary(String name) columnVarbinary(String name,
Boolean isNullable) columnVarbinary(String name,
Boolean isNullable,
String args) columnVarbinary(String name,
Boolean isNullable,
String... args) columnVarchar(String name,
int length) columnVarchar(String name,
int length,
Boolean isPrimaryKey) columnVarchar(String name,
int length,
Boolean isPrimaryKey,
Boolean isNullable) columnVarchar(String name,
int length,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique) columnVarchar(String name,
int length,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
Boolean isIdentity) columnVarchar(String name,
int length,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
Boolean isIdentity,
String args) columnVarchar(String name,
int length,
Boolean isPrimaryKey,
Boolean isNullable,
Boolean isUnique,
Boolean isIdentity,
String... args) foreignKey(String name,
String[] columns,
String referencedTable,
String referencedTableSchema,
String[] referencedColumns) protected voidprotected voidprotected voidprotected voidprotected StringgetTable()primaryKey(String[] columns) primaryKey(String name,
String[] columns) protected String[]splitValues(String columns) protected Stringprotected Stringprotected Stringprotected StringtraverseNames(Set<String> names) generateAlter, generateCreatebuild, encapsulate, encapsulate, encapsulateMany, encapsulateMany, encapsulateWhere, getDialect, getEscapeSymbol, isCaseSensitive, isColumn, isNumeric, isValue, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgeneratedialect - the dialecttable - the tablename - the namecolumns - the columnsname - the namecolumns - the columnstype - the typeorder - the ordername - the namecolumns - the columnscolumns - the columnsname - the namecolumns - the columnsreferencedTable - the referenced tablereferencedTableSchema - the referenced table schemareferencedColumns - the referenced columnsname - the nameexpression - the expressionname - the nameisUnique - whether the index is uniqueorder - the ordertype - the typecolumns - the list of the columns namesname - the nametype - the typeisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueisIdentity - the is identityisFuzzyIndexEnabled - the is fuzzy index enabledargs - the argsname - the nametype - the typeisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueisFuzzyIndexEnabled - the is fuzzy index enabledargs - the argsname - the nametype - the typeisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argsname - the nametype - the typeisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniquename - the nametype - the typeisPrimaryKey - the is primary keyisNullable - the is nullablename - the nametype - the typeisPrimaryKey - the is primary keyname - the nametype - the typename - the nametype - the typeisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argsname - the nametype - the typeisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniquename - the nametype - the typeisPrimaryKey - the is primary keyisNullable - the is nullablename - the nametype - the typeisPrimaryKey - the is primary keyname - the nametype - the typename - the nametype - the typeisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argsname - the nametype - the typeisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argsname - the nametype - the typeisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniquename - the nametype - the typeisPrimaryKey - the is primary keyisNullable - the is nullablename - the nametype - the typeisPrimaryKey - the is primary keyname - the nametype - the typename - the nametype - the typeisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argsname - the nametype - the typeisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argsname - the nametype - the typeisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniquename - the nametype - the typeisPrimaryKey - the is primary keyisNullable - the is nullablename - the nametype - the typeisPrimaryKey - the is primary keyname - the nametype - the typename - the nametype - the typeisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argsname - the namelength - the lengthisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueisIdentity - the is identityargs - the argsname - the namelength - the lengthisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueisIdentity - the is identityargs - the argsname - the namelength - the lengthisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueisIdentity - the is uniquename - the namelength - the lengthisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniquename - the namelength - the lengthisPrimaryKey - the is primary keyisNullable - the is nullablename - the namelength - the lengthisPrimaryKey - the is primary keyname - the namelength - the lengthname - the namelength - the lengthisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueisIdentity - the is identityargs - the argsname - the namelength - the lengthisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueisIdentity - the is identityargs - the argsname - the namelength - the lengthisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueisIdentity - the is uniquename - the namelength - the lengthisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniquename - the namelength - the lengthisPrimaryKey - the is primary keyisNullable - the is nullablename - the namelength - the lengthisPrimaryKey - the is primary keyname - the namelength - the lengthname - the namelength - the lengthisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueisIdentity - the is identityargs - the argsname - the namelength - the lengthisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argsname - the namelength - the lengthisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniquename - the namelength - the lengthisPrimaryKey - the is primary keyisNullable - the is nullablename - the namelength - the lengthisPrimaryKey - the is primary keyname - the namelength - the lengthname - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argsname - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argsname - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniquename - the nameisPrimaryKey - the is primary keyisNullable - the is nullablename - the nameisPrimaryKey - the is primary keyname - the namename - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argsname - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argsname - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniquename - the nameisPrimaryKey - the is primary keyisNullable - the is nullablename - the nameisPrimaryKey - the is primary keyname - the namename - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argsname - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argsname - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniquename - the nameisPrimaryKey - the is primary keyisNullable - the is nullablename - the nameisPrimaryKey - the is primary keyname - the namename - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueisIdentity - the is identityargs - the argsname - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueisIdentity - the is identityargs - the argsname - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniquename - the nameisPrimaryKey - the is primary keyisNullable - the is nullablename - the nameisPrimaryKey - the is primary keyname - the namename - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argsname - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argsname - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniquename - the nameisPrimaryKey - the is primary keyisNullable - the is nullablename - the nameisPrimaryKey - the is primary keyname - the namename - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueisIdentity - the is identityargs - the argsname - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueisIdentity - the is identityargs - the argsname - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniquename - the nameisPrimaryKey - the is primary keyisNullable - the is nullablename - the nameisPrimaryKey - the is primary keyname - the namename - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argsname - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argsname - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniquename - the nameisPrimaryKey - the is primary keyisNullable - the is nullablename - the nameisPrimaryKey - the is primary keyname - the namename - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argsname - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argsname - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniquename - the nameisPrimaryKey - the is primary keyisNullable - the is nullablename - the nameisPrimaryKey - the is primary keyname - the namename - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argsname - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argsname - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniquename - the nameisPrimaryKey - the is primary keyisNullable - the is nullablename - the nameisPrimaryKey - the is primary keyname - the namename - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argsname - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argsname - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniquename - the nameisPrimaryKey - the is primary keyisNullable - the is nullablename - the nameisPrimaryKey - the is primary keyname - the namename - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argsname - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueargs - the argsname - the nameisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniquename - the nameisPrimaryKey - the is primary keyisNullable - the is nullablename - the nameisPrimaryKey - the is primary keyname - the namename - the nameisNullable - the is nullableargs - the argsname - the nameisNullable - the is nullableargs - the argsname - the nameisNullable - the is nullablename - the namename - the namelength - the lengthscale - the scaleisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueisIdentity - the is identityargs - the argsname - the namelength - the lengthscale - the scaleisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniqueisIdentity - the is identityargs - the argsname - the namelength - the lengthscale - the scaleisPrimaryKey - the is primary keyisNullable - the is nullableisUnique - the is uniquename - the namelength - the lengthscale - the scaleisPrimaryKey - the is primary keyisNullable - the is nullablename - the namelength - the lengthscale - the scaleisPrimaryKey - the is primary keyname - the namelength - the lengthscale - the scalename - the nameisNullable - the is nullableargs - the argsname - the nameisNullable - the is nullableargs - the argsname - the nameisNullable - the is nullablename - the namename - the nameisNullable - the is nullableargs - the argsname - the nameisNullable - the is nullableargs - the argsname - the nameisNullable - the is nullablename - the namesql - the sqlsql - the sqlsql - the sqlsql - the sqlnames - the columnscolumns - the columns