FunctionExpressionFactory creates a new FunctionExpression when the portion
of the query to parse starts with an identifier related to a SQL function.
FunctionExpression
| Modifier and Type | Class and Description |
|---|---|
| public static enum | FunctionExpressionFactory.ParameterCount
The number of parameters a |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | ID
The unique identifier for this |
| private FunctionExpressionFactory. | parameterCount
The number of |
| private String | parameterQueryBNFId
The unique identifier of the |
| Access | Constructor and Description |
|---|---|
| public | FunctionExpressionFactory(String
The unique identifier of this factory id, FunctionExpressionFactory.The number of parameterCount,parameters a FunctionExpression can haveThe unique identifier of the parameterQueryBNFId, String... JPQLQueryBNF that will be used
to parse the arguments of the function expressionThe JPQL identifiers handled by this factory identifiers)Creates a new |
| public | FunctionExpressionFactory(String
The unique identifier of this factory id, String... The JPQL identifiers handled by this factory identifiers)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| protected AbstractExpression | buildExpression(AbstractExpression
The parent parent, WordParser AbstractExpressionThe text to parse based on the current position of the cursor wordParser, String The current word being parsed word, JPQLQueryBNF The BNF grammar that was used to identifier this factory to be capable to
parse a portion of the query queryBNF, AbstractExpression During the parsing, it is possible the first part of an expression was
parsed which needs to be used as a sub-expression of the newly created expression expression, boolean tolerant)Implements abstract org. Expression.
|
| public void | setParameterCount(FunctionExpressionFactory.
The number of parameters parameterCountSets the number of parameters a |
| public void | setParameterQueryBNFId(String
The unique identifier of the parameterQueryBNFId)JPQLQueryBNF that will be used
to parse the arguments of the function expressionSets the BNF that will be used when parsing the function's arguments. |
| ID | back to summary |
|---|---|
| public static final String ID The unique identifier for this | |
| parameterCount | back to summary |
|---|---|
| private FunctionExpressionFactory. The number of | |
| parameterQueryBNFId | back to summary |
|---|---|
| private String parameterQueryBNFId The unique identifier of the | |
| FunctionExpressionFactory | back to summary |
|---|---|
| public FunctionExpressionFactory(String id, FunctionExpressionFactory. Creates a new
| |
| FunctionExpressionFactory | back to summary |
|---|---|
| public FunctionExpressionFactory(String id, String... identifiers) Creates a new | |
| buildExpression | back to summary |
|---|---|
| protected AbstractExpression buildExpression(AbstractExpression parent, WordParser wordParser, String word, JPQLQueryBNF queryBNF, AbstractExpression expression, boolean tolerant) Implements abstract org. Doc from org. Creates a new
| |
| setParameterCount | back to summary |
|---|---|
| public void setParameterCount(FunctionExpressionFactory. Sets the number of parameters a
| |
| setParameterQueryBNFId | back to summary |
|---|---|
| public void setParameterQueryBNFId(String parameterQueryBNFId) Sets the BNF that will be used when parsing the function's arguments.
| |
FunctionExpression can have.
| Modifier and Type | Field and Description |
|---|---|
| public static final FunctionExpressionFactory. | ONE
Only one parameter is allowed. |
| public static final FunctionExpressionFactory. | ONE_OR_MANY
[1, n] are allowed. |
| public static final FunctionExpressionFactory. | ZERO
No parameters are allowed. |
| public static final FunctionExpressionFactory. | ZERO_OR_MANY
[0, n] are allowed. |
| public static final FunctionExpressionFactory. | ZERO_OR_ONE
[0, 1] are allowed. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static FunctionExpressionFactory. | |
| public static FunctionExpressionFactory. |
| ONE | back to summary |
|---|---|
| public static final FunctionExpressionFactory. Only one parameter is allowed. | |
| ONE_OR_MANY | back to summary |
|---|---|
| public static final FunctionExpressionFactory. [1, n] are allowed. | |
| ZERO | back to summary |
|---|---|
| public static final FunctionExpressionFactory. No parameters are allowed. | |
| ZERO_OR_MANY | back to summary |
|---|---|
| public static final FunctionExpressionFactory. [0, n] are allowed. | |
| ZERO_OR_ONE | back to summary |
|---|---|
| public static final FunctionExpressionFactory. [0, 1] are allowed. | |
| ParameterCount | back to summary |
|---|---|
| private ParameterCount() | |
| valueOf | back to summary |
|---|---|
| public static FunctionExpressionFactory. | |
| values | back to summary |
|---|---|
| public static FunctionExpressionFactory. | |