OTransaction - getStatus()

Retrieves the status of the transaction.

Transaction Status

Transactions have status, indicating where they are in the process. That is, started, committing, rolling back, and so on. Using this method, you can retrieve the current status of the transaction.

Syntax

OTransaction.TXSTATUS OTransaction().getStatus()

Return Type

This method returns an OTransaction.TXSTATUS object, which is one of the following:

Enum ConstantsDescription
BEGUNThe transaction has started
COMMITTINGThe transaction is being committed to the database
COMPLETEDThe transaction is committed
INVALIDThe transaction has encountered an error
ROLLBACKINGThe transaction is being rolled back
ROLLED_BACKThe transaction has been reverted