com.mongodb
Class DBApiLayer
java.lang.Object
com.mongodb.DB
com.mongodb.DBApiLayer
public class DBApiLayer
- extends DB
Database API
This cannot be directly instantiated, but the functions are available
through instances of Mongo.
Methods inherited from class com.mongodb.DB |
addOption, addUser, authenticate, collectionExists, command, command, command, createCollection, doEval, dropDatabase, eval, forceError, getCollection, getCollectionFromString, getCollectionNames, getLastError, getLastError, getLastError, getMongo, getName, getOptions, getPreviousError, getSisterDB, getStats, getWriteConcern, isAuthenticated, resetError, resetIndexCache, resetOptions, setOptions, setReadOnly, setWriteConcern, slaveOk, toString |
DBApiLayer
protected DBApiLayer(Mongo mongo,
String root,
DBConnector connector)
requestStart
public void requestStart()
- Specified by:
requestStart
in class DB
requestDone
public void requestDone()
- Specified by:
requestDone
in class DB
requestEnsureConnection
public void requestEnsureConnection()
- Specified by:
requestEnsureConnection
in class DB
doGetCollection
protected com.mongodb.DBApiLayer.MyCollection doGetCollection(String name)
- Description copied from class:
DB
- Returns the collection represented by the string <dbName>.<collectionName>.
- Specified by:
doGetCollection
in class DB
- Parameters:
name
- the name of the collection
- Returns:
- the collection