类 ConnectionFactory
java.lang.Object
com.baomidou.dynamic.datasource.tx.ConnectionFactory
- 作者:
- funkye zp
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static voidcreateSavepoint(String xid) Whether there is a savepointstatic ConnectionProxygetConnection(String xid, String ds) getConnectionstatic booleanhasSavepoint(String xid) Determine whether there is a savepointstatic voidWhether there is a savepointstatic voidputConnection(String xid, String ds, ConnectionProxy connection) put connection
-
构造器详细资料
-
ConnectionFactory
public ConnectionFactory()
-
-
方法详细资料
-
putConnection
put connection- 参数:
xid- xidds- dsconnection- connection
-
getConnection
getConnection- 参数:
xid- 事务IDds- ds- 返回:
- boolean
-
notify
Whether there is a savepoint- 参数:
xid- xidstate- 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
Determine whether there is a savepoint- 参数:
xid- 事务ID- 返回:
- true or false
-