com.mongodb
Class DBApiLayer

java.lang.Object
  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
DB.WriteConcern
 
Field Summary
 
Fields inherited from class com.mongodb.DB
_readOnly
 
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

DBApiLayer

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

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(java.lang.String name)
Description copied from class: DB
Returns the collection represented by the string <dbName>.<collectionName>.

Specified by:
doGetCollection in class DB
Returns:
the collection