net.darkmist.alib.db
Class ResultSetLongIterator
java.lang.Object
net.darkmist.alib.db.ResultSetIterator<Long>
net.darkmist.alib.db.ResultSetLongIterator
- All Implemented Interfaces:
- Iterator<Long>, ResultSetIterator.Row2Obj<Long>
public class ResultSetLongIterator
- extends ResultSetIterator<Long>
- implements ResultSetIterator.Row2Obj<Long>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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.