Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Entity

Index

Properties

Protected remoteState

remoteState: object

The remote state of the entity. Remote state refers to the last known state of the entity on the remote system from which it has been retrieved or to which it has been posted. It is stored as map, where the keys are stored in the format of VDM properties.

Type declaration

  • [keys: string]: any

Static _allFields

_allFields: Array<Selectable<Entity>>

Static _defaultServicePath

_defaultServicePath: string

Static _entityName

_entityName: string

Static _serviceName

_serviceName: string

Methods

Protected getCurrentMapKeys

  • getCurrentMapKeys(): this
  • Returns this

getUpdatedProperties

  • getUpdatedProperties(): this
  • Returns all changed properties compared to the last known remote state.

    Returns this

    Entity with all properties that changed

setOrInitializeRemoteState

  • setOrInitializeRemoteState(state?: MapType<any>): this
  • Initializes or sets the remoteState of the entity. This function is called on all read, create and update requests.

    Parameters

    • Default value state: MapType<any> = null

      State to be set as remote state

    Returns this

    The entity itself, to facilitate method chaining

Static Protected entityBuilder