Inner abstract class to facilitate working with child collections using a typed parent id - no cascading support will be offered, but you can override saves and deletes in the parent DAO to manually cascade children as you like.
Supplies the Grater from the implicit Context and ObjectType
manifest
MongoDB collection
object for which to search
list of field keys that must exist
list of field keys that must not exist
count of documents matching the search criteria
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
Default description is the case class simple name and the 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
type view bound to DBObject
object for which to search
(Option[ObjectType]) Some() of the object found, or None
if no such object exists
identifier
(Option[ObjectType]) Some() of the object found, or None
if no such object exists
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?
instance of ObjectType
write concern
if insert succeeds, ID of inserted object
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
type of projected field
object for which to search
field to project on
implicit manifest typed to P
implicit Context
(Option[P]) Some() of the object found, or None
if no such object exists
type of projected field
object for which to search
field to project on
implicit manifest typed to P
implicit Context
(List[P]) of the objects found
type of projected field
object for which to search
field to project on
implicit manifest typed to P
implicit Context
(Option[P]) Some() of the object found, or None
if no such object exists
type of projected field
object for which to search
field to project on
implicit manifest typed to P
implicit Context
(List[P]) of the objects found
the object that documents to be removed must match
write concern
object to remove from the collection
write concern
Removes objects from the database collection.
Removes objects from the database collection.
the object that documents to be removed must match
Remove a matching object from the collection
Remove a matching object from the collection
object to remove from the collection
the ID of the document to be removed
write concern
the list of IDs identifying the list of documents to be removed
wrote concern
object to save
write concern
Saves an object to this collection.
object to transform
object serialized as DBObject
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
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
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
(Since version 0.0.8) Use findOneById instead
Sample DAO implementation.
class to be persisted
_id type