com.onewebsql.util.jdbc
Class BooleanRowHandler

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

public class BooleanRowHandler
extends Object
implements RowHandler<Boolean>

Converts the first column of a ResultSet into Boolean object.


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

Constructor Detail

BooleanRowHandler

public BooleanRowHandler()
Creates a new BooleanRowHandler object.

Method Detail

getObject

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

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