--- !ruby/object:RI::ClassDescription 
attributes: 
- !ruby/object:RI::Attribute 
  comment: 
  - !ruby/struct:SM::Flow::P 
    body: Returns the conditions of the query
  - !ruby/struct:SM::Flow::P 
    body: "In the following example:"
  - !ruby/struct:SM::Flow::P 
    body: "@example"
  - !ruby/struct:SM::Flow::VERB 
    body: "  Team.all(:wins.gt =&gt; 30, :conference =&gt; 'East')\n"
  - !ruby/struct:SM::Flow::P 
    body: Conditions are &quot;greater than&quot; operator for &quot;wins&quot; field and exact match operator for &quot;conference&quot;.
  - !ruby/struct:SM::Flow::P 
    body: "@return [Array]"
  - !ruby/struct:SM::Flow::VERB 
    body: "  the conditions that will be used to scope the results\n"
  - !ruby/struct:SM::Flow::P 
    body: "@api semipublic"
  name: conditions
  rw: R
- !ruby/object:RI::Attribute 
  comment: 
  - !ruby/struct:SM::Flow::P 
    body: Returns the fields
  - !ruby/struct:SM::Flow::P 
    body: "Set in cases like the following:"
  - !ruby/struct:SM::Flow::P 
    body: "@example"
  - !ruby/struct:SM::Flow::VERB 
    body: "  Document.all(:fields =&gt; [:title, :vernacular_title, :abstract])\n"
  - !ruby/struct:SM::Flow::P 
    body: "@return [PropertySet]"
  - !ruby/struct:SM::Flow::VERB 
    body: "  the properties in the Model that will be retrieved\n"
  - !ruby/struct:SM::Flow::P 
    body: "@api semipublic"
  name: fields
  rw: R
- !ruby/object:RI::Attribute 
  comment: 
  - !ruby/struct:SM::Flow::P 
    body: Returns the limit query uses
  - !ruby/struct:SM::Flow::P 
    body: "Set in cases like the following:"
  - !ruby/struct:SM::Flow::P 
    body: "@example"
  - !ruby/struct:SM::Flow::VERB 
    body: "  Document.all(:limit =&gt; 10)\n"
  - !ruby/struct:SM::Flow::P 
    body: "@return [Integer, NilClass]"
  - !ruby/struct:SM::Flow::VERB 
    body: "  the maximum number of results\n"
  - !ruby/struct:SM::Flow::P 
    body: "@api semipublic"
  name: limit
  rw: R
- !ruby/object:RI::Attribute 
  comment: 
  - !ruby/struct:SM::Flow::P 
    body: Returns the links (associations) query fetches
  - !ruby/struct:SM::Flow::P 
    body: "@return [Array&lt;DataMapper::Associations::Relationship&gt;]"
  - !ruby/struct:SM::Flow::VERB 
    body: "  the relationships that will be used to scope the results\n"
  - !ruby/struct:SM::Flow::P 
    body: "@api private"
  name: links
  rw: R
- !ruby/object:RI::Attribute 
  comment: 
  - !ruby/struct:SM::Flow::P 
    body: Returns model (class) that is used to instantiate objects from query result returned by adapter
  - !ruby/struct:SM::Flow::P 
    body: "@return [Model]"
  - !ruby/struct:SM::Flow::VERB 
    body: "  the Model to retrieve results from\n"
  - !ruby/struct:SM::Flow::P 
    body: "@api semipublic"
  name: model
  rw: R
- !ruby/object:RI::Attribute 
  comment: 
  - !ruby/struct:SM::Flow::P 
    body: Returns the offset query uses
  - !ruby/struct:SM::Flow::P 
    body: "Set in cases like the following:"
  - !ruby/struct:SM::Flow::P 
    body: "@example"
  - !ruby/struct:SM::Flow::VERB 
    body: "  Document.all(:offset =&gt; page.offset)\n"
  - !ruby/struct:SM::Flow::P 
    body: "@return [Integer]"
  - !ruby/struct:SM::Flow::VERB 
    body: "  the offset of the results\n"
  - !ruby/struct:SM::Flow::P 
    body: "@api semipublic"
  name: offset
  rw: R
