1. dojo.data, stores and
widgets
Tobias von Klipstein - klipstein@uxebu.com
uxebu Consulting Ltd. & Co. KG
2. dojo.data?
• uniform and consistent data access layer
• hides the underlying data structure
(JSON, XML, CSV)
• a set of APIs/interfaces for writing data
stores
• unique way to handle data with widgets
3. The big picture
Stores Widgets
API
dojo.data.Read dojo.data.ItemFileReadStore dijit.form.ComboBox
dojo.data.Identity dijit.form.FilteringSelect
dojox.data.QueryReadStore
dijit.Tree
dojox.data.CsvStore
dojox.grid.DataGrid
dojo.data.Write dojo.data.ItemFileWriteStore
...
...
dojo.data.Notification
4. Terminology
dojo.data Database Term
datastore cursor
data source database
item row
attribute column
value -
reference (foreign key)
identity primary key
query WHERE clause of SQL Select
dojo.data APIs JDBC or ODBC
request SQL Select
6. dojo.data.api.Read
• •
determine the APIs testing any object, if it
that a datastore is an item of a store
implements
• lazy-loading of items
• determine attributes
• searching for items
of each data item
that match a query
• getting values of
• sorting
attributes
• paging
• testing, if a specific
•
value is contained in filtering (using query
an attribute and wildcards: *, _)