The APP Store is instantiated either in markup or programmatically by supplying a url of the Collection to be used.
>The APP Store is instantiated either in markup or programmatically by supplying a url of the Collection to be used. >Parameter | Type | Description |
---|---|---|
args | Object | An anonymous object to initialize properties. It expects the following values:
|
See the dojox/data/AppStore reference documentation for more information.
Whether or not to pass the preventCache parameter to the connection
Internal function to add an updated entry to our updates array
Internal function to add an updated entry to our updates array
Parameter | Type | Description |
---|---|---|
update | Object | The updated Entry we've changed. |
This function tests whether the item is an attribute.
This function tests whether the item passed in is indeed a valid 'attribute' like type for the store.
Parameter | Type | Description |
---|---|---|
attribute | String | The attribute to test for being contained by the store. |
Returns a boolean indicating whether this is a valid attribute.
This function tests whether the item is an item.
This function tests whether the item passed in is indeed an item in the store.
Parameter | Type | Description |
---|---|---|
item | item | The item to test for being contained by the store. |
Internal function for looking at the values contained by the item.
Internal function for looking at the values contained by the item. This function allows for denoting if the comparison should be case sensitive for strings or not (for handling filtering cases where string case should not matter)
Parameter | Type | Description |
---|---|---|
item | item | The data item to examine for attribute values. |
attribute | attribute-name-string | The attribute to inspect. |
value | anything | The value to match. |
regexp | RegExp |
Optional Optional regular expression generated off value if value was of string type to handle wildcarding. If present and attribute values are string, then it can be used for comparison instead of 'value' |
trim | Boolean |
Optional
|
Fetch items (Atom entries) that match to a query
Fetch items (Atom entries) that match to a query
Parameter | Type | Description |
---|---|---|
request | undefined | A request object |
fetchHandler | undefined | A function to call for fetched items |
errorHandler | undefined | A function to call on error |
Internal function for finishing a fetch request.
Internal function for finishing a fetch request. Needed since the feed might not have been loaded, so we finish the fetch in a callback.
Parameter | Type | Description |
---|---|---|
request | undefined | A request object |
fetchHandler | undefined | A function to call for fetched items |
errorHandler | undefined | A function to call on error |
Function to return all entries in the Feed as an array of items.
Function to return all entries in the Feed as an array of items.
Array of all entries in the feed.
Sets the internal feed using a dojox.atom.io.model.Feed object.
Sets the internal feed using a dojox.atom.io.model.Feed object. Also adds a property to the entries to track that they belong to this store. It also parses stored requests (since we were waiting on a callback) and executes those as well.
Parameter | Type | Description |
---|---|---|
feed | undefined | The Feed to use for this data store. |
data | unused | Signature for this function is defined by AtomIO.getFeed, since this is a callback. |
See dojo/data/api/Read.close()
Parameter | Type | Description |
---|---|---|
request | dojo/data/api/Request | Object |
Optional
|
See dojo/data/api/Read.containsValue()
Parameter | Type | Description |
---|---|---|
item | item | |
attribute | attribute-name-string | |
value | anything |
See dojo/data/api/Write.deleteItem()
Parameter | Type | Description |
---|---|---|
item | item |
See dojo/data/api/Identity.fetchItemByIdentity()
Parameter | Type | Description |
---|---|---|
keywordArgs | undefined |
See dojo/data/api/Read.getAttributes()
Parameter | Type | Description |
---|---|---|
item | item |
See dojo/data/api/Identity.getIdentity()
Parameter | Type | Description |
---|---|---|
item | item |
See dojo/data/api/Identity.getIdentityAttributes()
Parameter | Type | Description |
---|---|---|
item | item |
See dojo/data/api/Read.getLabel()
Parameter | Type | Description |
---|---|---|
item | item |
See dojo/data/api/Read.getLabelAttributes()
Parameter | Type | Description |
---|---|---|
item | item |
See dojo/data/api/Read.getValue()
Parameter | Type | Description |
---|---|---|
item | item | |
attribute | attribute-name-string | |
defaultValue | value |
Optional
|
See dojo/data/api/Read.getValues()
Parameter | Type | Description |
---|---|---|
item | item | |
attribute | attribute-name-string |
See dojo/data/api/Read.hasAttribute()
Parameter | Type | Description |
---|---|---|
item | item | |
attribute | attribute-name-string |
See dojo/data/api/Write.isDirty()
Parameter | Type | Description |
---|---|---|
item | item |
Optional
|
See dojo/data/api/Read.isItem()
Parameter | Type | Description |
---|---|---|
something | anything |
See dojo/data/api/Read.isItemLoaded()
Parameter | Type | Description |
---|---|---|
something | anything |
See dojo/data/api/Read.loadItem()
Parameter | Type | Description |
---|---|---|
keywordArgs | Object |
See dojo/data/api/Write.newItem()
Parameter | Type | Description |
---|---|---|
keywordArgs | Object |
Optional
|
See dojo/data/api/Write.save()
Parameter | Type | Description |
---|---|---|
keywordArgs | object | { onComplete: function onError: function scope: object } |
See dojo/data/api/Write.setValue()
Parameter | Type | Description |
---|---|---|
item | item | |
attribute | string | |
value | almost anything |
See dojo/data/api/Write.setValues()
Parameter | Type | Description |
---|---|---|
item | item | |
attribute | string | |
values | array |
See dojo/data/api/Write.unsetAttribute()
Parameter | Type | Description |
---|---|---|
item | item | |
attribute | string |