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

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

public class SingleColumnObjectRowHandler<T>
extends Object
implements RowHandler<T>

Converts the first column of a ResultSet into single Object.


Constructor Summary
SingleColumnObjectRowHandler()
          Creates a new SingleColumnObjectRowHandler object.
 
Method Summary
 T getObject(ResultSet resultSet)
          Converts the first column of a ResultSet into a single Object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleColumnObjectRowHandler

public SingleColumnObjectRowHandler()
Creates a new SingleColumnObjectRowHandler object.

Method Detail

getObject

public T getObject(ResultSet resultSet)
            throws SQLException
Converts the first column of a ResultSet into a single Object.

Specified by:
getObject in interface RowHandler<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.