|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jpox.store.expression.ScalarExpression
org.jpox.store.expression.MapLiteral
An SQL expression that will test if a column of a table falls within the given Map. This is used for Querys where a Map is passed in as a parameter.
Nested Class Summary |
Nested classes inherited from class org.jpox.store.expression.ScalarExpression |
ScalarExpression.DyadicOperator, ScalarExpression.ExpressionList, ScalarExpression.FieldExpression, ScalarExpression.IllegalArgumentTypeException, ScalarExpression.IllegalOperationException, ScalarExpression.MethodInvocationException, ScalarExpression.MonadicOperator, ScalarExpression.Operator |
Field Summary |
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 |
Constructor Summary | |
MapLiteral(QueryExpression qs,
JavaTypeMapping mapping,
java.util.Map map)
Constructor. |
Method Summary | |
BooleanExpression |
containsEntryMethod(ScalarExpression expr)
Method to check the containing of an entry in the Map. |
BooleanExpression |
containsKeyMethod(ScalarExpression expr)
Method to check the containing of a key in the Map. |
BooleanExpression |
containsMethod(ScalarExpression expr)
Method to check the containing of a value in the Map. |
BooleanExpression |
containsValueMethod(ScalarExpression expr)
Method to check the containing of a value in the Map. |
ScalarExpression |
getMethod(ScalarExpression expr)
Method to get a value from the Map for a key |
BooleanExpression |
isEmptyMethod()
Method to check for emptiness of the collection. |
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 |
Constructor Detail |
public MapLiteral(QueryExpression qs, JavaTypeMapping mapping, java.util.Map map)
qs
- The QueryStatement the MapLiteral will be used in.mapping
- The mapping to the Mapmap
- The Map that is the value.Method Detail |
public BooleanExpression containsMethod(ScalarExpression expr)
expr
- The SQLExpression that is checked for membership in the Map.
public BooleanExpression containsValueMethod(ScalarExpression expr)
expr
- The SQLExpression that is checked for membership in the Map.
public BooleanExpression containsKeyMethod(ScalarExpression expr)
expr
- The SQLExpression that is checked for membership in the Map.
public BooleanExpression containsEntryMethod(ScalarExpression expr)
expr
- The SQLExpression that is checked for membership in the Map.
public ScalarExpression getMethod(ScalarExpression expr)
expr
- The key argument expression
public BooleanExpression isEmptyMethod()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |