MCPcopy Index your code
hub / github.com/apache/groovy / closeResources

Method closeResources

subprojects/groovy-sql/src/main/java/groovy/sql/Sql.java:4879–4888  ·  view source on GitHub ↗

An extension point allowing derived classes to change the behavior of resource closing. @param connection the connection to close @param statement the statement to close @param results the results to close

(Connection connection, Statement statement, ResultSet results)

Source from the content-addressed store, hash-verified

4877 * @param results the results to close
4878 */
4879 protected void closeResources(Connection connection, Statement statement, ResultSet results) {
4880 if (results != null) {
4881 try {
4882 results.close();
4883 } catch (SQLException e) {
4884 LOG.finest("Caught exception closing resultSet: " + e.getMessage() + " - continuing");
4885 }
4886 }
4887 closeResources(connection, statement);
4888 }
4889
4890 /**
4891 * An extension point allowing the behavior of resource closing to be

Callers 12

queryMethod · 0.95
eachRowMethod · 0.95
executeMethod · 0.95
executeInsertMethod · 0.95
executeUpdateMethod · 0.95
callMethod · 0.95
cacheConnectionMethod · 0.95
withTransactionMethod · 0.95
withBatchMethod · 0.95
cacheStatementsMethod · 0.95
callWithRowsMethod · 0.95
closeResourcesMethod · 0.45

Calls 2

closeMethod · 0.65
getMessageMethod · 0.45

Tested by

no test coverage detected