com.onewebsql.util.jdbc
Class ListRowHandler<T>

java.lang.Object
  extended by com.onewebsql.util.jdbc.ListRowHandler<T>
All Implemented Interfaces:
RowHandler<List<T>>

public class ListRowHandler<T>
extends Object
implements RowHandler<List<T>>

Implementation of the interface RowHandler which converts the specified row into a list of objects of type T.


Constructor Summary
ListRowHandler()
          Creates a new ListRowHandler object.
 
Method Summary
 List<T> getObject(ResultSet resultSet)
          Converts the specified ResultSet into an list of objects of type T
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListRowHandler

public ListRowHandler()
Creates a new ListRowHandler object.

Method Detail

getObject

public List<T> getObject(ResultSet resultSet)
                  throws SQLException
Converts the specified ResultSet into an list of objects of type T

Specified by:
getObject in interface RowHandler<List<T>>
Parameters:
resultSet - SQL query result
Returns:
an object created from the firs column of the current row in the specified ResultSet
Throws:
SQLException - if an exception is thrown when the object is created


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