public abstract class BaseStatementHandler extends Object implements StatementHandler
| Modifier and Type | Field and Description |
|---|---|
protected BoundSql |
boundSql |
protected Configuration |
configuration |
protected Executor |
executor |
protected MappedStatement |
mappedStatement |
protected ObjectFactory |
objectFactory |
protected ParameterHandler |
parameterHandler |
protected ResultSetHandler |
resultSetHandler |
protected RowBounds |
rowBounds |
protected TypeHandlerRegistry |
typeHandlerRegistry |
| Modifier | Constructor and Description |
|---|---|
protected |
BaseStatementHandler(Executor executor,
MappedStatement mappedStatement,
Object parameterObject,
RowBounds rowBounds,
ResultHandler resultHandler,
BoundSql boundSql) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeStatement(Statement statement) |
protected void |
generateKeys(Object parameter) |
BoundSql |
getBoundSql() |
ParameterHandler |
getParameterHandler() |
protected abstract Statement |
instantiateStatement(Connection connection) |
Statement |
prepare(Connection connection,
Integer transactionTimeout) |
protected void |
setFetchSize(Statement stmt) |
protected void |
setStatementTimeout(Statement stmt,
Integer transactionTimeout) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbatch, parameterize, query, queryCursor, updateprotected final Configuration configuration
protected final ObjectFactory objectFactory
protected final TypeHandlerRegistry typeHandlerRegistry
protected final ResultSetHandler resultSetHandler
protected final ParameterHandler parameterHandler
protected final Executor executor
protected final MappedStatement mappedStatement
protected final RowBounds rowBounds
protected BoundSql boundSql
protected BaseStatementHandler(Executor executor, MappedStatement mappedStatement, Object parameterObject, RowBounds rowBounds, ResultHandler resultHandler, BoundSql boundSql)
public BoundSql getBoundSql()
getBoundSql in interface StatementHandlerpublic ParameterHandler getParameterHandler()
getParameterHandler in interface StatementHandlerpublic Statement prepare(Connection connection, Integer transactionTimeout) throws SQLException
prepare in interface StatementHandlerSQLExceptionprotected abstract Statement instantiateStatement(Connection connection) throws SQLException
SQLExceptionprotected void setStatementTimeout(Statement stmt, Integer transactionTimeout) throws SQLException
SQLExceptionprotected void setFetchSize(Statement stmt) throws SQLException
SQLExceptionprotected void closeStatement(Statement statement)
protected void generateKeys(Object parameter)
Copyright © 2009–2021 MyBatis.org. All rights reserved.