1 21 package oracle.toplink.essentials.internal.parsing; 23 24 import oracle.toplink.essentials.queryframework.*; 25 import oracle.toplink.essentials.expressions.*; 26 27 33 public abstract class QueryNode extends MajorNode { 34 private ParseTree parseTree; 35 36 public QueryNode() { 37 super(); 38 } 39 40 44 public abstract void applyToQuery(DatabaseQuery theQuery, GenerationContext context); 45 46 50 public abstract Expression generateExpression(GenerationContext context); 51 52 53 58 public Class getReferenceClass(GenerationContext genContext) { 59 return resolveClass(genContext); 60 } 61 62 public boolean isSelectNode() { 63 return false; 64 } 65 66 public boolean isUpdateNode() { 67 return false; 68 } 69 70 public boolean isDeleteNode() { 71 return false; 72 } 73 74 77 public abstract Class resolveClass(GenerationContext context); 78 79 82 public void setParseTree(ParseTree parseTree) { 83 this.parseTree = parseTree; 84 } 85 86 87 public ParseTree getParseTree() { 88 return parseTree; 89 } 90 91 } 92 | Popular Tags |