com.onewebsql.util.jdbc
Class BigDecimalRowHandler

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

public class BigDecimalRowHandler
extends Object
implements RowHandler<BigDecimal>

Converts the first column of a ResultSet into BigDecimal object.


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

Constructor Detail

BigDecimalRowHandler

public BigDecimalRowHandler()
Constructor.

Method Detail

getObject

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

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