
com.alexkasko.springjdbc.iterable.CloseableIterator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of springjdbc-iterable Show documentation
Show all versions of springjdbc-iterable Show documentation
Spring-JDBC extension library. Provides IterableJdbcTemplate and IterableNamedParameterJdbcTemplate
that can return query result in lazy mode as iterators
package com.alexkasko.springjdbc.iterable;
import java.util.Iterator;
/**
* Iterator, that must be closed after use
*
* @author alexkasko
* Date: 11/7/12
*/
public interface CloseableIterator extends Iterator {
/**
* Closes this iterator and releases JDBC resources associated
* with it. If the iterator is already closed then invoking this
* method has no effect.
*/
void close();
/**
* @return whether iterator was closed
*/
boolean isClosed();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy