Package | Description |
---|---|
com.mongodb |
Main package with core files.
|
Modifier and Type | Class and Description |
---|---|
class |
MongoClient
A MongoDB client with internal connection pooling.
|
Modifier and Type | Method and Description |
---|---|
Mongo |
MongoURI.connect()
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)
Returns the URI's Collection from a given Mongo instance
|
DB |
MongoURI.connectDB(Mongo mongo)
Returns the URI's DB object from a given Mongo instance.
|
Constructor and Description |
---|
DB(Mongo mongo,
String name)
Constructs a new instance of the
DB . |
DBApiLayer(Mongo mongo,
String name,
DBConnector connector)
Deprecated.
|
DBTCPConnector(Mongo mongo)
Deprecated.
|