Skip to main content

foundation-comms.defaultentitydatasource

Home > @genesislcap/foundation-comms > DefaultEntityDatasource

DefaultEntityDatasource class

This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Default EntityDatasource DI implementation.

Signature:

export declare class DefaultEntityDatasource<TDTO, TEntity> extends DefaultDatasource implements EntityDatasource<TDTO, TEntity> 

Extends: DefaultDatasource

Implements: EntityDatasource<TDTO, TEntity>

Properties

Property

Modifiers

Type

Description

_initialized

protected

boolean

(ALPHA)

cache

readonly

TEntity[]

(ALPHA)

disconnect

() => void

(ALPHA)

entityCache

protected

TEntity[]

(ALPHA)

entityMap

protected

Map<string, TEntity>

(ALPHA)

initialize

(init: EntityDatasourceInit<TDTO, TEntity>) => Promise<boolean>

(ALPHA)

initialized

boolean

(ALPHA)

isEmpty

readonly

boolean

(ALPHA)

mapper

protected

DTOMapper<TDTO, TEntity>

(ALPHA)

rowId

protected

string

(ALPHA)

sourceRef

protected

string

(ALPHA)

subscription

protected

SocketSubscription

(ALPHA)

subscriptionLoggedOff

protected

boolean

(ALPHA)