org.ektorp.impl
Class QueryResultParser<T>

java.lang.Object
  extended by org.ektorp.impl.QueryResultParser<T>

public class QueryResultParser<T>
extends Object


Constructor Summary
QueryResultParser(Class<T> type, org.codehaus.jackson.map.ObjectMapper mapper)
           
 
Method Summary
 String getFirstId()
           
 org.codehaus.jackson.JsonNode getFirstKey()
           
 String getLastId()
           
 org.codehaus.jackson.JsonNode getLastKey()
           
 int getOffset()
           
 List<T> getRows()
           
 int getTotalRows()
           
 void parseResult(InputStream json)
           
 void setIgnoreNotFound(boolean b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryResultParser

public QueryResultParser(Class<T> type,
                         org.codehaus.jackson.map.ObjectMapper mapper)
Method Detail

parseResult

public void parseResult(InputStream json)
                 throws org.codehaus.jackson.JsonParseException,
                        IOException
Throws:
org.codehaus.jackson.JsonParseException
IOException

getTotalRows

public int getTotalRows()

getOffset

public int getOffset()

getRows

public List<T> getRows()

setIgnoreNotFound

public void setIgnoreNotFound(boolean b)

getFirstId

public String getFirstId()

getFirstKey

public org.codehaus.jackson.JsonNode getFirstKey()

getLastId

public String getLastId()

getLastKey

public org.codehaus.jackson.JsonNode getLastKey()


Copyright © 2011. All Rights Reserved.