/* Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ if(!dojo._hasResource["dojox.data.QueryReadStore"]){dojo._hasResource["dojox.data.QueryReadStore"]=true;dojo.provide("dojox.data.QueryReadStore");dojo.require("dojo.string");dojo.require("dojo.data.util.sorter");dojo.declare("dojox.data.QueryReadStore",null,{url:"",requestMethod:"get",_className:"dojox.data.QueryReadStore",_items:[],_lastServerQuery:null,_numRows:-1,lastRequestHash:null,doClientPaging:false,doClientSorting:false,_itemsByIdentity:null,_identifier:null,_features:{"dojo.data.api.Read":true,"dojo.data.api.Identity":true},_labelAttr:"label",constructor:function(_1){dojo.mixin(this,_1);},getValue:function(_2,_3,_4){this._assertIsItem(_2);if(!dojo.isString(_3)){throw new Error(this._className+".getValue(): Invalid attribute, string expected!");}if(!this.hasAttribute(_2,_3)){if(_4){return _4;}}return _2.i[_3];},getValues:function(_5,_6){this._assertIsItem(_5);var _7=[];if(this.hasAttribute(_5,_6)){_7.push(_5.i[_6]);}return _7;},getAttributes:function(_8){this._assertIsItem(_8);var _9=[];for(var i in _8.i){_9.push(i);}return _9;},hasAttribute:function(_a,_b){return this.isItem(_a)&&typeof _a.i[_b]!="undefined";},containsValue:function(_c,_d,_e){var _f=this.getValues(_c,_d);var len=_f.length;for(var i=0;i