com.triactive.jdo.store
Class SetLiteral
java.lang.Object
com.triactive.jdo.store.SQLExpression
com.triactive.jdo.store.SetExpression
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 Query
s
where a transient Set is passed in as a parameter.
- Author:
- Kelly Grizzle
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
OP_OR
protected static final SQLExpression.DyadicOperator OP_OR
OP_AND
protected static final SQLExpression.DyadicOperator OP_AND
OP_NOT
protected static final SQLExpression.MonadicOperator OP_NOT
OP_EQ
protected static final SQLExpression.DyadicOperator OP_EQ
OP_NOTEQ
protected static final SQLExpression.DyadicOperator OP_NOTEQ
OP_LT
protected static final SQLExpression.DyadicOperator OP_LT
OP_LTEQ
protected static final SQLExpression.DyadicOperator OP_LTEQ
OP_GT
protected static final SQLExpression.DyadicOperator OP_GT
OP_GTEQ
protected static final SQLExpression.DyadicOperator OP_GTEQ
OP_LIKE
protected static final SQLExpression.DyadicOperator OP_LIKE
OP_BETWEEN
protected static final SQLExpression.DyadicOperator OP_BETWEEN
OP_IS
protected static final SQLExpression.DyadicOperator OP_IS
OP_ISNOT
protected static final SQLExpression.DyadicOperator OP_ISNOT
OP_IN
protected static final SQLExpression.DyadicOperator OP_IN
OP_ADD
protected static final SQLExpression.DyadicOperator OP_ADD
OP_SUB
protected static final SQLExpression.DyadicOperator OP_SUB
OP_CONCAT
protected static final SQLExpression.DyadicOperator OP_CONCAT
OP_MUL
protected static final SQLExpression.DyadicOperator OP_MUL
OP_DIV
protected static final SQLExpression.DyadicOperator OP_DIV
OP_NEG
protected static final SQLExpression.MonadicOperator OP_NEG
qs
protected final QueryStatement qs
st
protected final StatementText st
lowestOperator
protected SQLExpression.Operator lowestOperator
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.
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.
isEmptyMethod
public BooleanExpression isEmptyMethod()
getQueryStatement
public QueryStatement getQueryStatement()
and
public BooleanExpression and(SQLExpression expr)
eor
public BooleanExpression eor(SQLExpression expr)
ior
public BooleanExpression ior(SQLExpression expr)
not
public BooleanExpression not()
eq
public BooleanExpression eq(SQLExpression expr)
noteq
public BooleanExpression noteq(SQLExpression expr)
lt
public BooleanExpression lt(SQLExpression expr)
lteq
public BooleanExpression lteq(SQLExpression expr)
gt
public BooleanExpression gt(SQLExpression expr)
gteq
public BooleanExpression gteq(SQLExpression expr)
in
public BooleanExpression in(SQLExpression expr)
add
public SQLExpression add(SQLExpression expr)
sub
public SQLExpression sub(SQLExpression expr)
mul
public SQLExpression mul(SQLExpression expr)
div
public SQLExpression div(SQLExpression expr)
mod
public SQLExpression mod(SQLExpression expr)
neg
public SQLExpression neg()
com
public SQLExpression com()
cast
public SQLExpression cast(java.lang.Class type)
accessField
public SQLExpression accessField(java.lang.String fieldName)
callMethod
public SQLExpression callMethod(java.lang.String methodName,
java.util.List arguments)
toStatementText
public StatementText toStatementText()
toString
public java.lang.String toString()
typeList
public static java.lang.String typeList(java.util.List exprs)
Copyright ? 2001 TriActive, Inc. All Rights Reserved.