Package | Description |
---|---|
com.allanbank.mongodb.builder |
Provides domain classes and builders for queries and the common MongoDB commands.
|
com.allanbank.mongodb.builder.write |
Provides containers for the basic write operations.
|
com.allanbank.mongodb.client.callback |
Provides implementation for various transformations, implemented in the form of
Callback s, that are used by the driver. |
com.allanbank.mongodb.error |
Exceptions for common MongoDB error conditions.
|
Modifier and Type | Field and Description |
---|---|
protected List<WriteOperation> |
BatchedWrite.Builder.myWrites
The writes to submit to the server.
|
Modifier and Type | Method and Description |
---|---|
List<WriteOperation> |
BatchedWrite.getWrites()
Returns the writes to submit to the server.
|
List<WriteOperation> |
BatchedWrite.Bundle.getWrites()
Returns the writes that are bundled in the command.
|
Modifier and Type | Method and Description |
---|---|
BatchedWrite.Builder |
BatchedWrite.Builder.write(WriteOperation write)
Adds a single write to the list of writes to send to the server.
|
Modifier and Type | Method and Description |
---|---|
BatchedWrite.Builder |
BatchedWrite.Builder.setWrites(List<WriteOperation> writes)
Sets the writes to submit to the server.
|
BatchedWrite.Builder |
BatchedWrite.Builder.writes(List<WriteOperation> writes)
Sets the writes to submit to the server.
|
Constructor and Description |
---|
BatchedWrite.Bundle(Document command,
List<WriteOperation> writes)
Creates a new Bundle.
|
Modifier and Type | Class and Description |
---|---|
class |
DeleteOperation
DeleteOperation provides a container for the fields in a delete request.
|
class |
InsertOperation
InsertOperation provides a container for the fields in an insert request.
|
class |
UpdateOperation
UpdateOperation provides a container for the fields in an update request.
|
Modifier and Type | Method and Description |
---|---|
protected void |
BatchedNativeWriteCallback.callback(WriteOperation operation,
long result)
Callback for a single write operation sent via the native messages.
|
protected void |
BatchedNativeWriteCallback.exception(WriteOperation operation,
Throwable thrown)
Callback for a single write operation sent via the native messages has
failed.
|
Constructor and Description |
---|
BatchedNativeWriteCallback(Callback<Long> results,
BatchedWrite write,
AbstractMongoOperations collection,
List<WriteOperation> operations)
Creates a new BatchedWriteCallback.
|
Modifier and Type | Method and Description |
---|---|
Map<WriteOperation,Throwable> |
BatchedWriteException.getErrors()
Returns the nested errors.
|
List<WriteOperation> |
BatchedWriteException.getSkipped()
Returns the writes that did not get run by the server.
|
Constructor and Description |
---|
BatchedWriteException(BatchedWrite write,
long n,
List<WriteOperation> skipped,
Map<WriteOperation,Throwable> errors)
Creates a new BatchedWriteException.
|
BatchedWriteException(BatchedWrite write,
long n,
List<WriteOperation> skipped,
Map<WriteOperation,Throwable> errors)
Creates a new BatchedWriteException.
|
Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.