org.iternine.jeppetto.dao.mongodb
Class MongoDBCommand

java.lang.Object
  extended by org.iternine.jeppetto.dao.mongodb.MongoDBCommand
Direct Known Subclasses:
BasicDBObjectCommand, QueryLoggingCommand

public abstract class MongoDBCommand
extends Object

Base MongoDB command.


Constructor Summary
MongoDBCommand()
           
 
Method Summary
 com.mongodb.DBCursor cursor(com.mongodb.DBCollection dbCollection)
           
 com.mongodb.DBObject getQuery()
           
 Object singleResult(com.mongodb.DBCollection dbCollection)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MongoDBCommand

public MongoDBCommand()
Method Detail

cursor

public com.mongodb.DBCursor cursor(com.mongodb.DBCollection dbCollection)

singleResult

public Object singleResult(com.mongodb.DBCollection dbCollection)
                    throws NoSuchItemException,
                           TooManyItemsException
Throws:
NoSuchItemException
TooManyItemsException

getQuery

public com.mongodb.DBObject getQuery()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.