DateTimeStateObject represents a date or time. It supports the following identifiers:
CURRENT_DATE: This function returns the value of current date on the database server.
CURRENT_TIME: This function returns the value of current time on the database server.
CURRENT_TIMESTAMP: This function returns the value of current timestamp on the database server.
functions_returning_datetime ::= CURRENT_DATE | CURRENT_TIME | CURRENT_TIMESTAMPThe JDBC escape syntax may be used for the specification of date, time, and timestamp literals.
BNF: expression ::= {d 'yyyy-mm-dd'} | {t 'hh:mm:ss'} | {ts 'yyyy-mm-dd hh:mm:ss.f...'}
DateTime
| Access | Constructor and Description |
|---|---|
| public | DateTimeStateObject(StateObject
The parent of this state object, which cannot be parent)nullCreates a new |
| public | DateTimeStateObject(StateObject
The parent of this state object, which cannot be parent, String nullEither date)DATE, TIME, TIMESTAMP
or a JDBC dateCreates a new |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(StateObjectVisitor
The visitor)visitor to visit this objectImplements org. StateObject by the given visitor.
|
| public DateTime | getExpression()
Overrides org. Implements org. StateObject representation of the JPQL query
was created by parsing an existing JPQL query.
|
| public boolean | |
| public boolean | |
| public boolean | isCurrentTimestamp()
Determines whether this |
| public boolean | isJDBCDate()
Determines whether this |
| public void | setExpression(DateTime
The expression)parsed object representing a date literalKeeps a reference of the |
| DateTimeStateObject | back to summary |
|---|---|
| public DateTimeStateObject(StateObject parent) Creates a new
| |
| DateTimeStateObject | back to summary |
|---|---|
| public DateTimeStateObject(StateObject parent, String date) Creates a new
| |
| accept | back to summary |
|---|---|
| public void accept(StateObjectVisitor visitor) Implements org. Doc from org. Visits this
| |
| getExpression | back to summary |
|---|---|
| public DateTime getExpression() Overrides org. Implements org. Doc from org. Returns the actual parsed object if this
| |
| isCurrentDate | back to summary |
|---|---|
| public boolean isCurrentDate() Determines whether this
| |
| isCurrentTime | back to summary |
|---|---|
| public boolean isCurrentTime() Determines whether this
| |
| isCurrentTimestamp | back to summary |
|---|---|
| public boolean isCurrentTimestamp() Determines whether this
| |
| isJDBCDate | back to summary |
|---|---|
| public boolean isJDBCDate() Determines whether this
| |
| setExpression | back to summary |
|---|---|
| public void setExpression(DateTime expression) Keeps a reference of the
| |