1 21 package oracle.toplink.essentials.internal.parsing; 23 24 import oracle.toplink.essentials.expressions.*; 25 26 35 public class GreaterThanNode extends BinaryOperatorNode { 36 37 40 public GreaterThanNode() { 41 super(); 42 } 43 44 48 public void validate(ParseTreeContext context) { 49 super.validate(context); 50 TypeHelper typeHelper = context.getTypeHelper(); 51 setType(typeHelper.getBooleanType()); 52 } 53 54 63 public Expression generateExpression(GenerationContext context) { 64 Expression whereClause = getLeft().generateExpression(context); 65 whereClause = whereClause.greaterThan(getRight().generateExpression(context)); 66 return whereClause; 67 } 68 69 73 public String getAsString() { 74 return left.getAsString() + " > " + right.getAsString(); 75 } 76 } 77 | Popular Tags |