public class TemporalLiteral extends TemporalExpression implements SQLLiteral
SQLExpression.ColumnExpressionList
LOCALISER, lowestOperator, mapping, parameterName, st, stmt, subExprs, table
Constructor and Description |
---|
TemporalLiteral(SQLStatement stmt,
JavaTypeMapping mapping,
Object value,
String parameterName)
Constructor for a temporal literal with a value.
|
Modifier and Type | Method and Description |
---|---|
Object |
getValue()
Accessor to the literal value
|
SQLExpression |
invoke(String methodName,
List args)
Invocation of a method on this expression.
|
void |
setNotParameter()
Method to set this literal as not being a parameter.
|
protected void |
setStatement() |
String |
toString() |
eq, ge, gt, in, le, lt, ne
add, and, cast, com, distinct, div, encloseInParentheses, eor, getJavaTypeMapping, getLowestOperator, getNumberOfSubExpressions, getParameterName, getSQLStatement, getSQLTable, getSubExpression, ior, is, isParameter, mod, mul, neg, not, setJavaTypeMapping, sub, toSQLText
public TemporalLiteral(SQLStatement stmt, JavaTypeMapping mapping, Object value, String parameterName)
stmt
- the SQL statementmapping
- the mappingvalue
- the valueparameterName
- Name of the parameter that this represents if any (as JDBC "?")public SQLExpression invoke(String methodName, List args)
SQLExpression
invoke
in class TemporalExpression
methodName
- name of the method to invokeargs
- Args to this method (if any)public Object getValue()
SQLLiteral
getValue
in interface SQLLiteral
public void setNotParameter()
SQLLiteral
setNotParameter
in interface SQLLiteral
protected void setStatement()
Copyright © 2023. All rights reserved.