Class BaseStatementHandler
java.lang.Object
org.apache.ibatis.executor.statement.BaseStatementHandler
- All Implemented Interfaces:
StatementHandler
- Direct Known Subclasses:
CallableStatementHandler,PreparedStatementHandler,SimpleStatementHandler
- Author:
- Clinton Begin
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BoundSqlprotected final Configurationprotected final Executorprotected final MappedStatementprotected final ObjectFactoryprotected final ParameterHandlerprotected final ResultSetHandlerprotected final RowBoundsprotected final TypeHandlerRegistry -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBaseStatementHandler(Executor executor, MappedStatement mappedStatement, Object parameterObject, RowBounds rowBounds, ResultHandler resultHandler, BoundSql boundSql) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcloseStatement(Statement statement) protected voidgenerateKeys(Object parameter) protected abstract StatementinstantiateStatement(Connection connection) prepare(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, waitMethods inherited from interface org.apache.ibatis.executor.statement.StatementHandler
batch, parameterize, query, queryCursor, update
-
Field Details
-
configuration
-
objectFactory
-
typeHandlerRegistry
-
resultSetHandler
-
parameterHandler
-
executor
-
mappedStatement
-
rowBounds
-
boundSql
-
-
Constructor Details
-
BaseStatementHandler
protected BaseStatementHandler(Executor executor, MappedStatement mappedStatement, Object parameterObject, RowBounds rowBounds, ResultHandler resultHandler, BoundSql boundSql)
-
-
Method Details
-
getBoundSql
- Specified by:
getBoundSqlin interfaceStatementHandler
-
getParameterHandler
- Specified by:
getParameterHandlerin interfaceStatementHandler
-
prepare
- Specified by:
preparein interfaceStatementHandler- Throws:
SQLException
-
instantiateStatement
- Throws:
SQLException
-
setStatementTimeout
- Throws:
SQLException
-
setFetchSize
- Throws:
SQLException
-
closeStatement
-
generateKeys
-