- !ruby/object:RI::Attribute 
  comment: 
  - !ruby/struct:SM::Flow::P 
    body: Returns the original options
  - !ruby/struct:SM::Flow::P 
    body: "@return [Hash]"
  - !ruby/struct:SM::Flow::VERB 
    body: "  the original options\n"
  - !ruby/struct:SM::Flow::P 
    body: "@api private"
  name: options
  rw: R
- !ruby/object:RI::Attribute 
  comment: 
  - !ruby/struct:SM::Flow::P 
    body: Returns the order
  - !ruby/struct:SM::Flow::P 
    body: "Set in cases like the following:"
  - !ruby/struct:SM::Flow::P 
    body: "@example"
  - !ruby/struct:SM::Flow::VERB 
    body: "  Document.all(:order =&gt; [:created_at.desc, :length.desc])\n"
  - !ruby/struct:SM::Flow::P 
    body: query order is a set of two ordering rules, descending on &quot;created_at&quot; field and descending again on &quot;length&quot; field
  - !ruby/struct:SM::Flow::P 
    body: "@return [Array]"
  - !ruby/struct:SM::Flow::VERB 
    body: "  the order of results\n"
  - !ruby/struct:SM::Flow::P 
    body: "@api semipublic"
  name: order
  rw: R
- !ruby/object:RI::Attribute 
  comment: 
  - !ruby/struct:SM::Flow::P 
    body: Returns the repository query should be executed in
  - !ruby/struct:SM::Flow::P 
    body: "Set in cases like the following:"
  - !ruby/struct:SM::Flow::P 
    body: "@example"
  - !ruby/struct:SM::Flow::VERB 
    body: "  Document.all(:repository =&gt; :medline)\n"
  - !ruby/struct:SM::Flow::P 
    body: "@return [Repository]"
  - !ruby/struct:SM::Flow::VERB 
    body: "  the Repository to retrieve results from\n"
  - !ruby/struct:SM::Flow::P 
    body: "@api semipublic"
  name: repository
  rw: R
class_methods: 
- !ruby/object:RI::MethodSummary 
  name: new
- !ruby/object:RI::MethodSummary 
  name: target_conditions
comment: 
- !ruby/struct:SM::Flow::P 
  body: Query class represents a query which will be run against the data-store. Generally Query objects can be found inside Collection objects.
constants: 
- !ruby/object:RI::Constant 
  comment: 
  name: OPTIONS
  value: "[ :fields, :links, :conditions, :offset, :limit, :order, :unique, :add_reversed, :reload ].to_set.freeze"
full_name: DataMapper::Query
includes: 
- !ruby/object:RI::IncludedModule 
  name: Extlib::Assertions
instance_methods: 
- !ruby/object:RI::MethodSummary 
  name: "[]"
- !ruby/object:RI::MethodSummary 
  name: add_reversed?
- !ruby/object:RI::MethodSummary 
  name: condition_properties
- !ruby/object:RI::MethodSummary 
  name: filter_records
- !ruby/object:RI::MethodSummary 
  name: inspect
- !ruby/object:RI::MethodSummary 
  name: limit_records
- !ruby/object:RI::MethodSummary 
  name: match_records
- !ruby/object:RI::MethodSummary 
  name: merge
- !ruby/object:RI::MethodSummary 
  name: raw?
- !ruby/object:RI::MethodSummary 
  name: relative
- !ruby/object:RI::MethodSummary 
  name: reload?
- !ruby/object:RI::MethodSummary 
  name: reverse
- !ruby/object:RI::MethodSummary 
  name: reverse!
- !ruby/object:RI::MethodSummary 
  name: slice
- !ruby/object:RI::MethodSummary 
  name: slice!
- !ruby/object:RI::MethodSummary 
  name: sort_records
- !ruby/object:RI::MethodSummary 
  name: sorted_fields
- !ruby/object:RI::MethodSummary 
  name: unique?
- !ruby/object:RI::MethodSummary 
  name: update
- !ruby/object:RI::MethodSummary 
  name: valid?
name: Query
superclass: Object
