public interface ResultSetIterable<T> extends Iterable<T>, Closeable, AutoCloseable
ResultSet. Needs to be closeable, because allowing manual
iteration means it's impossible to know when to close the ResultSet and Connection.| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
boolean |
isAutoCloseConnection() |
void |
setAutoCloseConnection(boolean autoCloseConnection) |
forEach, iterator, spliteratorvoid close()
close 在接口中 AutoCloseableclose 在接口中 Closeableboolean isAutoCloseConnection()
void setAutoCloseConnection(boolean autoCloseConnection)
Copyright © 2021. All rights reserved.