Purpose: Maintain the generation context for an EJBQL query
Responsibilities:
super(); expressions = new Hashtable();
super(); parseTreeContext = newContext; session = newSession; expressions = new Hashtable(); parseTree = newParseTree;
expressions.put(aliasName, expression);
return (Expression)expressions.get(aliasName);
return baseExpression;
return baseQueryClass;
return memberOfNode;
return parseTree;
return parseTreeContext;
return session;
return memberOfNode != null;
return null;
Caches the specified expression under the variable name for the base query class. // Store the expression for faster access baseExpression = expr; // Store it into the cache addExpression(expr, variable);
// Store the expression for faster access baseExpression = expr; // Store it into the cache addExpression(expr, variable);
baseQueryClass = newBaseQueryClass;
memberOfNode = newMemberOfNode;
this.parseTree = parseTree;
parseTreeContext = newParseTreeContext;
session = newSession;
return false;