DATE | TIME | DATETIME argument of LOCAL local_datetime_type expression.
local_datetime_type ::= DATE | ..... matches Java java.time.LocalDate
TIME | ..... matches Java java.time.LocalTime
DATETIME ..... matches Java java.time.LocalDateTime
| Modifier and Type | Class and Description |
|---|---|
| private static enum | LocalDateTime.Identifier
Local date/time type identifier. |
| Modifier and Type | Field and Description |
|---|---|
| private LocalDateTime. | identifier
The actual local_datetime_type identifier found in the string representation of the JPQL query. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(ExpressionVisitor
The visitor)ExpressionVisitor to visit this objectImplements org. Expression by the given visitor.
|
| public void | acceptChildren(ExpressionVisitor
The visitor)visitor to visit the children of this object.Implements org. Expression.
|
| protected void | addChildrenTo(Collection<Expression>
The collection used to store the children children)Overrides org. AbstractExpression to the given collection.
|
| protected void | addOrderedChildrenTo(List<Expression>
The list used to store the string representation of this children)AbstractExpressionOverrides org. AbstractExpression to the given list.
|
| public JPQLQueryBNF | getQueryBNF()
Implements org. Expression.
|
| public <R> R | getValueByType(Supplier<R>
function executed for dateAction, Supplier<R> LOCAL DATEfunction executed for timeAction, Supplier<R> LOCAL TIMEfunction executed for dateTimeAction)LOCAL DATETIMEExecute supplier depending on local date/time text identifier in |
| protected void | parse(final 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)Implements abstract org. WordParser.
|
| public void | runByType(Runnable
function executed for dateAction, Runnable LOCAL DATEfunction executed for timeAction, Runnable LOCAL TIMEfunction executed for dateTimeAction)LOCAL DATETIMEExecute action depending on local date/time text identifier in |
| public String | toActualText()
Overrides org. Implements org. Expression, which needs 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.
|
| protected void | toParsedText(StringBuilder
The buffer used to append this writer, boolean Expression's string representationDetermines whether the string representation should represent what was parsed,
i.e. include any "virtual" whitespace (such as ending whitespace) and the actual case of the
JPQL identifiers actual)Implements abstract org. Expression, including its children,
if it has any.
|
| identifier | back to summary |
|---|---|
| private LocalDateTime. The actual local_datetime_type identifier found in the string representation of the JPQL query. | |
| LocalDateTime | back to summary |
|---|---|
| public LocalDateTime(AbstractExpression parent) Creates a new
| |
| accept | back to summary |
|---|---|
| public void accept(ExpressionVisitor visitor) Implements org. Doc from org. Visits this
| |
| acceptChildren | back to summary |
|---|---|
| public void acceptChildren(ExpressionVisitor visitor) Implements org. Doc from org. Visits the children of this
This does not traverse the
| |
| addChildrenTo | back to summary |
|---|---|
| protected void addChildrenTo(Collection<Expression> children) Overrides org. Doc from org. Adds the children of this
| |
| addOrderedChildrenTo | back to summary |
|---|---|
| protected void addOrderedChildrenTo(List<Expression> children) Overrides org. Doc from org. Adds the children of this
| |
| getQueryBNF | back to summary |
|---|---|
| public JPQLQueryBNF getQueryBNF() Implements org. Doc from org. Returns the BNF of this
| |
| getValueByType | back to summary |
|---|---|
| public <R> R getValueByType(Supplier<R> dateAction, Supplier<R> timeAction, Supplier<R> dateTimeAction) Execute supplier depending on local date/time text identifier in | |
| parse | back to summary |
|---|---|
| protected void parse(final WordParser wordParser, boolean tolerant) Implements abstract org. Doc from org. Parses the query by starting at the current position, which is part of the given
| |
| runByType | back to summary |
|---|---|
| public void runByType(Runnable dateAction, Runnable timeAction, Runnable dateTimeAction) Execute action depending on local date/time text identifier in | |
| toActualText | back to summary |
|---|---|
| public String toActualText() Overrides org. Implements org. Doc from org. Generates a string representation of this
| |
| toParsedText | back to summary |
|---|---|
| protected void toParsedText(StringBuilder writer, boolean actual) Implements abstract org. Doc from org. Generates a string representation of this
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final LocalDateTime. | DATE
"DATE" type identifier. |
| public static final LocalDateTime. | DATETIME
"DATETIME" type identifier. |
| private final String | name
Hides java. |
| public static final LocalDateTime. | TIME
"TIME" type identifier. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static final LocalDateTime. | getIdentifier(final String
local date/time text identifier name)Convert local date/time text identifier to |
| private static LocalDateTime. | Returns: local date/time type identifiersource JPQL parser wordParser)Parse identifier (DATE/DATETIME/TIME) at current parser position. |
| public static LocalDateTime. | |
| public static LocalDateTime. |
| DATE | back to summary |
|---|---|
| public static final LocalDateTime. "DATE" type identifier. | |
| DATETIME | back to summary |
|---|---|
| public static final LocalDateTime. "DATETIME" type identifier. | |
| name | back to summary |
|---|---|
| private final String name Hides java. | |
| TIME | back to summary |
|---|---|
| public static final LocalDateTime. "TIME" type identifier. | |
| Identifier | back to summary |
|---|---|
| private Identifier(final String name) | |
| getIdentifier | back to summary |
|---|---|
| private static final LocalDateTime. Convert local date/time text identifier to
| |
| parse | back to summary |
|---|---|
| private static LocalDateTime. Parse identifier (DATE/DATETIME/TIME) at current parser position. Determines proper identifier with minimal cost. Input always contains DATE | DATETIME | TIME so no exact matching is required
| |
| valueOf | back to summary |
|---|---|
| public static LocalDateTime. | |
| values | back to summary |
|---|---|
| public static LocalDateTime. | |