Package | Description |
---|---|
com.allanbank.mongodb.bson |
Strongly typed, immutable implementation of the
BSON Specification.
|
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.bson.element | |
com.allanbank.mongodb.bson.io |
Provides the ability to serialize and deserialize BSON
Document s. |
com.allanbank.mongodb.builder |
Provides domain classes and builders for queries and the common MongoDB commands.
|
com.allanbank.mongodb.builder.expression | |
com.allanbank.mongodb.gridfs |
Provides an implementation of the GridFS Specification.
|
Modifier and Type | Method and Description |
---|---|
void |
VisitorAdapter.visitDBPointer(String name,
String databaseName,
String collectionName,
ObjectId id)
Visits a deprecated DBPointer element.
|
void |
Visitor.visitDBPointer(String name,
String databaseName,
String collectionName,
ObjectId id)
Visits a deprecated DBPointer element.
|
void |
VisitorAdapter.visitObjectId(String name,
ObjectId id)
Visits an ObjectId element.
|
void |
Visitor.visitObjectId(String name,
ObjectId id)
Visits an ObjectId element.
|
Modifier and Type | Method and Description |
---|---|
static ArrayElement |
BuilderFactory.a(ObjectId... ids)
Creates an array element containing ObjectId elements.
|
ArrayBuilder |
ArrayBuilder.add(ObjectId id)
Adds an ObjectId element.
|
DocumentBuilder |
DocumentBuilder.add(String name,
ObjectId id)
Adds an ObjectId element.
|
ArrayBuilder |
ArrayBuilder.add(String databaseName,
String collectionName,
ObjectId id)
Deprecated.
See BSON specification.
|
DocumentBuilder |
DocumentBuilder.add(String name,
String databaseName,
String collectionName,
ObjectId id)
Deprecated.
See BSON specification.
|
ArrayBuilder |
ArrayBuilder.addDBPointer(String databaseName,
String collectionName,
ObjectId id)
Deprecated.
See BSON specification.
|
DocumentBuilder |
DocumentBuilder.addDBPointer(String name,
String databaseName,
String collectionName,
ObjectId id)
Deprecated.
See BSON specification.
|
ArrayBuilder |
ArrayBuilder.addObjectId(ObjectId id)
Adds an ObjectId element.
|
DocumentBuilder |
DocumentBuilder.addObjectId(String name,
ObjectId id)
Adds an ObjectId element.
|
static Element |
BuilderFactory.e(String name,
ObjectId id)
Creates an ObjectId element.
|
Modifier and Type | Method and Description |
---|---|
ArrayBuilder |
ArrayBuilderImpl.add(ObjectId id)
Adds an ObjectId element.
|
DocumentBuilder |
DocumentBuilderImpl.add(String name,
ObjectId id)
Adds an ObjectId element.
|
ArrayBuilder |
ArrayBuilderImpl.add(String databaseName,
String collectionName,
ObjectId id)
Deprecated.
|
DocumentBuilder |
DocumentBuilderImpl.add(String name,
String databaseName,
String collectionName,
ObjectId id)
Deprecated.
|
ArrayBuilder |
ArrayBuilderImpl.addDBPointer(String databaseName,
String collectionName,
ObjectId id)
Deprecated.
|
DocumentBuilder |
DocumentBuilderImpl.addDBPointer(String name,
String databaseName,
String collectionName,
ObjectId id)
Deprecated.
|
ArrayBuilder |
ArrayBuilderImpl.addObjectId(ObjectId id)
Adds an ObjectId element.
|
DocumentBuilder |
DocumentBuilderImpl.addObjectId(String name,
ObjectId id)
Adds an ObjectId element.
|
Modifier and Type | Method and Description |
---|---|
ObjectId |
ObjectIdElement.getId()
Returns the id value.
|
ObjectId |
DBPointerElement.getId()
Deprecated.
Returns the id value.
|
ObjectId |
ObjectIdElement.getValueAsObject()
Returns the value for BSON element as a Java
Object type. |
Modifier and Type | Method and Description |
---|---|
int |
ObjectId.compareTo(ObjectId other) |
void |
JsonSerializationVisitor.visitDBPointer(String name,
String databaseName,
String collectionName,
ObjectId id)
Visits a deprecated DBPointer element.
|
void |
JsonSerializationVisitor.visitObjectId(String name,
ObjectId id)
Visits an ObjectId element.
|
protected void |
JsonSerializationVisitor.writeObjectId(ObjectId id)
Writes the
ObjectId . |
Constructor and Description |
---|
DBPointerElement(String name,
String dbName,
String collectionName,
ObjectId id)
Deprecated.
Constructs a new
DBPointerElement . |
DBPointerElement(String name,
String dbName,
String collectionName,
ObjectId id,
long size)
Deprecated.
Constructs a new
DBPointerElement . |
ObjectIdElement(String name,
ObjectId id)
Constructs a new
ObjectIdElement . |
ObjectIdElement(String name,
ObjectId id,
long size)
Constructs a new
ObjectIdElement . |
Modifier and Type | Method and Description |
---|---|
void |
SizeOfVisitor.visitDBPointer(String name,
String databaseName,
String collectionName,
ObjectId id)
Visits a deprecated DBPointer element.
|
void |
SizeOfVisitor.visitObjectId(String name,
ObjectId id)
Visits an ObjectId element.
|
Modifier and Type | Method and Description |
---|---|
ConditionBuilder |
ConditionBuilder.all(ObjectId... values)
Specify the values that must all be in the fields array.
|
ConditionBuilder |
ConditionBuilder.equals(ObjectId value)
Checks if the value equals the specified value.
|
ConditionBuilder |
ConditionBuilder.greaterThan(ObjectId value)
Checks if the value is greater than the specified value.
|
ConditionBuilder |
ConditionBuilder.greaterThanOrEqualTo(ObjectId value)
Checks if the value is greater than or equals the specified
value.
|
ConditionBuilder |
ConditionBuilder.in(ObjectId... values)
Specify the possible values to match against the field's value.
|
ConditionBuilder |
ConditionBuilder.lessThan(ObjectId value)
Checks if the value is less than the specified value.
|
ConditionBuilder |
ConditionBuilder.lessThanOrEqualTo(ObjectId value)
Checks if the value is less than or equals the specified value.
|
ConditionBuilder |
ConditionBuilder.notEqualTo(ObjectId value)
Checks if the value is not equal to the specified value.
|
ConditionBuilder |
ConditionBuilder.notIn(ObjectId... values)
Specify the values that must not match the field's value.
|
Modifier and Type | Method and Description |
---|---|
static Constant |
Expressions.constant(ObjectId value)
Returns a
Constant expression with the provided value. |
Modifier and Type | Method and Description |
---|---|
ObjectId |
GridFs.write(String name,
InputStream source)
Attempts to write a file into the GridFS collections using the specified
name for the file and deriving the chunks from the data read from the
source.
|
Modifier and Type | Method and Description |
---|---|
void |
GridFs.read(ObjectId id,
OutputStream sink)
Reads a file from the GridFS collections and writes the contents to the
sink |
boolean |
GridFs.unlink(ObjectId id)
Unlinks (deletes) the file from the GridFS collections.
|
boolean |
GridFs.validate(ObjectId id)
Validates the file from the GridFS collections using the
filemd5
command. |
Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.