Uses of Interface
com.mongodb.DBObject

Packages that use DBObject
com.mongodb Main package with core files. 
com.mongodb.gridfs GridFS tools. 
 

Uses of DBObject in com.mongodb
 

Classes in com.mongodb that implement DBObject
 class BasicDBList
           
 class BasicDBObject
          A simple implementation of DBObject.
 class CommandResult
          A simple wrapper for the result of getLastError() calls, and network (socket) errors.
 class RawDBObject
          This object wraps the binary object format ("BSON") used for the transport of serialized objects to / from the Mongo database.
 class ReflectionDBObject
           
 

Fields in com.mongodb with type parameters of type DBObject
protected  List<DBObject> DBCollection._hintFields
           
 

Methods in com.mongodb that return DBObject
protected  DBObject DBCollection._checkObject(DBObject o, boolean canBeNull, boolean query)
           
 DBObject DBCursor.curr()
          Returns the element the cursor is at.
 DBObject DBCursor.explain()
          Returns an object containing basic information about the exectution of the query that created this cursor This creates a DBObject with the key/value pairs: "cursor" : cursor type "nScanned" : number of records examined by the database for this query "n" : the number of records that the database returned "millis" : how long it took the database to execute the query
 DBObject DBRefBase.fetch()
           
static DBObject DBRef.fetch(DB db, DBObject ref)
           
 DBObject DBCollection.findAndModify(DBObject query, DBObject update)
          Finds the first document in the query and updates it.
 DBObject DBCollection.findAndModify(DBObject query, DBObject sort, DBObject update)
          Finds the first document in the query (sorted) and updates it.
 DBObject DBCollection.findAndModify(DBObject query, DBObject fields, DBObject sort, boolean remove, DBObject update, boolean returnNew, boolean upsert)
          Finds the first document in the query (sorted) and updates it.
 DBObject DBCollection.findAndRemove(DBObject query)
          Finds the first document in the query and removes it.
 DBObject DBCollection.findOne()
          Returns a single object from this collection.
 DBObject DBCollection.findOne(DBObject o)
          Returns a single object from this collection matching the query.
 DBObject DBCollection.findOne(DBObject o, DBObject fields)
          Returns a single object from this collection matching the query.
 DBObject DBCollection.findOne(Object obj)
          Finds an object by its id.
 DBObject DBCollection.findOne(Object obj, DBObject fields)
          Finds an object by its id.
 DBObject QueryBuilder.get()
          Creates a DBObject query to be used for the driver's find operations
 DBObject BasicDBObjectBuilder.get()
           
 DBObject DBCursor.getKeysWanted()
           
 DBObject DBCursor.getQuery()
           
 DBObject DBCollection.group(DBObject args)
           
 DBObject DBCollection.group(DBObject key, DBObject cond, DBObject initial, String reduce)
           
 DBObject DBCollection.group(DBObject key, DBObject cond, DBObject initial, String reduce, String finalize)
           
 DBObject DBCursor.next()
          Returns the element the cursor is at and moves the cursor ahead by one.
 

Methods in com.mongodb that return types with arguments of type DBObject
 List<DBObject> DBCollection.getIndexInfo()
          Return a list of the indexes for this collection.
 Iterator<DBObject> DBCursor.iterator()
           
 List<DBObject> DBCursor.toArray()
          Converts this cursor to an array.
 List<DBObject> DBCursor.toArray(int min)
          Converts this cursor to an array.
 

Methods in com.mongodb with parameters of type DBObject
protected  DBObject DBCollection._checkObject(DBObject o, boolean canBeNull, boolean query)
           
 Object DBCollection.apply(DBObject o)
          Adds the "private" fields _id to an object.
 Object DBCollection.apply(DBObject jo, boolean ensureID)
          Adds the "private" fields _id to an object.
 CommandResult DB.command(DBObject cmd)
          Execute a database command directly.
 CommandResult DB.command(DBObject cmd, int options)
          Execute a database command directly.
 long DBCollection.count(DBObject query)
           
 DBCollection DB.createCollection(String name, DBObject o)
          Creates a collection with a given name and options.
 void DBCollection.createIndex(DBObject keys)
          Forces creation of an index on a set of fields, if one does not already exist.
abstract  void DBCollection.createIndex(DBObject keys, DBObject options)
           
 List DBCollection.distinct(String key, DBObject query)
          find distinct values for a key
protected abstract  void DBCollection.doapply(DBObject o)
          Adds any necessary fields to a given object before saving it to the collection.
 void DBCollection.dropIndex(DBObject keys)
           
 void DBCollection.ensureIndex(DBObject keys)
          Creates an index on a set of fields, if one does not already exist.
 void DBCollection.ensureIndex(DBObject keys, DBObject optionsIN)
           
 void DBCollection.ensureIndex(DBObject keys, String name)
          Ensures an index on this collection (that is, the index will be created if it does not exist).
 void DBCollection.ensureIndex(DBObject keys, String name, boolean unique)
          Ensures an optionally unique index on this collection.
