Class Program

    • Constructor Detail

      • Program

        public Program​(boolean atomic)
        Constructor for Program.
    • Method Detail

      • setStartedTxn

        public void setStartedTxn​(boolean startedTxn)
      • startedTxn

        public boolean startedTxn()
      • isAtomic

        public boolean isAtomic()
      • getCurrentInstruction

        public ProgramInstruction getCurrentInstruction()
        Returns the next instruction to be executed, or null if there are none or no more instructions.
        Returns:
        ProgramInstruction to be executed next, or null if there are no more to execute (or if this Program is empty)
      • incrementProgramCounter

        public void incrementProgramCounter()
        Increments the program counter, so that the next call to getCurrentInstruction() will return the following instruction. This method is intended to be used by a ProcessingInstruction itself, to control the flow of execution.
      • decrementProgramCounter

        public void decrementProgramCounter()
        Decrements the program counter, so that the next call to getCurrentInstruction() will return the previous instruction. This method is intended to be used by a ProcessingInstruction itself, to control the flow of execution.
      • reset

        public void reset​(String sessionId)
        Resets this program, so it can be run through again.
      • getInstructionAt

        public ProgramInstruction getInstructionAt​(int instructionIndex)
        Returns the instruction to be executed at the indicated index, or null if there is no instruction at that index.
        Returns:
        instruction to be executed at the indicated index, or null if there is no instruction at that index.
      • addInstructions

        public void addInstructions​(Program instructions)
      • clone

        public Program clone()
        Produces a deep clone.
        Overrides:
        clone in class Object
      • getDescriptionProperties

        public PlanNode getDescriptionProperties()
      • setExceptionGroup

        public void setExceptionGroup​(String exceptionGroup)
      • setExceptionProgram

        public void setExceptionProgram​(Program exceptionBlock)
      • getExceptionGroup

        public String getExceptionGroup()
      • getExceptionProgram

        public Program getExceptionProgram()
      • isTrappingExceptions

        public boolean isTrappingExceptions()
      • setTrappingExceptions

        public void setTrappingExceptions​(boolean trappingExceptions)
      • requiresTransaction

        public Boolean requiresTransaction​(boolean transactionalReads)
      • instructionsRequireTransaction

        public Boolean instructionsRequireTransaction​(boolean transactionalReads)