Class Query<T extends Query,D extends Db,S extends Select,F extends From,W extends Where,R extends Group,O extends Order,G extends Page>

java.lang.Object
io.inversion.rql.Builder<T,T>
io.inversion.rql.Query<T,D,S,F,W,R,O,G>

public class Query<T extends Query,D extends Db,S extends Select,F extends From,W extends Where,R extends Group,O extends Order,G extends Page> extends Builder<T,T>
Represents a full RQL query with a SELECT,WHERE,GROUP,ORDER, and PAGE clause.
  • Field Details

    • values

      protected final List<org.apache.commons.collections4.KeyValue> values
    • db

      protected D extends Db db
    • collection

      protected Collection collection
    • select

      protected S extends Select select
    • from

      protected F extends From from
    • where

      protected W extends Where where
    • group

      protected R extends Group group
    • order

      protected O extends Order order
    • page

      protected G extends Page page
    • dryRun

      protected boolean dryRun
  • Constructor Details

  • Method Details

    • createSelect

      protected S createSelect()
    • createFrom

      protected F createFrom()
    • createWhere

      protected W createWhere()
    • createGroup

      protected R createGroup()
    • createOrder

      protected O createOrder()
    • createPage

      protected G createPage()
    • withTerm

      public T withTerm(Term term)
      Description copied from class: Builder
      OVERRIDE ME TO ADD CUSTOM FUNCTIONALITY TO YOUR FLUENT API
      Overrides:
      withTerm in class Builder<T extends Query,T extends Query>
      Parameters:
      term - the term to add to the builder
      Returns:
      this
    • doSelect

      public Results doSelect() throws ApiException
      Throws:
      ApiException
    • getBuilders

      public List<Builder> getBuilders()
      Overrides:
      getBuilders in class Builder<T extends Query,T extends Query>
    • getSelect

      public S getSelect()
    • getFrom

      public F getFrom()
    • getWhere

      public W getWhere()
    • getGroup

      public R getGroup()
    • getOrder

      public O getOrder()
    • getPage

      public G getPage()
    • getCollection

      public Collection getCollection()
    • getDb

      public D getDb()
    • withDb

      public T withDb(D db)
    • withCollection

      public T withCollection(Collection coll)
    • getNumValues

      public int getNumValues()
    • clearValues

      protected T clearValues()
    • withColValue

      protected T withColValue(String columnName, Object value)
    • getColValueKeys

      public List<String> getColValueKeys()
    • getColValues

      public List<Object> getColValues()
    • getColValue

      public org.apache.commons.collections4.KeyValue<String,String> getColValue(int index)
    • getValues

      public List<org.apache.commons.collections4.KeyValue> getValues()
    • isDryRun

      public boolean isDryRun()
      Test if this query sould actually be run or just planned.
      Returns:
      true if dryRun is true or db.isDryRun is true
    • withDryRun

      public T withDryRun(boolean dryRun)