Protected Readonly dbProtected debugProtected Readonly namePrivate Readonly simulatedPrivate buildProtected clearThe makeReferableEntities() method converts fetched data to ReferableMapEntity.
Fetched data
Protected collectionThe fetch() method fetch the collection from database, mutate, and then save it as a cache.
Promise
Protected handleThe 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 initPrivate loadThis method should not be used since Simulated Collections are built and saved locally. The method fetch() would be more versatile in this case.
The readFromCacheNoRef() method retrieve data from saved cache without referable property.
Automatically fetch data from the database if it is not presented.
Protected retrievePrivate saveThe 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 verifyGenerated using TypeDoc
The SimulatedCollection() class extends from Collection. It shares similar properties except the data is simulated locally.