|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use DB | |
---|---|
com.mongodb | Main package with core files. |
com.mongodb.gridfs | GridFS tools. |
Uses of DB in com.mongodb |
---|
Subclasses of DB in com.mongodb | |
---|---|
class |
DBApiLayer
Database API This cannot be directly instantiated, but the functions are available through instances of Mongo. |
Methods in com.mongodb that return DB | |
---|---|
static DB |
Mongo.connect(DBAddress addr)
returns a database object |
DB |
MongoURI.connectDB()
returns the DB object from a newly created Mongo instance based on this URI |
DB |
MongoURI.connectDB(Mongo mongo)
returns the URI's DB object from a given Mongo instance |
DB |
DBRefBase.getDB()
Gets the database |
DB |
DBCollection.getDB()
Returns the database this collection is a member of. |
DB |
Mongo.getDB(String dbname)
gets a database object |
DB |
DB.getSisterDB(String name)
Gets another database on same server |
Methods in com.mongodb that return types with arguments of type DB | |
---|---|
Collection<DB> |
Mongo.getUsedDatabases()
gets a collection of DBs used by the driver since this Mongo instance was created. |
Methods in com.mongodb with parameters of type DB | |
---|---|
com.mongodb.Response |
DBTCPConnector.call(DB db,
DBCollection coll,
com.mongodb.OutMessage m,
ServerAddress hostNeeded,
DBDecoder decoder)
|
com.mongodb.Response |
DBConnector.call(DB db,
DBCollection coll,
com.mongodb.OutMessage m,
ServerAddress hostNeeded,
DBDecoder decoder)
does a read operation on the database |
com.mongodb.Response |
DBTCPConnector.call(DB db,
DBCollection coll,
com.mongodb.OutMessage m,
ServerAddress hostNeeded,
int retries)
|
com.mongodb.Response |
DBConnector.call(DB db,
DBCollection coll,
com.mongodb.OutMessage m,
ServerAddress hostNeeded,
int retries)
does a read operation on the database |
com.mongodb.Response |
DBTCPConnector.call(DB db,
DBCollection coll,
com.mongodb.OutMessage m,
ServerAddress hostNeeded,
int retries,
ReadPreference readPref,
DBDecoder decoder)
|
com.mongodb.Response |
DBConnector.call(DB db,
DBCollection coll,
com.mongodb.OutMessage m,
ServerAddress hostNeeded,
int retries,
ReadPreference readPref,
DBDecoder decoder)
does a read operation on the database |
DBCollection |
MongoURI.connectCollection(DB db)
returns the URI's Collection from a given DB object |
static DBObject |
DBRef.fetch(DB db,
DBObject ref)
fetches a referenced object from the database |
WriteResult |
DBTCPConnector.say(DB db,
com.mongodb.OutMessage m,
WriteConcern concern)
|
WriteResult |
DBConnector.say(DB db,
com.mongodb.OutMessage m,
WriteConcern concern)
does a write operation |
WriteResult |
DBTCPConnector.say(DB db,
com.mongodb.OutMessage m,
WriteConcern concern,
ServerAddress hostNeeded)
|
WriteResult |
DBConnector.say(DB db,
com.mongodb.OutMessage m,
WriteConcern concern,
ServerAddress hostNeeded)
does a write operation |
Constructors in com.mongodb with parameters of type DB | |
---|---|
DBCollection(DB base,
String name)
Initializes a new collection. |
|
DBRef(DB db,
BSONObject o)
Creates a DBRef |
|
DBRef(DB db,
String ns,
Object id)
Creates a DBRef |
|
DBRefBase(DB db,
String ns,
Object id)
Creates a DBRefBase |
Uses of DB in com.mongodb.gridfs |
---|
Fields in com.mongodb.gridfs declared as DB | |
---|---|
protected DB |
GridFS._db
|
Methods in com.mongodb.gridfs that return DB | |
---|---|
DB |
GridFS.getDB()
gets the db used |
Constructors in com.mongodb.gridfs with parameters of type DB | |
---|---|
GridFS(DB db)
Creates a GridFS instance for the default bucket "fs" in the given database. |
|
GridFS(DB db,
String bucket)
Creates a GridFS instance for the specified bucket in the given database. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |