net.sf.morph.reflect.support
Class ResultSetIterator

java.lang.Object
  extended by net.sf.morph.reflect.support.ResultSetIterator
All Implemented Interfaces:
java.util.Iterator

public class ResultSetIterator
extends java.lang.Object
implements java.util.Iterator

An iterator over a ResultSet. SQLExceptions are wrapped in MorphExceptions.

Since:
Dec 20, 2004
Author:
Matt Sgarlata

Constructor Summary
ResultSetIterator(java.sql.ResultSet resultSet)
           
 
Method Summary
protected  void advanceToNextRow()
           
protected  void handleResultSetNextException(java.sql.SQLException e)
           
 boolean hasNext()
           
 java.lang.Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultSetIterator

public ResultSetIterator(java.sql.ResultSet resultSet)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator

advanceToNextRow

protected void advanceToNextRow()
                         throws MorphException
Throws:
MorphException

handleResultSetNextException

protected void handleResultSetNextException(java.sql.SQLException e)
                                     throws MorphException
Throws:
MorphException

remove

public void remove()
Specified by:
remove in interface java.util.Iterator


Copyright © 2004-2008.