@Component public class TxcSqlExecuteInterceptor extends Object implements SqlExecuteInterceptor
Date: 2018/12/13
| 构造器和说明 |
|---|
TxcSqlExecuteInterceptor(TableStructAnalyser tableStructAnalyser,
TxcService txcService,
TCGlobalContext globalContext) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
postInsert(StatementInformation statementInformation)
程序业务
insert 语句执行后植入事务操作 |
void |
preDelete(net.sf.jsqlparser.statement.delete.Delete delete)
程序业务
delete 语句执行前植入事务操作 |
void |
preInsert(net.sf.jsqlparser.statement.insert.Insert insert)
程序业务
insert 语句执行前植入事务操作 |
void |
preSelect(LockableSelect lockableSelect)
程序业务
select 语句执行前植入事务操作 |
void |
preUpdate(net.sf.jsqlparser.statement.update.Update update)
程序业务
update 语句执行前植入事务操作 |
@Autowired public TxcSqlExecuteInterceptor(TableStructAnalyser tableStructAnalyser, TxcService txcService, TCGlobalContext globalContext)
public void preUpdate(net.sf.jsqlparser.statement.update.Update update)
throws SQLException
SqlExecuteInterceptorupdate 语句执行前植入事务操作preUpdate 在接口中 SqlExecuteInterceptorupdate - SQLSQLException - 事务判断资源锁定、不支持此SQL时抛出public void preDelete(net.sf.jsqlparser.statement.delete.Delete delete)
throws SQLException
SqlExecuteInterceptordelete 语句执行前植入事务操作preDelete 在接口中 SqlExecuteInterceptordelete - SQLSQLException - 事务判断资源锁定、不支持此SQL时抛出public void preInsert(net.sf.jsqlparser.statement.insert.Insert insert)
SqlExecuteInterceptorinsert 语句执行前植入事务操作preInsert 在接口中 SqlExecuteInterceptorinsert - SQLpublic void postInsert(StatementInformation statementInformation) throws SQLException
SqlExecuteInterceptorinsert 语句执行后植入事务操作postInsert 在接口中 SqlExecuteInterceptorstatementInformation - SQL语句相关信息SQLException - 不支持此SQL时抛出public void preSelect(LockableSelect lockableSelect) throws SQLException
SqlExecuteInterceptorselect 语句执行前植入事务操作preSelect 在接口中 SqlExecuteInterceptorlockableSelect - SelectSQL解析后的对象SQLException - 事务判断资源锁定、不支持此SQL时抛出Copyright © 2019. All rights reserved.