Package org.apache.tapestry5.mongodb
Interface MongoDB
- All Known Implementing Classes:
MongoDBImpl
public interface MongoDB
-
Method Summary
Modifier and TypeMethodDescriptioncom.mongodb.DBObtain a shared instance of the MongoDB database connection object connected to the default databasecom.mongodb.DBgetMongoDb(String dbname) Obtain a shared instance of the MongoDB database connection object for the specific database
-
Method Details
-
getDefaultMongoDb
com.mongodb.DB getDefaultMongoDb()Obtain a shared instance of the MongoDB database connection object connected to the default database- Returns:
- the
DBconnection object
-
getMongoDb
Obtain a shared instance of the MongoDB database connection object for the specific database- Parameters:
dbname- the database name to connect to- Returns:
- the
DBconnection object
-