Class UserRow<TColumn, TTable>

Type Parameters

Hierarchy

Constructors

Properties

columnTypes: GeoPackageDataType[]

Column types of this row, based upon the data values

columns: UserColumns<TColumn>

User columns

table: TTable

User table

values: DBValue[]

Array of row values

Accessors

  • get columnCount(): number
  • Get the column count

    Returns

    column count

    Returns number

  • get columnNames(): string[]
  • Get the column names

    Returns

    column names

    Returns string[]

  • get pkColumnIndex(): number
  • Get the primary key column Index

    Returns

    pk index

    Returns number

Methods

  • Map the column to the content values

    Parameters

    • contentValues: ContentValues

      content values

    • column: TColumn

      column

    • value: any

      value

    Returns void

  • Copy the value of the data type

    Returns

    copy value

    Parameters

    • column: TColumn

      table column

    • value: any

      value

    Returns any

  • Get the column index of the column name

    Returns

    column index

    Parameters

    • columnName: string

      column name

    Returns number

  • Get the column name at the index

    Returns

    column name

    Parameters

    • index: number

      index

    Returns string

  • Get the id value, which is the value of the primary key

    Returns

    id

    Returns number

  • Get the row column type of the column name

    Returns

    row column type

    Parameters

    • columnName: string

      column name

    Returns number

  • Get the row column data types

    Returns

    row column types

    Returns number[]

  • Get the value of the column name

    Returns

    value

    Parameters

    • columnName: string

      column name

    Returns any

  • Get the value at the index

    Returns

    value

    Parameters

    • index: number

      index

    Returns any

  • Clears the id so the row can be used as part of an insert or create

    Returns void

  • Set the id and optionally validate

    Parameters

    • id: number

      id value

    • pkModifiable: boolean = ...

      primary key modifiable

    Returns void

  • Set the value of the column name

    Parameters

    • columnName: string

      column name

    • value: any

      value

    Returns void

  • Set the value at the index without validation

    Parameters

    • index: number

      index

    • value: any

      value

    Returns void

  • Set the value at the index

    Parameters

    • index: number

      index

    • value: any

      value

    Returns void

  • Convert the row to content values

    Returns

    content values

    Parameters

    • includeNulls: boolean = true

      include null values (default is true)

    Returns ContentValues

  • Get the value which will be persisted to the database based on the column

    Parameters

    • columnName: string

      name of the column

    Returns DBValue

  • Get the value from the database as an object based on the column

    Parameters

    • index: number

      column index

    • value: DBValue

      value from the database

    Returns any

  • Validate the value and its actual value types against the column data type class

    Parameters

    • column: TColumn

      column

    • value: any

      value

    • valueTypes: string[]

      value type

    Returns void

Generated using TypeDoc