org.jpox.store.expression
Class MapKeyLiteral
java.lang.Object
org.jpox.store.expression.ScalarExpression
org.jpox.store.expression.MapKeyLiteral
- public class MapKeyLiteral
- extends ScalarExpression
An SQL expression that will test if a column of a table falls within the
given Map's keys. This is used for Querys where a transient Map is passed
in as a parameter.
- Version:
- $Revision: 1.12 $
Fields inherited from class org.jpox.store.expression.ScalarExpression |
aliasIdentifier, 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_OR, OP_SUB, PROJECTION, qs, st, te |
Methods inherited from class org.jpox.store.expression.ScalarExpression |
accessField, add, and, as, callMethod, cast, com, div, encloseWithInParentheses, eor, eq, equals, getAlias, getExpressionList, getLogicSetExpression, getMapping, getNonAliasExpression, getQueryExpression, gt, gteq, in, instanceOf, ior, lt, lteq, mod, mul, neg, not, noteq, sub, toStatementText, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MapKeyLiteral
public MapKeyLiteral(QueryExpression qs,
JavaTypeMapping mapping,
java.util.Map map)
- Constructor.
- Parameters:
qs
- The QueryStatement the MapKeyLiteral will be used in.mapping
- The mapping for the Mapmap
- The transient Map that is the value.
containsMethod
public BooleanExpression containsMethod(ScalarExpression expr)
- Method to check the containing of a key in the Map.
Return the BooleanExpression that results from
MapKeyLiteral.contains(SQLExpression).
- Parameters:
expr
- The SQLExpression that is checked for membership in the Map.
- Returns:
- The BooleanExpression that results from
MapKeyLiteral.contains(SQLExpression).
getMethod
public ScalarExpression getMethod(ScalarExpression expr)
- Method to get a value from the Map for a key
- Parameters:
expr
- The key argument expression
- Returns:
- The statement
isEmptyMethod
public BooleanExpression isEmptyMethod()
- Method to check for emptiness of the collection.
- Returns:
- The BooleanExpression.
Copyright © -2007 . All Rights Reserved.