org.hibernate.cfg.reveng.dialect
Class ResultSetIterator
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
current
protected boolean current
endOfRows
protected boolean endOfRows
ResultSetIterator
protected ResultSetIterator(ResultSet resultset,
org.hibernate.exception.SQLExceptionConverter sec)
ResultSetIterator
public ResultSetIterator(Statement stmt,
ResultSet resultset,
org.hibernate.exception.SQLExceptionConverter exceptionConverter)
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()