Class DBApiLayer

  extended by com.mongodb.DB
      extended by com.mongodb.DBApiLayer

public class DBApiLayer
extends DB

Database API This cannot be directly instantiated, but the functions are available through instances of Mongo.

Nested Class Summary
Nested classes/interfaces inherited from class com.mongodb.DB
Field Summary
Fields inherited from class com.mongodb.DB
Constructor Summary
protected DBApiLayer(Mongo mongo, java.lang.String root, DBConnector connector)
Method Summary
protected  com.mongodb.DBApiLayer.MyCollection doGetCollection(java.lang.String name)
          Returns the collection represented by the string <dbName>.<collectionName>.
 void requestDone()
 void requestEnsureConnection()
 void requestStart()
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


protected DBApiLayer(Mongo mongo,
                     java.lang.String root,
                     DBConnector connector)
Method Detail


public void requestStart()
Specified by:
requestStart in class DB


public void requestDone()
Specified by:
requestDone in class DB


public void requestEnsureConnection()
Specified by:
requestEnsureConnection in class DB


protected com.mongodb.DBApiLayer.MyCollection doGetCollection(java.lang.String name)
Description copied from class: DB
Returns the collection represented by the string <dbName>.<collectionName>.

Specified by:
doGetCollection in class DB
the collection