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 BoundSql
protected Configuration
protected Executor
protected MappedStatement
protected ObjectFactory
protected ParameterHandler
protected ResultSetHandler
protected RowBounds
protected TypeHandlerRegistry
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
BaseStatementHandler(Executor executor, MappedStatement mappedStatement, Object parameterObject, RowBounds rowBounds, ResultHandler resultHandler, BoundSql boundSql)
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
closeStatement(Statement statement)
protected void
generateKeys(Object parameter)
protected abstract Statement
instantiateStatement(Connection connection)
prepare(Connection connection, Integer transactionTimeout)
protected void
setFetchSize(Statement stmt)
protected void
setStatementTimeout(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 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:
getBoundSql
in interfaceStatementHandler
-
getParameterHandler
- Specified by:
getParameterHandler
in interfaceStatementHandler
-
prepare
- Specified by:
prepare
in interfaceStatementHandler
- Throws:
SQLException
-
instantiateStatement
- Throws:
SQLException
-
setStatementTimeout
- Throws:
SQLException
-
setFetchSize
- Throws:
SQLException
-
closeStatement
-
generateKeys
-