Login Register Help
API Documentation
Choose a stylesheet:

Constructordojo.data.ItemFileWriteStore

dojo.require("dojo.data.ItemFileWriteStore");

 

Usage

var foo=new dojo.data.ItemFileWriteStore(keywordParameters: Object);
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. }

Jump to PropertiesFunctionsBack to top

Functionclose(request: Object?)
Over-ride of base close function of ItemFileReadStore to add in check for store state.
Functionconstructor(keywordParameters: Object)
constructor
FunctioncontainsValue(item: item, attribute: attribute-name-string, value: anything): boolean.
See dojo.data.api.Read.containsValue()
FunctiondeleteItem(item: item)
See dojo.data.api.Write.deleteItem()
See dojo.data.api.Identity.fetchItemByIdentity()
FunctiongetAttributes(item: item): Array
See dojo.data.api.Read.getAttributes()
See dojo.data.api.Read.getFeatures()
FunctiongetIdentity(item: item): Number | Object | | String | null
See dojo.data.api.Identity.getIdentity()
FunctiongetIdentityAttributes(item: item): null | Array
See dojo.data.api.Identity.getIdentifierAttributes()
FunctiongetLabel(item: item): String | undefined
See dojo.data.api.Read.getLabel()
FunctiongetLabelAttributes(item: item): Array | null
See dojo.data.api.Read.getLabelAttributes()
FunctiongetValue(item: item, attribute: attribute-name-string, defaultValue: value?): mixed
See dojo.data.api.Read.getValue()
FunctiongetValues(item: item, attribute: attribute-name-string): Array
See dojo.data.api.Read.getValues()
FunctionhasAttribute(item: item, attribute: attribute-name-string)
See dojo.data.api.Read.hasAttribute()
FunctionisDirty(item: item?): Boolean
See dojo.data.api.Write.isDirty()
FunctionisItem(something: anything): Boolean
See dojo.data.api.Read.isItem()
FunctionisItemLoaded(something: anything): Boolean
See dojo.data.api.Read.isItemLoaded()
FunctionloadItem(keywordArgs: Object)
See dojo.data.api.Read.loadItem()
FunctionnewItem(keywordArgs: Object?, parentInfo: Object?): item
See dojo.data.api.Write.newItem()
FunctiononDelete(deletedItem: item)
See dojo.data.api.Notification.onDelete()
FunctiononNew(newItem: item, parentInfo: Object?)
See dojo.data.api.Notification.onNew()
FunctiononSet(item: item, attribute: attribute-name-string, oldValue: Object, newValue: Object)
See dojo.data.api.Notification.onSet()
See dojo.data.api.Write.revert()
Functionsave(keywordArgs: Object)
See dojo.data.api.Write.save()
FunctionsetValue(item: item, attribute: attribute-name-string, value: almost): Boolean
See dojo.data.api.Write.set()
FunctionsetValues(item: item, attribute: attribute-name-string, values: Array): Boolean
See dojo.data.api.Write.setValues()
FunctionunsetAttribute(item: item, attribute: attribute-name-string)
See dojo.data.api.Write.unsetAttribute()
Function_addReferenceToMap(refItem: item, parentItem: item, attribute: String)
Method to add an reference map entry for an item and attribute.
Function_assert(condition: Boolean)
Function_assertIsAttribute(attribute: attribute-name-string)
This function tests whether the item passed in is indeed a valid 'attribute' like type for the store.
Function_assertIsItem(item: item)
This function tests whether the item passed in is indeed an item in the store.
Function_containsValue(item: item, attribute: attribute-name-string, value: anything, regexp: RegExp?): Boolean
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: anything)
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: item, attribute: attribute-name-string)
Internal function to execute delayed request in the store. Execute any deferred fetches now.
Function_isEmpty(something: The): Boolean
Function to determine if an array or object has no properties or values.
Function_removeArrayElement(array: Array, element: anything)
Function_removeReferenceFromMap(refItem: item, parentItem: item, attribute: strin)
Method to remove an reference map entry for an item and attribute.
Function_setValueOrValues(item: item, attribute: attribute-name-string, newValueOrValues: anything, callOnSet: Boolean?): Boolean

Jump to FunctionsPropertiesBack to top