Class SeataTransactionalSQLExecutionHook

  • All Implemented Interfaces:
    org.apache.shardingsphere.infra.executor.sql.hook.SQLExecutionHook

    public final class SeataTransactionalSQLExecutionHook
    extends Object
    implements org.apache.shardingsphere.infra.executor.sql.hook.SQLExecutionHook
    Seata transactional SQL execution hook.
    • Constructor Detail

      • SeataTransactionalSQLExecutionHook

        public SeataTransactionalSQLExecutionHook()
    • Method Detail

      • start

        public void start​(String dataSourceName,
                          String sql,
                          List<Object> params,
                          org.apache.shardingsphere.infra.database.metadata.DataSourceMetaData dataSourceMetaData,
                          boolean isTrunkThread)
        Specified by:
        start in interface org.apache.shardingsphere.infra.executor.sql.hook.SQLExecutionHook
      • finishSuccess

        public void finishSuccess()
        Specified by:
        finishSuccess in interface org.apache.shardingsphere.infra.executor.sql.hook.SQLExecutionHook
      • finishFailure

        public void finishFailure​(Exception cause)
        Specified by:
        finishFailure in interface org.apache.shardingsphere.infra.executor.sql.hook.SQLExecutionHook