Package | Description |
---|---|
com.allanbank.mongodb |
Provides a Java driver for the MongoDB document store that allows asynchronous invocation of requests.
|
com.allanbank.mongodb.builder |
Provides domain classes and builders for queries and the common MongoDB commands.
|
com.allanbank.mongodb.client |
Provides implementations of the main client interfaces and classes to translate the
Reply (s) from the server. |
Modifier and Type | Method and Description |
---|---|
Document |
MongoCollection.findAndModify(FindAndModify.Builder command)
Invokes a findAndModify command on the server.
|
void |
MongoCollection.findAndModifyAsync(Callback<Document> results,
FindAndModify.Builder command)
Invokes a findAndModify command on the server.
|
Future<Document> |
MongoCollection.findAndModifyAsync(FindAndModify.Builder command)
Invokes a findAndModify command on the server.
|
Modifier and Type | Method and Description |
---|---|
static FindAndModify.Builder |
FindAndModify.builder()
Creates a new builder for a
FindAndModify . |
FindAndModify.Builder |
FindAndModify.Builder.fields(DocumentAssignable fields)
Sets the subset of fields to retrieve from the matched document.
|
FindAndModify.Builder |
FindAndModify.Builder.query(DocumentAssignable query)
Sets the query to locate the document to update.
|
FindAndModify.Builder |
FindAndModify.Builder.remove()
Sets to true if the document should be removed.
|
FindAndModify.Builder |
FindAndModify.Builder.remove(boolean remove)
Sets to true if the document should be removed.
|
FindAndModify.Builder |
FindAndModify.Builder.reset()
Resets the builder back to its initial state.
|
FindAndModify.Builder |
FindAndModify.Builder.returnNew()
Sets to true if the updated document should be returned instead of
the document before the update.
|
FindAndModify.Builder |
FindAndModify.Builder.returnNew(boolean returnNew)
Sets to true if the updated document should be returned instead of
the document before the update.
|
FindAndModify.Builder |
FindAndModify.Builder.setFields(DocumentAssignable fields)
Sets the subset of fields to retrieve from the matched document.
|
FindAndModify.Builder |
FindAndModify.Builder.setQuery(DocumentAssignable query)
Sets the query to locate the document to update.
|
FindAndModify.Builder |
FindAndModify.Builder.setRemove(boolean remove)
Sets to true if the document should be removed.
|
FindAndModify.Builder |
FindAndModify.Builder.setReturnNew(boolean returnNew)
Sets to true if the updated document should be returned instead of
the document before the update.
|
FindAndModify.Builder |
FindAndModify.Builder.setSort(DocumentAssignable sort)
Sets the sort to apply if multiple docs match, choose the first one
as the object to manipulate.
|
FindAndModify.Builder |
FindAndModify.Builder.setSort(IntegerElement... sortFields)
Sets the sort to apply if multiple docs match, choose the first one
as the object to manipulate.
|
FindAndModify.Builder |
FindAndModify.Builder.setUpdate(DocumentAssignable update)
Sets the updates to be applied to the document.
|
FindAndModify.Builder |
FindAndModify.Builder.setUpsert(boolean upsert)
Sets to true to create the document if it doesn't exist.
|
FindAndModify.Builder |
FindAndModify.Builder.sort(DocumentAssignable sort)
Sets the sort to apply if multiple docs match, choose the first one
as the object to manipulate.
|
FindAndModify.Builder |
FindAndModify.Builder.sort(IntegerElement... sortFields)
Sets the sort to apply if multiple docs match, choose the first one
as the object to manipulate.
|
FindAndModify.Builder |
FindAndModify.Builder.update(DocumentAssignable update)
Sets the updates to be applied to the document.
|
FindAndModify.Builder |
FindAndModify.Builder.upsert()
Sets to true to create the document if it doesn't exist.
|
FindAndModify.Builder |
FindAndModify.Builder.upsert(boolean upsert)
Sets to true to create the document if it doesn't exist.
|
Constructor and Description |
---|
FindAndModify(FindAndModify.Builder builder)
Create a new FindAndModify.
|
Modifier and Type | Method and Description |
---|---|
Document |
AbstractMongoCollection.findAndModify(FindAndModify.Builder command)
Invokes a findAndModify command on the server.
|
void |
AbstractMongoCollection.findAndModifyAsync(Callback<Document> results,
FindAndModify.Builder command)
Invokes a findAndModify command on the server.
|
Future<Document> |
AbstractMongoCollection.findAndModifyAsync(FindAndModify.Builder command)
Invokes a findAndModify command on the server.
|
Copyright © 2011-2013 Allanbank Consulting, Inc.. All Rights Reserved.