Version: 4.3

Class: ChangeSetComputer

Hierarchy

  • ChangeSetComputer

Constructors

constructor

+ new ChangeSetComputer(validator: EntityValidator, collectionUpdates: Set<Collection<AnyEntity>>, removeStack: Set<AnyEntity>, metadata: MetadataStorage, platform: Platform, config: Configuration): ChangeSetComputer

Defined in packages/core/src/unit-of-work/ChangeSetComputer.ts:12

Parameters:

NameType
validatorEntityValidator
collectionUpdatesSet<Collection<AnyEntity>>
removeStackSet<AnyEntity>
metadataMetadataStorage
platformPlatform
configConfiguration

Returns: ChangeSetComputer

Properties

collectionUpdates

Private Readonly collectionUpdates: Set<Collection<AnyEntity>>

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


comparator

Private Readonly comparator: EntityComparator = new EntityComparator(this.metadata, this.platform)

Defined in packages/core/src/unit-of-work/ChangeSetComputer.ts:12


config

Private Readonly config: Configuration

Defined in packages/core/src/unit-of-work/ChangeSetComputer.ts:19


metadata

Private Readonly metadata: MetadataStorage

Defined in packages/core/src/unit-of-work/ChangeSetComputer.ts:17


platform

Private Readonly platform: Platform

Defined in packages/core/src/unit-of-work/ChangeSetComputer.ts:18


removeStack

Private Readonly removeStack: Set<AnyEntity>

Defined in packages/core/src/unit-of-work/ChangeSetComputer.ts:16


validator

Private Readonly validator: EntityValidator

Defined in packages/core/src/unit-of-work/ChangeSetComputer.ts:14

Methods

computeChangeSet

computeChangeSet<T>(entity: T): ChangeSet<T> | null

Defined in packages/core/src/unit-of-work/ChangeSetComputer.ts:21

Type parameters:

NameType
TAnyEntity<T>

Parameters:

NameType
entityT

Returns: ChangeSet<T> | null


computePayload

PrivatecomputePayload<T>(entity: T): EntityData<T>

Defined in packages/core/src/unit-of-work/ChangeSetComputer.ts:50

Type parameters:

NameType
TAnyEntity<T>

Parameters:

NameType
entityT

Returns: EntityData<T>


processProperty

PrivateprocessProperty<T>(changeSet: ChangeSet<T>, prop: EntityProperty<T>): void

Defined in packages/core/src/unit-of-work/ChangeSetComputer.ts:63

Type parameters:

NameType
TAnyEntity<T>

Parameters:

NameType
changeSetChangeSet<T>
propEntityProperty<T>

Returns: void


processToMany

PrivateprocessToMany<T>(prop: EntityProperty<T>, changeSet: ChangeSet<T>): void

Defined in packages/core/src/unit-of-work/ChangeSetComputer.ts:83

Type parameters:

NameType
TAnyEntity<T>

Parameters:

NameType
propEntityProperty<T>
changeSetChangeSet<T>

Returns: void


processToOne

PrivateprocessToOne<T>(prop: EntityProperty<T>, changeSet: ChangeSet<T>): void

Defined in packages/core/src/unit-of-work/ChangeSetComputer.ts:73

Type parameters:

NameType
TAnyEntity<T>

Parameters:

NameType
propEntityProperty<T>
changeSetChangeSet<T>

Returns: void

Last updated on by Martin Adámek