Skip to main content
Version: 4.5

Class: IdentityMap#

core.IdentityMap

Constructors#

constructor#

+ new IdentityMap(): IdentityMap

Returns: IdentityMap

Properties#

registry#

Private Readonly registry: Map<Constructor<AnyEntity<any>>, Map<string, AnyEntity<any>>>

Defined in: packages/core/src/unit-of-work/IdentityMap.ts:5

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: T): void

Type parameters:#

NameType
TAnyEntity<T>

Parameters:#

NameType
itemT

Returns: void

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


get#

get<T>(hash: string): 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: EntityMetadata<T>, hash: string): 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: EntityMetadata<T>): Map<string, T>

Type parameters:#

NameType
TAnyEntity<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: T): void

Type parameters:#

NameType
TAnyEntity<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

Last updated on by Renovate Bot