Interface ExpressionParser

All Known Implementing Classes:
BoundExpressionParser

public interface ExpressionParser
ExpressionParser extracts bind-marker information from a native (SQL/CQL) function expression, letting CPO figure out which bean attribute each positional bind marker in the expression corresponds to.
Author:
Michael Bellomo
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the count of the bind markers in the expression
    Returns the expression used by this parser
    Returns a list of columns from the expression for each bind marker
    void
    setExpression(String expression)
    Sets the expression to be used for this parser
  • Method Details

    • getExpression

      String getExpression()
      Returns the expression used by this parser
      Returns:
      The expression
    • setExpression

      void setExpression(String expression)
      Sets the expression to be used for this parser
      Parameters:
      expression - The expression
    • countArguments

      int countArguments()
      Returns the count of the bind markers in the expression
      Returns:
      the number of bind markers
    • parse

      List<String> parse() throws ParseException
      Returns a list of columns from the expression for each bind marker
      Returns:
      List of Strings for the columns for the bind markers
      Throws:
      ParseException - thrown if the expression cannot be parsed