/** * PUBLIC: * Return the key from a mapping that maps to a java.util.Map * This expression can be used either in as a return value in a ReportQuery or in the WHERE clause in a query * * TopLink: eb.get("mapAttribute").mapKey() * @return */ public Expression mapKey(){ return new MapEntryExpression(this); }
/** * PUBLIC: * Return the key from a mapping that maps to a java.util.Map * This expression can be used either in as a return value in a ReportQuery or in the WHERE clause in a query * * EclipseLink: eb.get("mapAttribute").mapKey() * @return */ public Expression mapKey(){ return new MapEntryExpression(this); }
/** * PUBLIC: * Return the key from a mapping that maps to a java.util.Map * This expression can be used either in as a return value in a ReportQuery or in the WHERE clause in a query * * EclipseLink: eb.get("mapAttribute").mapKey() * @return */ public Expression mapKey(){ return new MapEntryExpression(this); }
/** * 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); return whereClause; }
/** * {@inheritDoc} */ @Override public void visit(KeyExpression expression) { // First visit the parent Expression expression.getExpression().accept(this); // Now create the Expression of the KEY expression queryExpression = new MapEntryExpression(queryExpression); }
/** * 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); return whereClause; }
/** * {@inheritDoc} */ @Override public void visit(KeyExpression expression) { // First visit the parent Expression expression.getExpression().accept(this); // Now create the Expression of the KEY expression queryExpression = new MapEntryExpression(queryExpression); }
/** * 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); 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(KeyExpression expression) { IdentificationVariable identificationVariable = (IdentificationVariable) expression.getExpression(); // Create the Expression for the identification variable identificationVariable.accept(ExpressionBuilderVisitor.this); localExpression = new MapEntryExpression(queryExpression); // Retrieve the mapping's key mapping's descriptor descriptor = queryContext.resolveDescriptor(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; }
/** * {@inheritDoc} */ @Override public void visit(KeyExpression expression) { IdentificationVariable identificationVariable = (IdentificationVariable) expression.getExpression(); // Create the Expression for the identification variable identificationVariable.accept(ExpressionBuilderVisitor.this); localExpression = new MapEntryExpression(queryExpression); // Retrieve the mapping's key mapping's descriptor descriptor = queryContext.resolveDescriptor(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; }
/** * {@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; }