KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ibatis > sqlmap > engine > mapping > statement > MappedStatement


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 JavaDoc;
27 import java.util.List JavaDoc;
28
29 public interface MappedStatement {
30
31   public String JavaDoc getId();
32
33   public StatementType getStatementType();
34
35   public Integer JavaDoc getResultSetType();
36
37   public int executeUpdate(RequestScope request, Transaction trans, Object JavaDoc parameterObject)
38       throws SQLException JavaDoc;
39
40   public Object JavaDoc executeQueryForObject(RequestScope request, Transaction trans, Object JavaDoc parameterObject, Object JavaDoc resultObject)
41       throws SQLException JavaDoc;
42
43   public List JavaDoc executeQueryForList(RequestScope request, Transaction trans, Object JavaDoc parameterObject, int skipResults, int maxResults)
44       throws SQLException JavaDoc;
45
46   public void executeQueryWithRowHandler(RequestScope request, Transaction trans, Object JavaDoc parameterObject, RowHandler rowHandler)
47       throws SQLException JavaDoc;
48
49   public CacheKey getCacheKey(RequestScope request, Object JavaDoc 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 JavaDoc getParameterClass();
66
67   public Integer JavaDoc getFetchSize();
68
69
70 }
71
Popular Tags