com.onewebsql.util.jdbc
Class TimestampRowHandler

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

public class TimestampRowHandler
extends Object
implements RowHandler<Timestamp>

Converts the first column of a ResultSet into Timestamp object.


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

Constructor Detail

TimestampRowHandler

public TimestampRowHandler()
Creates a new TimestampRowHandler object.

Method Detail

getObject

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

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