/** */ public Object newAvg(int line, int column, boolean distinct, Object arg) { AvgNode node = new AvgNode(); node.setLeft((Node)arg); node.setDistinct(distinct); setPosition(node, line, column); return node; }
/** * INTERNAL * Apply this node to the passed query */ public void applyToQuery(ObjectLevelReadQuery theQuery, GenerationContext context) { if (theQuery.isReportQuery()) { ReportQuery reportQuery = (ReportQuery)theQuery; reportQuery.addAttribute(resolveAttribute(), generateExpression(context), Double.class); } }
/** * INTERNAL * Validate node and calculate its type. */ public void validate(ParseTreeContext context) { if (left != null) { left.validate(context); } TypeHelper typeHelper = context.getTypeHelper(); setType(typeHelper.getDoubleClassType()); }
/** * INTERNAL * Apply this node to the passed query */ public void applyToQuery(ObjectLevelReadQuery theQuery, GenerationContext context) { if (theQuery.isReportQuery()) { ReportQuery reportQuery = (ReportQuery)theQuery; reportQuery.addAttribute(resolveAttribute(), generateExpression(context), Double.class); } }
/** * INTERNAL * Validate node and calculate its type. */ public void validate(ParseTreeContext context) { if (left != null) { left.validate(context); } TypeHelper typeHelper = context.getTypeHelper(); setType(typeHelper.getDoubleClassType()); }
/** */ public Object newAvg(int line, int column, boolean distinct, Object arg) { AvgNode node = new AvgNode(); node.setLeft((Node)arg); node.setDistinct(distinct); setPosition(node, line, column); return node; }
/** * INTERNAL * Apply this node to the passed query */ public void applyToQuery(ObjectLevelReadQuery theQuery, GenerationContext context) { if (theQuery.isReportQuery()) { ReportQuery reportQuery = (ReportQuery)theQuery; reportQuery.addAttribute(resolveAttribute(), generateExpression(context), Double.class); } }
/** * INTERNAL * Validate node and calculate its type. */ public void validate(ParseTreeContext context) { if (left != null) { left.validate(context); } TypeHelper typeHelper = context.getTypeHelper(); setType(typeHelper.getDoubleClassType()); }
/** */ public Object newAvg(int line, int column, boolean distinct, Object arg) { AvgNode node = new AvgNode(); node.setLeft((Node)arg); node.setDistinct(distinct); setPosition(node, line, column); return node; }