public class SimpleStatementHandler extends BaseStatementHandler
boundSql, configuration, executor, mappedStatement, objectFactory, parameterHandler, resultSetHandler, rowBounds, typeHandlerRegistry
Constructor and Description |
---|
SimpleStatementHandler(Executor executor,
MappedStatement mappedStatement,
Object parameter,
RowBounds rowBounds,
ResultHandler resultHandler,
BoundSql boundSql) |
Modifier and Type | Method and Description |
---|---|
void |
batch(Statement statement) |
protected Statement |
instantiateStatement(Connection connection) |
void |
parameterize(Statement statement) |
<E> List<E> |
query(Statement statement,
ResultHandler resultHandler) |
<E> Cursor<E> |
queryCursor(Statement statement) |
int |
update(Statement statement) |
closeStatement, generateKeys, getBoundSql, getParameterHandler, prepare, setFetchSize, setStatementTimeout
public SimpleStatementHandler(Executor executor, MappedStatement mappedStatement, Object parameter, RowBounds rowBounds, ResultHandler resultHandler, BoundSql boundSql)
public int update(Statement statement) throws SQLException
SQLException
public void batch(Statement statement) throws SQLException
SQLException
public <E> List<E> query(Statement statement, ResultHandler resultHandler) throws SQLException
SQLException
public <E> Cursor<E> queryCursor(Statement statement) throws SQLException
SQLException
protected Statement instantiateStatement(Connection connection) throws SQLException
instantiateStatement
in class BaseStatementHandler
SQLException
public void parameterize(Statement statement) throws SQLException
SQLException
Copyright © 2009–2017 MyBatis.org. All rights reserved.