|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.vz.mongodb.jackson.DBQuery.AbstractBuilder<Q>
public abstract static class DBQuery.AbstractBuilder<Q extends DBQuery.AbstractBuilder>
| Field Summary | |
|---|---|
protected com.mongodb.DBObject |
query
|
| Constructor Summary | |
|---|---|
protected |
DBQuery.AbstractBuilder(com.mongodb.DBObject query)
|
| Method Summary | |
|---|---|
Q |
all(String field,
Collection<?> values)
The array field contains all of the given values |
Q |
all(String field,
Object... values)
The array field contains all of the given values |
Q |
and(DBQuery.Query... expressions)
All of the given expressions matches |
Q |
elemMatch(String field,
DBQuery.Query query)
An element in the given array field matches the given query |
Q |
exists(String field)
The given field exists |
Q |
greaterThan(String field,
Object value)
The field is greater than the given value |
Q |
greaterThanEquals(String field,
Object value)
The field is greater than or equal to the given value |
Q |
in(String field,
Collection<?> values)
The field is in the given set of values |
Q |
in(String field,
Object... values)
The field is in the given set of values |
Q |
is(String field,
Object value)
The field is equal to the given value |
Q |
lessThan(String field,
Object value)
The field is less than the given value |
Q |
lessThanEquals(String field,
Object value)
The field is less than or equal to the given value |
Q |
mod(String field,
Number mod,
Number value)
The field, modulo the given mod argument, is equal to the value |
Q |
nor(DBQuery.Query... expressions)
None of the given expressions matches |
Q |
notEquals(String field,
Object value)
The field is not equal to the given value |
Q |
notExists(String field)
The given field doesn't exist |
Q |
notIn(String field,
Collection<?> values)
The field is not in the given set of values |
Q |
notIn(String field,
Object... values)
The field is not in the given set of values |
Q |
or(DBQuery.Query... expressions)
One of the given expressions matches |
protected Q |
put(String field,
String op,
Object value)
|
protected Q |
putGroup(String op,
Object... expressions)
|
Q |
regex(String field,
Pattern regex)
The given field matches the regular expression |
Q |
size(String field,
int size)
The array field is of the given size |
Q |
where(String code)
Execute the given JavaScript code as part of the query |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final com.mongodb.DBObject query
| Constructor Detail |
|---|
protected DBQuery.AbstractBuilder(com.mongodb.DBObject query)
| Method Detail |
|---|
public Q is(String field,
Object value)
field - The field to comparevalue - The value to compare to
public Q lessThan(String field,
Object value)
field - The field to comparevalue - The value to compare to
public Q lessThanEquals(String field,
Object value)
field - The field to comparevalue - The value to compare to
public Q greaterThan(String field,
Object value)
field - The field to comparevalue - The value to compare to
public Q greaterThanEquals(String field,
Object value)
field - The field to comparevalue - The value to compare to
public Q notEquals(String field,
Object value)
field - The field to comparevalue - The value to compare to
public Q in(String field,
Object... values)
field - The field to comparevalues - The value to compare to
public Q in(String field,
Collection<?> values)
field - The field to comparevalues - The value to compare to
public Q notIn(String field,
Object... values)
field - The field to comparevalues - The value to compare to
public Q notIn(String field,
Collection<?> values)
field - The field to comparevalues - The value to compare to
public Q mod(String field,
Number mod,
Number value)
field - The field to comparemod - The modulovalue - The value to compare to
public Q all(String field,
Collection<?> values)
field - The field to comparevalues - The values to compare to
public Q all(String field,
Object... values)
field - The field to comparevalues - The values to compare to
public Q size(String field,
int size)
field - The field to comparesize - The value to compare
public Q exists(String field)
field - The field to check
public Q notExists(String field)
field - The field to check
public Q or(DBQuery.Query... expressions)
expressions - The expressions to test
public Q and(DBQuery.Query... expressions)
expressions - The expressions to test
public Q nor(DBQuery.Query... expressions)
expressions - The expressions to test
public Q regex(String field,
Pattern regex)
field - The field to comareregex - The regular expression to match with
public Q elemMatch(String field,
DBQuery.Query query)
field - the array fieldquery - The query to attempt to match against the elements of the array field
public Q where(String code)
code - the JavaScript code
protected Q put(String field,
String op,
Object value)
protected Q putGroup(String op,
Object... expressions)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||