org.sql2o.ResultSetIterable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of anima Show documentation
Show all versions of anima Show documentation
Operate the database like a stream
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