public class FlexStatementHandler extends Object implements org.apache.ibatis.executor.statement.StatementHandler
RoutingStatementHandler
主要作用:
1、替换 PreparedStatementHandler 为 FlexPreparedStatementHandler
2、进行数据审计| 限定符和类型 | 字段和说明 |
|---|---|
private boolean |
auditEnable |
private org.apache.ibatis.mapping.BoundSql |
boundSql |
private org.apache.ibatis.session.Configuration |
configuration |
private org.apache.ibatis.executor.statement.StatementHandler |
delegate |
| 构造器和说明 |
|---|
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) |
| 限定符和类型 | 方法和说明 |
|---|---|
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) |
private final org.apache.ibatis.executor.statement.StatementHandler delegate
private final org.apache.ibatis.mapping.BoundSql boundSql
private final boolean auditEnable
private final org.apache.ibatis.session.Configuration configuration
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 在接口中 org.apache.ibatis.executor.statement.StatementHandlerSQLExceptionpublic void parameterize(Statement statement) throws SQLException
parameterize 在接口中 org.apache.ibatis.executor.statement.StatementHandlerSQLExceptionpublic void batch(Statement statement) throws SQLException
batch 在接口中 org.apache.ibatis.executor.statement.StatementHandlerSQLExceptionpublic int update(Statement statement) throws SQLException
update 在接口中 org.apache.ibatis.executor.statement.StatementHandlerSQLExceptionpublic <E> List<E> query(Statement statement, org.apache.ibatis.session.ResultHandler resultHandler) throws SQLException
query 在接口中 org.apache.ibatis.executor.statement.StatementHandlerSQLExceptionpublic <E> org.apache.ibatis.cursor.Cursor<E> queryCursor(Statement statement) throws SQLException
queryCursor 在接口中 org.apache.ibatis.executor.statement.StatementHandlerSQLExceptionpublic org.apache.ibatis.mapping.BoundSql getBoundSql()
getBoundSql 在接口中 org.apache.ibatis.executor.statement.StatementHandlerpublic org.apache.ibatis.executor.parameter.ParameterHandler getParameterHandler()
getParameterHandler 在接口中 org.apache.ibatis.executor.statement.StatementHandlerCopyright © 2023. All rights reserved.