Skip to main content
Version: Next

Class: IdentityMap

core.IdentityMap

Constructors#

constructor#

new IdentityMap()

Methods#

[Symbol.iterator]#

[Symbol.iterator](): IterableIterator<AnyEntity<any>>

Returns#

IterableIterator<AnyEntity<any>>

Defined in#

packages/core/src/unit-of-work/IdentityMap.ts:47


clear#

clear(): void

Returns#

void

Defined in#

packages/core/src/unit-of-work/IdentityMap.ts:33


delete#

delete<T>(item): void

Type parameters#

NameType
TT: AnyEntity<T>

Parameters#

NameType
itemT

Returns#

void

Defined in#

packages/core/src/unit-of-work/IdentityMap.ts:11


get#

get<T>(hash): undefined | T

For back compatibility only.

Type parameters#

Name
T

Parameters#

NameType
hashstring

Returns#

undefined | T

Defined in#

packages/core/src/unit-of-work/IdentityMap.ts:68


getByHash#

getByHash<T>(meta, hash): undefined | T

Type parameters#

Name
T

Parameters#

NameType
metaEntityMetadata<T>
hashstring

Returns#

undefined | T

Defined in#

packages/core/src/unit-of-work/IdentityMap.ts:15


getStore#

getStore<T>(meta): Map<string, T>

Type parameters#

NameType
TT: AnyEntity<T>

Parameters#

NameType
metaEntityMetadata<T>

Returns#

Map<string, T>

Defined in#

packages/core/src/unit-of-work/IdentityMap.ts:20


keys#

keys(): string[]

Returns#

string[]

Defined in#

packages/core/src/unit-of-work/IdentityMap.ts:55


store#

store<T>(item): void

Type parameters#

NameType
TT: AnyEntity<T>

Parameters#

NameType
itemT

Returns#

void

Defined in#

packages/core/src/unit-of-work/IdentityMap.ts:7


values#

values(): AnyEntity<any>[]

Returns#

AnyEntity<any>[]

Defined in#

packages/core/src/unit-of-work/IdentityMap.ts:37