public class StringLiteral extends StringExpression implements SQLLiteral
SQLExpression.ColumnExpressionListlowestOperator, mapping, parameterName, st, stmt, subExprs, table| Constructor and Description |
|---|
StringLiteral(SQLStatement stmt,
JavaTypeMapping mapping,
Object value,
String parameterName)
Constructor for a String 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)
|
void |
generateStatementWithoutQuotes()
Convenience method to generate the statement without any quotes.
|
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 |
setNotParameter()
Method to set this literal as not being a parameter.
|
protected void |
setStatement() |
in, invokeand, bitAnd, bitOr, cast, com, distinct, div, encloseInParentheses, eor, getJavaTypeMapping, getLowestOperator, getNumberOfSubExpressions, getParameterName, getSQLStatement, getSQLTable, getSubExpression, ior, is, isParameter, mod, mul, neg, not, setJavaTypeMapping, sub, toSQLTextpublic StringLiteral(SQLStatement stmt, JavaTypeMapping mapping, Object value, String parameterName)
stmt - the SQL statementmapping - the mappingvalue - the valueparameterName - Name of the parameter that this represents (as JDBC "?")public void generateStatementWithoutQuotes()
public Object getValue()
SQLLiteralgetValue in interface SQLLiteralpublic BooleanExpression eq(SQLExpression expr)
SQLExpressioneq in class StringExpressionexpr - the right-hand operandpublic BooleanExpression ne(SQLExpression expr)
SQLExpressionne in class StringExpressionexpr - the right-hand operandpublic BooleanExpression lt(SQLExpression expr)
SQLExpressionlt in class StringExpressionexpr - the right-hand operandpublic BooleanExpression le(SQLExpression expr)
SQLExpressionle in class StringExpressionexpr - the right-hand operandpublic BooleanExpression gt(SQLExpression expr)
SQLExpressiongt in class StringExpressionexpr - the right-hand operandpublic BooleanExpression ge(SQLExpression expr)
SQLExpressionge in class StringExpressionexpr - the right-hand operandpublic SQLExpression add(SQLExpression expr)
SQLExpressionadd in class StringExpressionexpr - the right-hand operandpublic void setNotParameter()
SQLLiteralsetNotParameter in interface SQLLiteralprotected void setStatement()
Copyright © 2019. All rights reserved.