Class CursorManager

java.lang.Object
dev.frostlake.executor.CursorManager

public class CursorManager extends Object
Owns the named-cursor registry for ProceduralExecutor: declaration, lookup, and the save/restore of cursor names around nested blocks. Cursor execution (open/fetch/close) stays in ProceduralExecutor, which orchestrates the query executor and scope variables.
  • Constructor Details

    • CursorManager

      public CursorManager()
  • Method Details

    • cursors

      public Map<String,Cursor> cursors()
      Live cursor map — for raw (already-cased) lookups by name during execution.
    • getCursor

      public Cursor getCursor(String name)
    • registerCursor

      public void registerCursor(String name, Cursor cursor)
    • saveCursorNames

      public Set<String> saveCursorNames()
      Save the current set of cursor names so they can be restored after a nested block.
    • restoreCursors

      public void restoreCursors(Set<String> savedNames)
      Remove any cursors that were not present before the block entered.
    • clear

      public void clear()