Abstract A CollectionMutator received collection type definition.
The Collection
A collection data type definition.
A CollectionMutator received collection type definition.
The collection name.
Protected Abstract collectionProtected Readonly dbProtected debugProtected Readonly namePrivate Readonly resourcePrivate rootProtected clearThe makeReferableEntities() method converts fetched data to ReferableMapEntity.
Fetched data
The fetch() method fetch the collection from database, mutate, and then save it as a cache.
Promise
Optional mutator: CollectionMutator<M> = ...Mutator mutates raw collection data from the database to certain format check Mutator for some built-in mutators.
The fetchNoRef() method fetch the collection from database without referable property, mutate, and then save it as a cache.
Promise
Optional mutator: CollectionMutator<M> = ...Mutator mutates raw collection data from the database to certain format check Mutator for some built-in mutators.
Protected Abstract handleProtected
The handleChanges() abstract method will be used to handle DataChanges to match the database required form. Note: Different databases require different procedures to process DataChanges.
Received changes.
Protected Abstract initPrivate makeThe makeReferableEntities() method converts fetched data to ReferableMapEntity.
Fetched data
The readFromCache() method retrieve data from saved cache.
Automatically fetch data from the database if it is not presented.
The readFromCacheNoRef() method retrieve data from saved cache without referable property.
Automatically fetch data from the database if it is not presented.
Protected Abstract retrieveThe setDefaultMutator() method set Collection's defaultMutator, which will be used when resources are being fetched automatically.
Mutator mutates raw collection data from the database to certain format check Mutator for some built-in mutators.
Protected Abstract verifyProtected
The verifyChanges() abstract method will be used to verify changes pushed to the database. Note: Different databases may require different procedures.
Expected changes.
Generated using TypeDoc
A collection data type definition.