This {@link Expression} 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.
BNF: functions_returning_datetime ::= CURRENT_DATE | CURRENT_TIME | CURRENT_TIMESTAMP
The 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...'}
@version 2.4
@since 2.3
@author Pascal Filion
|
if (stateObject.isDecorated()) {
toText(stateObject);
}
else {
DateTime expression = stateObject.getExpression();
appendIdentifier((expression != null) ? expression.getActualIdentifier() : stateObject.getText(), stateObject.getText());
}
}
|
|
if (stateObject.isDecorated()) {
toText(stateObject);
}
else {
DateTime expression = stateObject.getExpression();
appendIdentifier((expression != null) ? expression.getActualIdentifier() : stateObject.getText(), stateObject.getText());
}
}
|
|
if (stateObject.isDecorated()) {
toText(stateObject);
}
else {
DateTime expression = stateObject.getExpression();
appendIdentifier((expression != null) ? expression.getActualIdentifier() : stateObject.getText(), stateObject.getText());
}
}
|
|
if (stateObject.isDecorated()) {
toText(stateObject);
}
else {
DateTime expression = stateObject.getExpression();
appendIdentifier((expression != null) ? expression.getActualIdentifier() : stateObject.getText(), stateObject.getText());
}
}
|
Related Classes of org.eclipse.persistence.jpa.jpql.parser.DateTime
Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact
coftware#gmail.com.