Class UserRow<TColumn, TTable>
Constructors
constructor
- new UserRow<TColumn, TTable>(table: TTable): UserRow<TColumn, TTable>
-
Returns UserRow<TColumn, TTable>
- new UserRow<TColumn, TTable>(userRow: UserRow<TColumn, TTable>): UserRow<TColumn, TTable>
-
Returns UserRow<TColumn, TTable>
- new UserRow<TColumn, TTable>(table: TTable, columns: UserColumns<TColumn>, columnTypes: number[], values: DBValue[]): UserRow<TColumn, TTable>
-
Parameters
-
table: TTable
-
-
columnTypes: number[]
-
Returns UserRow<TColumn, TTable>
Properties
Protected
Readonly
columnTypes
Protected
Readonly
columns
Protected
Readonly
table
table: TTable
Protected
Readonly
values
Accessors
columnCount
- get columnCount(): number
-
Returns number
columnNames
- get columnNames(): string[]
-
Returns string[]
pkColumnIndex
- get pkColumnIndex(): number
-
Returns number
Methods
Protected
columnToContentValue
- columnToContentValue(contentValues: ContentValues, column: TColumn, value: any): void
-
Parameters
-
-
column: TColumn
-
value: any
Returns void
Protected
copyValue
- copyValue(column: TColumn, value: any): any
-
Parameters
-
column: TColumn
-
value: any
Returns any
getColumnIndexWithColumnName
- getColumnIndexWithColumnName(columnName: string): number
-
Returns number
getColumnNameWithIndex
- getColumnNameWithIndex(index: number): string
-
Returns string
getId
- getId(): number
-
Returns number
getRowColumnTypeWithColumnName
- getRowColumnTypeWithColumnName(columnName: string): number
-
Returns number
getRowColumnTypeWithIndex
getRowColumnTypes
- getRowColumnTypes(): number[]
-
Returns number[]
getTable
- getTable(): TTable
-
Returns TTable
getValue
- getValue(columnName: string): any
-
Returns any
getValueWithIndex
- getValueWithIndex(index: number): any
-
Returns any
hasId
- hasId(): boolean
-
Returns boolean
hasIdColumn
- hasIdColumn(): boolean
-
Returns boolean
resetId
- resetId(): void
-
Returns void
setId
- setId(id: number, pkModifiable?: boolean): void
-
Parameters
-
id: number
-
pkModifiable: boolean = ...
Returns void
setValue
- setValue(columnName: string, value: any): void
-
Parameters
-
columnName: string
-
value: any
Returns void
setValueNoValidationWithIndex
- setValueNoValidationWithIndex(index: number, value: any): void
-
Returns void
setValueWithIndex
- setValueWithIndex(index: number, value: any): void
-
Returns void
toContentValues
- toContentValues(includeNulls?: boolean): ContentValues
-
Parameters
-
includeNulls: boolean = true
toDatabaseValue
- toDatabaseValue(columnName: string): DBValue
-
toObjectValue
- toObjectValue(index: number, value: DBValue): any
-
Returns any
Protected
validateValue
- validateValue(column: TColumn, value: any, valueTypes: string[]): void
-
Parameters
-
column: TColumn
-
value: any
-
valueTypes: string[]
Returns void
Constructor