Save This Page
Home » ibatis-2.3.src » com.ibatis.sqlmap.engine.mapping.statement » [javadoc | source]
    1   /*
    2    *  Copyright 2004 Clinton Begin
    3    *
    4    *  Licensed under the Apache License, Version 2.0 (the "License");
    5    *  you may not use this file except in compliance with the License.
    6    *  You may obtain a copy of the License at
    7    *
    8    *      http://www.apache.org/licenses/LICENSE-2.0
    9    *
   10    *  Unless required by applicable law or agreed to in writing, software
   11    *  distributed under the License is distributed on an "AS IS" BASIS,
   12    *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   13    *  See the License for the specific language governing permissions and
   14    *  limitations under the License.
   15    */
   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 Integer getResultSetType();
   34   
   35     public int executeUpdate(RequestScope request, Transaction trans, Object parameterObject)
   36         throws SQLException;
   37   
   38     public Object executeQueryForObject(RequestScope request, Transaction trans, Object parameterObject, Object resultObject)
   39         throws SQLException;
   40   
   41     public List executeQueryForList(RequestScope request, Transaction trans, Object parameterObject, int skipResults, int maxResults)
   42         throws SQLException;
   43   
   44     public void executeQueryWithRowHandler(RequestScope request, Transaction trans, Object parameterObject, RowHandler rowHandler)
   45         throws SQLException;
   46   
   47     public CacheKey getCacheKey(RequestScope request, Object parameterObject);
   48   
   49     public ParameterMap getParameterMap();
   50   
   51     public ResultMap getResultMap();
   52   
   53     public void setBaseCacheKey(int base);
   54   
   55     public void addExecuteListener(ExecuteListener listener);
   56   
   57     public void notifyListeners();
   58   
   59     public void initRequest(RequestScope request);
   60   
   61     public Sql getSql();
   62   
   63     public Class getParameterClass();
   64   
   65     public Integer getFetchSize();
   66   
   67   
   68   }

Save This Page
Home » ibatis-2.3.src » com.ibatis.sqlmap.engine.mapping.statement » [javadoc | source]