public interface TransactionManager
TransactionManager
instances provided by different frameworks.
The TransactionManager
provides the ability to start and to commit or rollback transactions.Modifier and Type | Method and Description |
---|---|
void |
begin()
Starts a new transaction
|
void |
commit()
Commits the current transaction
|
String |
getName()
The name of the
TransactionManager . |
boolean |
isActive() |
boolean |
isRollbackOnly() |
void |
rollback()
Rollbacks the current transaction
|
void |
setRollbackOnly()
Marks the transaction as rollback only
|
String getName()
TransactionManager
. It needs to be unique among all transaction managers.TransactionManager
boolean isActive()
void begin()
void commit()
void rollback()
boolean isRollbackOnly()
void setRollbackOnly()
Copyright © 2021. All rights reserved.