Package | Description |
---|---|
com.allanbank.mongodb.builder |
Provides domain classes and builders for queries and the common MongoDB commands.
|
Modifier and Type | Method and Description |
---|---|
ConditionBuilder |
ConditionBuilder.all(ArrayBuilder elements)
Specify the values that must all be in the fields array.
|
ConditionBuilder |
ConditionBuilder.all(Constant... values)
Specify the values that must all be in the fields array.
|
ConditionBuilder |
ConditionBuilder.all(Element... elements)
Specify the values that must all be in the fields array.
|
ConditionBuilder |
ConditionBuilder.and(String fieldName)
Starts a logical conjunction with this condition builder.
|
ConditionBuilder |
ConditionBuilder.elementMatches(DocumentAssignable arrayElementQuery)
Query to match a single element in the array field.
|
ConditionBuilder |
ConditionBuilder.equals(boolean value)
Checks if the value equals the specified value.
|
ConditionBuilder |
ConditionBuilder.equals(byte[] value)
Checks if the value equals the specified value.
|
ConditionBuilder |
ConditionBuilder.equals(byte subType,
byte[] value)
Checks if the value equals the specified value.
|
ConditionBuilder |
ConditionBuilder.equals(DocumentAssignable value)
Checks if the value equals the specified value.
|
ConditionBuilder |
ConditionBuilder.equals(double value)
Checks if the value equals the specified value.
|
ConditionBuilder |
ConditionBuilder.equals(int value)
Checks if the value equals the specified value.
|
ConditionBuilder |
ConditionBuilder.equals(long value)
Checks if the value equals the specified value.
|
ConditionBuilder |
ConditionBuilder.equals(ObjectId value)
Checks if the value equals the specified value.
|
ConditionBuilder |
ConditionBuilder.equals(Pattern value)
Checks if the value equals the specified value.
|
ConditionBuilder |
ConditionBuilder.equals(String value)
Checks if the value equals the specified value.
|
ConditionBuilder |
ConditionBuilder.equals(UUID uuid)
Checks if the value equals the specified uuid using the standard
byte ordering.
|
ConditionBuilder |
ConditionBuilder.equalsJavaScript(String value)
Checks if the value equals the specified value.
|
ConditionBuilder |
ConditionBuilder.equalsJavaScript(String value,
DocumentAssignable scope)
Checks if the value equals the specified value.
|
ConditionBuilder |
ConditionBuilder.equalsLegacy(UUID uuid)
Checks if the value equals the specified value using the legacy
Java byte ordering.
|
ConditionBuilder |
ConditionBuilder.equalsMaxKey()
Checks if the value is a max key element.
|
ConditionBuilder |
ConditionBuilder.equalsMinKey()
Checks if the value is a min key element.
|
ConditionBuilder |
ConditionBuilder.equalsMongoTimestamp(long value)
Checks if the value equals the specified value.
|
ConditionBuilder |
ConditionBuilder.equalsNull()
Checks if the value is a null value.
|
ConditionBuilder |
ConditionBuilder.equalsSymbol(String value)
Checks if the value equals the specified value.
|
ConditionBuilder |
ConditionBuilder.equalsTimestamp(long value)
Checks if the value equals the specified value.
|
ConditionBuilder |
ConditionBuilder.exists()
Checks if the field exists (or not) in the document.
|
ConditionBuilder |
ConditionBuilder.exists(boolean value)
Checks if the field exists (or not) in the document.
|
ConditionBuilder |
ConditionBuilder.geoWithin(DocumentAssignable geoJsonDoc)
Geospatial query for documents whose field intersects the specified
GeoJSON specified geometry. |
ConditionBuilder |
ConditionBuilder.greaterThan(byte[] value)
Checks if the value is greater than the specified value.
|
ConditionBuilder |
ConditionBuilder.greaterThan(byte subType,
byte[] value)
Checks if the value is greater than the specified value.
|
ConditionBuilder |
ConditionBuilder.greaterThan(double value)
Checks if the value is greater than the specified value.
|
ConditionBuilder |
ConditionBuilder.greaterThan(int value)
Checks if the value is greater than the specified value.
|
ConditionBuilder |
ConditionBuilder.greaterThan(long value)
Checks if the value is greater than the specified value.
|
ConditionBuilder |
ConditionBuilder.greaterThan(ObjectId value)
Checks if the value is greater than the specified value.
|
ConditionBuilder |
ConditionBuilder.greaterThan(String value)
Checks if the value is greater than the specified value.
|
ConditionBuilder |
ConditionBuilder.greaterThanMongoTimestamp(long value)
Checks if the value is greater than the specified value.
|
ConditionBuilder |
ConditionBuilder.greaterThanOrEqualTo(byte[] value)
Checks if the value is greater than or equals the specified
value.
|
ConditionBuilder |
ConditionBuilder.greaterThanOrEqualTo(byte subType,
byte[] value)
Checks if the value is greater than or equals the specified
value.
|
ConditionBuilder |
ConditionBuilder.greaterThanOrEqualTo(double value)
Checks if the value is greater than or equals the specified
value.
|
ConditionBuilder |
ConditionBuilder.greaterThanOrEqualTo(int value)
Checks if the value is greater than or equals the specified
value.
|
ConditionBuilder |
ConditionBuilder.greaterThanOrEqualTo(long value)
Checks if the value is greater than or equals the specified
value.
|
ConditionBuilder |
ConditionBuilder.greaterThanOrEqualTo(ObjectId value)
Checks if the value is greater than or equals the specified
value.
|
ConditionBuilder |
ConditionBuilder.greaterThanOrEqualTo(String value)
Checks if the value is greater than or equals the specified
value.
|
ConditionBuilder |
ConditionBuilder.greaterThanOrEqualToMongoTimestamp(long value)
Checks if the value is greater than or equals the specified
value.
|
ConditionBuilder |
ConditionBuilder.greaterThanOrEqualToSymbol(String value)
Checks if the value is greater than or equals the specified
value.
|
ConditionBuilder |
ConditionBuilder.greaterThanOrEqualToTimestamp(long value)
Checks if the value is greater than or equals the specified
value.
|
ConditionBuilder |
ConditionBuilder.greaterThanSymbol(String value)
Checks if the value is greater than the specified value.
|
ConditionBuilder |
ConditionBuilder.greaterThanTimestamp(long value)
Checks if the value is greater than the specified value.
|
ConditionBuilder |
ConditionBuilder.in(ArrayBuilder elements)
Specify the values that one must match the fields value.
|
ConditionBuilder |
ConditionBuilder.in(Constant... values)
Specify the values that one must match the fields value.
|
ConditionBuilder |
ConditionBuilder.in(Element... elements)
Specify the values that one must match the fields value.
|
ConditionBuilder |
ConditionBuilder.instanceOf(ElementType type)
Checks if the value's type matches the specified type.
|
ConditionBuilder |
ConditionBuilder.intersects(DocumentAssignable geoJsonDoc)
Geospatial query for documents whose field intersects the specified
GeoJSON specified geometry. |
ConditionBuilder |
ConditionBuilder.lessThan(byte[] value)
Checks if the value is less than the specified value.
|
ConditionBuilder |
ConditionBuilder.lessThan(byte subType,
byte[] value)
Checks if the value is less than the specified value.
|
ConditionBuilder |
ConditionBuilder.lessThan(double value)
Checks if the value is less than the specified value.
|
ConditionBuilder |
ConditionBuilder.lessThan(int value)
Checks if the value is less than the specified value.
|
ConditionBuilder |
ConditionBuilder.lessThan(long value)
Checks if the value is less than the specified value.
|
ConditionBuilder |
ConditionBuilder.lessThan(ObjectId value)
Checks if the value is less than the specified value.
|
ConditionBuilder |
ConditionBuilder.lessThan(String value)
Checks if the value is less than the specified value.
|
ConditionBuilder |
ConditionBuilder.lessThanMongoTimestamp(long value)
Checks if the value is less than the specified value.
|
ConditionBuilder |
ConditionBuilder.lessThanOrEqualTo(byte[] value)
Checks if the value is less than or equals the specified value.
|
ConditionBuilder |
ConditionBuilder.lessThanOrEqualTo(byte subType,
byte[] value)
Checks if the value is less than or equals the specified value.
|
ConditionBuilder |
ConditionBuilder.lessThanOrEqualTo(double value)
Checks if the value is less than or equals the specified value.
|
ConditionBuilder |
ConditionBuilder.lessThanOrEqualTo(int value)
Checks if the value is less than or equals the specified value.
|
ConditionBuilder |
ConditionBuilder.lessThanOrEqualTo(long value)
Checks if the value is less than or equals the specified value.
|
ConditionBuilder |
ConditionBuilder.lessThanOrEqualTo(ObjectId value)
Checks if the value is less than or equals the specified value.
|
ConditionBuilder |
ConditionBuilder.lessThanOrEqualTo(String value)
Checks if the value is less than or equals the specified value.
|
ConditionBuilder |
ConditionBuilder.lessThanOrEqualToMongoTimestamp(long value)
Checks if the value is less than or equals the specified value.
|
ConditionBuilder |
ConditionBuilder.lessThanOrEqualToSymbol(String value)
Checks if the value is less than or equals the specified value.
|
ConditionBuilder |
ConditionBuilder.lessThanOrEqualToTimestamp(long value)
Checks if the value is less than or equals the specified value.
|
ConditionBuilder |
ConditionBuilder.lessThanSymbol(String value)
Checks if the value is less than the specified value.
|
ConditionBuilder |
ConditionBuilder.lessThanTimestamp(long value)
Checks if the value is less than the specified value.
|
ConditionBuilder |
ConditionBuilder.matches(Pattern pattern)
Checks if the value matches the specified pattern.
|
ConditionBuilder |
ConditionBuilder.mod(int divisor,
int remainder)
Checks if the modulo of the documents value and divisor equals
the remainder.
|
ConditionBuilder |
ConditionBuilder.mod(long divisor,
long remainder)
Checks if the modulo of the documents value and divisor equals
the remainder.
|
ConditionBuilder |
ConditionBuilder.near(DocumentAssignable geoJsonDoc)
Geospatial query for documents whose field is near the specified
GeoJSON specified geometry. |
ConditionBuilder |
ConditionBuilder.near(DocumentAssignable geoJsonDoc,
double maxDistance)
Geospatial query for documents whose field is near the specified
GeoJSON specified geometry. |
ConditionBuilder |
ConditionBuilder.near(double x,
double y)
Geospatial query for documents whose field is near the specified [
x, y] coordinates.
|
ConditionBuilder |
ConditionBuilder.near(double x,
double y,
double maxDistance)
Geospatial query for documents whose field is near the specified [
x, y] coordinates.
|
ConditionBuilder |
ConditionBuilder.near(int x,
int y)
Geospatial query for documents whose field is near the specified [
x, y] coordinates.
|
ConditionBuilder |
ConditionBuilder.near(int x,
int y,
int maxDistance)
Geospatial query for documents whose field is near the specified [
x, y] coordinates.
|
ConditionBuilder |
ConditionBuilder.near(long x,
long y)
Geospatial query for documents whose field is near the specified [
x, y] coordinates.
|
ConditionBuilder |
ConditionBuilder.near(long x,
long y,
long maxDistance)
Geospatial query for documents whose field is near the specified [
x, y] coordinates.
|
ConditionBuilder |
ConditionBuilder.nearSphere(DocumentAssignable geoJsonDoc)
Geospatial query for documents whose field is near the specified
GeoJSON specified geometry on a sphere. |
ConditionBuilder |
ConditionBuilder.nearSphere(DocumentAssignable geoJsonDoc,
double maxDistance)
Geospatial query for documents whose field is near the specified
GeoJSON specified geometry on a sphere. |
ConditionBuilder |
ConditionBuilder.nearSphere(double x,
double y)
Geospatial query for documents whose field is near the specified [
x, y] coordinates on a sphere.
|
ConditionBuilder |
ConditionBuilder.nearSphere(double x,
double y,
double maxDistance)
Geospatial query for documents whose field is near the specified [
x, y] coordinates on a sphere.
|
ConditionBuilder |
ConditionBuilder.nearSphere(int x,
int y)
Geospatial query for documents whose field is near the specified [
x, y] coordinates on a sphere.
|
ConditionBuilder |
ConditionBuilder.nearSphere(int x,
int y,
int maxDistance)
Geospatial query for documents whose field is near the specified [
x, y] coordinates on a sphere.
|
ConditionBuilder |
ConditionBuilder.nearSphere(long x,
long y)
Geospatial query for documents whose field is near the specified [
x, y] coordinates on a sphere.
|
ConditionBuilder |
ConditionBuilder.nearSphere(long x,
long y,
long maxDistance)
Geospatial query for documents whose field is near the specified [
x, y] coordinates on a sphere.
|
ConditionBuilder |
ConditionBuilder.notEqualTo(boolean value)
Checks if the value is not equal to the specified value.
|
ConditionBuilder |
ConditionBuilder.notEqualTo(byte[] value)
Checks if the value is not equal to the specified value.
|
ConditionBuilder |
ConditionBuilder.notEqualTo(byte subType,
byte[] value)
Checks if the value is not equal to the specified value.
|
ConditionBuilder |
ConditionBuilder.notEqualTo(DocumentAssignable value)
Checks if the value is not equal to the specified value.
|
ConditionBuilder |
ConditionBuilder.notEqualTo(double value)
Checks if the value is not equal to the specified value.
|
ConditionBuilder |
ConditionBuilder.notEqualTo(int value)
Checks if the value is not equal to the specified value.
|
ConditionBuilder |
ConditionBuilder.notEqualTo(long value)
Checks if the value is not equal to the specified value.
|
ConditionBuilder |
ConditionBuilder.notEqualTo(ObjectId value)
Checks if the value is not equal to the specified value.
|
ConditionBuilder |
ConditionBuilder.notEqualTo(Pattern value)
Checks if the value is not equal to the specified value.
|
ConditionBuilder |
ConditionBuilder.notEqualTo(String value)
Checks if the value is not equal to the specified value.
|
ConditionBuilder |
ConditionBuilder.notEqualTo(UUID uuid)
Checks if the value is not equal to the specified uuid using the
standard UUID byte ordering.
|
ConditionBuilder |
ConditionBuilder.notEqualToJavaScript(String value)
Checks if the value is not equal to the specified value.
|
ConditionBuilder |
ConditionBuilder.notEqualToJavaScript(String value,
DocumentAssignable scope)
Checks if the value is not equal to the specified value.
|
ConditionBuilder |
ConditionBuilder.notEqualToLegacy(UUID uuid)
Checks if the value is not equal to the specified uuid using the
legacy Java UUID byte ordering.
|
ConditionBuilder |
ConditionBuilder.notEqualToMaxKey()
Checks if the value is not equal to the specified value.
|
ConditionBuilder |
ConditionBuilder.notEqualToMinKey()
Checks if the value is not equal to the specified value.
|
ConditionBuilder |
ConditionBuilder.notEqualToMongoTimestamp(long value)
Checks if the value is not equal to the specified value.
|
ConditionBuilder |
ConditionBuilder.notEqualToNull()
Checks if the value is not equal to the specified value.
|
ConditionBuilder |
ConditionBuilder.notEqualToSymbol(String value)
Checks if the value is not equal to the specified value.
|
ConditionBuilder |
ConditionBuilder.notEqualToTimestamp(long value)
Checks if the value is not equal to the specified value.
|
ConditionBuilder |
ConditionBuilder.notIn(ArrayBuilder elements)
Specify the values that must not must not match the fields
value.
|
ConditionBuilder |
ConditionBuilder.notIn(Constant... values)
Specify the values that must not must not match the fields
value.
|
ConditionBuilder |
ConditionBuilder.notIn(Element... elements)
Specify the values that must not must not match the fields
value.
|
ConditionBuilder |
ConditionBuilder.size(int length)
Checks if the value is an array of the specified length.
|
static ConditionBuilder |
QueryBuilder.where(String field)
Start a criteria for a single conjunctions.
|
ConditionBuilder |
ConditionBuilder.where(String javaScript)
Adds an ad-hoc JavaScript condition to the query.
|
ConditionBuilder |
QueryBuilder.whereField(String fieldName)
Returns a builder for the constraints on a single field.
|
ConditionBuilder |
ConditionBuilder.within(boolean uniqueDocs,
Point2D p1,
Point2D p2,
Point2D p3,
Point2D... points)
Geospatial query for documents whose field is within the specified
bounding polygon.
|
ConditionBuilder |
ConditionBuilder.within(DocumentAssignable geoJsonDoc)
Geospatial query for documents whose field is within the specified
GeoJSON specified geometry. |
ConditionBuilder |
ConditionBuilder.within(DocumentAssignable geoJsonDoc,
boolean uniqueDocs)
Geospatial query for documents whose field is within the specified
GeoJSON specified geometry. |
ConditionBuilder |
ConditionBuilder.within(double x,
double y,
double radius)
Geospatial query for documents whose field is within the specified
bounding circular region.
|
ConditionBuilder |
ConditionBuilder.within(double x,
double y,
double radius,
boolean uniqueDocs)
Geospatial query for documents whose field is within the specified
bounding circular region.
|
ConditionBuilder |
ConditionBuilder.within(double x1,
double y1,
double x2,
double y2)
Geospatial query for documents whose field is within the specified
bounding rectangular region.
|
ConditionBuilder |
ConditionBuilder.within(double x1,
double y1,
double x2,
double y2,
boolean uniqueDocs)
Geospatial query for documents whose field is within the specified
bounding rectangular region.
|
ConditionBuilder |
ConditionBuilder.within(int x,
int y,
int radius)
Geospatial query for documents whose field is within the specified
bounding circular region.
|
ConditionBuilder |
ConditionBuilder.within(int x,
int y,
int radius,
boolean uniqueDocs)
Geospatial query for documents whose field is within the specified
bounding circular region.
|
ConditionBuilder |
ConditionBuilder.within(int x1,
int y1,
int x2,
int y2)
Geospatial query for documents whose field is within the specified
bounding rectangular region.
|
ConditionBuilder |
ConditionBuilder.within(int x1,
int y1,
int x2,
int y2,
boolean uniqueDocs)
Geospatial query for documents whose field is within the specified
bounding rectangular region.
|
ConditionBuilder |
ConditionBuilder.within(long x,
long y,
long radius)
Geospatial query for documents whose field is within the specified
bounding circular region.
|
ConditionBuilder |
ConditionBuilder.within(long x,
long y,
long radius,
boolean uniqueDocs)
Geospatial query for documents whose field is within the specified
bounding circular region.
|
ConditionBuilder |
ConditionBuilder.within(long x1,
long y1,
long x2,
long y2)
Geospatial query for documents whose field is within the specified
bounding rectangular region.
|
ConditionBuilder |
ConditionBuilder.within(long x1,
long y1,
long x2,
long y2,
boolean uniqueDocs)
Geospatial query for documents whose field is within the specified
bounding rectangular region.
|
ConditionBuilder |
ConditionBuilder.within(Point2D p1,
Point2D p2,
Point2D p3,
Point2D... points)
Geospatial query for documents whose field is within the specified
bounding polygon.
|
ConditionBuilder |
ConditionBuilder.withinOnSphere(double x,
double y,
double radius)
Geospatial query for documents whose field is within the specified
bounding circular region on a sphere.
|
ConditionBuilder |
ConditionBuilder.withinOnSphere(double x,
double y,
double radius,
boolean uniqueDocs)
Geospatial query for documents whose field is within the specified
bounding circular region on a sphere.
|
ConditionBuilder |
ConditionBuilder.withinOnSphere(int x,
int y,
int radius)
Geospatial query for documents whose field is within the specified
bounding circular region on a sphere.
|
ConditionBuilder |
ConditionBuilder.withinOnSphere(int x,
int y,
int radius,
boolean uniqueDocs)
Geospatial query for documents whose field is within the specified
bounding circular region on a sphere.
|
ConditionBuilder |
ConditionBuilder.withinOnSphere(long x,
long y,
long radius)
Geospatial query for documents whose field is within the specified
bounding circular region on a sphere.
|
ConditionBuilder |
ConditionBuilder.withinOnSphere(long x,
long y,
long radius,
boolean uniqueDocs)
Geospatial query for documents whose field is within the specified
bounding circular region on a sphere.
|
Copyright © 2011-2013 Allanbank Consulting, Inc.. All Rights Reserved.