Package dev.frostlake.executor
Class CursorManager
java.lang.Object
dev.frostlake.executor.CursorManager
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()cursors()Live cursor map — for raw (already-cased) lookups by name during execution.voidregisterCursor(String name, Cursor cursor) voidrestoreCursors(Set<String> savedNames) Remove any cursors that were not present before the block entered.Save the current set of cursor names so they can be restored after a nested block.
-
Constructor Details
-
CursorManager
public CursorManager()
-
-
Method Details
-
cursors
Live cursor map — for raw (already-cased) lookups by name during execution. -
getCursor
-
registerCursor
-
saveCursorNames
Save the current set of cursor names so they can be restored after a nested block. -
restoreCursors
Remove any cursors that were not present before the block entered. -
clear
public void clear()
-