Class MiscellaneousStatementNode

All Implemented Interfaces:
Visitable
Direct Known Subclasses:
LockTableNode, SetConstraintsNode, SetRoleNode, SetSchemaNode

abstract class MiscellaneousStatementNode extends StatementNode
A MiscellaneousStatement represents any type of statement that doesn't fit into the well defined categories: SET (non-transaction).
  • Constructor Details

    • MiscellaneousStatementNode

      MiscellaneousStatementNode(ContextManager cm)
  • Method Details

    • activationKind

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

      void generate(ActivationClassBuilder acb, MethodBuilder mb) throws StandardException
      Generic generate code for all Misc statements that need activations.
      Overrides:
      generate in class QueryTreeNode
      Parameters:
      acb - The ActivationClassBuilder for the class being built
      mb - the method for the execute() method to be built
      Throws:
      StandardException - Thrown on error
    • 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