logger.debug("Relesing resources ...");
if(resultSet != null) {
try {
resultSet.close();
} catch (SQLException e) {
throw new SpagoBIRuntimeException("Impossible to release [resultSet]", e);
}
logger.debug("[resultSet] released succesfully");
}
if(statement != null) {
try {
statement.close();
} catch (SQLException e) {
throw new SpagoBIRuntimeException("Impossible to release [statement]", e);
}
logger.debug("[statement] released succesfully");
}
if(connection != null) {
try {
connection.close();
} catch (SQLException e) {
throw new SpagoBIRuntimeException("Impossible to release [connection]", e);
}
logger.debug("[connection] released succesfully");
}
logger.debug("All resources have been released succesfully");
} finally {