org.iternine.jeppetto.dao.mongodb
Class BasicDBObjectCommand

java.lang.Object
  extended by org.iternine.jeppetto.dao.mongodb.MongoDBCommand
      extended by org.iternine.jeppetto.dao.mongodb.BasicDBObjectCommand

public class BasicDBObjectCommand
extends MongoDBCommand


Constructor Summary
BasicDBObjectCommand(com.mongodb.BasicDBObject query, com.mongodb.BasicDBObject fieldsToRetrieve, com.mongodb.DBDecoderFactory decoderFactory)
           
 
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

BasicDBObjectCommand

public BasicDBObjectCommand(com.mongodb.BasicDBObject query,
                            com.mongodb.BasicDBObject fieldsToRetrieve,
                            com.mongodb.DBDecoderFactory decoderFactory)
Method Detail

cursor

public com.mongodb.DBCursor cursor(com.mongodb.DBCollection dbCollection)
Overrides:
cursor in class MongoDBCommand

singleResult

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

getQuery

public com.mongodb.DBObject getQuery()
Overrides:
getQuery in class MongoDBCommand

toString

public String toString()
Overrides:
toString in class MongoDBCommand


Copyright © 2012. All Rights Reserved.