1 16 17 package org.springframework.orm.ibatis; 18 19 import java.util.List ; 20 import java.util.Map ; 21 22 import com.ibatis.db.sqlmap.RowHandler; 23 24 import org.springframework.dao.DataAccessException; 25 26 42 public interface SqlMapOperations { 43 44 Object executeQueryForObject(String statementName, Object parameterObject) 45 throws DataAccessException; 46 47 Object executeQueryForObject(String statementName, Object parameterObject, Object resultObject) 48 throws DataAccessException; 49 50 List executeQueryForList(String statementName, Object parameterObject) 51 throws DataAccessException; 52 53 List executeQueryForList(String statementName, Object parameterObject, int skipResults, int maxResults) 54 throws DataAccessException; 55 56 Map executeQueryForMap(String statementName, Object parameterObject, String keyProperty) 57 throws DataAccessException; 58 59 Map executeQueryForMap(String statementName, Object parameterObject, String keyProperty, String valueProperty) 60 throws DataAccessException; 61 62 void executeQueryWithRowHandler( 63 String statementName, Object parameterObject, RowHandler rowHandler) 64 throws DataAccessException; 65 66 int executeUpdate(String statementName, Object parameterObject) 67 throws DataAccessException; 68 69 } 70 | Popular Tags |