Constructordojox.data.demos.stores.LazyLoadJSIStore

dojo.require("dojox.data.demos.stores.LazyLoadJSIStore");
defined in dojox/data/demos/stores/LazyLoadJSIStore.js

Usage

function (/*Object*/ keywordParameters) (view source)
parametertypedescription
keywordParametersObject 

Examples

Example 1

LazyLoadJSIStore extends ItemFileReadStore to implement an of lazy-loading/faulting in items on-demand. Note this is certianly not a perfect implementation, it is an example.

dojo.data.util.simpleFetch (from dojo.data.ItemFileReadStore)

Jump to PropertiesFunctionsBack to top

See dojo.data.api.Read.close()
FunctioncontainsValue(item, attribute, value)
See dojo.data.api.Read.containsValue()
See dojo.data.api.Identity.fetchItemByIdentity()
See dojo.data.api.Read.getAttributes()
See dojo.data.api.Read.getFeatures()
See dojo.data.api.Identity.getIdentity()
See dojo.data.api.Identity.getIdentifierAttributes()
FunctiongetLabel(item)
See dojo.data.api.Read.getLabel()
See dojo.data.api.Read.getLabelAttributes()
FunctiongetValue(item, attribute, defaultValue)
See dojo.data.api.Read.getValue()
FunctiongetValues(item, attribute)
See dojo.data.api.Read.getValues()
FunctionhasAttribute(item, attribute)
See dojo.data.api.Read.hasAttribute()
FunctionisItem(something)
See dojo.data.api.Read.isItem()
Overload of the isItemLoaded function to look for items of type 'stub', which indicate the data hasn't been loaded in yet.
FunctionloadItem(keywordArgs)
Overload of the loadItem function to fault in items. This assumes the data for an item is laid out in a RESTful sort of pattern name0/name1/data.json and so on and uses that to load the data. It will also detect stub items in the newly loaded item and insert the stubs into the ItemFileReadStore list so they can also be loaded in on-demand. item: The item to examine.
Function_addReferenceToMap(refItem, parentItem, attribute: String)
Method to add an reference map entry for an item and attribute.
Function_assertIsAttribute(attribute)
This function tests whether the item passed in is indeed a valid 'attribute' like type for the store.
This function tests whether the item passed in is indeed an item in the store.
Function_containsValue(item, attribute, value, regexp: RegExp?)
Internal function for looking at the values contained by the item.
Function_fetchItems(keywordArgs: Object, findCallback: Function, errorCallback: Function)
See dojo.data.util.simpleFetch.fetch()
Internal function to force a load of the store if it hasn't occurred yet. This is required for specific functions to work properly.
Internal function to look an item up by its identity map.
Function_getItemsArray(queryOptions: Object?)
Internal function to determine which list of items to search over.
Function to parse the loaded data into item format and build the internal items array.
Internal function to execute delayed request in the store. Execute any deferred fetches now.

Jump to FunctionsPropertiesBack to top