/** * PUBLIC: * Return a Map.Entry containing the key and the value from a mapping that maps to a java.util.Map * This expression can only be used as a return value in a ReportQuery and cannot be used as part of * the WHERE clause in any query * * EclipseLink: eb.get("mapAttribute").mapEntry() * @return */ public Expression mapEntry(){ MapEntryExpression expression = new MapEntryExpression(this); expression.returnMapEntry(); return expression; }
/** * PUBLIC: * Return a Map.Entry containing the key and the value from a mapping that maps to a java.util.Map * This expression can only be used as a return value in a ReportQuery and cannot be used as part of * the WHERE clause in any query * * EclipseLink: eb.get("mapAttribute").mapEntry() * @return */ public Expression mapEntry(){ MapEntryExpression expression = new MapEntryExpression(this); expression.returnMapEntry(); return expression; }
/** * PUBLIC: * Return a Map.Entry containing the key and the value from a mapping that maps to a java.util.Map * This expression can only be used as a return value in a ReportQuery and cannot be used as part of * the WHERE clause in any query * * TopLink: eb.get("mapAttribute").mapEntry() * @return */ public Expression mapEntry(){ MapEntryExpression expression = new MapEntryExpression(this); expression.returnMapEntry(); return expression; }
/** * INTERNAL * Generate the a new EclipseLink TableEntryExpression for this node. */ public Expression generateExpression(GenerationContext context) { Expression owningExpression = getLeft().generateExpression(context); MapEntryExpression whereClause = new MapEntryExpression(owningExpression); whereClause.returnMapEntry(); return whereClause; }
/** * INTERNAL * Generate the a new EclipseLink TableEntryExpression for this node. */ public Expression generateExpression(GenerationContext context) { Expression owningExpression = getLeft().generateExpression(context); MapEntryExpression whereClause = new MapEntryExpression(owningExpression); whereClause.returnMapEntry(); return whereClause; }
/** * INTERNAL * Generate the a new EclipseLink TableEntryExpression for this node. */ public Expression generateExpression(GenerationContext context) { Expression owningExpression = getLeft().generateExpression(context); MapEntryExpression whereClause = new MapEntryExpression(owningExpression); whereClause.returnMapEntry(); return whereClause; }
/** * {@inheritDoc} */ @Override public void visit(EntryExpression expression) { // Create the expression for the collection-valued path expression expression.getExpression().accept(this); // Now create the ENTRY expression MapEntryExpression entryExpression = new MapEntryExpression(queryExpression); entryExpression.returnMapEntry(); queryExpression = entryExpression; // Set the expression type type[0] = Map.Entry.class; }
/** * {@inheritDoc} */ @Override public void visit(EntryExpression expression) { // Create the expression for the collection-valued path expression expression.getExpression().accept(this); // Now create the ENTRY expression MapEntryExpression entryExpression = new MapEntryExpression(queryExpression); entryExpression.returnMapEntry(); queryExpression = entryExpression; // Set the expression type type[0] = Map.Entry.class; }
/** * {@inheritDoc} */ @Override public void visit(EntryExpression expression) { IdentificationVariable identificationVariable = (IdentificationVariable) expression.getExpression(); String variableName = identificationVariable.getVariableName(); // Retrieve the Expression for the identification variable declaration = queryContext.findDeclaration(variableName); declaration.getBaseExpression().accept(ExpressionBuilderVisitor.this); localExpression = queryExpression; // Create the Map.Entry expression MapEntryExpression entryExpression = new MapEntryExpression(localExpression); entryExpression.returnMapEntry(); localExpression = entryExpression; }
/** * {@inheritDoc} */ @Override public void visit(EntryExpression expression) { IdentificationVariable identificationVariable = (IdentificationVariable) expression.getExpression(); String variableName = identificationVariable.getVariableName(); // Retrieve the Expression for the identification variable declaration = queryContext.findDeclaration(variableName); declaration.getBaseExpression().accept(ExpressionBuilderVisitor.this); localExpression = queryExpression; // Create the Map.Entry expression MapEntryExpression entryExpression = new MapEntryExpression(localExpression); entryExpression.returnMapEntry(); localExpression = entryExpression; }