Constructordojo.data.ItemFileWriteStore

dojo.require("dojo.data.ItemFileWriteStore");
defined in dojo/data/ItemFileWriteStore.js

Usage

function (/*Object*/ keywordParameters) (view source)
parametertypedescription
keywordParametersObjecttypeMap object) The structure of the typeMap object is as follows: { type0: function || object, type1: function || object, ... typeN: function || object } Where if it is a function, it is assumed to be an object constructor that takes the value of _value as the initialization parameters. It is serialized assuming object.toString() serialization. If it is an object, then it is assumed to be an object of general form: { type: function, //constructor. deserialize: function(value) //The function that parses the value and constructs the object defined by type appropriately. serialize: function(object) //The function that converts the object back into the proper file format form. }
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()
FunctiondeleteItem(item)
See dojo.data.api.Write.deleteItem()
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()
FunctionisDirty(item)
See dojo.data.api.Write.isDirty()
FunctionisItem(something)
See dojo.data.api.Read.isItem()
FunctionisItemLoaded(something)
See dojo.data.api.Read.isItemLoaded()
FunctionloadItem(keywordArgs: Object)
See dojo.data.api.Read.loadItem()
FunctionnewItem(keywordArgs: Object?, parentInfo: Object?)
See dojo.data.api.Write.newItem()
FunctiononDelete(deletedItem)
See dojo.data.api.Notification.onDelete() No need to do anything. This method is here just so that the client code can connect observers to it.
FunctiononNew(newItem, parentInfo: Object?)
See dojo.data.api.Notification.onNew() No need to do anything. This method is here just so that the client code can connect observers to it.
FunctiononSet(item, attribute, oldValue: Object|Array, newValue: Object|Array)
See dojo.data.api.Notification.onSet() No need to do anything. This method is here just so that the client code can connect observers to it.
See dojo.data.api.Write.revert()
Functionsave(keywordArgs: Object)
See dojo.data.api.Write.save()
FunctionsetValue(item, attribute, value)
See dojo.data.api.Write.set()
FunctionsetValues(item, attribute, values: Array)
See dojo.data.api.Write.setValues()
FunctionunsetAttribute(item, attribute)
See dojo.data.api.Write.unsetAttribute()
Function_addReferenceToMap(refItem, parentItem, attribute: String)
Method to add an reference map entry for an item and attribute.
Function_assert(condition: Boolean)
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 to dump the reverse reference map of all items in the store for debug purposes.
Function_fetchItems(keywordArgs: Object, findCallback: Function, errorCallback: Function)
See dojo.data.util.simpleFetch.fetch()
Function_flatten(value)
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.
Generate a string that can be saved to a file. The result should look similar to: http://trac.dojotoolkit.org/browser/dojo/trunk/tests/data/countries.json
Function_getValueOrValues(item, attribute)
Internal function to execute delayed request in the store. Execute any deferred fetches now.
Function_isEmpty(something)
Function to determine if an array or object has no properties or values.
Function_removeArrayElement(array: Array, element)
Function_removeReferenceFromMap(refItem, parentItem, attribute)
Method to remove an reference map entry for an item and attribute.
Function_setValueOrValues(item, attribute, newValueOrValues, callOnSet: Boolean?)

Jump to FunctionsPropertiesBack to top