public abstract class SafeCriteria<T extends SafeCriteria<T>> extends Object implements ValidationAware
| Constructor and Description |
|---|
SafeCriteria(org.springframework.data.mongodb.core.query.Criteria criteria)
Instantiates a new Criteria utils.
|
| Modifier and Type | Method and Description |
|---|---|
T |
and(String key)
And criteria utils.
|
org.springframework.data.mongodb.core.query.Criteria |
getCriteria()
Gets criteria.
|
int |
getCriteriaCount()
Gets the number of Criteria added
|
T |
gt(Object value)
Gt criteria utils.
|
T |
gte(Object value)
Gte criteria utils.
|
T |
in(Collection values)
In null safe criteria.
|
T |
in(Object... values)
In criteria utils.
|
T |
is(Object value)
Is criteria utils.
|
T |
lt(Object value)
Lt criteria utils.
|
T |
lte(Object value)
Lte criteria utils.
|
T |
ne(Object value)
Ne null safe criteria.
|
T |
nin(Collection values)
Nin null safe criteria.
|
T |
nin(Object... values)
Nin null safe criteria.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisValid, isValidpublic SafeCriteria(org.springframework.data.mongodb.core.query.Criteria criteria)
criteria - the criteriapublic int getCriteriaCount()
public T and(String key)
key - the keypublic T is(Object value)
value - the valuepublic org.springframework.data.mongodb.core.query.Criteria getCriteria()
public T lte(Object value)
value - the valuepublic T lt(Object value)
value - the valuepublic T gte(Object value)
value - the valuepublic T gt(Object value)
value - the valuepublic T in(Object... values)
values - the valuespublic T in(Collection values)
values - the valuespublic T nin(Object... values)
values - the valuespublic T nin(Collection values)
values - the valuesCopyright © 2022. All rights reserved.