New to JPA 2.1.
func_expression ::= <identifier>('function_name' {, func_item}*)| Modifier and Type | Field and Description |
|---|---|
| private String | functionName
The name of the SQL function. |
| private boolean | hasComma
Determines whether the comma separating the function name and the first expression. |
| private boolean | hasSpaceAfterComma
Determines whether a whitespace is following the comma. |
| private FunctionExpressionFactory. | parameterCount
The number of |
| private String | parameterQueryBNFId
The unique identifier of the |
| Access | Constructor and Description |
|---|---|
| public | FunctionExpression(AbstractExpression
The parent of this expression parent, String The JPQL identifier identifier)Creates a new |
| public | FunctionExpression(AbstractExpression
The parent of this expression parent, String The JPQL identifier identifier, FunctionExpressionFactory.The number of parameterCount,parameters a FunctionExpression can haveThe unique identifier of the parameterQueryBNFId)JPQLQueryBNF that will be used
to parse the arguments of the function expressionCreates a new |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(ExpressionVisitor
The visitor)ExpressionVisitor to visit this objectImplements org. Expression by the given visitor.
|
| protected void | addOrderedEncapsulatedExpressionTo(List<Expression>
The list used to store the string representation of the encapsulated children)
Adds the ExpressionExpressions representing the encapsulated Expression.
|
| public String | getEncapsulatedExpressionQueryBNFId()
Implements abstract org. |
| public String | |
| public FunctionExpressionFactory. | Returns: The number of parameters (encapsulated expressions) allowed by this expressionReturns the number of parameters a |
| public JPQLQueryBNF | getQueryBNF()
Implements org. Expression.
|
| public String | |
| public boolean | Returns: true if a comma was parsed after the function name and the first
expression; false otherwiseDetermines whether the comma was parsed after the function name. |
| public boolean | hasEncapsulatedExpression()
Determines whether something was parsed after the left parenthesis.
|
| public boolean | Returns: true if the function name was parsed; false otherwiseDetermines whether the function name was parsed. |
| public boolean | Returns: true if there was a whitespace after the comma; false otherwiseDetermines whether a whitespace was parsed after the comma. |
| protected void | parseEncapsulatedExpression(WordParser
The text to parse based on the current position of the cursor wordParser, int The number of whitespace characters that were parsed after '(' whitespaceCount, boolean Determines whether the parsing system should be tolerant, meaning if it should
try to parse invalid or incomplete queries tolerant)
Parses the encapsulated expression by starting at the current position, which is part of the
given WordParser.
|
| protected void | toParsedTextEncapsulatedExpression(StringBuilder
The buffer used to append the encapsulated writer, boolean Expression's string
representationDetermines whether to include any characters that are considered
virtual, i.e. that was parsed when the query is incomplete and is needed for functionality
like content assist actual)
Generates a string representation of the encapsulated Expression.
|
| functionName | back to summary |
|---|---|
| private String functionName The name of the SQL function. | |
| hasComma | back to summary |
|---|---|
| private boolean hasComma Determines whether the comma separating the function name and the first expression. | |
| hasSpaceAfterComma | back to summary |
|---|---|
| private boolean hasSpaceAfterComma Determines whether a whitespace is following the comma. | |
| parameterCount | back to summary |
|---|---|
| private FunctionExpressionFactory. The number of
| |
| parameterQueryBNFId | back to summary |
|---|---|
| private String parameterQueryBNFId The unique identifier of the
| |
| FunctionExpression | back to summary |
|---|---|
| public FunctionExpression(AbstractExpression parent, String identifier) Creates a new
| |
| FunctionExpression | back to summary |
|---|---|
| public FunctionExpression(AbstractExpression parent, String identifier, FunctionExpressionFactory. Creates a new
| |
| accept | back to summary |
|---|---|
| public void accept(ExpressionVisitor visitor) Implements org. Doc from org. Visits this
| |
| addOrderedEncapsulatedExpressionTo | back to summary |
|---|---|
| protected void addOrderedEncapsulatedExpressionTo(List<Expression> children) Adds the
| |
| getEncapsulatedExpressionQueryBNFId | back to summary |
|---|---|
| public String getEncapsulatedExpressionQueryBNFId() Implements abstract org. Returns the BNF used to parse the encapsulated expression. | |
| getFunctionName | back to summary |
|---|---|
| public String getFunctionName() Returns the name of the SQL function.
| |
| getParameterCount | back to summary |
|---|---|
| public FunctionExpressionFactory. Returns the number of parameters a
| |
| getQueryBNF | back to summary |
|---|---|
| public JPQLQueryBNF getQueryBNF() Implements org. Doc from org. Returns the BNF of this
| |
| getUnquotedFunctionName | back to summary |
|---|---|
| public String getUnquotedFunctionName() Returns the name of the SQL function.
| |
| hasComma | back to summary |
|---|---|
| public boolean hasComma() Determines whether the comma was parsed after the function name.
| |
| hasEncapsulatedExpression | back to summary |
|---|---|
| public boolean hasEncapsulatedExpression() Doc from org. Determines whether something was parsed after the left parenthesis.
| |
| hasFunctionName | back to summary |
|---|---|
| public boolean hasFunctionName() Determines whether the function name was parsed.
| |
| hasSpaceAfterComma | back to summary |
|---|---|
| public boolean hasSpaceAfterComma() Determines whether a whitespace was parsed after the comma.
| |
| parseEncapsulatedExpression | back to summary |
|---|---|
| protected void parseEncapsulatedExpression(WordParser wordParser, int whitespaceCount, boolean tolerant) Doc from org. Parses the encapsulated expression by starting at the current position, which is part of the
given
| |
| toParsedTextEncapsulatedExpression | back to summary |
|---|---|
| protected void toParsedTextEncapsulatedExpression(StringBuilder writer, boolean actual) Generates a string representation of the encapsulated
| |