|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jpox.store.expression.ScalarExpression
org.jpox.store.expression.BooleanExpression
org.jpox.store.expression.BooleanLiteral
public class BooleanLiteral
Representation of a Boolean literal in a Query.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jpox.store.expression.ScalarExpression |
|---|
ScalarExpression.DyadicOperator, ScalarExpression.ExpressionList, ScalarExpression.FieldExpression, ScalarExpression.IllegalArgumentTypeException, ScalarExpression.IllegalOperationException, ScalarExpression.MethodInvocationException, ScalarExpression.MonadicOperator, ScalarExpression.Operator |
| Field Summary |
|---|
| Fields inherited from class org.jpox.store.expression.ScalarExpression |
|---|
aliasIdentifier, expressionList, FILTER, LOCALISER, lowestOperator, mapping, OP_ADD, OP_AND, OP_BETWEEN, OP_COM, OP_CONCAT, OP_DIV, OP_EQ, OP_GT, OP_GTEQ, OP_IN, OP_IS, OP_ISNOT, OP_LIKE, OP_LT, OP_LTEQ, OP_MOD, OP_MUL, OP_NEG, OP_NOT, OP_NOTEQ, OP_OR, OP_SUB, PROJECTION, qs, st, te |
| Constructor Summary | |
|---|---|
BooleanLiteral(QueryExpression qs,
JavaTypeMapping mapping,
boolean value)
Creates a boolean literal |
|
| Method Summary | |
|---|---|
BooleanExpression |
and(ScalarExpression expr)
Conditional And. |
BooleanExpression |
eor(ScalarExpression expr)
Exclusive OR |
BooleanExpression |
eq(ScalarExpression expr)
Equality operator (equals to) |
protected java.lang.String |
getBooleanFalseValue()
Return the String value for FALSE in the database. |
protected java.lang.String |
getBooleanTrueValue()
Return the String value for TRUE in the database. |
java.lang.Object |
getValue()
Accessor to the literal value |
BooleanExpression |
ior(ScalarExpression expr)
Conditional OR. |
BooleanExpression |
not()
Logical complement |
BooleanExpression |
noteq(ScalarExpression expr)
Equality operator (not equals to) |
| Methods inherited from class org.jpox.store.expression.BooleanExpression |
|---|
in, neg |
| Methods inherited from class org.jpox.store.expression.ScalarExpression |
|---|
accessField, add, as, callMethod, cast, com, div, encloseWithInParentheses, equals, getAlias, getExpressionList, getLogicSetExpression, getMapping, getNonAliasExpression, getQueryExpression, gt, gteq, instanceOf, lt, lteq, mod, mul, sub, toStatementText, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BooleanLiteral(QueryExpression qs,
JavaTypeMapping mapping,
boolean value)
qs - the QueryExpressionmapping - the mappingvalue - the binary value| Method Detail |
|---|
public java.lang.Object getValue()
Literal
getValue in interface Literalprotected java.lang.String getBooleanTrueValue()
protected java.lang.String getBooleanFalseValue()
public BooleanExpression and(ScalarExpression expr)
ScalarExpression
and in class BooleanExpressionexpr - the right-hand operand
public BooleanExpression eor(ScalarExpression expr)
ScalarExpression
eor in class BooleanExpressionexpr - the right-hand operand
public BooleanExpression ior(ScalarExpression expr)
ScalarExpression
ior in class BooleanExpressionexpr - the right-hand operand
public BooleanExpression not()
ScalarExpression
not in class BooleanExpressionpublic BooleanExpression eq(ScalarExpression expr)
ScalarExpression
eq in class BooleanExpressionexpr - the right-hand operand
public BooleanExpression noteq(ScalarExpression expr)
ScalarExpression
noteq in class BooleanExpressionexpr - the right-hand operand
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||