public interface ResultSetIterable<T> extends Iterable<T>, AutoCloseable
ResultSet
. Needs to be closeable, because allowing manual
iteration means it's impossible to know when to close the ResultSet and Connection.Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
isAutoCloseConnection() |
void |
setAutoCloseConnection(boolean autoCloseConnection) |
forEach, iterator, spliterator
void close()
close
in interface AutoCloseable
boolean isAutoCloseConnection()
void setAutoCloseConnection(boolean autoCloseConnection)
Copyright © 2015. All rights reserved.