mocks.js
function() {
		var all = this.db.getSobjects(this.type);
		var result = [];
		for(var Id in all) {
			var obj = all[Id];
			if(!this.condition || this.condition.matches(obj))
				result.push(this._createResultObj(obj));
		}
		return this.db.wrapResult(result, true);
	}
function() {
		var all = this.db.getSobjects(this.type);
		var result = [];
		for(var Id in all) {
			var obj = all[Id];
			if(!this.condition || this.condition.matches(obj))
				result.push(this._createResultObj(obj));
		}
		return this.db.wrapResult(result, true);
	}
Runs the query against the db