com.ibatis.sqlmap.engine.mapping.statement
Class CachingStatement

java.lang.Object
  extended bycom.ibatis.sqlmap.engine.mapping.statement.CachingStatement
All Implemented Interfaces:
MappedStatement

public class CachingStatement
extends java.lang.Object
implements MappedStatement


Constructor Summary
CachingStatement(MappedStatement statement, CacheModel cacheModel)
           
 
Method Summary
 void addExecuteListener(ExecuteListener listener)
           
 java.util.List executeQueryForList(RequestScope request, Transaction trans, java.lang.Object parameterObject, int skipResults, int maxResults)
           
 java.lang.Object executeQueryForObject(RequestScope request, Transaction trans, java.lang.Object parameterObject, java.lang.Object resultObject)
           
 void executeQueryWithRowHandler(RequestScope request, Transaction trans, java.lang.Object parameterObject, RowHandler rowHandler)
           
 int executeUpdate(RequestScope request, Transaction trans, java.lang.Object parameterObject)
           
 ResultMap[] getAdditionalResultMaps()
           
 CacheKey getCacheKey(RequestScope request, java.lang.Object parameterObject)
           
 java.lang.Integer getFetchSize()
           
 java.lang.String getId()
           
 java.lang.Class getParameterClass()
           
 ParameterMap getParameterMap()
           
 ResultMap getResultMap()
           
 java.lang.Integer getResultSetType()
           
 Sql getSql()
           
 StatementType getStatementType()
           
 java.lang.Integer getTimeout()
           
 boolean hasMultipleResultMaps()
           
 void initRequest(RequestScope request)
           
 void notifyListeners()
           
 void setBaseCacheKey(int base)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachingStatement

public CachingStatement(MappedStatement statement,
                        CacheModel cacheModel)
Method Detail

getId

public java.lang.String getId()
Specified by:
getId in interface MappedStatement

getStatementType

public StatementType getStatementType()
Specified by:
getStatementType in interface MappedStatement

getResultSetType

public java.lang.Integer getResultSetType()
Specified by:
getResultSetType in interface MappedStatement

getFetchSize

public java.lang.Integer getFetchSize()
Specified by:
getFetchSize in interface MappedStatement

getParameterMap

public ParameterMap getParameterMap()
Specified by:
getParameterMap in interface MappedStatement

getResultMap

public ResultMap getResultMap()
Specified by:
getResultMap in interface MappedStatement

executeUpdate

public int executeUpdate(RequestScope request,
                         Transaction trans,
                         java.lang.Object parameterObject)
                  throws java.sql.SQLException
Specified by:
executeUpdate in interface MappedStatement
Throws:
java.sql.SQLException

executeQueryForObject

public java.lang.Object executeQueryForObject(RequestScope request,
                                              Transaction trans,
                                              java.lang.Object parameterObject,
                                              java.lang.Object resultObject)
                                       throws java.sql.SQLException
Specified by:
executeQueryForObject in interface MappedStatement
Throws:
java.sql.SQLException

executeQueryForList

public java.util.List executeQueryForList(RequestScope request,
                                          Transaction trans,
                                          java.lang.Object parameterObject,
                                          int skipResults,
                                          int maxResults)
                                   throws java.sql.SQLException
Specified by:
executeQueryForList in interface MappedStatement
Throws:
java.sql.SQLException

executeQueryWithRowHandler

public void executeQueryWithRowHandler(RequestScope request,
                                       Transaction trans,
                                       java.lang.Object parameterObject,
                                       RowHandler rowHandler)
                                throws java.sql.SQLException
Specified by:
executeQueryWithRowHandler in interface MappedStatement
Throws:
java.sql.SQLException

getCacheKey

public CacheKey getCacheKey(RequestScope request,
                            java.lang.Object parameterObject)
Specified by:
getCacheKey in interface MappedStatement

setBaseCacheKey

public void setBaseCacheKey(int base)
Specified by:
setBaseCacheKey in interface MappedStatement

addExecuteListener

public void addExecuteListener(ExecuteListener listener)
Specified by:
addExecuteListener in interface MappedStatement

notifyListeners

public void notifyListeners()
Specified by:
notifyListeners in interface MappedStatement

initRequest

public void initRequest(RequestScope request)
Specified by:
initRequest in interface MappedStatement

getSql

public Sql getSql()
Specified by:
getSql in interface MappedStatement

getParameterClass

public java.lang.Class getParameterClass()
Specified by:
getParameterClass in interface MappedStatement

getTimeout

public java.lang.Integer getTimeout()
Specified by:
getTimeout in interface MappedStatement

hasMultipleResultMaps

public boolean hasMultipleResultMaps()
Specified by:
hasMultipleResultMaps in interface MappedStatement

getAdditionalResultMaps

public ResultMap[] getAdditionalResultMaps()
Specified by:
getAdditionalResultMaps in interface MappedStatement