public abstract class MongoClient extends Object
Modifier and Type | Method and Description |
---|---|
MongoDatabase |
getDatabase(String databaseName)
Gets a
MongoDatabase instance for the given database name. |
public MongoDatabase getDatabase(String databaseName)
MongoDatabase
instance for the given database name.databaseName
- the name of the database to retrieveRemoteMongoDatabase
representing the specified database