Ticket #5987 (closed enhancement: fixed)
[patch][cla] ServiceStore - dojo.data implementation for dojox.rpc.Service instances
| Reported by: | kriszyp | Owned by: | dmachi |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.2 |
| Component: | Dojox | Version: | 1.0 |
| Severity: | normal | Keywords: | rpc data |
| Cc: |
Description (last modified by kriszyp) (diff)
ServiceStore? and it's subclasses are a dojo.data implementation for dojox.rpc.Service instances. Fetches are routed through the service and the returned results are used as the data behind the API. ServiceStore? also has a subclass JsonRestStore?, which provides read/write capabilities using the Rest service in dojox.rpc.Rest. JsonRestStore? has two subclasses, PersevereRestStore? and CouchDBStore, which have adjustments for minor differences in handling certain behavior for these two Json Rest storage systems. JsonRestStore? relies on dojox.rpc.JsonReferencing? to handling indexing and reference resolving. This allows indexing, reference resolving, and lazy loading capabilities to be usable from any RPC service independent of dojo.data implementations. Alternate referencing schemes could also be created and used with the same data stores and services. ServiceStore? does not require JsonReferencing?, but if it is included, ServiceStore? will support lazy loading.