Package | Description |
---|---|
com.allanbank.mongodb.builder |
Provides domain classes and builders for queries and the common MongoDB commands.
|
com.allanbank.mongodb.builder.expression |
Modifier and Type | Method and Description |
---|---|
ConditionBuilder |
ConditionBuilder.all(Constant... values)
Specify the values that must all be in the fields array.
|
ConditionBuilder |
ConditionBuilder.in(Constant... values)
Specify the possible values to match against the field's value.
|
ConditionBuilder |
ConditionBuilder.notIn(Constant... values)
Specify the values that must not match the field's value.
|
Modifier and Type | Method and Description |
---|---|
static Constant |
Expressions.constant(boolean value)
Returns a
Constant expression with the provided value. |
static Constant |
Expressions.constant(Date value)
Returns a
Constant expression with the provided value. |
static Constant |
Expressions.constant(double value)
Returns a
Constant expression with the provided value. |
static Constant |
Expressions.constant(int value)
Returns a
Constant expression with the provided value. |
static Constant |
Expressions.constant(long value)
Returns a
Constant expression with the provided value. |
static Constant |
Expressions.constant(ObjectId value)
Returns a
Constant expression with the provided value. |
static Constant |
Expressions.constant(Pattern value)
Returns a
Constant expression with the provided value. |
static Constant |
Expressions.constant(String value)
Returns a
Constant expression with the provided value. |
static Constant |
Expressions.constantMongoTimestamp(long value)
Returns a
Constant expression with the provided value. |
static Constant |
Expressions.constantTimestamp(long value)
Returns a
Constant expression with the provided value. |
static Constant |
Expressions.field(String fieldName)
Returns a
Constant expression with the provided
fieldName. |
static Constant |
Expressions.literal(String value)
Returns a
Constant expression wrapping the value in a
"$literal" sub-document. |
static Constant |
Expressions.nullConstant()
Returns a
null Constant expression. |
static Constant |
Expressions.var(String variableName)
Returns a
Constant expression with the provided
variableName. |
Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.