connection.rollback();
}
} catch (SQLException e1) {
e1.printStackTrace();
}
throw new ConfigurationException(e);
} finally {
if (rs != null) {
try {
rs.close();
} catch (SQLException e) {
LOGGER.error("Could not close Resultset!");
throw new ConfigurationException(e);
}
}
if (queryStmt != null) {
try {
queryStmt.close();
} catch (SQLException e) {
LOGGER.error("Could not close query statement!");
throw new ConfigurationException(e);
}
}
if (updateStmt != null) {
try {
updateStmt.close();
} catch (SQLException e) {
LOGGER.error("Could not close update statement!");
throw new ConfigurationException(e);
}
}
if (insertStmt != null) {
try {
insertStmt.close();
} catch (SQLException e) {
LOGGER.error("Could not close insert statement!");
throw new ConfigurationException(e);
}
}
if (connection != null) {
try {
connection.close();
} catch (SQLException e) {
LOGGER.error("Could not close connection!");
throw new ConfigurationException(e);
}
}
}
}