Package | Description |
---|---|
com.mongodb |
The core mongodb package
|
com.mongodb.gridfs |
Contains the classes for supporting MongoDB's specification for storing very large files, GridFS.
|
Modifier and Type | Class and Description |
---|---|
class |
MongoClient
A MongoDB client with internal connection pooling.
|
Modifier and Type | Field and Description |
---|---|
private Mongo |
DB.mongo |
private Mongo |
DBCursor.OptionalFinalizer.mongo |
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.ConcurrentMap<java.lang.String,Mongo> |
Mongo.Holder.clients |
Modifier and Type | Method and Description |
---|---|
Mongo |
MongoURI.connect()
Deprecated.
Creates a Mongo instance based on the URI.
|
Mongo |
Mongo.Holder.connect(MongoClientURI uri)
Attempts to find an existing MongoClient instance matching that URI in the holder, and returns it if exists.
|
Mongo |
Mongo.Holder.connect(MongoURI uri)
Deprecated.
Please use
Mongo.Holder.connect(MongoClientURI) instead. |
Mongo |
DB.getMongo()
Gets the Mongo instance
|
Modifier and Type | Method and Description |
---|---|
DBCollection |
MongoURI.connectCollection(Mongo mongo)
Deprecated.
Returns the URI's Collection from a given Mongo instance
|
DB |
MongoURI.connectDB(Mongo mongo)
Deprecated.
Returns the URI's DB object from a given Mongo instance.
|
Constructor and Description |
---|
DB(Mongo mongo,
java.lang.String name)
Constructs a new instance of the
DB . |
DB(Mongo mongo,
java.lang.String name,
OperationExecutor executor) |
OptionalFinalizer(Mongo mongo,
MongoNamespace namespace) |
Modifier and Type | Field and Description |
---|---|
private static Mongo |
CLI.mongo |
Modifier and Type | Method and Description |
---|---|
private static Mongo |
CLI.getMongo() |