@groovy.transform.CompileStatic class DetachedCriteria<T> extends AbstractDetachedCriteria<rx.Observable<T>> implements PersistentObservable<T>
Reactive version of DetachedCriteria
Constructor and description |
---|
DetachedCriteria
(java.lang.Class<rx.Observable<T>> targetClass, java.lang.String alias) |
DetachedCriteria
(java.lang.Class<rx.Observable<T>> targetClass) |
Type Params | Return Type | Name and description |
---|---|---|
|
DetachedCriteria<T> |
allEq(java.util.Map<java.lang.String, java.lang.Object> propertyValues) |
|
DetachedCriteria<T> |
and(groovy.lang.Closure callable) |
|
DetachedCriteria<T> |
avg(java.lang.String property) |
|
DetachedCriteria<T> |
between(java.lang.String propertyName, java.lang.Object start, java.lang.Object finish) |
|
DetachedCriteria<T> |
build(groovy.lang.Closure callable) |
|
DetachedCriteria<T> |
buildLazy(groovy.lang.Closure callable) |
|
protected QueryableCriteria |
buildQueryableCriteria(groovy.lang.Closure queryClosure) |
|
protected DetachedCriteria<T> |
clone() |
|
protected java.util.List |
convertArgumentList(java.util.Collection argList) |
|
rx.Observable<java.lang.Number> |
count(java.util.Map args, groovy.lang.Closure additionalCriteria) The same as getCount(java.util.Map, groovy.lang.Closure) |
|
rx.Observable<java.lang.Number> |
deleteAll() Deletes all entities matching this criteria |
|
DetachedCriteria<T> |
distinct(java.lang.String property) |
|
DetachedCriteria<T> |
eq(java.lang.String propertyName, java.lang.Object propertyValue) |
|
DetachedCriteria<T> |
eqAll(java.lang.String propertyName, groovy.lang.Closure<?> propertyValue) |
|
DetachedCriteria<T> |
eqAll(java.lang.String propertyName, QueryableCriteria propertyValue) |
|
DetachedCriteria<T> |
eqProperty(java.lang.String propertyName, java.lang.String otherPropertyName) |
|
DetachedCriteria<T> |
exists(QueryableCriteria<?> subquery) |
|
rx.Observable<T> |
find(java.util.Map args, groovy.lang.Closure additionalCriteria) Finds a single result matching this criteria. |
|
rx.Observable<T> |
findAll(java.util.Map args, groovy.lang.Closure additionalCriteria) Finds all results matching this criteria. |
|
DetachedCriteria<T> |
ge(java.lang.String property, java.lang.Object value) |
|
DetachedCriteria<T> |
geAll(java.lang.String propertyName, groovy.lang.Closure<?> propertyValue) |
|
DetachedCriteria<T> |
geAll(java.lang.String propertyName, QueryableCriteria propertyValue) |
|
DetachedCriteria<T> |
geProperty(java.lang.String propertyName, java.lang.String otherPropertyName) |
|
DetachedCriteria<T> |
geSome(java.lang.String propertyName, QueryableCriteria propertyValue) |
|
DetachedCriteria<T> |
geSome(java.lang.String propertyName, groovy.lang.Closure<?> propertyValue) |
|
rx.Observable<T> |
get(java.util.Map args, groovy.lang.Closure additionalCriteria) The same as find(java.util.Map, groovy.lang.Closure) |
|
rx.Observable<T> |
get(groovy.lang.Closure additionalCriteria) The same as find(java.util.Map, groovy.lang.Closure) |
|
rx.Observable<java.lang.Number> |
getCount(java.util.Map args, groovy.lang.Closure additionalCriteria) Calculates the total number of matches for the query |
|
DetachedCriteria<T> |
gt(java.lang.String property, java.lang.Object value) |
|
DetachedCriteria<T> |
gtAll(java.lang.String propertyName, groovy.lang.Closure<?> propertyValue) |
|
DetachedCriteria<T> |
gtAll(java.lang.String propertyName, QueryableCriteria propertyValue) |
|
DetachedCriteria<T> |
gtProperty(java.lang.String propertyName, java.lang.String otherPropertyName) |
|
DetachedCriteria<T> |
gtSome(java.lang.String propertyName, QueryableCriteria propertyValue) |
|
DetachedCriteria<T> |
gtSome(java.lang.String propertyName, groovy.lang.Closure<?> propertyValue) |
|
DetachedCriteria<T> |
gte(java.lang.String property, java.lang.Object value) |
|
DetachedCriteria<T> |
id() |
|
DetachedCriteria<T> |
idEq(java.lang.Object propertyValue) |
|
DetachedCriteria<T> |
idEquals(java.lang.Object value) |
|
DetachedCriteria<T> |
ilike(java.lang.String propertyName, java.lang.Object propertyValue) |
|
DetachedCriteria<T> |
in(java.lang.String propertyName, java.util.Collection values) |
|
DetachedCriteria<T> |
in(java.lang.String propertyName, QueryableCriteria subquery) |
|
DetachedCriteria<T> |
in(java.lang.String propertyName, groovy.lang.Closure<?> subquery) |
|
DetachedCriteria<T> |
in(java.lang.String propertyName, java.lang.Object[] values) |
|
DetachedCriteria<T> |
inList(java.lang.String propertyName, QueryableCriteria<?> subquery) |
|
DetachedCriteria<T> |
inList(java.lang.String propertyName, groovy.lang.Closure<?> subquery) |
|
DetachedCriteria<T> |
inList(java.lang.String propertyName, java.util.Collection values) |
|
DetachedCriteria<T> |
inList(java.lang.String propertyName, java.lang.Object[] values) |
|
DetachedCriteria<T> |
isEmpty(java.lang.String propertyName) |
|
DetachedCriteria<T> |
isNotEmpty(java.lang.String propertyName) |
|
DetachedCriteria<T> |
isNotNull(java.lang.String propertyName) |
|
DetachedCriteria<T> |
isNull(java.lang.String propertyName) |
|
DetachedCriteria<T> |
join(java.lang.String property) |
|
DetachedCriteria<T> |
le(java.lang.String property, java.lang.Object value) |
|
DetachedCriteria<T> |
leAll(java.lang.String propertyName, groovy.lang.Closure<?> propertyValue) |
|
DetachedCriteria<T> |
leAll(java.lang.String propertyName, QueryableCriteria propertyValue) |
|
DetachedCriteria<T> |
leProperty(java.lang.String propertyName, java.lang.String otherPropertyName) |
|
DetachedCriteria<T> |
leSome(java.lang.String propertyName, QueryableCriteria propertyValue) |
|
DetachedCriteria<T> |
leSome(java.lang.String propertyName, groovy.lang.Closure<?> propertyValue) |
|
DetachedCriteria<T> |
like(java.lang.String propertyName, java.lang.Object propertyValue) |
|
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. |
|
DetachedCriteria<T> |
lt(java.lang.String property, java.lang.Object value) |
|
DetachedCriteria<T> |
ltAll(java.lang.String propertyName, groovy.lang.Closure<?> propertyValue) |
|
DetachedCriteria<T> |
ltAll(java.lang.String propertyName, QueryableCriteria propertyValue) |
|
DetachedCriteria<T> |
ltProperty(java.lang.String propertyName, java.lang.String otherPropertyName) |
|
DetachedCriteria<T> |
ltSome(java.lang.String propertyName, QueryableCriteria propertyValue) |
|
DetachedCriteria<T> |
ltSome(java.lang.String propertyName, groovy.lang.Closure<?> propertyValue) |
|
DetachedCriteria<T> |
lte(java.lang.String property, java.lang.Object value) |
|
DetachedCriteria<T> |
max(int max) |
|
DetachedCriteria<T> |
max(java.lang.String property) |
|
DetachedCriteria<T> |
min(java.lang.String property) |
|
DetachedCriteria<T> |
ne(java.lang.String propertyName, java.lang.Object propertyValue) |
|
DetachedCriteria<T> |
neProperty(java.lang.String propertyName, java.lang.String otherPropertyName) |
|
protected DetachedCriteria |
newInstance() |
|
DetachedCriteria<T> |
not(groovy.lang.Closure callable) |
|
DetachedCriteria<T> |
notExists(QueryableCriteria<?> subquery) |
|
DetachedCriteria<T> |
notIn(java.lang.String propertyName, QueryableCriteria<?> subquery) |
|
DetachedCriteria<T> |
notIn(java.lang.String propertyName, groovy.lang.Closure<?> subquery) |
|
DetachedCriteria<T> |
offset(int offset) |
|
DetachedCriteria<T> |
or(groovy.lang.Closure callable) |
|
DetachedCriteria<T> |
order(java.lang.String propertyName) |
|
DetachedCriteria<T> |
order(Order o) |
|
DetachedCriteria<T> |
order(java.lang.String propertyName, java.lang.String direction) |
|
protected Query |
prepareQuery(java.util.Map args, groovy.lang.Closure additionalCriteria) |
|
DetachedCriteria<T> |
projections(groovy.lang.Closure callable) |
|
DetachedCriteria<T> |
property(java.lang.String property) |
|
java.lang.Object |
propertyMissing(java.lang.String name) |
|
DetachedCriteria<T> |
rlike(java.lang.String propertyName, java.lang.Object propertyValue) |
|
DetachedCriteria<T> |
select(java.lang.String property) |
|
DetachedCriteria<T> |
sizeEq(java.lang.String propertyName, int size) |
|
DetachedCriteria<T> |
sizeGe(java.lang.String propertyName, int size) |
|
DetachedCriteria<T> |
sizeGt(java.lang.String propertyName, int size) |
|
DetachedCriteria<T> |
sizeLe(java.lang.String propertyName, int size) |
|
DetachedCriteria<T> |
sizeLt(java.lang.String propertyName, int size) |
|
DetachedCriteria<T> |
sizeNe(java.lang.String propertyName, int size) |
|
DetachedCriteria<T> |
sort(java.lang.String property) |
|
DetachedCriteria<T> |
sort(java.lang.String property, java.lang.String direction) |
|
rx.Subscription |
subscribe(rx.Subscriber<? super T> subscriber) |
|
DetachedCriteria<T> |
sum(java.lang.String property) |
|
rx.Observable<java.util.List<T>> |
toList(java.util.Map args, groovy.lang.Closure additionalCriteria) Converts the observable to another observable that outputs the complete list. |
|
rx.Observable<T> |
toObservable() |
|
Query |
toQuery(java.util.Map args) Convert this DetachedCriteria to a query implementation |
|
rx.Observable<java.lang.Number> |
updateAll(java.util.Map propertiesMap) Updates all entities matching this criteria |
|
DetachedCriteria<T> |
where(groovy.lang.Closure additionalQuery) |
|
DetachedCriteria<T> |
whereLazy(groovy.lang.Closure additionalQuery) |
The same as getCount(java.util.Map, groovy.lang.Closure)
Deletes all entities matching this criteria
Finds 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 criteriaFinds all 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
args
- The arguments The argumentsadditionalCriteria
- Any additional criteriaThe same as find(java.util.Map, groovy.lang.Closure)
The same as find(java.util.Map, groovy.lang.Closure)
Calculates the total number of matches for the query
args
- 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
args
- The argumentsadditionalCriteria
- Any additional criteriaConvert this DetachedCriteria to a query implementation
args
- The argumentsUpdates all entities matching this criteria
propertiesMap
- The property names and values to update