1 16 package com.ibatis.sqlmap.engine.mapping.statement; 17 18 import com.ibatis.sqlmap.client.event.RowHandler; 19 import com.ibatis.sqlmap.engine.cache.CacheKey; 20 import com.ibatis.sqlmap.engine.mapping.parameter.ParameterMap; 21 import com.ibatis.sqlmap.engine.mapping.result.ResultMap; 22 import com.ibatis.sqlmap.engine.mapping.sql.Sql; 23 import com.ibatis.sqlmap.engine.scope.RequestScope; 24 import com.ibatis.sqlmap.engine.transaction.Transaction; 25 26 import java.sql.SQLException ; 27 import java.util.List ; 28 29 public interface MappedStatement { 30 31 public String getId(); 32 33 public StatementType getStatementType(); 34 35 public Integer getResultSetType(); 36 37 public int executeUpdate(RequestScope request, Transaction trans, Object parameterObject) 38 throws SQLException ; 39 40 public Object executeQueryForObject(RequestScope request, Transaction trans, Object parameterObject, Object resultObject) 41 throws SQLException ; 42 43 public List executeQueryForList(RequestScope request, Transaction trans, Object parameterObject, int skipResults, int maxResults) 44 throws SQLException ; 45 46 public void executeQueryWithRowHandler(RequestScope request, Transaction trans, Object parameterObject, RowHandler rowHandler) 47 throws SQLException ; 48 49 public CacheKey getCacheKey(RequestScope request, Object parameterObject); 50 51 public ParameterMap getParameterMap(); 52 53 public ResultMap getResultMap(); 54 55 public void setBaseCacheKey(int base); 56 57 public void addExecuteListener(ExecuteListener listener); 58 59 public void notifyListeners(); 60 61 public void initRequest(RequestScope request); 62 63 public Sql getSql(); 64 65 public Class getParameterClass(); 66 67 public Integer getFetchSize(); 68 69 70 } 71 | Popular Tags |