Package | Description |
---|---|
com.allanbank.mongodb.bson.builder |
Provides the interfaces for builders to aid in constructing BSON
Document s. |
com.allanbank.mongodb.bson.builder.impl |
Provides the implementations for builders to aid in constructing BSON
Document s. |
com.allanbank.mongodb.builder |
Provides domain classes and builders for queries and the common MongoDB commands.
|
Modifier and Type | Method and Description |
---|---|
ArrayBuilder |
ArrayBuilder.add(boolean value)
Adds a boolean element.
|
ArrayBuilder |
ArrayBuilder.add(byte[] data)
Adds a binary element using sub-type zero (the default).
|
ArrayBuilder |
ArrayBuilder.add(byte subType,
byte[] data)
Adds a binary element.
|
ArrayBuilder |
ArrayBuilder.add(Date timestamp)
Adds a timestamp element.
|
ArrayBuilder |
ArrayBuilder.add(DocumentAssignable document)
Adds a pre-constructed document to the array.
|
ArrayBuilder |
ArrayBuilder.add(double value)
Adds a double element.
|
ArrayBuilder |
ArrayBuilder.add(ElementAssignable element)
Adds a pre-built element to the document.
|
ArrayBuilder |
ArrayBuilder.add(int value)
Adds a integer (32-bit signed) element.
|
ArrayBuilder |
ArrayBuilder.add(long value)
Adds a long (64-bit signed) element.
|
ArrayBuilder |
ArrayBuilder.add(ObjectId id)
Adds an ObjectId element.
|
ArrayBuilder |
ArrayBuilder.add(Pattern pattern)
Adds an ObjectId element.
|
ArrayBuilder |
ArrayBuilder.add(String value)
Adds a string element.
|
ArrayBuilder |
ArrayBuilder.add(String databaseName,
String collectionName,
ObjectId id)
Deprecated.
See BSON specification.
|
ArrayBuilder |
ArrayBuilder.addBinary(byte[] data)
Adds a binary element using sub-type zero (the default).
|
ArrayBuilder |
ArrayBuilder.addBinary(byte subType,
byte[] data)
Adds a binary element.
|
ArrayBuilder |
ArrayBuilder.addBoolean(boolean value)
Adds a boolean element.
|
ArrayBuilder |
ArrayBuilder.addDBPointer(String databaseName,
String collectionName,
ObjectId id)
Deprecated.
See BSON specification.
|
ArrayBuilder |
ArrayBuilder.addDocument(DocumentAssignable document)
Adds a pre-constructed document to the array.
|
ArrayBuilder |
ArrayBuilder.addDouble(double value)
Adds a double element.
|
ArrayBuilder |
ArrayBuilder.addInteger(int value)
Adds a integer (32-bit signed) element.
|
ArrayBuilder |
ArrayBuilder.addJavaScript(String code)
Adds a JavaScript element.
|
ArrayBuilder |
ArrayBuilder.addJavaScript(String code,
DocumentAssignable scope)
Adds a JavaScript with Scope element.
|
ArrayBuilder |
ArrayBuilder.addLong(long value)
Adds a long (64-bit signed) element.
|
ArrayBuilder |
ArrayBuilder.addMaxKey()
Adds a minimum key value element.
|
ArrayBuilder |
ArrayBuilder.addMinKey()
Adds a minimum key value element.
|
ArrayBuilder |
ArrayBuilder.addMongoTimestamp(long value)
Adds a MongoDB Timestamp element.
|
ArrayBuilder |
ArrayBuilder.addNull()
Adds a
null valued element. |
ArrayBuilder |
ArrayBuilder.addObjectId(ObjectId id)
Adds an ObjectId element.
|
ArrayBuilder |
ArrayBuilder.addRegularExpression(Pattern pattern)
Adds a regular expression element.
|
ArrayBuilder |
ArrayBuilder.addRegularExpression(String pattern,
String options)
Adds a regular expression element.
|
ArrayBuilder |
ArrayBuilder.addString(String value)
Adds a string element.
|
ArrayBuilder |
ArrayBuilder.addSymbol(String symbol)
Adds a symbol element.
|
ArrayBuilder |
ArrayBuilder.addTimestamp(long timestamp)
Adds a timestamp element.
|
ArrayBuilder |
ArrayBuilder.pushArray()
Pushes a context for constructing a sub-array.
|
ArrayBuilder |
DocumentBuilder.pushArray(String name)
Pushes a context for constructing a sub-array.
|
ArrayBuilder |
ArrayBuilder.reset()
Resets the builder back to an empty state.
|
static ArrayBuilder |
BuilderFactory.startArray()
Creates a new
ArrayBuilder . |
Modifier and Type | Class and Description |
---|---|
class |
ArrayBuilderImpl
A builder for BSON arrays.
|
Modifier and Type | Method and Description |
---|---|
ArrayBuilder |
ArrayBuilderImpl.add(boolean value)
Adds a boolean element.
|
ArrayBuilder |
ArrayBuilderImpl.add(byte[] data)
Adds a binary element using sub-type zero (the default).
|
ArrayBuilder |
ArrayBuilderImpl.add(byte subType,
byte[] data)
Adds a binary element.
|
ArrayBuilder |
ArrayBuilderImpl.add(Date timestamp)
Adds a timestamp element.
|
ArrayBuilder |
ArrayBuilderImpl.add(DocumentAssignable document)
Adds a pre-constructed document to the array.
|
ArrayBuilder |
ArrayBuilderImpl.add(double value)
Adds a double element.
|
ArrayBuilder |
ArrayBuilderImpl.add(ElementAssignable element)
Adds a pre-built element to the document.
|
ArrayBuilder |
ArrayBuilderImpl.add(int value)
Adds a integer (32-bit signed) element.
|
ArrayBuilder |
ArrayBuilderImpl.add(long value)
Adds a long (64-bit signed) element.
|
ArrayBuilder |
ArrayBuilderImpl.add(ObjectId id)
Adds an ObjectId element.
|
ArrayBuilder |
ArrayBuilderImpl.add(Pattern pattern)
Adds an ObjectId element.
|
ArrayBuilder |
ArrayBuilderImpl.add(String value)
Adds a string element.
|
ArrayBuilder |
ArrayBuilderImpl.add(String databaseName,
String collectionName,
ObjectId id)
Deprecated.
|
ArrayBuilder |
ArrayBuilderImpl.addBinary(byte[] value)
Adds a binary element using sub-type zero (the default).
|
ArrayBuilder |
ArrayBuilderImpl.addBinary(byte subType,
byte[] value)
Adds a binary element.
|
ArrayBuilder |
ArrayBuilderImpl.addBoolean(boolean value)
Adds a boolean element.
|
ArrayBuilder |
ArrayBuilderImpl.addDBPointer(String databaseName,
String collectionName,
ObjectId id)
Deprecated.
|
ArrayBuilder |
ArrayBuilderImpl.addDocument(DocumentAssignable document)
Adds a pre-constructed document to the array.
|
ArrayBuilder |
ArrayBuilderImpl.addDouble(double value)
Adds a double element.
|
ArrayBuilder |
ArrayBuilderImpl.addInteger(int value)
Adds a integer (32-bit signed) element.
|
ArrayBuilder |
ArrayBuilderImpl.addJavaScript(String code)
Adds a JavaScript element.
|
ArrayBuilder |
ArrayBuilderImpl.addJavaScript(String code,
DocumentAssignable scope)
Adds a JavaScript with Scope element.
|
ArrayBuilder |
ArrayBuilderImpl.addLong(long value)
Adds a long (64-bit signed) element.
|
ArrayBuilder |
ArrayBuilderImpl.addMaxKey()
Adds a minimum key value element.
|
ArrayBuilder |
ArrayBuilderImpl.addMinKey()
Adds a minimum key value element.
|
ArrayBuilder |
ArrayBuilderImpl.addMongoTimestamp(long value)
Adds a MongoDB Timestamp element.
|
ArrayBuilder |
ArrayBuilderImpl.addNull()
Adds a
null valued element. |
ArrayBuilder |
ArrayBuilderImpl.addObjectId(ObjectId id)
Adds an ObjectId element.
|
ArrayBuilder |
ArrayBuilderImpl.addRegularExpression(Pattern pattern)
Adds a regular expression element.
|
ArrayBuilder |
ArrayBuilderImpl.addRegularExpression(String pattern,
String options)
Adds a regular expression element.
|
ArrayBuilder |
ArrayBuilderImpl.addString(String value)
Adds a string element.
|
ArrayBuilder |
ArrayBuilderImpl.addSymbol(String symbol)
Adds a symbol element.
|
ArrayBuilder |
ArrayBuilderImpl.addTimestamp(long timestamp)
Adds a timestamp element.
|
protected ArrayBuilder |
AbstractBuilder.doPushArray(String name)
Pushes a context for constructing a sub-array.
|
ArrayBuilder |
ArrayBuilderImpl.pushArray()
Pushes a context for constructing a sub-array.
|
ArrayBuilder |
DocumentBuilderImpl.pushArray(String name)
Pushes a context for constructing a sub-array.
|
ArrayBuilder |
ArrayBuilderImpl.reset()
Resets the builder back to an empty state.
|
Modifier and Type | Field and Description |
---|---|
protected ArrayBuilder |
Aggregate.Builder.myPipeline
The pipeline of operations to be applied.
|
Modifier and Type | Method and Description |
---|---|
ConditionBuilder |
ConditionBuilder.all(ArrayBuilder elements)
Specify the values that must all be in the fields array.
|
ConditionBuilder |
ConditionBuilder.in(ArrayBuilder elements)
Specify the values that one must match the fields value.
|
ConditionBuilder |
ConditionBuilder.notIn(ArrayBuilder elements)
Specify the values that must not must not match the fields
value.
|
Copyright © 2011-2012 Allanbank Consulting, Inc.. All Rights Reserved.