org.hibernate.cfg.reveng.dialect
Class ResultSetIterator

java.lang.Object
  extended by org.hibernate.cfg.reveng.dialect.ResultSetIterator
All Implemented Interfaces:
Iterator

public abstract class ResultSetIterator
extends Object
implements Iterator

Iterator over a resultset; intended usage only for metadata reading.


Field Summary
protected  boolean current
           
protected  boolean endOfRows
           
 
Constructor Summary
protected ResultSetIterator(ResultSet resultset, org.hibernate.exception.SQLExceptionConverter sec)
           
  ResultSetIterator(Statement stmt, ResultSet resultset, org.hibernate.exception.SQLExceptionConverter exceptionConverter)
           
 
Method Summary
protected  void advance()
           
 void close()
           
protected abstract  Object convertRow(ResultSet rs)
           
protected  org.hibernate.exception.SQLExceptionConverter getSQLExceptionConverter()
           
protected abstract  Throwable handleSQLException(SQLException e)
           
 boolean hasNext()
           
 Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

current

protected boolean current

endOfRows

protected boolean endOfRows
Constructor Detail

ResultSetIterator

protected ResultSetIterator(ResultSet resultset,
                            org.hibernate.exception.SQLExceptionConverter sec)

ResultSetIterator

public ResultSetIterator(Statement stmt,
                         ResultSet resultset,
                         org.hibernate.exception.SQLExceptionConverter exceptionConverter)
Method Detail

getSQLExceptionConverter

protected org.hibernate.exception.SQLExceptionConverter getSQLExceptionConverter()

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator

next

public Object next()
Specified by:
next in interface Iterator

handleSQLException

protected abstract Throwable handleSQLException(SQLException e)

convertRow

protected abstract Object convertRow(ResultSet rs)
                              throws SQLException
Throws:
SQLException

remove

public void remove()
Specified by:
remove in interface Iterator

advance

protected void advance()
                throws SQLException
Throws:
SQLException

close

public void close()