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 java.lang.Object

Class representing the response of a DirectStore request

Author:
Ralph Schaer

Constructor Summary
ExtDirectStoreResponse()
           
ExtDirectStoreResponse(java.util.Collection<T> records)
           
ExtDirectStoreResponse(java.lang.Integer total, java.util.Collection<T> records)
           
ExtDirectStoreResponse(java.lang.Integer total, java.util.Collection<T> records, java.lang.Boolean success)
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.Object> getMetaData()
           
 java.util.Collection<T> getRecords()
           
 java.lang.Integer getTotal()
           
protected  void init(java.lang.Integer _total, java.util.Collection<T> _records, java.lang.Boolean _success)
           
 java.lang.Boolean isSuccess()
           
 void setMetaData(MetaData metaData)
           
 java.lang.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(java.util.Collection<T> records)

ExtDirectStoreResponse

public ExtDirectStoreResponse(java.lang.Integer total,
                              java.util.Collection<T> records)

ExtDirectStoreResponse

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

init

protected void init(java.lang.Integer _total,
                    java.util.Collection<T> _records,
                    java.lang.Boolean _success)

getTotal

public java.lang.Integer getTotal()

getRecords

public java.util.Collection<T> getRecords()

isSuccess

public java.lang.Boolean isSuccess()

getMetaData

public java.util.Map<java.lang.String,java.lang.Object> getMetaData()

setMetaData

public void setMetaData(MetaData metaData)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010-2011. All Rights Reserved.