org.hibernate.impl

Class IteratorImpl

Implemented Interfaces:
HibernateIterator, Iterator

public final class IteratorImpl
extends java.lang.Object
implements HibernateIterator

An implementation of java.util.Iterator that is returned by iterate() query execution methods.
Author:
Gavin King

Constructor Summary

IteratorImpl(ResultSet rs, PreparedStatement ps, EventSource sess, Type[] types, String[][] columnNames, HolderInstantiator holderInstantiator)

Method Summary

void
close()
boolean
hasNext()
Object
next()
void
remove()

Constructor Details

IteratorImpl

public IteratorImpl(ResultSet rs,
                    PreparedStatement ps,
                    EventSource sess,
                    Type[] types,
                    String[][] columnNames,
                    HolderInstantiator holderInstantiator)
            throws HibernateException,
                   SQLException

Method Details

close

public void close()
            throws JDBCException
Specified by:
close in interface HibernateIterator

hasNext

public boolean hasNext()

next

public Object next()
            throws HibernateException

remove

public void remove()