1 2 12 package com.versant.core.ejb.query; 13 14 17 public class AllOrAnyNode extends Node { 18 19 private boolean all; 20 private SelectNode subquery; 21 22 public AllOrAnyNode(boolean all, SelectNode subquery) { 23 this.all = all; 24 this.subquery = subquery; 25 } 26 27 public boolean isAll() { 28 return all; 29 } 30 31 public SelectNode getSubquery() { 32 return subquery; 33 } 34 35 public Object arrive(NodeVisitor v, Object msg) { 36 return v.arriveAllOrAnyNode(this, msg); 37 } 38 39 public String toStringImp() { 40 StringBuffer s = new StringBuffer (); 41 s.append(all ? "ALL (" : "ANY ("); 42 s.append(subquery); 43 s.append(')'); 44 return s.toString(); 45 } 46 47 public void resolve(ResolveContext rc) { 48 subquery.resolve(rc); 49 } 50 51 } 52 53 | Popular Tags |