com.onewebsql.util.jdbc
Class ShortRowHandler

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

public class ShortRowHandler
extends Object
implements RowHandler<Short>

Converts the first column of a ResultSet into Short object.


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

Constructor Detail

ShortRowHandler

public ShortRowHandler()
Creates a new ShortRowHandler object.

Method Detail

getObject

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

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