Package | Description |
---|---|
com.allanbank.mongodb.builder |
Provides domain classes and builders for queries and the common MongoDB commands.
|
Modifier and Type | Method and Description |
---|---|
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.
|
Constructor and Description |
---|
FindAndModify(FindAndModify.Builder builder)
Create a new FindAndModify.
|
Copyright © 2011-2013 Allanbank Consulting, Inc.. All Rights Reserved.