1 16 package com.ibatis.sqlmap.client; 17 18 import com.ibatis.common.util.PaginatedList; 19 import com.ibatis.sqlmap.client.event.RowHandler; 20 21 import java.sql.SQLException ; 22 import java.util.List ; 23 import java.util.Map ; 24 25 32 public interface SqlMapExecutor { 33 34 50 Object insert(String id, Object parameterObject) throws SQLException ; 51 52 66 int update(String id, Object parameterObject) throws SQLException ; 67 68 80 int delete(String id, Object parameterObject) throws SQLException ; 81 82 95 Object queryForObject(String id, Object parameterObject) throws SQLException ; 96 97 111 Object queryForObject(String id, Object parameterObject, Object resultObject) throws SQLException ; 112 113 125 List queryForList(String id, Object parameterObject) throws SQLException ; 126 127 141 List queryForList(String id, Object parameterObject, int skip, int max) throws SQLException ; 142 143 160 void queryWithRowHandler(String id, Object parameterObject, RowHandler rowHandler) throws SQLException ; 161 162 175 PaginatedList queryForPaginatedList(String id, Object parameterObject, int pageSize) throws SQLException ; 176 177 190 Map queryForMap(String id, Object parameterObject, String keyProp) throws SQLException ; 191 192 206 Map queryForMap(String id, Object parameterObject, String keyProp, String valueProp) throws SQLException ; 207 208 215 void startBatch() throws SQLException ; 216 217 224 int executeBatch() throws SQLException ; 225 } 226 | Popular Tags |