JdbcTemplate: refactoring
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user