Package org.synchronoss.cpo.core.parser
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 TypeMethodDescriptionintReturns the count of the bind markers in the expressionReturns the expression used by this parserparse()Returns a list of columns from the expression for each bind markervoidsetExpression(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
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
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
-