1 21 package oracle.toplink.essentials.internal.parsing; 23 24 import oracle.toplink.essentials.expressions.*; 25 import oracle.toplink.essentials.queryframework.ReportQuery; 26 27 31 public class AnyNode extends Node { 32 33 36 public AnyNode() { 37 super(); 38 } 39 40 44 public void validate(ParseTreeContext context) { 45 if (left != null) { 46 left.validate(context); 47 setType(left.getType()); 48 } 49 } 50 51 55 public Expression generateExpression(GenerationContext context) { 56 SubqueryNode subqueryNode = (SubqueryNode)getLeft(); 57 ReportQuery reportQuery = subqueryNode.getReportQuery(context); 58 59 Expression expr = context.getBaseExpression(); 60 return expr.any(reportQuery); 61 } 62 63 } 64 65 | Popular Tags |