public class ParameterLiteral extends SQLExpression implements SQLLiteral
SQLExpression.ColumnExpressionList
Modifier and Type | Field and Description |
---|---|
protected String |
name
Parameter name.
|
protected Object |
value |
lowestOperator, mapping, parameterName, st, stmt, subExprs, table
Constructor and Description |
---|
ParameterLiteral(SQLStatement stmt,
JavaTypeMapping mapping,
Object value,
String parameterName)
Constructor for an integer literal with a value.
|
Modifier and Type | Method and Description |
---|---|
SQLExpression |
add(SQLExpression expr)
Additive Operator.
|
BooleanExpression |
eq(SQLExpression expr)
Equality operator (equals to)
|
BooleanExpression |
ge(SQLExpression expr)
Relational operator (greater than or equals)
|
String |
getName() |
Object |
getValue()
Accessor to the literal value
|
BooleanExpression |
gt(SQLExpression expr)
Relational operator (greater than)
|
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 |
setName(String name) |
void |
setNotParameter()
Method to set this literal as not being a parameter.
|
and, cast, com, distinct, div, encloseInParentheses, eor, getJavaTypeMapping, getLowestOperator, getNumberOfSubExpressions, getParameterName, getSQLStatement, getSQLTable, getSubExpression, in, invoke, ior, is, isParameter, mod, mul, neg, not, setJavaTypeMapping, sub, toSQLText
public ParameterLiteral(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 void setName(String name)
public String getName()
public Object getValue()
SQLLiteral
getValue
in interface SQLLiteral
public SQLExpression add(SQLExpression expr)
SQLExpression
add
in class SQLExpression
expr
- the right-hand operandpublic BooleanExpression eq(SQLExpression expr)
SQLExpression
eq
in class SQLExpression
expr
- the right-hand operandpublic BooleanExpression ge(SQLExpression expr)
SQLExpression
ge
in class SQLExpression
expr
- the right-hand operandpublic BooleanExpression gt(SQLExpression expr)
SQLExpression
gt
in class SQLExpression
expr
- the right-hand operandpublic BooleanExpression le(SQLExpression expr)
SQLExpression
le
in class SQLExpression
expr
- the right-hand operandpublic BooleanExpression lt(SQLExpression expr)
SQLExpression
lt
in class SQLExpression
expr
- the right-hand operandpublic BooleanExpression ne(SQLExpression expr)
SQLExpression
ne
in class SQLExpression
expr
- the right-hand operandpublic void setNotParameter()
SQLLiteral
setNotParameter
in interface SQLLiteral
Copyright © 2015. All rights reserved.