Interface TransactionState


  • public interface TransactionState
    Provides information about a transaction.
    Since:
    Coherence 3.6
    Author:
    js 2009.06.01
    • Method Detail

      • getIsolation

        Isolation getIsolation()
        Obtain isolation level of the transaction.

        The isolation will be one of the following values:

        • Isolation.READ_COMMITTED
        • Isolation.STMT_CONSISTENT_READ
        • Isolation.TX_CONSISTENT_READ

        Returns:
        the isolation level
      • getXid

        TransactionId getXid()
        Obtain the unique transaction identifier.
        Returns:
        the transaction identifier
      • getStatus

        Status getStatus()
        Obtain the status of the transaction.

        The status will be one of the following values:

        • Status.ACTIVE
        • Status.COMMITTING
        • Status.ROLLINGBACK
        • Status.COMMITTED
        • Status.ROLLEDBACK
        • Status.ROLLBACK_ONLY
        • Status.PREARED
        • Status.ERROR

        Returns:
        the status of the transaction
      • isAutoCommit

        boolean isAutoCommit()
        Obtain the auto-commit status of the transaction.
        Returns:
        true if the transaction is in auto-commit mode; false otherwise