DS.Store#_fetchAll()

_fetchAll (typeClass, array) Promiseprivate Defined in addon/-private/system/store.js:1423 Parameters: typeClass DS.Model array DS.RecordArray Returns: Promise promise

DS.Store#_dematerializeRecord()

_dematerializeRecord (internalModel) private Defined in addon/-private/system/store.js:2342 When a record is destroyed, this un-indexes it and removes it from any record arrays so it can be GCed. Parameters: internalModel InternalModel

DS.Store#updateId()

updateId (internalModel, data) private Defined in addon/-private/system/store.js:1799 When an adapter's createRecord, updateRecord or deleteRecord resolves with data, this method extracts the ID from the supplied data. Parameters: internalModel InternalModel data Object

DS.Store#unloadRecord()

unloadRecord (record) Defined in addon/-private/system/store.js:406 For symmetry, a record can be unloaded via the store. Only non-dirty records can be unloaded. Example store.findRecord('post', 1).then(function(post) { store.unloadRecord(post); }); Parameters: record DS.Model

DS.Store#unloadAll()

unloadAll (modelName) Defined in addon/-private/system/store.js:1509 This method unloads all records in the store. Optionally you can pass a type which unload all records for a given type. store.unloadAll(); store.unloadAll('post'); Parameters: modelName String

DS.Store#typeMapFor()

typeMapFor (typeClass) Objectprivate Defined in addon/-private/system/store.js:1831 Returns a map of IDs to client IDs for a given type. Parameters: typeClass DS.Model Returns: Object typeMap

DS.Store#serializerFor()

serializerFor (modelName) DS.Serializerpublic Defined in addon/-private/system/store.js:2402 Returns an instance of the serializer for a given type. For example, serializerFor('person') will return an instance of App.PersonSerializer. If no App.PersonSerializer is found, this method will look for an App.ApplicationSerializer (the default serializer for your entire application). if no App.ApplicationSerializer is found, it will attempt to get the defaultSerializer from the PersonAdapter (ada

DS.Store#serialize()

serialize (record, options) private Defined in addon/-private/system/store.js:250 Returns a JSON representation of the record using a custom type-specific serializer, if one exists. The available options are: includeId: true if the record's ID should be included in the JSON representation Parameters: record DS.Model the record to serialize options Object an options hash

DS.Store#scheduleSave()

scheduleSave (internalModel, resolver, options) private Defined in addon/-private/system/store.js:1685 This method is called by record.save, and gets passed a resolver for the promise that record.save returns. It schedules saving to happen at the end of the run loop. Parameters: internalModel InternalModel resolver Resolver options Object

DS.Store#retrieveManagedInstance()

retrieveManagedInstance (modelName, name, fallbacks) Ember.Objectprivate Defined in addon/-private/system/store.js:2438 Retrieve a particular instance from the container cache. If not found, creates it and placing it in the cache. Enabled a store to manage local instances of adapters and serializers. Parameters: modelName String the object modelName name String the object name fallbacks Array the fallback objects to lookup if the lookup for modelName or 'application' fails R