class CriteriaBuilder<T> extends AbstractCriteriaBuilder
A CriteriaBuilder implementation for RxGORM
Fields inherited from class | Fields |
---|---|
class AbstractCriteriaBuilder |
ORDER_ASCENDING, ORDER_DESCENDING, ROOT_CALL, ROOT_DO_CALL, SCROLL_CALL, logicalExpressionStack, orderEntries, paginationEnabledList, persistentEntity, projectionList, query, queryCreator, queryMetaClass, readOnly, targetClass, uniqueResult |
Constructor and description |
---|
CriteriaBuilder
(java.lang.Class<T> targetClass, QueryCreator queryCreator, MappingContext mappingContext) |
Type Params | Return Type | Name and description |
---|---|---|
|
rx.Observable<java.lang.Number> |
count(java.util.Map args, groovy.lang.Closure additionalCriteria) Calculates the total number of matches for the query |
|
rx.Observable<java.lang.Number> |
count(groovy.lang.Closure additionalCriteria) Calculates the total number of matches for the query |
|
rx.Observable<T> |
find(groovy.lang.Closure callable) Finds a single result matching this criteria. |
|
rx.Observable<T> |
findAll(groovy.lang.Closure additionalCriteria) Finds a multiple results matching this criteria. |
|
rx.Observable<T> |
findAll(java.util.Map args, groovy.lang.Closure additionalCriteria) Finds all results for this criteria |
|
rx.Observable<T> |
get(groovy.lang.Closure callable) Finds a single result matching this criteria. |
|
rx.Observable<T> |
get() Finds a single result matching this criteria. |
|
protected java.lang.Object |
invokeList() |
|
rx.Observable<java.util.List<T>> |
list(java.util.Map args, groovy.lang.Closure additionalCriteria) Converts the observable to another observable that outputs the complete list. |
|
rx.Observable<java.util.List<T>> |
list(groovy.lang.Closure additionalCriteria) Converts the observable to another observable that outputs the complete list. |
|
rx.Observable<java.util.List<T>> |
listDistinct(java.util.Map args, groovy.lang.Closure additionalCriteria) |
|
rx.Observable<java.util.List> |
listDistinct(groovy.lang.Closure callable) |
|
protected void |
prepareQuery(java.util.Map args, groovy.lang.Closure additionalCriteria) |
Methods inherited from class | Name |
---|---|
class AbstractCriteriaBuilder |
addToCriteria, allEq, and, avg, between, build, buildQueryableCriteria, cache, count, countDistinct, distinct, distinct, ensureQueryIsInitialized, eq, eqAll, eqAll, eqProperty, exists, ge, geAll, geAll, geProperty, geSome, geSome, getQuery, getTargetClass, groupProperty, gt, gtAll, gtAll, gtProperty, gtSome, gtSome, gte, handleJunction, id, idEq, idEquals, ilike, in, in, in, in, inList, inList, inList, inList, invokeClosureNode, invokeList, invokeMethod, isCriteriaConstructionMethod, isEmpty, isNotEmpty, isNotNull, isNull, join, le, leAll, leAll, leProperty, leSome, leSome, like, lt, ltAll, ltAll, ltProperty, ltSome, ltSome, lte, max, min, ne, neProperty, not, notExists, notIn, notIn, or, order, order, order, projections, property, readOnly, rlike, rowCount, select, setUniqueResult, sizeEq, sizeGe, sizeGt, sizeLe, sizeLt, sizeNe, sum, validatePropertyName |
Calculates the total number of matches for the query
args
- The argumentsadditionalCriteria
- Any additional criteriaCalculates the total number of matches for the query
args
- The argumentsadditionalCriteria
- Any additional criteriaFinds a single result matching this criteria. Note that the observable returned will emit each result one by one. If you prefer to receive the entire list of results use toList() instead
callable
- Any additional criteriaFinds a multiple results matching this criteria. Note that the observable returned will emit each result one by one. If you prefer to receive the entire list of results use toList() instead
additionalCriteria
- Any additional criteriaFinds all results for this criteria
args
- The argumentsadditionalCriteria
- Any additional criteriaFinds a single result matching this criteria. Note that the observable returned will emit each result one by one. If you prefer to receive the entire list of results use toList() instead
callable
- Any additional criteriaFinds a single result matching this criteria. Note that the observable returned will emit each result one by one. If you prefer to receive the entire list of results use toList() instead
args
- The arguments The argumentsadditionalCriteria
- Any additional criteriaConverts the observable to another observable that outputs the complete list. Not for use with large datasets
args
- The argumentsadditionalCriteria
- Any additional criteriaConverts the observable to another observable that outputs the complete list. Not for use with large datasets
additionalCriteria
- Any additional criteria