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

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()
           
 Boolean isSuccess()
           
 void setMetaData(MetaData metaData)
           
 void setRecords(Collection<T> records)
           
 void setSuccess(Boolean success)
           
 void setTotal(Integer total)
           
 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

getTotal

public Integer getTotal()

setTotal

public void setTotal(Integer total)

getRecords

public Collection<T> getRecords()

setRecords

public void setRecords(Collection<T> records)

isSuccess

public Boolean isSuccess()

setSuccess

public void setSuccess(Boolean success)

getMetaData

public Map<String,Object> getMetaData()

setMetaData

public void setMetaData(MetaData metaData)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010. All Rights Reserved.