1 21 package oracle.toplink.essentials.internal.parsing; 23 24 import oracle.toplink.essentials.expressions.*; 25 26 33 public class UpperNode extends StringFunctionNode { 34 35 38 public UpperNode() { 39 super(); 40 } 41 42 46 public void validate(ParseTreeContext context) { 47 TypeHelper typeHelper = context.getTypeHelper(); 48 if (left != null) { 49 left.validate(context); 50 left.validateParameter(context, typeHelper.getStringType()); 51 } 52 setType(typeHelper.getStringType()); 53 } 54 55 59 public Expression generateExpression(GenerationContext context) { 60 Expression whereClause = getLeft().generateExpression(context); 61 whereClause = whereClause.toUpperCase(); 62 return whereClause; 63 } 64 65 } 66 67 68 | Popular Tags |