Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DataCollectionStoreImpl<T>

Type parameters

  • T

Hierarchy

Implements

Index

Constructors

constructor

  • new DataCollectionStoreImpl(entityName: string, trackChanges?: boolean, viewName?: string, sort?: undefined | string): DataCollectionStoreImpl

Properties

allItems

allItems: Array<SerializedEntity<T>> = []

changedItems

changedItems: IObservableArray<any> = observable([])

Optional count

count: undefined | number

entityName

entityName: string

Optional filter

filter: EntityFilter

items

items: Array<SerializedEntity<T>> = []

Optional lastError

Optional limit

limit: undefined | number

Optional offset

offset: undefined | number

Optional skipCount

skipCount: undefined | false | true

Optional sort

sort: undefined | string

status

status: DataContainerStatus = "CLEAN"

Optional stringIdName

stringIdName: undefined | string

trackChanges

trackChanges: boolean

view

view: string

Accessors

Private entitiesLoadOptions

  • get entitiesLoadOptions(): EntitiesLoadOptions

properties

  • get properties(): string[]

readOnlyItems

  • get readOnlyItems(): Array<SerializedEntity<T>>

Methods

clear

  • clear(): void

delete

  • delete(e: T & WithId): Promise<any>

Private handleLoadingNoCount

  • handleLoadingNoCount(promise: Promise<Array<SerializedEntity<T>>>): Promise<void>

Private handleLoadingWithCount

  • handleLoadingWithCount(promise: Promise<EntitiesWithCount<T>>): Promise<void>

load

  • load(): Promise<void>

Generated using TypeDoc