(Connection connection, Throwable t)
| 4998 | } |
| 4999 | |
| 5000 | private static void handleError(Connection connection, Throwable t) throws SQLException { |
| 5001 | if (connection != null) { |
| 5002 | LOG.warning("Rolling back due to: " + t.getMessage()); |
| 5003 | connection.rollback(); |
| 5004 | } |
| 5005 | } |
| 5006 | |
| 5007 | private static void callClosurePossiblyWithConnection(Closure closure, Connection connection) { |
| 5008 | if (closure.getMaximumNumberOfParameters() == 1) { |
no test coverage detected