Class BaseStatementHandler
- java.lang.Object
 - 
- org.apache.ibatis.executor.statement.BaseStatementHandler
 
 
- 
- All Implemented Interfaces:
 StatementHandler
- Direct Known Subclasses:
 CallableStatementHandler,PreparedStatementHandler,SimpleStatementHandler
public abstract class BaseStatementHandler extends Object implements StatementHandler
- Author:
 - Clinton Begin
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected BoundSqlboundSqlprotected Configurationconfigurationprotected Executorexecutorprotected MappedStatementmappedStatementprotected ObjectFactoryobjectFactoryprotected ParameterHandlerparameterHandlerprotected ResultSetHandlerresultSetHandlerprotected RowBoundsrowBoundsprotected TypeHandlerRegistrytypeHandlerRegistry 
- 
Constructor Summary
Constructors Modifier Constructor Description protectedBaseStatementHandler(Executor executor, MappedStatement mappedStatement, Object parameterObject, RowBounds rowBounds, ResultHandler resultHandler, BoundSql boundSql) 
- 
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidcloseStatement(Statement statement)protected voidgenerateKeys(Object parameter)BoundSqlgetBoundSql()ParameterHandlergetParameterHandler()protected abstract StatementinstantiateStatement(Connection connection)Statementprepare(Connection connection, Integer transactionTimeout)protected voidsetFetchSize(Statement stmt)protected voidsetStatementTimeout(Statement stmt, Integer transactionTimeout)- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface org.apache.ibatis.executor.statement.StatementHandler
batch, parameterize, query, queryCursor, update 
 - 
 
 - 
 
- 
- 
Field Detail
- 
configuration
protected final Configuration configuration
 
- 
objectFactory
protected final ObjectFactory objectFactory
 
- 
typeHandlerRegistry
protected final TypeHandlerRegistry typeHandlerRegistry
 
- 
resultSetHandler
protected final ResultSetHandler resultSetHandler
 
- 
parameterHandler
protected final ParameterHandler parameterHandler
 
- 
executor
protected final Executor executor
 
- 
mappedStatement
protected final MappedStatement mappedStatement
 
- 
rowBounds
protected final RowBounds rowBounds
 
- 
boundSql
protected BoundSql boundSql
 
 - 
 
- 
Constructor Detail
- 
BaseStatementHandler
protected BaseStatementHandler(Executor executor, MappedStatement mappedStatement, Object parameterObject, RowBounds rowBounds, ResultHandler resultHandler, BoundSql boundSql)
 
 - 
 
- 
Method Detail
- 
getBoundSql
public BoundSql getBoundSql()
- Specified by:
 getBoundSqlin interfaceStatementHandler
 
- 
getParameterHandler
public ParameterHandler getParameterHandler()
- Specified by:
 getParameterHandlerin interfaceStatementHandler
 
- 
prepare
public Statement prepare(Connection connection, Integer transactionTimeout) throws SQLException
- Specified by:
 preparein interfaceStatementHandler- Throws:
 SQLException
 
- 
instantiateStatement
protected abstract Statement instantiateStatement(Connection connection) throws SQLException
- Throws:
 SQLException
 
- 
setStatementTimeout
protected void setStatementTimeout(Statement stmt, Integer transactionTimeout) throws SQLException
- Throws:
 SQLException
 
- 
setFetchSize
protected void setFetchSize(Statement stmt) throws SQLException
- Throws:
 SQLException
 
- 
closeStatement
protected void closeStatement(Statement statement)
 
- 
generateKeys
protected void generateKeys(Object parameter)
 
 - 
 
 -