database_type ::= data_type_literal [( [numeric_literal [, numeric_literal]] )]data_type_literal ::= [CHAR, VARCHAR, NUMERIC, INTEGER, DATE, TIME, TIMESTAMP, etc]
Example: CASE(e.name AS VARCHAR(20))
| Access | Constructor and Description |
|---|---|
| public | DatabaseType(AbstractExpression
The parent of this expression parent, String The database type databaseType)Creates 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.
|
| public JPQLQueryBNF | getQueryBNF()
Implements org. Expression.
|
| protected boolean | isSecondExpressionOptional()
Determines whether the second expression is optional or not.
|
| public String | parameterExpressionBNF(int
The position of the encapsulated index)Expression that needs to be parsed
within the parenthesis, which starts at position 0Implements abstract org. |
| protected boolean | shouldParseRightParenthesis(WordParser
The text to parse based on the current position of the cursor wordParser, boolean Determines whether the parsing system should be tolerant, meaning if it should
try to parse invalid or incomplete queries tolerant)Overrides org. |
| DatabaseType | back to summary |
|---|---|
| public DatabaseType(AbstractExpression parent, String databaseType) Creates a new
| |
| accept | back to summary |
|---|---|
| public void accept(ExpressionVisitor visitor) Implements org. Doc from org. Visits this
| |
| getQueryBNF | back to summary |
|---|---|
| public JPQLQueryBNF getQueryBNF() Implements org. Doc from org. Returns the BNF of this
| |
| isSecondExpressionOptional | back to summary |
|---|---|
| protected boolean isSecondExpressionOptional() Determines whether the second expression is optional or not.
| |
| parameterExpressionBNF | back to summary |
|---|---|
| public String parameterExpressionBNF(int index) Implements abstract org. Doc from org. Returns the BNF to be used to parse one of the encapsulated expression.
| |
| shouldParseRightParenthesis | back to summary |
|---|---|
| protected boolean shouldParseRightParenthesis(WordParser wordParser, boolean tolerant) Overrides org. Doc from org. Determines whether the right parenthesis should be parsed or not by this expression. There is a possible case where this expression should have optional left and right parenthesis. If there is no left parenthesis, then it would most likely mean the right parenthesis does not belong to this expression.
| |