public abstract class JavaxTimeLiteral extends StringTemporalExpression implements SQLLiteral
SQLExpression.ColumnExpressionList
delegate
LOCALISER, lowestOperator, mapping, parameterName, st, stmt, subExprs, table
Constructor and Description |
---|
JavaxTimeLiteral(SQLStatement stmt,
JavaTypeMapping mapping,
String parameterName)
Constructor for a javax.time literal with a value.
|
Modifier and Type | Method and Description |
---|---|
BooleanExpression |
eq(SQLExpression expr)
Equality operator (equals to)
|
BooleanExpression |
ge(SQLExpression expr)
Relational operator (greater than or equals)
|
BooleanExpression |
gt(SQLExpression expr)
Relational operator (greater than)
|
boolean |
isParameter() |
BooleanExpression |
le(SQLExpression expr)
Relational operator (lower than or equals)
|
BooleanExpression |
lt(SQLExpression expr)
Relational operator (lower than)
|
BooleanExpression |
ne(SQLExpression expr)
Not equality operator (not equals to)
|
void |
setNotParameter()
Method to set this literal as not being a parameter.
|
add, div, getDelegate, invoke, mod, mul, sub, toSQLText
and, cast, com, distinct, encloseInParentheses, eor, getJavaTypeMapping, getLowestOperator, getNumberOfSubExpressions, getParameterName, getSQLStatement, getSQLTable, getSubExpression, in, ior, is, neg, not, setJavaTypeMapping
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getValue
public JavaxTimeLiteral(SQLStatement stmt, JavaTypeMapping mapping, String parameterName)
stmt
- the SQL statementmapping
- the mappingparameterName
- Name of the parameter that this represents if any (as JDBC "?")public BooleanExpression eq(SQLExpression expr)
SQLExpression
eq
in class DelegatedExpression
expr
- the right-hand operandpublic BooleanExpression ge(SQLExpression expr)
SQLExpression
ge
in class DelegatedExpression
expr
- the right-hand operandpublic BooleanExpression gt(SQLExpression expr)
SQLExpression
gt
in class DelegatedExpression
expr
- the right-hand operandpublic BooleanExpression le(SQLExpression expr)
SQLExpression
le
in class DelegatedExpression
expr
- the right-hand operandpublic BooleanExpression lt(SQLExpression expr)
SQLExpression
lt
in class DelegatedExpression
expr
- the right-hand operandpublic BooleanExpression ne(SQLExpression expr)
SQLExpression
ne
in class DelegatedExpression
expr
- the right-hand operandpublic boolean isParameter()
isParameter
in class SQLExpression
public void setNotParameter()
SQLLiteral
setNotParameter
in interface SQLLiteral
Copyright © 2023. All rights reserved.