Package org.sql2o
Interface ResultSetIterable<T>
- All Superinterfaces:
AutoCloseable
,Closeable
,Iterable<T>
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 Summary
Modifier and TypeMethodDescriptionvoid
close()
boolean
void
setAutoCloseConnection
(boolean autoCloseConnection) Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
close
void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
isAutoCloseConnection
boolean isAutoCloseConnection() -
setAutoCloseConnection
void setAutoCloseConnection(boolean autoCloseConnection)
-