public void close() throws SQLException { if (!closed) { compiledStmt.close(); closed = true; last = null; if (statement != null) { logger.debug("closed iterator @{} after {} rows", hashCode(), rowC); } connectionSource.releaseConnection(connection); } }