类 ConnectionFactory

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

public class ConnectionFactory extends Object
作者:
funkye zp
  • 构造器详细资料

    • ConnectionFactory

      public ConnectionFactory()
  • 方法详细资料

    • putConnection

      public static void putConnection(String xid, String ds, ConnectionProxy connection)
      put connection
      参数:
      xid - xid
      ds - ds
      connection - connection
    • getConnection

      public static ConnectionProxy getConnection(String xid, String ds)
      getConnection
      参数:
      xid - 事务ID
      ds - ds
      返回:
      boolean
    • notify

      public static void notify(String xid, Boolean state) throws Exception
      Whether there is a savepoint
      参数:
      xid - xid
      state - state
      抛出:
      Exception - Exception
    • createSavepoint

      public static void createSavepoint(String xid) throws org.springframework.transaction.TransactionException
      Whether there is a savepoint
      参数:
      xid - 事务ID
      抛出:
      org.springframework.transaction.TransactionException - TransactionException
    • hasSavepoint

      public static boolean hasSavepoint(String xid)
      Determine whether there is a savepoint
      参数:
      xid - 事务ID
      返回:
      true or false