Class TransactionStatementNode

All Implemented Interfaces:
Visitable
Direct Known Subclasses:
SetTransactionIsolationNode

abstract class TransactionStatementNode extends StatementNode
A TransactionStatementNode represents any type of Transaction statement: SET TRANSACTION, COMMIT, and ROLLBACK.
  • Constructor Details

    • TransactionStatementNode

      TransactionStatementNode(ContextManager cm)
  • Method Details

    • activationKind

      int activationKind()
      Specified by:
      activationKind in class StatementNode
    • isAtomic

      public boolean isAtomic()
      COMMIT and ROLLBACK are allowed to commit and rollback, duh.
      Overrides:
      isAtomic in class StatementNode
      Returns:
      false
    • needsSavepoint

      public boolean needsSavepoint()
      Returns whether or not this Statement requires a set/clear savepoint around its execution. The following statement "types" do not require them: Cursor - unnecessary and won't work in a read only environment Xact - savepoint will get blown away underneath us during commit/rollback
      Overrides:
      needsSavepoint in class StatementNode
      Returns:
      boolean Whether or not this Statement requires a set/clear savepoint