Interface JdbcSqlScanHandler


public interface JdbcSqlScanHandler
Receives ordered regions and markers from a JDBC SQL lexical scan.

Every end offset is exclusive. A handler can copy source regions, count markers, or reject marker forms without owning the lexical state machine.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    Kinds of SQL regions whose contents do not contain active bind markers.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    namedMarker(int start, int end)
    Receives a named marker including its leading colon.
    default void
    ordinary(int start, int end)
    Receives ordinary SQL which has no marker or protected region boundary.
    default void
    positionalMarker(int offset)
    Receives a positional question mark marker.
    default void
    protectedRegion(JdbcSqlScanHandler.RegionKind kind, int start, int end)
    Receives one complete quoted or commented region.
  • Method Details

    • ordinary

      default void ordinary(int start, int end)
      Receives ordinary SQL which has no marker or protected region boundary.
      Parameters:
      start - first source offset
      end - source offset after the region
    • protectedRegion

      default void protectedRegion(JdbcSqlScanHandler.RegionKind kind, int start, int end)
      Receives one complete quoted or commented region.
      Parameters:
      kind - kind of protected region
      start - first source offset
      end - source offset after the region
      Throws:
      NullPointerException - if the region kind is null
    • namedMarker

      default void namedMarker(int start, int end)
      Receives a named marker including its leading colon.
      Parameters:
      start - colon offset
      end - source offset after the marker name
    • positionalMarker

      default void positionalMarker(int offset)
      Receives a positional question mark marker.
      Parameters:
      offset - question mark offset