Class SavepointNode

All Implemented Interfaces:
Visitable

class SavepointNode extends DDLStatementNode
A SavepointNode is the root of a QueryTree that represents a Savepoint (ROLLBACK savepoint, RELASE savepoint and SAVEPOINT) statement.
  • Field Details

    • savepointName

      private String savepointName
    • savepointStatementType

      private int savepointStatementType
  • Constructor Details

    • SavepointNode

      SavepointNode(String objectName, int savepointStatementType, ContextManager cm) throws StandardException
      Constructor for a SavepointNode
      Parameters:
      objectName - The name of the savepoint
      savepointStatementType - Type of savepoint statement ie rollback, release or set savepoint
      cm - The context manager
      Throws:
      StandardException - Thrown on error
  • Method Details

    • toString

      public String toString()
      Convert this object to a String. See comments in QueryTreeNode.java for how this should be done for tree printing.
      Overrides:
      toString in class DDLStatementNode
      Returns:
      This object as a String
    • statementToString

      String statementToString()
      Specified by:
      statementToString in class StatementNode
    • 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
    • makeConstantAction

      public ConstantAction makeConstantAction() throws StandardException
      Create the Constant information that will drive the guts of Execution.
      Overrides:
      makeConstantAction in class QueryTreeNode
      Throws:
      StandardException - Thrown on failure