1 16 17 package org.springframework.jdbc.core.simple; 18 19 import java.util.List ; 20 import java.util.Map ; 21 22 import org.springframework.dao.DataAccessException; 23 import org.springframework.jdbc.core.JdbcOperations; 24 25 36 public interface SimpleJdbcOperations { 37 38 42 JdbcOperations getJdbcOperations(); 43 44 45 49 int queryForInt(String sql, Object ... args) throws DataAccessException; 50 51 55 long queryForLong(String sql, Object ... args) throws DataAccessException; 56 57 65 <T> T queryForObject(String sql, Class <T> requiredType, Object ... args) 66 throws DataAccessException; 67 68 77 <T> T queryForObject(String sql, ParameterizedRowMapper<T> rm, Object ... args) 78 throws DataAccessException; 79 80 89 <T> List <T> query(String sql, ParameterizedRowMapper<T> rm, Object ... args) 90 throws DataAccessException; 91 92 99 Map <String , Object > queryForMap(String sql, Object ... args) 100 throws DataAccessException; 101 102 109 List <Map <String , Object >> queryForList(String sql, Object ... args) 110 throws DataAccessException; 111 112 118 int update(String sql, Object ... args) throws DataAccessException; 119 120 } 121 | Popular Tags |