Module bus.pager

Interface SqlParser


public interface SqlParser
Custom SQL parser interface to control whether a single thread pool is used and whether timeout control is supported.
Since:
Java 17+
Author:
Kimi Liu
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final SqlParser
    Default implementation that does not use a single thread pool and does not support timeout control.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.sf.jsqlparser.statement.Statement
    parse(String statementReader)
    Parses a SQL statement string.
  • Field Details

    • DEFAULT

      static final SqlParser DEFAULT
      Default implementation that does not use a single thread pool and does not support timeout control.
  • Method Details

    • parse

      net.sf.jsqlparser.statement.Statement parse(String statementReader) throws net.sf.jsqlparser.JSQLParserException, net.sf.jsqlparser.parser.ParseException
      Parses a SQL statement string.
      Parameters:
      statementReader - the SQL statement string to parse
      Returns:
      the parsed Statement object
      Throws:
      net.sf.jsqlparser.JSQLParserException - if a JSQLParser-specific error occurs
      net.sf.jsqlparser.parser.ParseException - if a general parsing error occurs