类 TransactionalTemplate

java.lang.Object
com.baomidou.dynamic.datasource.tx.TransactionalTemplate

public class TransactionalTemplate extends Object
事务模板
作者:
Hzh
  • 构造器详细资料

    • TransactionalTemplate

      public TransactionalTemplate()
  • 方法详细资料

    • execute

      public Object execute(TransactionalExecutor transactionalExecutor) throws Throwable
      Execute with transaction.
      参数:
      transactionalExecutor - TransactionalExecutor
      返回:
      Object
      抛出:
      Throwable - Throwable
    • suspend

      public SuspendedResourcesHolder suspend()
      挂起资源
      返回:
      挂起资源
    • existingTransaction

      public boolean existingTransaction()
      判断是否存在事务
      返回:
      是否存在事务