Count the number of documents matching the search criteria.
Count the number of documents matching the search criteria.
object for which to search
list of field keys that must exist
list of field keys that must not exist
read preference to use for this search
count of documents matching the search criteria
In the absence of a specific read preference, supplies a default read preference.
In the absence of a specific read preference, supplies a default read preference.
default read preference to use for find and findOne
In the absence of a specified write concern, supplies a default write concern.
In the absence of a specified write concern, supplies a default write concern.
default write concern to use for insert, update, save and remove operations
Queries for an object in this collection.
Queries for an object in this collection.
type view bound to DBObject
type view bound to DBObject
object for which to search
fields to return
read preference to use for this search
a typed cursor to iterate over results
Finds the first document in the query (sorted) and updates it.
Finds the first document in the query (sorted) and updates it.
query to match
sort to apply before picking first document
object with which to modify q
(Option[ObjectType]) Some() of the old document, or None
if no such object exists
Performs a find and update operation.
Performs a find and update operation.
search query to find and modify
object with which to modify q
(Option[ObjectType]) Some() of the object found (before, or after, the update)
Returns a single object from this collection.
Returns a single object from this collection.
type view bound to DBObject
object for which to search
the read preference for this search
(Option[ObjectType]) Some() of the object found, or None
if no such object exists
Find an object by its ID.
Find an object by its ID.
identifier
(Option[ObjectType]) Some() of the object found, or None
if no such object exists
Queries for a list of identifiers.
Queries for a list of identifiers.
type view bound to DBObject
query
list of IDs
collection of ObjectType
instances to insert
write concern
list of object ids TODO: flatten list of IDs - why on earth didn't I do that in the first place?
Inserts a document into the database.
Inserts a document into the database.
instance of ObjectType
write concern
if insert succeeds, ID of inserted object
Projection typed to a type for which Casbah or mongo-java-driver handles conversion
Projection typed to a type for which Casbah or mongo-java-driver handles conversion
type of projected field
object for which to search
field to project on
implicit manifest typed to P
implicit salat.Context
(Option[P]) Some() of the object found, or None
if no such object exists
Projection typed to a type for which Casbah or mongo-java-driver handles conversion
Projection typed to a type for which Casbah or mongo-java-driver handles conversion
type of projected field
object for which to search
field to project on
implicit manifest typed to P
implicit salat.Context
(List[P]) of the objects found
Projection typed to a case class, trait or abstract superclass.
Projection typed to a case class, trait or abstract superclass.
type of projected field
object for which to search
field to project on
implicit manifest typed to P
implicit salat.Context
(Option[P]) Some() of the object found, or None
if no such object exists
Projection typed to a case class, trait or abstract superclass.
Projection typed to a case class, trait or abstract superclass.
type of projected field
object for which to search
field to project on
implicit manifest typed to P
implicit salat.Context
(List[P]) of the objects found
Removes objects from the database collection.
Removes objects from the database collection.
the object that documents to be removed must match
write concern
(WriteResult) result of write operation
Remove a matching object from the collection
Remove a matching object from the collection
object to remove from the collection
write concern
(WriteResult) result of write operation
Remove document identified by this ID.
Remove document identified by this ID.
the ID of the document to be removed
write concern
(WriteResult) result of write operation
Remove documents matching any of the supplied list of IDs.
Remove documents matching any of the supplied list of IDs.
the list of IDs identifying the list of documents to be removed
wrote concern
(WriteResult) result of write operation
Saves an object to this collection.
Saves an object to this collection.
object to save
write concern
(WriteResult) result of write operation
object to transform
object serialized as DBObject
Performs an update operation.
Performs an update operation.
search query for old object to update
object with which to update q
if the database should create the element if it does not exist
if the update should be applied to all objects matching
write concern
(WriteResult) result of write operation
Queries for an object in this collection.
Queries for an object in this collection.
type view bound to DBObject
type view bound to DBObject
object for which to search
fields to return
a typed cursor to iterate over results
Queries for an object in this collection.
Queries for an object in this collection.
type view bound to DBObject
object for which to search
a typed cursor to iterate over results
Returns a single object from this collection.
Returns a single object from this collection.
type view bound to DBObject
object for which to search
(Option[ObjectType]) Some() of the object found, or None
if no such object exists
Inserts a group of documents into the database.
Inserts a group of documents into the database.
variable length argument of ObjectType instances
if write concern succeeds, a list of object IDs TODO: this implicit: dumbest design decision on the face of the planet? TODO: replace vararg with traversable TODO: flatten list of IDs - why on earth didn't I do that in the first place?
Inserts a document into the database.
Inserts a document into the database.
instance of ObjectType
if insert succeeds, ID of inserted object
Removes objects from the database collection.
Removes objects from the database collection.
the object that documents to be removed must match
(WriteResult) result of write operation
Remove a matching object from the collection
Remove a matching object from the collection
object to remove from the collection
(WriteResult) result of write operation
Saves an object to this collection.
Saves an object to this collection.
object to save
(WriteResult) result of write operation
Performs an update operation.
Performs an update operation.
search query for old object to update
object with which to update q
if the database should create the element if it does not exist
if the update should be applied to all objects matching
write concern
(WriteResult) result of write operation