1 16 17 package org.springframework.orm.ibatis; 18 19 import java.util.List ; 20 import java.util.Map ; 21 22 import com.ibatis.common.util.PaginatedList; 23 import com.ibatis.sqlmap.client.event.RowHandler; 24 25 import org.springframework.dao.DataAccessException; 26 27 43 public interface SqlMapClientOperations { 44 45 49 Object queryForObject(String statementName) throws DataAccessException; 50 51 55 Object queryForObject(String statementName, Object parameterObject) 56 throws DataAccessException; 57 58 62 Object queryForObject(String statementName, Object parameterObject, Object resultObject) 63 throws DataAccessException; 64 65 69 List queryForList(String statementName) throws DataAccessException; 70 71 75 List queryForList(String statementName, Object parameterObject) 76 throws DataAccessException; 77 78 82 List queryForList(String statementName, int skipResults, int maxResults) 83 throws DataAccessException; 84 85 89 List queryForList(String statementName, Object parameterObject, int skipResults, int maxResults) 90 throws DataAccessException; 91 92 96 void queryWithRowHandler(String statementName, RowHandler rowHandler) 97 throws DataAccessException; 98 99 103 void queryWithRowHandler(String statementName, Object parameterObject, RowHandler rowHandler) 104 throws DataAccessException; 105 106 111 PaginatedList queryForPaginatedList(String statementName, int pageSize) 112 throws DataAccessException; 113 114 119 PaginatedList queryForPaginatedList(String statementName, Object parameterObject, int pageSize) 120 throws DataAccessException; 121 122 126 Map queryForMap(String statementName, Object parameterObject, String keyProperty) 127 throws DataAccessException; 128 129 133 Map queryForMap(String statementName, Object parameterObject, String keyProperty, String valueProperty) 134 throws DataAccessException; 135 136 140 Object insert(String statementName) throws DataAccessException; 141 142 146 Object insert(String statementName, Object parameterObject) throws DataAccessException; 147 148 152 int update(String statementName) throws DataAccessException; 153 154 158 int update(String statementName, Object parameterObject) throws DataAccessException; 159 160 170 void update(String statementName, Object parameterObject, int requiredRowsAffected) 171 throws DataAccessException; 172 173 177 int delete(String statementName) throws DataAccessException; 178 179 183 int delete(String statementName, Object parameterObject) throws DataAccessException; 184 185 195 void delete(String statementName, Object parameterObject, int requiredRowsAffected) 196 throws DataAccessException; 197 198 } 199 | Popular Tags |