|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.store.rdbms.sql.expression.SQLExpression
org.datanucleus.store.rdbms.sql.expression.BooleanExpression
org.datanucleus.store.rdbms.sql.expression.BooleanLiteral
public class BooleanLiteral
Representation of a Boolean literal in a Query.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression |
|---|
SQLExpression.ColumnExpressionList |
| Field Summary |
|---|
| Fields inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression |
|---|
LOCALISER, lowestOperator, mapping, parameterName, st, stmt, subExprs, table |
| Constructor Summary | |
|---|---|
BooleanLiteral(SQLStatement stmt,
org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping,
Boolean value)
Creates a boolean literal with the specified value, using the provided mapping. |
|
BooleanLiteral(SQLStatement stmt,
org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping,
Object value,
String parameterName)
Creates a boolean literal with the specified value, using the provided mapping. |
|
| Method Summary | |
|---|---|
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 |
setNotParameter()
Method to set this literal as not being a parameter. |
protected void |
setStatement()
|
| Methods inherited from class org.datanucleus.store.rdbms.sql.expression.BooleanExpression |
|---|
hasClosure, in, invoke, neg |
| Methods inherited from class org.datanucleus.store.rdbms.sql.expression.SQLExpression |
|---|
add, cast, com, distinct, div, encloseInParentheses, ge, getJavaTypeMapping, getLowestOperator, getNumberOfSubExpressions, getParameterName, getSQLStatement, getSQLTable, getSubExpression, gt, is, isParameter, le, lt, mod, mul, setJavaTypeMapping, sub, toSQLText |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BooleanLiteral(SQLStatement stmt,
org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping,
Object value,
String parameterName)
stmt - The SQL statementmapping - the mappingvalue - the valueparameterName - Parameter name (represented as JDBC "?")
public BooleanLiteral(SQLStatement stmt,
org.datanucleus.store.mapped.mapping.JavaTypeMapping mapping,
Boolean value)
stmt - The SQL statementmapping - the mappingvalue - the boolean value| Method Detail |
|---|
public Object getValue()
SQLLiteral
getValue in interface SQLLiteralpublic BooleanExpression and(SQLExpression expr)
SQLExpression
and in class BooleanExpressionexpr - the right-hand operand
public BooleanExpression eor(SQLExpression expr)
SQLExpression
eor in class BooleanExpressionexpr - the right-hand operand
public BooleanExpression ior(SQLExpression expr)
SQLExpression
ior in class BooleanExpressionexpr - the right-hand operand
public BooleanExpression not()
SQLExpression
not in class BooleanExpressionpublic BooleanExpression eq(SQLExpression expr)
SQLExpression
eq in class BooleanExpressionexpr - the right-hand operand
public BooleanExpression ne(SQLExpression expr)
SQLExpression
ne in class BooleanExpressionexpr - the right-hand operand
public void setNotParameter()
SQLLiteral
setNotParameter in interface SQLLiteralprotected void setStatement()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||