public class FlexStatementHandler extends Object implements org.apache.ibatis.executor.statement.StatementHandler
RoutingStatementHandler
主要作用:
1、替换 PreparedStatementHandler 为 FlexPreparedStatementHandler
2、进行数据审计| Constructor and Description |
|---|
FlexStatementHandler(org.apache.ibatis.executor.Executor executor,
org.apache.ibatis.mapping.MappedStatement ms,
Object parameter,
org.apache.ibatis.session.RowBounds rowBounds,
org.apache.ibatis.session.ResultHandler resultHandler,
org.apache.ibatis.mapping.BoundSql boundSql) |
| Modifier and Type | Method and Description |
|---|---|
void |
batch(Statement statement) |
org.apache.ibatis.mapping.BoundSql |
getBoundSql() |
org.apache.ibatis.executor.parameter.ParameterHandler |
getParameterHandler() |
void |
parameterize(Statement statement) |
Statement |
prepare(Connection connection,
Integer transactionTimeout) |
<E> List<E> |
query(Statement statement,
org.apache.ibatis.session.ResultHandler resultHandler) |
<E> org.apache.ibatis.cursor.Cursor<E> |
queryCursor(Statement statement) |
int |
update(Statement statement) |
public FlexStatementHandler(org.apache.ibatis.executor.Executor executor,
org.apache.ibatis.mapping.MappedStatement ms,
Object parameter,
org.apache.ibatis.session.RowBounds rowBounds,
org.apache.ibatis.session.ResultHandler resultHandler,
org.apache.ibatis.mapping.BoundSql boundSql)
public Statement prepare(Connection connection, Integer transactionTimeout) throws SQLException
prepare in interface org.apache.ibatis.executor.statement.StatementHandlerSQLExceptionpublic void parameterize(Statement statement) throws SQLException
parameterize in interface org.apache.ibatis.executor.statement.StatementHandlerSQLExceptionpublic void batch(Statement statement) throws SQLException
batch in interface org.apache.ibatis.executor.statement.StatementHandlerSQLExceptionpublic int update(Statement statement) throws SQLException
update in interface org.apache.ibatis.executor.statement.StatementHandlerSQLExceptionpublic <E> List<E> query(Statement statement, org.apache.ibatis.session.ResultHandler resultHandler) throws SQLException
query in interface org.apache.ibatis.executor.statement.StatementHandlerSQLExceptionpublic <E> org.apache.ibatis.cursor.Cursor<E> queryCursor(Statement statement) throws SQLException
queryCursor in interface org.apache.ibatis.executor.statement.StatementHandlerSQLExceptionpublic org.apache.ibatis.mapping.BoundSql getBoundSql()
getBoundSql in interface org.apache.ibatis.executor.statement.StatementHandlerpublic org.apache.ibatis.executor.parameter.ParameterHandler getParameterHandler()
getParameterHandler in interface org.apache.ibatis.executor.statement.StatementHandlerCopyright © 2024. All rights reserved.