org.sql2o.ResultSetIterable Maven / Gradle / Ivy
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