com.onewebsql.util.jdbc
Class LongRowHandler

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

public class LongRowHandler
extends Object
implements RowHandler<Long>

Converts the first column of a ResultSet into Long object.


Field Summary
static LongRowHandler INSTANCE
          Gotowa do wykorzystania instancja handlera.
 
Constructor Summary
LongRowHandler()
          Creates a new LongRowHandler object.
 
Method Summary
 Long getObject(ResultSet rs)
          Converts the first column of a ResultSet into Long object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final LongRowHandler INSTANCE
Gotowa do wykorzystania instancja handlera.

Constructor Detail

LongRowHandler

public LongRowHandler()
Creates a new LongRowHandler object.

Method Detail

getObject

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

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