public class BooleanLiteral extends BooleanExpression implements SQLLiteral
SQLExpression.ColumnExpressionListlowestOperator, mapping, parameterName, st, stmt, subExprs, table| Constructor and Description |
|---|
BooleanLiteral(SQLStatement stmt,
JavaTypeMapping mapping,
Boolean value)
Creates a boolean literal with the specified value, using the provided mapping.
|
BooleanLiteral(SQLStatement stmt,
JavaTypeMapping mapping,
Object value,
String parameterName)
Creates a boolean literal with the specified value, using the provided mapping.
|
| Modifier and Type | Method and Description |
|---|---|
BooleanExpression |
and(SQLExpression expr)
Conditional AND.
|
BooleanExpression |
eor(SQLExpression expr)
Exclusive OR
|
BooleanExpression |
eq(SQLExpression expr)
Equality operator (equals to)
|
Object |
getValue()
Accessor to the literal value
|
BooleanExpression |
ior(SQLExpression expr)
Conditional OR.
|
BooleanExpression |
ne(SQLExpression expr)
Not equality operator (not equals to)
|
BooleanExpression |
not()
Logical complement
|
void |
setJavaTypeMapping(JavaTypeMapping mapping) |
void |
setNotParameter()
Method to set this literal as not being a parameter.
|
protected void |
setStatement() |
hasClosure, in, invoke, negadd, bitAnd, bitOr, cast, com, distinct, div, encloseInParentheses, ge, getJavaTypeMapping, getLowestOperator, getNumberOfSubExpressions, getParameterName, getSQLStatement, getSQLTable, getSubExpression, gt, is, isParameter, le, lt, mod, mul, sub, toSQLTextpublic BooleanLiteral(SQLStatement stmt, JavaTypeMapping mapping, Object value, String parameterName)
stmt - The SQL statementmapping - the mappingvalue - the valueparameterName - Parameter name (represented as JDBC "?")public BooleanLiteral(SQLStatement stmt, JavaTypeMapping mapping, Boolean value)
stmt - The SQL statementmapping - the mappingvalue - the boolean valuepublic void setJavaTypeMapping(JavaTypeMapping mapping)
setJavaTypeMapping in class SQLExpressionpublic Object getValue()
SQLLiteralgetValue in interface SQLLiteralpublic BooleanExpression and(SQLExpression expr)
SQLExpressionand in class BooleanExpressionexpr - the right-hand operandpublic BooleanExpression eor(SQLExpression expr)
SQLExpressioneor in class BooleanExpressionexpr - the right-hand operandpublic BooleanExpression ior(SQLExpression expr)
SQLExpressionior in class BooleanExpressionexpr - the right-hand operandpublic BooleanExpression not()
SQLExpressionnot in class BooleanExpressionpublic BooleanExpression eq(SQLExpression expr)
SQLExpressioneq in class BooleanExpressionexpr - the right-hand operandpublic BooleanExpression ne(SQLExpression expr)
SQLExpressionne in class BooleanExpressionexpr - the right-hand operandpublic void setNotParameter()
SQLLiteralsetNotParameter in interface SQLLiteralprotected void setStatement()
Copyright © 2017. All rights reserved.