Class UserColumns<TColumn>Abstract
Constructors
Protected
constructor
- new UserColumns<TColumn>(tableName: string, columns: TColumn[], custom: boolean): UserColumns<TColumn>
-
Parameters
-
tableName: string
-
columns: TColumn[]
-
custom: boolean
- new UserColumns<TColumn>(userColumns: UserColumns<TColumn>): UserColumns<TColumn>
-
Methods
addColumn
- addColumn(column: TColumn): void
-
Returns void
alterColumn
- alterColumn(column: TColumn): void
-
Returns void
columnCount
- columnCount(): number
-
Returns number
dropColumn
- dropColumn(column: TColumn): void
-
Returns void
dropColumnWithIndex
- dropColumnWithIndex(index: number): void
-
Returns void
dropColumnWithName
- dropColumnWithName(columnName: string): void
-
Returns void
duplicateCheck
- duplicateCheck(index: number, previousIndex: number, column: string): void
-
Parameters
-
index: number
-
previousIndex: number
-
column: string
Returns void
getColumn
- getColumn(columnName: string): TColumn
-
Returns TColumn
getColumnForIndex
- getColumnForIndex(index: number): TColumn
-
Returns TColumn
getColumnIndex
- getColumnIndex(columnName: string, required: boolean): number
-
Parameters
-
columnName: string
-
required: boolean
Returns number
getColumnIndexForColumnName
- getColumnIndexForColumnName(columnName: string): number
-
Returns number
getColumnName
- getColumnName(index: number): string
-
Returns string
getColumnNames
- getColumnNames(): string[]
-
Returns string[]
getColumns
- getColumns(): TColumn[]
-
Returns TColumn[]
getPkColumn
- getPkColumn(): TColumn
-
Returns TColumn
getPkColumnIndex
- getPkColumnIndex(): number
-
Returns number
getPkColumnName
- getPkColumnName(): string
-
Returns string
getTableName
- getTableName(): string
-
Returns string
hasColumn
- hasColumn(columnName: string): boolean
-
Returns boolean
hasPkColumn
- hasPkColumn(): boolean
-
Returns boolean
isCustom
- isCustom(): boolean
-
Returns boolean
isPkModifiable
- isPkModifiable(): boolean
-
Returns boolean
isValueValidation
- isValueValidation(): boolean
-
Returns boolean
missingCheck
- missingCheck(index: number, column: string): void
-
Parameters
-
index: number
-
column: string
Returns void
renameColumn
- renameColumn(column: TColumn, newColumnName: string): void
-
Parameters
-
column: TColumn
-
newColumnName: string
Returns void
renameColumnWithIndex
- renameColumnWithIndex(index: number, newColumnName: string): void
-
Parameters
-
index: number
-
newColumnName: string
Returns void
renameColumnWithName
- renameColumnWithName(columnName: string, newColumnName: string): void
-
Parameters
-
columnName: string
-
newColumnName: string
Returns void
setCustom
- setCustom(custom: boolean): void
-
Returns void
setPkModifiable
- setPkModifiable(pkModifiable: boolean): void
-
Returns void
setTableName
- setTableName(tableName: string): void
-
Returns void
setValueValidation
- setValueValidation(valueValidation: boolean): void
-
Returns void
updateColumns
- updateColumns(): void
-
Returns void
Constructor