dojox/wire/ml/DataStore.js

  • Provides:

    • dojox.wire.ml.DataStore
  • Requires:

    • dijit._Widget in common in project dijit
    • dojox.wire._base in common
  • dojox.wire.ml.DataStore

    • type
      Function
    • chains:
      • dijit._Widget: (prototype)
      • dijit._Widget: (call)
    • summary
      A widget for a data store
    • description
      This widget represents a data store of 'storeClass' attribute.
  • dojox.wire.ml.DataStore.storeClass

    • type
      A
    • summary
      class name of a data store
  • dojox.wire.ml.DataStore.postCreate

    • type
      Function
    • source: [view]
        this.store = this._createStore();
    • summary
      Call _createStore()
    • description
      See _createStore().
  • dojox.wire.ml.DataStore._createStore

    • type
      Function
    • source: [view]
        if(!this.storeClass){
         return null; //null
        }
        var storeClass = dojox.wire._getClass(this.storeClass);
        if(!storeClass){
         return null; //null
        }
        var args = {};
        var attributes = this.domNode.attributes;
        for(var i = 0; i < attributes.length; i++){
         var a = attributes.item(i);
         if(a.specified && !this[a.nodeName]){
          args[a.nodeName] = a.nodeValue;
         }
        }
        return new storeClass(args); //Object
    • summary
      Create a data store
      desription:
      A data store of 'storeClass' is created with arguments
      specified with attributes.
    • return_summary
      A data store
    • returns
      null|Object
  • dojox.wire.ml.DataStore.getFeatures

    • type
      Function
    • source: [view]
        return this.store.getFeatures(); //Object
    • summary
      Call getFeatures() method of a data store
    • description
      See dojo.data.api.Read.getFeatures().
    • return_summary
      A features object
    • returns
      Object
  • dojox.wire.ml.DataStore.fetch

    • type
      Function
    • parameters:
      • request: (typeof Object)
        A request object
    • source: [view]
        return this.store.fetch(request); //Object
    • summary
      Call fetch() method of a data store
    • description
      See dojo.data.api.Read.fetch().
    • return_summary
      A request object
    • returns
      Object
  • dojox.wire.ml.DataStore.save

    • type
      Function
    • parameters:
      • args: (typeof Object)
        A save arguments object
    • source: [view]
        this.store.save(args);
    • summary
      Call save() method of a data store
    • description
      See dojo.data.api.Write.save().
  • dojox.wire.ml.DataStore.newItem

    • type
      Function
    • parameters:
      • args: (typeof Object)
        A new item arguments object
    • source: [view]
        return this.store.newItem(args); //Object
    • summary
      Call newItem() method of a data store
    • description
      See dojo.data.api.Write.newItem().
    • return_summary
      A new item
    • returns
      Object
  • dojox.wire.ml.DataStore.deleteItem

    • type
      Function
    • parameters:
      • item: (typeof Object)
    • source: [view]
        return this.store.deleteItem(item); //Boolean
    • summary
      Call deleteItem() method of a data store
    • description
      See dojo.data.api.Write.deleteItem().
    • return_summary
      A boolean
    • returns
      Boolean
  • dojox.wire.ml.DataStore.revert

    • type
      Function
    • source: [view]
        return this.store.revert(); //Boolean
    • summary
      Call revert() method of a data store
    • description
      See dojo.data.api.Write.revert().
    • return_summary
      A boolean
    • returns
      Boolean
  • dojox.wire.ml.DataStore.store

    • summary
  • dojox.wire.ml

    • type
      Object
    • summary
  • dojox.wire

    • type
      Object
    • summary
  • dojox

    • type
      Object
    • summary