All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alexkasko.springjdbc.iterable.CloseableIterator Maven / Gradle / Ivy

Go to download

Spring-JDBC extension library. Provides IterableJdbcTemplate and IterableNamedParameterJdbcTemplate that can return query result in lazy mode as iterators

There is a newer version: 1.0.3
Show newest version
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