com.triactive.jdo.store
Class SetLiteral

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

 class SetLiteral
extends SetExpression

A SetLiteral is a SQL expression that will test if a column of table falls within the given Set of values. This is used for Querys where a transient Set is passed in as a parameter.

Author:
Kelly Grizzle

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
SetLiteral(QueryStatement qs, java.util.Set value)
          Construct a SetLiteral.
 
Method Summary
 BooleanExpression containsMethod(SQLExpression expr)
          Return the BooleanExpression that results from SetLiteral.contains(SQLExpression).
 BooleanExpression isEmptyMethod()
           
 
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, toStatementText, toString, typeList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SetLiteral

public SetLiteral(QueryStatement qs,
                  java.util.Set value)
Construct a SetLiteral.

Parameters:
qs - The QueryStatement the SetLiteral will be used in.
value - The transient Set that is the value of the SetLiteral.
Method Detail

containsMethod

public BooleanExpression containsMethod(SQLExpression expr)
Return the BooleanExpression that results from SetLiteral.contains(SQLExpression).

Parameters:
expr - The SQLExpression that is checked for membership in the Set.
The - BooleanExpression that results from SetLiteral.contains(SQLExpression).

isEmptyMethod

public BooleanExpression isEmptyMethod()


Copyright ? 2001 TriActive, Inc. All Rights Reserved.