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>


  • 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 Detail

      • castValues

        protected final java.util.List<io.inversion.utils.KeyValue> castValues
      • originalValues

        protected final java.util.List<io.inversion.utils.KeyValue> originalValues
      • db

        protected D extends Db db
      • 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 Detail

      • Query

        public Query()
      • Query

        public Query​(D db,
                     Collection coll,
                     java.lang.Object terms,
                     java.lang.String... functions)
    • Method Detail

      • 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​(io.inversion.rql.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
      • 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​(java.lang.String columnName,
                                 java.lang.Object value)
      • getColValueKeys

        public java.util.List<java.lang.String> getColValueKeys()
      • getColValues

        public java.util.List<java.lang.Object> getColValues()
      • getOriginalValues

        public java.util.List<java.lang.Object> getOriginalValues()
      • getColValue

        public io.inversion.utils.KeyValue<java.lang.String,​java.lang.String> getColValue​(int index)
      • getValues

        public java.util.List<io.inversion.utils.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)