add throws DataAccessException

This commit is contained in:
lCarLyl
2022-09-25 01:57:58 +03:00
parent 3676b24d0f
commit c4d459c461
2 changed files with 2 additions and 2 deletions

View File

@@ -146,7 +146,7 @@ public class JdbcTemplateImpl implements JdbcTemplate {
}
@Override
public void update(String sql, PreparedStatementProcessor psp) {
public void update(String sql, PreparedStatementProcessor psp) throws DataAccessException {
try (PreparedStatement statement = dataSource.getConnection().prepareStatement(sql)){
psp.process(statement);

View File

@@ -113,7 +113,7 @@ public class JdbcTemplateTransactional implements JdbcTemplate, AutoCloseable {
}
@Override
public void update(String sql, PreparedStatementProcessor psp) {
public void update(String sql, PreparedStatementProcessor psp) throws DataAccessException {
try (PreparedStatement statement = connection.prepareStatement(sql)) {
psp.process(statement);