Version: 4.3

Class: IdentityMap

Hierarchy

  • IdentityMap

Properties

registry

Private Readonly registry: Map<Constructor<AnyEntity<any>>, Map<string, AnyEntity<any>>> = new Map<Constructor<AnyEntity>, Map<string, AnyEntity>>()

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

Methods

clear

clear(): void

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

Returns: void


delete

delete<T>(item: T): void

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

Type parameters:

NameType
TAnyEntity<T>

Parameters:

NameType
itemT

Returns: void


get

get<T>(hash: string): T | undefined

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

For back compatibility only.

Type parameters:

Name
T

Parameters:

NameType
hashstring

Returns: T | undefined


getByHash

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

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

Type parameters:

Name
T

Parameters:

NameType
metaEntityMetadata<T>
hashstring

Returns: T | undefined


getStore

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

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

Type parameters:

NameType
TAnyEntity<T>

Parameters:

NameType
metaEntityMetadata<T>

Returns: Map<string, T>


keys

keys(): string[]

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

Returns: string[]


store

store<T>(item: T): void

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

Type parameters:

NameType
TAnyEntity<T>

Parameters:

NameType
itemT

Returns: void


values

values(): AnyEntity[]

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

Returns: AnyEntity[]

Last updated on by Martin Adámek