INTERNAL
Generate the TopLink expression for this node
DotNode dotNode = (DotNode)getLeft();
Node prefix = dotNode.getLeft();
String variableName = ((AttributeNode)dotNode.getRight()).getAttributeName();
// check whether variable denotes a collection valued field
if (!dotNode.endsWithCollectionField(context)) {
throw EJBQLException.invalidSizeArgument(
context.getParseTreeContext().getQueryInfo(),
getLine(), getColumn(), variableName);
}
Expression whereClause = prefix.generateExpression(context);
whereClause = whereClause.size(variableName);
return whereClause;