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
          Utility class to allow array DBObjects to be created.
 class BasicDBObject
          A simple implementation of DBObject.
 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
 DBObject DB.command(DBObject cmd)
          Execute a database command directly.
 DBObject DB.command(String cmd)
           
 DBObject DBCursor.curr()
          Returns the element the cursor is at.
static DBObject Bytes.decode(byte[] b)
           
 DBObject DB.doEval(String code, Object... args)
           
 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.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 DB.getLastError()
          Gets the the error (if there is one) from the previous operation.
 DBObject DB.getPreviousError()
          Returns the last error that occurred since start of database or a call to resetError() The return object will look like
 DBObject CodeWScope.getScope()
           
 DBObject DBCollection.group(DBObject key, DBObject cond, DBObject initial, String reduce)
           
 DBObject DBCursor.next()
          Returns the element the cursor is at and moves the cursor ahead by one.
 DBObject ByteDecoder.readObject()
          Decode an object.
 

Methods in com.mongodb that return types with arguments of type DBObject
 Iterator<DBObject> DBCollection.find(DBObject ref, DBObject fields, int numToSkip, int batchSize)
          Finds an object.
abstract  Iterator<DBObject> DBCollection.find(DBObject ref, DBObject fields, int numToSkip, int batchSize, int options)
          Finds an object.
 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
 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.
 DBObject DB.command(DBObject cmd)
          Execute a database command directly.
 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.
protected abstract  void DBCollection.createIndex(DBObject keys, DBObject options)
           
protected  int ByteDecoder.decodeNext(DBObject o, String path)
          Decodes the serialized object into the given DBObject.
 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)
           
static byte[] Bytes.encode(DBObject o)
           
 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.
 Iterator<DBObject> DBCollection.find(DBObject ref, DBObject fields, int numToSkip, int batchSize)
          Finds an object.
abstract  Iterator<DBObject> DBCollection.find(DBObject ref, DBObject fields, int numToSkip, int batchSize, int options)
          Finds an object.
 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
 DBObject DBCollection.group(DBObject key, DBObject cond, DBObject initial, String reduce)
           
 DBCursor DBCursor.hint(DBObject indexKeys)
          Informs the database of indexed fields of the collection in order to improve performance.
abstract  void DBCollection.insert(DBObject doc)
          Saves an document to the database.
abstract  void DBCollection.insert(DBObject[] arr)
          Saves an array of documents to the database.
 MapReduceOutput DBCollection.mapReduce(DBObject command)
           
 MapReduceOutput DBCollection.mapReduce(String map, String reduce, String outputCollection, DBObject query)
          performs a map reduce operation
 void DBObject.putAll(DBObject o)
           
 void BasicDBList.putAll(DBObject o)
           
 void ReflectionDBObject.putAll(DBObject o)
           
 void RawDBObject.putAll(DBObject o)
           
 void BasicDBObject.putAll(DBObject o)
           
 int ByteEncoder.putObject(DBObject o)
          Encodes a DBObject.
abstract  void DBCollection.remove(DBObject o)
          Removes objects from the database collection.
 void DBCollection.save(DBObject jo)
          Saves an object to this collection.
 DBCursor DBCursor.sort(DBObject orderBy)
          Sorts this cursor's elements.
 void DBCollection.update(DBObject q, DBObject o)
           
abstract  void DBCollection.update(DBObject q, DBObject o, boolean upsert, boolean multi)
          Performs an update operation.
 void DBCollection.updateMulti(DBObject q, DBObject o)
           
 

Method parameters in com.mongodb with type arguments of type DBObject
abstract  void DBCollection.insert(List<DBObject> list)
          Saves an array of documents to the database.
 void DBCollection.setHintFields(List<DBObject> lst)
          Set hint fields for this collection.
 

Constructors in com.mongodb with parameters of type DBObject
CodeWScope(String code, DBObject scope)
           
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
           
 class GridFSFile
           
 class GridFSInputFile
           
 

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 GridFSFile.putAll(DBObject o)
           
 void GridFS.remove(DBObject query)