org.datanucleus.store.mapped.expression
Class CollectionSubqueryExpression

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

public class CollectionSubqueryExpression
extends ScalarExpression

An expression for collections whose contents are expressed as a SQL subquery.

Version:
$Revision: 1.9 $

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
CollectionSubqueryExpression(QueryExpression qs, QueryExpression subquery)
          Constructor.
 
Method Summary
 BooleanExpression containsMethod(ScalarExpression expr)
          Contains method
 BooleanExpression isEmptyMethod()
          isEmpty method
 
Methods inherited from class org.datanucleus.store.mapped.expression.ScalarExpression
accessField, add, and, as, assertValidTypeForParameterComparison, callMethod, cast, checkForTypeAssignability, com, div, encloseWithInParentheses, eor, eq, equals, getAlias, getConsistentTypeForParameterComparison, getExpressionList, getLogicSetExpression, getMapping, getNonAliasExpression, getQueryExpression, gt, gteq, in, instanceOf, ior, lt, lteq, mod, mul, neg, not, noteq, setParameterName, sub, toStatementText, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CollectionSubqueryExpression

public CollectionSubqueryExpression(QueryExpression qs,
                                    QueryExpression subquery)
Constructor.

Parameters:
qs - The main Query Statement
subquery - The subquery Query Statement.
Method Detail

containsMethod

public BooleanExpression containsMethod(ScalarExpression expr)
Contains method

Parameters:
expr - the searched value represented by the expression
Returns:
boolean true expression if this Collection contains the element expr

isEmptyMethod

public BooleanExpression isEmptyMethod()
isEmpty method

Returns:
boolean true expression if this Collection has no elements


Copyright © 2010. All Rights Reserved.