com.onewebsql.util.jdbc
Class StringRowHandler

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

public class StringRowHandler
extends Object
implements RowHandler<String>

Converts the first column of a ResultSet into String object.


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

Constructor Detail

StringRowHandler

public StringRowHandler()
Creates a new StringRowHandler object.

Method Detail

getObject

public String getObject(ResultSet rs)
                 throws SQLException
Converts the first column of a ResultSet into String object.

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