@Deprecated
public DB getDB(String dbName)
Deprecated. use MongoClient.getDatabase(String)
Gets a database object. Users should use MongoClient.getDatabase(String) instead.
Parameters:
dbName - the name of the database to retrieve
Returns:
a DB representing the specified database
这是来自 http://api.mongodb.org/java/current/