ch.ralscha.extdirectspring.bean
Class ExtDirectStoreResponse<T>

java.lang.Object
  extended by ch.ralscha.extdirectspring.bean.ExtDirectStoreResponse<T>
Type Parameters:
T - Type of the entry inside the collection
Direct Known Subclasses:
ExtDirectRawJsonStoreResponse

public class ExtDirectStoreResponse<T>
extends Object

Class representing the response of a DirectStore request

Author:
Ralph Schaer

Constructor Summary
ExtDirectStoreResponse()
           
ExtDirectStoreResponse(Collection<T> records)
           
ExtDirectStoreResponse(Integer total, Collection<T> records)
           
ExtDirectStoreResponse(Integer total, Collection<T> records, Boolean success)
           
 
Method Summary
 Map<String,Object> getMetaData()
           
 Collection<T> getRecords()
           
 Integer getTotal()
           
protected  void init(Integer _total, Collection<T> _records, Boolean _success)
           
 Boolean isSuccess()
           
 void setMetaData(MetaData metaData)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExtDirectStoreResponse

public ExtDirectStoreResponse()

ExtDirectStoreResponse

public ExtDirectStoreResponse(Collection<T> records)

ExtDirectStoreResponse

public ExtDirectStoreResponse(Integer total,
                              Collection<T> records)

ExtDirectStoreResponse

public ExtDirectStoreResponse(Integer total,
                              Collection<T> records,
                              Boolean success)
Method Detail

init

protected void init(Integer _total,
                    Collection<T> _records,
                    Boolean _success)

getTotal

public Integer getTotal()

getRecords

public Collection<T> getRecords()

isSuccess

public Boolean isSuccess()

getMetaData

public Map<String,Object> getMetaData()

setMetaData

public void setMetaData(MetaData metaData)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010-2012. All Rights Reserved.