org.hibernate.impl
Class IteratorImpl
java.lang.Object
org.hibernate.impl.IteratorImpl
- All Implemented Interfaces:
- Iterator, HibernateIterator
public final class IteratorImpl
- extends Object
- implements HibernateIterator
An implementation of java.util.Iterator that is
returned by iterate() query execution methods.
- Author:
- Gavin King
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IteratorImpl
public IteratorImpl(ResultSet rs,
PreparedStatement ps,
EventSource sess,
Type[] types,
String[][] columnNames,
HolderInstantiator holderInstantiator)
throws HibernateException,
SQLException
- Throws:
HibernateException
SQLException
close
public void close()
throws JDBCException
- Specified by:
close
in interface HibernateIterator
- Throws:
JDBCException
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator
next
public Object next()
throws HibernateException
- Specified by:
next
in interface Iterator
- Throws:
HibernateException
remove
public void remove()
- Specified by:
remove
in interface Iterator