public Expression generateExpression(GenerationContext context) { Expression whereClause = left.generateExpression(context); return whereClause; } }
public Expression generateExpression(GenerationContext context) { Expression whereClause = left.generateExpression(context); return whereClause; } }
/** * INTERNAL * Generate the EclipseLink expression for this node */ public Expression generateExpression(GenerationContext context) { Expression whereClause = ((Node)objects.get(0)).generateExpression(context); for (int i=1;i<objects.size();i++){ whereClause = whereClause.concat(((Node)objects.get(i)).generateExpression(context)); } return whereClause; }
/** * INTERNAL * Generate the a new EclipseLink Expression for this WHEN portion of this node. */ public Expression generateExpressionForWhen(GenerationContext context) { return getLeft().generateExpression(context); }
/** * INTERNAL * Generate the a new EclipseLink the THEN portion of this node. */ public Expression generateExpressionForThen(GenerationContext context) { return getRight().generateExpression(context); }
/** */ public Expression generateExpression(GenerationContext context) { return ExpressionMath.mod(getLeft().generateExpression(context), getDenominator().generateExpression(context)); }
/** * INTERNAL * Generate the a new EclipseLink NullIf expression for this node. */ public Expression generateExpression(GenerationContext context) { Expression whereClause = getLeft().generateExpression(context).nullIf(getRight().generateExpression(context)); return whereClause; }
/** */ public Expression generateExpression(GenerationContext context) { return ExpressionMath.mod(getLeft().generateExpression(context), getDenominator().generateExpression(context)); }
/** * INTERNAL * Generate the EclipseLink expression for this node */ public Expression generateExpression(GenerationContext context) { Expression whereClause = getLeft().generateExpression(context); whereClause = whereClause.toLowerCase(); return whereClause; }
/** * INTERNAL * Generate the EclipseLink expression for this node */ public Expression generateExpression(GenerationContext context) { Expression whereClause = getLeft().generateExpression(context); whereClause = ExpressionMath.abs(whereClause); return whereClause; }
/** * INTERNAL * Generate the a new EclipseLink TableEntryExpression for this node. */ public Expression generateExpression(GenerationContext context) { Expression owningExpression = getLeft().generateExpression(context); return owningExpression.type(); }
/** * INTERNAL * Generate the EclipseLink expression for this node */ public Expression generateExpression(GenerationContext context) { Expression whereClause = getLeft().generateExpression(context); whereClause = whereClause.getFunction(ExpressionOperator.Sqrt); return whereClause; }
/** * INTERNAL * @param context The generation context * @return An EclipseLink expression */ public Expression generateExpression(GenerationContext context) { Expression whereClause = null; if (getLeft() != null) { whereClause = getLeft().generateExpression(context); } return whereClause; }
/** * INTERNAL * Generate the EclipseLink expression for this node */ public Expression generateExpression(GenerationContext context) { Expression whereClause = getLeft().generateExpression(context); whereClause = whereClause.getFunction(ExpressionOperator.Sqrt); return whereClause; }
/** * INTERNAL * Generate the EclipseLink expression for this node */ public Expression generateExpression(GenerationContext context) { Expression whereClause = getLeft().generateExpression(context); whereClause = whereClause.toUpperCase(); 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); return whereClause; }
/** * INTERNAL * Return a EclipseLink expression by calling generateExpression on the right node and adding .not() * to the returned expression */ public Expression generateExpression(GenerationContext context) { return getLeft().generateExpression(context).not(); }
/** * 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 * Apply this node to the passed query */ public void applyToQuery(ObjectLevelReadQuery theQuery, GenerationContext context) { if (theQuery.isReportQuery()) { ReportQuery reportQuery = (ReportQuery)theQuery; reportQuery.addAttribute("size", getLeft().generateExpression(context).count(), (Class)getType()); reportQuery.addGrouping(getLeft().getLeft().generateExpression(context)); } }
/** * INTERNAL * Apply this node to the passed query */ public void applyToQuery(ObjectLevelReadQuery theQuery, GenerationContext context) { if (theQuery.isReportQuery()) { ReportQuery reportQuery = (ReportQuery)theQuery; reportQuery.addAttribute("size", getLeft().generateExpression(context).count(), (Class)getType()); reportQuery.addGrouping(getLeft().getLeft().generateExpression(context)); } }