Package org.sql2o

Interface ResultSetIterable<T>

All Superinterfaces:
AutoCloseable, Closeable, Iterable<T>

public interface ResultSetIterable<T> extends Iterable<T>, Closeable, AutoCloseable
Iterable ResultSet. Needs to be closeable, because allowing manual iteration means it's impossible to know when to close the ResultSet and Connection.
Author:
aldenquimby@gmail.com
  • Method Details

    • close

      void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • isAutoCloseConnection

      boolean isAutoCloseConnection()
    • setAutoCloseConnection

      void setAutoCloseConnection(boolean autoCloseConnection)