org.datanucleus.store.mapped.expression
Class InExpression

java.lang.Object
  extended by org.datanucleus.store.mapped.expression.ScalarExpression
      extended by org.datanucleus.store.mapped.expression.BooleanExpression
          extended by org.datanucleus.store.mapped.expression.InExpression

public class InExpression
extends BooleanExpression

Expression for something being "in"/"not in" something else.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.datanucleus.store.mapped.expression.ScalarExpression
ScalarExpression.DatastoreFieldExpression, ScalarExpression.DyadicOperator, ScalarExpression.ExpressionList, ScalarExpression.IllegalArgumentTypeException, ScalarExpression.IllegalOperationException, ScalarExpression.MethodInvocationException, ScalarExpression.MonadicOperator, ScalarExpression.Operator
 
Field Summary
 
Fields inherited from class org.datanucleus.store.mapped.expression.ScalarExpression
aliasIdentifier, checkForTypeAssignability, 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_NOTIN, OP_NOTLIKE, OP_OR, OP_SUB, parameterName, PROJECTION, qs, st, te
 
Constructor Summary
InExpression(ScalarExpression expr1, ScalarExpression.DyadicOperator op, ScalarExpression expr2)
          Constructor for expr1 being IN expr2.
 
Method Summary
 BooleanExpression not()
          Method to return a boolean expression for expr1 NOT IN expr2.
 
Methods inherited from class org.datanucleus.store.mapped.expression.BooleanExpression
and, eor, eq, in, ior, neg, noteq
 
Methods inherited from class org.datanucleus.store.mapped.expression.ScalarExpression
accessField, add, as, assertValidTypeForParameterComparison, callMethod, cast, checkForTypeAssignability, com, div, encloseWithInParentheses, equals, getAlias, getConsistentTypeForParameterComparison, getExpressionList, getLogicSetExpression, getMapping, getNonAliasExpression, getQueryExpression, gt, gteq, instanceOf, lt, lteq, mod, mul, setParameterName, sub, toStatementText, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InExpression

public InExpression(ScalarExpression expr1,
                    ScalarExpression.DyadicOperator op,
                    ScalarExpression expr2)
Constructor for expr1 being IN expr2.

Parameters:
op - the operator (OP_IN, OP_NOTIN)
expr1 - the expression being contained
expr2 - the expression that contains
Method Detail

not

public BooleanExpression not()
Method to return a boolean expression for expr1 NOT IN expr2.

Overrides:
not in class BooleanExpression
Returns:
The boolean expression for NOT IN


Copyright © 2010. All Rights Reserved.