Package | Description |
---|---|
com.mongodb | |
com.mongodb.gridfs |
Contains the classes for supporting MongoDB's specification for storing very large files, GridFS.
|
Modifier and Type | Method and Description |
---|---|
DB |
MongoURI.connectDB()
Deprecated.
Returns the DB object from a newly created Mongo instance based on this URI.
|
DB |
MongoURI.connectDB(Mongo mongo)
Deprecated.
Returns the URI's DB object from a given Mongo instance.
|
DB |
DBCollection.getDB()
Returns the database this collection is a member of.
|
DB |
Mongo.getDB(String dbName)
Deprecated.
|
DB |
DB.getSisterDB(String name)
Gets another database on same server
|
Modifier and Type | Method and Description |
---|---|
Collection<DB> |
Mongo.getUsedDatabases()
Returns the list of databases used by the driver since this Mongo instance was created.
|
Modifier and Type | Method and Description |
---|---|
DBCollection |
MongoURI.connectCollection(DB db)
Deprecated.
Returns the URI's Collection from a given DB object.
|
Constructor and Description |
---|
DBCollection(DB database,
String name)
Initializes a new collection.
|
Modifier and Type | Method and Description |
---|---|
DB |
GridFS.getDB()
Gets the database used.
|
Constructor and Description |
---|
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.
|
Copyright © 2017. All rights reserved.