com.triactive.jdo.store
Class CandidateSetExpression

java.lang.Object
  extended by com.triactive.jdo.store.SQLExpression
      extended by com.triactive.jdo.store.SetExpression
          extended by com.triactive.jdo.store.CandidateSetExpression

 class CandidateSetExpression
extends SetExpression

A set expression that represents some set field in a query candidate class, or a set field in an object linked from the candidate class by navigation.

When navigated through using contains(expr), the elements of the set are relationally joined onto the query statement.

Author:
Mike Martin

Nested Class Summary
 
Nested classes/interfaces inherited from class com.triactive.jdo.store.SQLExpression
SQLExpression.DyadicOperator, SQLExpression.IllegalArgumentTypeException, SQLExpression.IllegalOperationException, SQLExpression.MethodInvocationException, SQLExpression.MonadicOperator, SQLExpression.Operator
 
Field Summary
 
Fields inherited from class com.triactive.jdo.store.SQLExpression
lowestOperator, OP_ADD, OP_AND, OP_BETWEEN, OP_CONCAT, OP_DIV, OP_EQ, OP_GT, OP_GTEQ, OP_IN, OP_IS, OP_ISNOT, OP_LIKE, OP_LT, OP_LTEQ, OP_MUL, OP_NEG, OP_NOT, OP_NOTEQ, OP_OR, OP_SUB, qs, st
 
Constructor Summary
CandidateSetExpression(QueryStatement qs, QueryStatement.QueryColumn ownerQsc, SetStore setStore, java.lang.String fieldName)
           
 
Method Summary
 BooleanExpression containsMethod(SQLExpression expr)
          Executed when the contains() method is found in a query filter.
 BooleanExpression isEmptyMethod()
          Return the BooleanExpression for a query filter in the form "set.isEmpty()".
 StatementText toStatementText()
           
 
Methods inherited from class com.triactive.jdo.store.SQLExpression
accessField, add, and, callMethod, cast, com, div, eor, eq, getQueryStatement, gt, gteq, in, ior, lt, lteq, mod, mul, neg, not, noteq, sub, toString, typeList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CandidateSetExpression

public CandidateSetExpression(QueryStatement qs,
                              QueryStatement.QueryColumn ownerQsc,
                              SetStore setStore,
                              java.lang.String fieldName)
Method Detail

containsMethod

public BooleanExpression containsMethod(SQLExpression expr)
Executed when the contains() method is found in a query filter.

Parameters:
expr - The SQLExpression passed as a parameter to contains().
Returns:
The BooleanExpression resulting from the contains() method.

isEmptyMethod

public BooleanExpression isEmptyMethod()
Return the BooleanExpression for a query filter in the form "set.isEmpty()".

Returns:
The BooleanExpression for a query filter in the form "set.isEmpty()".

toStatementText

public StatementText toStatementText()
Overrides:
toStatementText in class SQLExpression


Copyright ? 2001 TriActive, Inc. All Rights Reserved.