Package io.inversion.rql
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionQuery()Query(D db, Collection coll) Query(D db, Collection coll, Object terms, String... functions) -
Method Summary
Modifier and TypeMethodDescriptionprotected Tprotected Fprotected Rprotected Oprotected Gprotected Sprotected WdoSelect()getColValue(int index) getDb()getFrom()getGroup()intgetOrder()getPage()List<org.apache.commons.collections4.KeyValue>getWhere()booleanisDryRun()Test if this query sould actually be run or just planned.withCollection(Collection coll) protected TwithColValue(String columnName, Object value) withDryRun(boolean dryRun) OVERRIDE ME TO ADD CUSTOM FUNCTIONALITY TO YOUR FLUENT APIMethods inherited from class io.inversion.rql.Builder
addTerm, clearFunctions, find, find, findAll, findInt, findTerm, getParent, getRoot, getTerms, isFunction, parse, r, removeBuilder, toString, toString, withBuilder, withFunctions, withFunctions, withParent, withTerm, withTerm, withTerms
-
Field Details
-
values
-
db
-
collection
-
select
-
from
-
where
-
group
-
order
-
page
-
dryRun
protected boolean dryRun
-
-
Constructor Details
-
Query
public Query() -
Query
-
Query
-
-
Method Details
-
createSelect
-
createFrom
-
createWhere
-
createGroup
-
createOrder
-
createPage
-
withTerm
Description copied from class:BuilderOVERRIDE ME TO ADD CUSTOM FUNCTIONALITY TO YOUR FLUENT API -
doSelect
- Throws:
ApiException
-
getBuilders
-
getSelect
-
getFrom
-
getWhere
-
getGroup
-
getOrder
-
getPage
-
getCollection
-
getDb
-
withDb
-
withCollection
-
getNumValues
public int getNumValues() -
clearValues
-
withColValue
-
getColValueKeys
-
getColValues
-
getColValue
-
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
-