org.pojava.persistence.processor
Class ResultSetToInt

java.lang.Object
  extended by org.pojava.persistence.processor.ResultSetToInt
All Implemented Interfaces:
ResultSetProcessor

public class ResultSetToInt
extends Object
implements ResultSetProcessor

Process a single int value from the first column of a ResultSet.

Author:
John Pile

Constructor Summary
ResultSetToInt()
           
 
Method Summary
 int process(ResultSet rs)
          Process the first element of the first row of a ResultSet, returning as an integer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultSetToInt

public ResultSetToInt()
Method Detail

process

public int process(ResultSet rs)
            throws SQLException
Process the first element of the first row of a ResultSet, returning as an integer.

Specified by:
process in interface ResultSetProcessor
Returns:
number of rows processed
Throws:
SQLException


Copyright © 2011. All Rights Reserved.