Interface QueryParser

All Known Implementing Classes:
SoqlQueryParser, Sparql11QueryParser

public interface QueryParser
Used to parse queries into builders which enable the query to be further manipulated, e.g., set parameters.
  • Method Summary

    Modifier and Type
    Method
    Description
    Parses the specified query string and returns a query holder instance containing the parsed query.
    default QueryHolder
    parseQuery(String query, Class<?> resultClass)
    Parses the specified query string and returns a query holder instance containing the parsed query.
  • Method Details

    • parseQuery

      QueryHolder parseQuery(String query)
      Parses the specified query string and returns a query holder instance containing the parsed query.
      Parameters:
      query - The query to parse
      Returns:
      Query holder with the parsed query
    • parseQuery

      default QueryHolder parseQuery(String query, Class<?> resultClass)
      Parses the specified query string and returns a query holder instance containing the parsed query.

      The provided result class can be used when processing the query to make adjustments.

      Parameters:
      query - Query to parse
      resultClass - Result class provided by the client
      Returns:
      Query holder with the parsed query