Package me.danwi.sqlex.core.transaction
Class DefaultTransactionManager.DefaultTransaction
java.lang.Object
me.danwi.sqlex.core.transaction.DefaultTransactionManager.DefaultTransaction
- All Implemented Interfaces:
Closeable,AutoCloseable,Transaction
- Enclosing class:
- DefaultTransactionManager
默认事务
-
Constructor Details
-
DefaultTransaction
-
-
Method Details
-
getConnection
Description copied from interface:Transaction获取当前事务的数据库连接- Specified by:
getConnectionin interfaceTransaction- Returns:
- 数据库连接
-
commit
public void commit()Description copied from interface:Transaction提交当前事务- Specified by:
commitin interfaceTransaction
-
rollback
public void rollback()Description copied from interface:Transaction回滚当前事务- Specified by:
rollbackin interfaceTransaction
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-