org.ektorp.impl
Class QueryResultParser<T>

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

public class QueryResultParser<T>
extends Object

Author:
Henrik Lundgren (original implementation), Pascal Gélinas (rewrite for issue #98)

Constructor Summary
QueryResultParser(Class<T> type, com.fasterxml.jackson.databind.ObjectMapper mapper)
           
 
Method Summary
 String getFirstId()
           
 com.fasterxml.jackson.databind.JsonNode getFirstKey()
           
 String getLastId()
           
 com.fasterxml.jackson.databind.JsonNode getLastKey()
           
 long getOffset()
           
 List<T> getRows()
           
 int getTotalRows()
           
 Long getUpdateSequence()
           
 void parseResult(InputStream json)
           
 void setIgnoreNotFound(boolean ignoreNotFound)
           
 
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,
                         com.fasterxml.jackson.databind.ObjectMapper mapper)
Method Detail

parseResult

public void parseResult(InputStream json)
                 throws IOException
Throws:
IOException

getTotalRows

public int getTotalRows()

getOffset

public long getOffset()

getRows

public List<T> getRows()

getLastId

public String getLastId()

getLastKey

public com.fasterxml.jackson.databind.JsonNode getLastKey()

getFirstId

public String getFirstId()

getFirstKey

public com.fasterxml.jackson.databind.JsonNode getFirstKey()

setIgnoreNotFound

public void setIgnoreNotFound(boolean ignoreNotFound)

getUpdateSequence

public Long getUpdateSequence()


Copyright © 2017. All rights reserved.