public interface TransactionManager
| 限定符和类型 | 方法和说明 |
|---|---|
void |
begin(TransactionEvent transactionEvent)
Begin transaction.
|
void |
commit(TransactionEvent transactionEvent)
Commit transaction.
|
int |
getStatus()
Obtain the status of the transaction associated with the current thread.
|
void |
rollback(TransactionEvent transactionEvent)
Rollback transaction.
|
void begin(TransactionEvent transactionEvent) throws SQLException
transactionEvent - transaction eventSQLException - SQL exceptionvoid commit(TransactionEvent transactionEvent) throws SQLException
transactionEvent - transaction eventSQLException - SQL exceptionvoid rollback(TransactionEvent transactionEvent) throws SQLException
transactionEvent - transaction eventSQLException - SQL exceptionint getStatus()
throws SQLException
If no transaction is associated with the current thread, this method returns the Status.NoTransaction value
SQLException - SQL exceptionCopyright © 2018. All rights reserved.