net.darkmist.alib.db
Class ResultSetLongIterator

java.lang.Object
  extended by net.darkmist.alib.db.ResultSetIterator<Long>
      extended by net.darkmist.alib.db.ResultSetLongIterator
All Implemented Interfaces:
Iterator<Long>, ResultSetIterator.Row2Obj<Long>

public class ResultSetLongIterator
extends ResultSetIterator<Long>
implements ResultSetIterator.Row2Obj<Long>


Nested Class Summary
 
Nested classes/interfaces inherited from class net.darkmist.alib.db.ResultSetIterator
ResultSetIterator.Row2Obj<E>
 
Constructor Summary
ResultSetLongIterator(Connection db, String sql)
           
ResultSetLongIterator(PreparedStatement stmt)
           
ResultSetLongIterator(PreparedStatement stmt, boolean exclusive)
           
ResultSetLongIterator(ResultSet rs)
           
ResultSetLongIterator(ResultSet rs, boolean exclusive)
           
 
Method Summary
 Long resultSetIteratorRow2Obj(ResultSet rs)
          Converts a ResultSet to an Object
 
Methods inherited from class net.darkmist.alib.db.ResultSetIterator
close, hasNext, next, remove, setConverter, setExclusive, setExclusive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultSetLongIterator

public ResultSetLongIterator(ResultSet rs)
                      throws SQLException
Throws:
SQLException

ResultSetLongIterator

public ResultSetLongIterator(PreparedStatement stmt)
                      throws SQLException
Throws:
SQLException

ResultSetLongIterator

public ResultSetLongIterator(Connection db,
                             String sql)
                      throws SQLException
Throws:
SQLException

ResultSetLongIterator

public ResultSetLongIterator(ResultSet rs,
                             boolean exclusive)
                      throws SQLException
Throws:
SQLException

ResultSetLongIterator

public ResultSetLongIterator(PreparedStatement stmt,
                             boolean exclusive)
                      throws SQLException
Throws:
SQLException
Method Detail

resultSetIteratorRow2Obj

public Long resultSetIteratorRow2Obj(ResultSet rs)
                              throws SQLException
Description copied from interface: ResultSetIterator.Row2Obj
Converts a ResultSet to an Object

Specified by:
resultSetIteratorRow2Obj in interface ResultSetIterator.Row2Obj<Long>
Parameters:
rs - The ResultSet to convert.
Returns:
The object produced by this row.
Throws:
SQLException - As the retreiving data from the row could throw this, we'll expect the method to throw it too.


Copyright © 2012. All Rights Reserved.