public interface Transaction
| Modifier and Type | Method and Description |
|---|---|
void |
commit()
Commits this transaction.
|
default String |
getId()
Gets the id of this transaction.
|
boolean |
isActive()
Determines whether this transaction is active.
|
void |
rollback()
Rolls back this transaction.
|
default String getId()
void commit()
Throws:
IllegalStateException - if the transaction has already been committed, rolled back
void rollback()
Throws:
IllegalStateException - if the transaction has already been committed, rolled back
boolean isActive()
true if this transaction is active, returns false otherwiseCopyright © 2009–2019 B3log. All rights reserved.