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) |
protected void |
setFetchSize(Statement stmt) |
protected void |
setStatementTimeout(Statement stmt) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
batch, parameterize, query, update
protected 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 StatementHandler
public ParameterHandler getParameterHandler()
getParameterHandler
in interface StatementHandler
public Statement prepare(Connection connection) throws SQLException
prepare
in interface StatementHandler
SQLException
protected abstract Statement instantiateStatement(Connection connection) throws SQLException
SQLException
protected void setStatementTimeout(Statement stmt) throws SQLException
SQLException
protected void setFetchSize(Statement stmt) throws SQLException
SQLException
protected void closeStatement(Statement statement)
protected void generateKeys(Object parameter)
Copyright © 2010–2015 MyBatis.org. All rights reserved.