?? TransactionStatus
- ????????:
Serializable
,Comparable<TransactionStatus>
The status of the transaction A transaction may not enter all of the states
in this enum, however it will always traverse the enum in ascending order. In
particular if the TransactionStatus is reported as X then it will never
proceed into a state Y where X.compareTo(Y) >= 0;
-
??????
??????????A transaction is currently in progressThe transaction has committedThe transaction is in the process of being committedA transaction is currently in progress and has been marked for rollbackNo transaction is currently activeA two phase commit is occurring and the transaction has been preparedA two phase commit is occurring and the transaction is being preparedThe transaction has been rolled backThe transaction is in the process of rolling back -
????
??????????static TransactionStatus
?????????????????? ??????????????????? ????????(?????? ??????)static TransactionStatus[]
values()
???????????????, ??????????????
-
????????
-
NO_TRANSACTION
No transaction is currently active -
ACTIVE
A transaction is currently in progress -
MARKED_ROLLBACK
A transaction is currently in progress and has been marked for rollback -
PREPARING
A two phase commit is occurring and the transaction is being prepared -
PREPARED
A two phase commit is occurring and the transaction has been prepared -
COMMITTING
The transaction is in the process of being committed -
COMMITTED
The transaction has committed -
ROLLING_BACK
The transaction is in the process of rolling back -
ROLLED_BACK
The transaction has been rolled back
-
-
??????
-
values
???????????????, ??????????????- ??:
- ???????????????????????????
-
valueOf
?????????????????? ??????????????????? ????????(?????? ??????)- ??:
name
- ????????????- ??:
- ?????????????
- ??:
IllegalArgumentException
- ??????????????????NullPointerException
- ???????
-