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

org.sql2o.ResultSetIterable Maven / Gradle / Ivy

There is a newer version: 0.2.6
Show newest version
package org.sql2o;

import java.io.Closeable;

/**
 * Iterable {@link java.sql.ResultSet}. Needs to be closeable, because allowing manual
 * iteration means it's impossible to know when to close the ResultSet and Connection.
 *
 * @author [email protected]
 */
public interface ResultSetIterable extends Iterable, Closeable, AutoCloseable {
    // override close to not throw
    void close();

    boolean isAutoCloseConnection();
    void setAutoCloseConnection(boolean autoCloseConnection);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy