DS.RecordArrayManager Class packages/ember-data/lib/system/record_array_manager.js:9


PRIVATE

Extends: Ember.Object

Defined in: packages/ember-data/lib/system/record_array_manager.js:9

Module: ember-data

Show:

createManyArray

(type, references) DS.ManyArray

Create a DS.ManyArray for a type and list of record references, and index the ManyArray under each reference. This allows us to efficiently remove records from ManyArrays when they are deleted.

Parameters:

type Class
references Array

Returns:

DS.ManyArray

registerFilteredRecordArray

(array, type, filter)

Register a RecordArray for a given type to be backed by a filter function. This will cause the array to update automatically when records of that type change attribute values or states.

Parameters:

array DS.RecordArray
type Class
filter Function

updateFilter

(array, type, filter)

This method is invoked if the filterFunction property is changed on a DS.FilteredRecordArray.

It essentially re-runs the filter from scratch. This same method is invoked when the filter is created in th first place.

Parameters:

array
type
filter

updateRecordArray

(array, filter, type, clientId)

Update an individual filter.

Parameters:

array DS.FilteredRecordArray
filter Function
type Class
clientId Number|String

updateRecordArrays

(type, clientId)

This method is invoked whenever data is loaded into the store by the adapter or updated by the adapter, or when a record has changed.

It updates all record arrays that a record belongs to.

To avoid thrashing, it only runs at most once per run loop.

Parameters:

type Class
clientId Number|String