org.jpox.store.expression
Class ExistsExpression
java.lang.Object
org.jpox.store.expression.ScalarExpression
org.jpox.store.expression.BooleanExpression
org.jpox.store.expression.ExistsExpression
- public class ExistsExpression
- extends BooleanExpression
Perform a exists function on a Query Expression returning a true boolean value if one or more elements are retrieved.
- Version:
- $Revision: 1.6 $
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 |
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 |
ExistsExpression
public ExistsExpression(QueryExpression qs,
QueryExpression argumentExpression)
- Constructs a expression what will return true if the argument expression has elements
- Parameters:
qs
- the QueryExpressionargumentExpression
- the QueryExpression returning records to the exists function
ExistsExpression
public ExistsExpression(QueryExpression qs,
QueryExpression argumentExpression,
boolean truthTest)
- Parameters:
qs
- the QueryExpressionargumentExpression
- the QueryExpression returning records to the exists functiontruthTest
- true to perform a "exists", and false to perform a "not exists"
not
public BooleanExpression not()
- Description copied from class:
ScalarExpression
- Logical complement
- Overrides:
not
in class BooleanExpression
and
public BooleanExpression and(ScalarExpression expr)
- Description copied from class:
ScalarExpression
- Conditional And. Evaluates its right-hand operand only if the value of its left-hand operand is true.
- Overrides:
and
in class BooleanExpression
Copyright © -2007 . All Rights Reserved.