IdentityMap
Index
Constructors
constructor
Parameters
optionaldefaultSchema: string
Returns IdentityMap
Methods
[iterator]
Returns IterableIterator<Partial<any>, any, any>
clear
Returns void
delete
Parameters
item: T
Returns void
get
Parameters
hash: string
Returns undefined | T
getByHash
Parameters
meta: EntityMetadata<T, EntityCtor<T>>
hash: string
Returns undefined | T
getKeyHash
Creates a hash for an alternate key lookup. Format:
[key]valueorschema:[key]valueParameters
key: string
value: string
optionalschema: string
Returns string
getStore
Parameters
meta: EntityMetadata<T, EntityCtor<T>>
Returns Map<string, T>
keys
Returns string[]
store
Parameters
item: T
Returns void
storeByKey
Stores an entity under an alternate key (non-PK property). This allows looking up entities by unique properties that are not the primary key.
Parameters
item: T
key: string
value: string
optionalschema: string
Returns void
values
Returns Partial<any>[]
For back compatibility only.