static DBObject DBRef.fetch(DB db, DBObject ref)
           
 DBCursor DBCollection.find(DBObject ref)
          Queries for an object in this collection.
 DBCursor DBCollection.find(DBObject ref, DBObject keys)
          Queries for an object in this collection.
 DBCursor DBCollection.find(DBObject ref, DBObject fields, int numToSkip, int batchSize)
          Finds an object.
 DBCursor DBCollection.find(DBObject ref, DBObject fields, int numToSkip, int batchSize, int options)
          Finds an object.
 DBObject DBCollection.findAndModify(DBObject query, DBObject update)
          Finds the first document in the query and updates it.
 DBObject DBCollection.findAndModify(DBObject query, DBObject sort, DBObject update)
          Finds the first document in the query (sorted) and updates it.
 DBObject DBCollection.findAndModify(DBObject query, DBObject fields, DBObject sort, boolean remove, DBObject update, boolean returnNew, boolean upsert)
          Finds the first document in the query (sorted) and updates it.
 DBObject DBCollection.findAndRemove(DBObject query)
          Finds the first document in the query and removes it.
 DBObject DBCollection.findOne(DBObject o)
          Returns a single object from this collection matching the query.
 DBObject DBCollection.findOne(DBObject o, DBObject fields)
          Returns a single object from this collection matching the query.
 DBObject DBCollection.findOne(Object obj, DBObject fields)
          Finds an object by its id.
static String DBCollection.genIndexName(DBObject keys)
          Generate an index name from the set of fields it is over.
 long DBCollection.getCount(DBObject query)
          Returns the number of documents in the collection that match the specified query
 long DBCollection.getCount(DBObject query, DBObject fields)
          Returns the number of documents in the collection that match the specified query
 long DBCollection.getCount(DBObject query, DBObject fields, long limit, long skip)
          Returns the number of documents in the collection that match the specified query
 DBObject DBCollection.group(DBObject args)
           
 DBObject DBCollection.group(DBObject key, DBObject cond, DBObject initial, String reduce)
           
 DBObject DBCollection.group(DBObject key, DBObject cond, DBObject initial, String reduce, String finalize)
           
 DBCursor DBCursor.hint(DBObject indexKeys)
          Informs the database of indexed fields of the collection in order to improve performance.
 WriteResult DBCollection.insert(DBObject... arr)
          Saves document(s) to the database.
abstract  WriteResult DBCollection.insert(DBObject[] arr, WriteConcern concern)
          Saves document(s) to the database.
 WriteResult DBCollection.insert(DBObject o, WriteConcern concern)
          Inserts a document into the database.
 MapReduceOutput DBCollection.mapReduce(DBObject command)
           
 MapReduceOutput DBCollection.mapReduce(String map, String reduce, Object outputTarget, DBObject query)
          performs a map reduce operation
 QueryBuilder QueryBuilder.or(DBObject... ors)
           
 WriteResult DBCollection.remove(DBObject o)
          Removes objects from the database collection.
abstract  WriteResult DBCollection.remove(DBObject o, WriteConcern concern)
          Removes objects from the database collection.
 WriteResult DBCollection.save(DBObject jo)
          Saves an object to this collection.
 WriteResult DBCollection.save(DBObject jo, WriteConcern concern)
          Saves an object to this collection.
 DBCursor DBCursor.sort(DBObject orderBy)
          Sorts this cursor's elements.
 WriteResult DBCollection.update(DBObject q, DBObject o)
           
 WriteResult DBCollection.update(DBObject q, DBObject o, boolean upsert, boolean multi)
          Performs an update operation.
abstract  WriteResult DBCollection.update(DBObject q, DBObject o, boolean upsert, boolean multi, WriteConcern concern)
          Performs an update operation.
 WriteResult DBCollection.updateMulti(DBObject q, DBObject o)
           
 

Method parameters in com.mongodb with type arguments of type DBObject
 WriteResult DBCollection.insert(List<DBObject> list)
          Saves document(s) to the database.
 WriteResult DBCollection.insert(List<DBObject> list, WriteConcern concern)
          Saves document(s) to the database.
 void DBCollection.setHintFields(List<DBObject> lst)
          Set hint fields for this collection.
 

Constructors in com.mongodb with parameters of type DBObject
DBCursor(DBCollection collection, DBObject q, DBObject k)
          Initializes a new database cursor
 

Uses of DBObject in com.mongodb.gridfs
 

Classes in com.mongodb.gridfs that implement DBObject
 class GridFSDBFile
          This class enables to retrieve a GridFS file metadata and content.
 class GridFSFile
           
 class GridFSInputFile
          Class implementation for writing data to GridFS.
 

Methods in com.mongodb.gridfs that return DBObject
 DBObject GridFSFile.getMetaData()
           
 DBObject GridFSInputFile.getMetaData()
          
 

Methods in com.mongodb.gridfs with parameters of type DBObject
 List<GridFSDBFile> GridFS.find(DBObject query)
           
 GridFSDBFile GridFS.findOne(DBObject query)
           
 DBCursor GridFS.getFileList(DBObject query)
          Returns a cursor for this filestore
 void GridFS.remove(DBObject query)