com.onewebsql.dao
Class DefaultSelectObjectListResult<T>

java.lang.Object
  extended by com.onewebsql.dao.DefaultSelectObjectListResult<T>
All Implemented Interfaces:
SelectObjectListResult<T>

public class DefaultSelectObjectListResult<T>
extends Object
implements SelectObjectListResult<T>

Default implementation of the SelectObjectListResult interface.


Constructor Summary
DefaultSelectObjectListResult(List<T> objectList, String queryString, List<Value> parameters)
          Constructor.
 
Method Summary
 List<T> getObjectList()
          Returns a list of objects returned by a SQL query.
 List<Value> getParameters()
          Returns the list of parameters of the SQL query.
 String getQueryString()
          Returns the text of the executed SQL query.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSelectObjectListResult

public DefaultSelectObjectListResult(List<T> objectList,
                                     String queryString,
                                     List<Value> parameters)
Constructor.

Parameters:
objectList - list of objects returned by the SELECT query
queryString - text of the SQL query
parameters - SQL query parameters.
Method Detail

getObjectList

public List<T> getObjectList()
Description copied from interface: SelectObjectListResult
Returns a list of objects returned by a SQL query.

Specified by:
getObjectList in interface SelectObjectListResult<T>
Returns:
a list of objects returned by a SQL query.

getParameters

public List<Value> getParameters()
Description copied from interface: SelectObjectListResult
Returns the list of parameters of the SQL query.

Specified by:
getParameters in interface SelectObjectListResult<T>
Returns:
the list of parameters of the SQL query.

getQueryString

public String getQueryString()
Description copied from interface: SelectObjectListResult
Returns the text of the executed SQL query.

Specified by:
getQueryString in interface SelectObjectListResult<T>
Returns:
the text of the executed SQL query.


Copyright © 2011-2013 e-point SA. All Rights Reserved.