0

JdbcTemplate: refactoring

This commit is contained in:
2021-01-03 16:00:34 +03:00
parent 5315a4ad94
commit c963c4bd60
3 changed files with 122 additions and 98 deletions

View File

@@ -9,15 +9,11 @@ public interface JdbcOperations {
<T> T query(String sql, ResultSetExtractor<T> rse) throws DataAccessException;
<T> List<T> query(String sql, RowMapper<T> rowMapper) throws DataAccessException;
<T> T queryForObject(String sql, RowMapper<T> rowMapper) throws DataAccessException;
<T> List<T> queryList(String sql, RowMapper<T> rowMapper) throws DataAccessException;
Map<String, Object> queryForMap(String sql) throws DataAccessException;
List<Map<String, Object>> queryForList(String sql) throws DataAccessException;
List<Map<String, Object>> queryForMapList(String sql) throws DataAccessException;
int update(String sql) throws DataAccessException;
int delete(String sql) throws DataAccessException;
}