1 21 package oracle.toplink.essentials.internal.parsing; 23 24 import oracle.toplink.essentials.expressions.*; 25 26 35 public class NotEqualsNode extends BinaryOperatorNode { 36 37 40 public NotEqualsNode() { 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 62 public Expression generateExpression(GenerationContext context) { 63 Expression whereClause = getLeft().generateExpression(context); 64 whereClause = whereClause.notEqual(getRight().generateExpression(context)); 65 return whereClause; 66 } 67 68 72 public String getAsString() { 73 return left.getAsString() + " <> " + right.getAsString(); 74 } 75 } 76 | Popular Tags |