Interface HibernateIterator

  • All Superinterfaces:
    java.lang.AutoCloseable, java.io.Closeable, java.util.Iterator

    public interface HibernateIterator
    extends java.util.Iterator, java.lang.AutoCloseable, java.io.Closeable
    Hibernate-specific iterator that may be closed
    See Also:
    Query.iterate(), Hibernate.close(java.util.Iterator)
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void close()
      Close the Hibernate query result iterator
      • Methods inherited from interface java.util.Iterator

        forEachRemaining, hasNext, next, remove
    • Method Detail

      • close

        void close()
            throws JDBCException
        Close the Hibernate query result iterator
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        JDBCException - Indicates a problem releasing the underlying JDBC resources.