Skip to main content
Version: 4.4

Class: ChangeSetComputer#

core.ChangeSetComputer

Hierarchy#

  • ChangeSetComputer

Constructors#

constructor#

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

Parameters:#

NameType
validatorEntityValidator
collectionUpdatesSet<Collection<AnyEntity<any>, unknown>>
removeStackSet<AnyEntity<any>>
metadataMetadataStorage
platformPlatform
configConfiguration<IDatabaseDriver<Connection>>

Returns: ChangeSetComputer

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

Properties#

comparator#

Private Readonly comparator: EntityComparator

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

Methods#

computeChangeSet#

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

Type parameters:#

NameType
TAnyEntity<T>

Parameters:#

NameType
entityT

Returns: null | ChangeSet<T>

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


computePayload#

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

Type parameters:#

NameType
TAnyEntity<T>

Parameters:#

NameType
entityT

Returns: EntityData<T>

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


processProperty#

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

Type parameters:#

NameType
TAnyEntity<T>

Parameters:#

NameType
changeSetChangeSet<T>
propEntityProperty<T>

Returns: void

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


processToMany#

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

Type parameters:#

NameType
TAnyEntity<T>

Parameters:#

NameType
propEntityProperty<T>
changeSetChangeSet<T>

Returns: void

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


processToOne#

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

Type parameters:#

NameType
TAnyEntity<T>

Parameters:#

NameType
propEntityProperty<T>
changeSetChangeSet<T>

Returns: void

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

Last updated on by Martin Adámek