* Apply this node to the passed query
*/
public void applyToQuery(ObjectLevelReadQuery theQuery, GenerationContext generationContext) {
String name = getCanonicalVariableName();
if (theQuery instanceof ReportQuery) {
ReportQuery reportQuery = (ReportQuery)theQuery;
Expression expression = generationContext.expressionFor(name);
if (expression == null) {
expression = generateExpression(generationContext);
}
addAttributeWithFetchJoins(reportQuery, expression, generationContext);