add throws DataAccessException
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user