org.hibernate.engine.HibernateIterator Maven / Gradle / Ivy
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or .
*/
package org.hibernate.engine;
import java.io.Closeable;
import java.util.Iterator;
import org.hibernate.JDBCException;
/**
* Hibernate-specific iterator that may be closed
*
* @see org.hibernate.Query#iterate()
* @see org.hibernate.Hibernate#close(java.util.Iterator)
*
* @author Gavin King
*/
public interface HibernateIterator extends Iterator, AutoCloseable, Closeable {
/**
* Close the Hibernate query result iterator
*
* @throws JDBCException Indicates a problem releasing the underlying JDBC resources.
*/
void close() throws JDBCException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy