stmt.executeUpdate(sql);
stmt.close();
stmt = null;
} catch (SQLException sqle) {
logger.error("sql-exception", sqle);
throw new JDBCRepositoryException(sqle);
} finally {
try {
if (stmt != null) {
stmt.close();
}
} catch (SQLException e) {
logger.error("sql-exception", e);
throw new JDBCRepositoryException(e);
}
}
}