/** * INTERNAL * Return a EclipseLink expression for this node. */ public Expression generateExpression(GenerationContext context) { //get the variable name from the DotNode's right attribute //...WHERE emp.firstName IS EMPTY String emptyAttributeName = ((AttributeNode)getLeft().getRight()).getAttributeName(); Expression whereClause = getLeft().getLeft().generateExpression(context); if (notIndicated) { return whereClause.notEmpty(emptyAttributeName); } else { return whereClause.isEmpty(emptyAttributeName); } }
/** * INTERNAL * Return a EclipseLink expression for this node. */ public Expression generateExpression(GenerationContext context) { //get the variable name from the DotNode's right attribute //...WHERE emp.firstName IS EMPTY String emptyAttributeName = ((AttributeNode)getLeft().getRight()).getAttributeName(); Expression whereClause = getLeft().getLeft().generateExpression(context); if (notIndicated) { return whereClause.notEmpty(emptyAttributeName); } else { return whereClause.isEmpty(emptyAttributeName); } }
/** * INTERNAL * Return a EclipseLink expression for this node. */ public Expression generateExpression(GenerationContext context) { //get the variable name from the DotNode's right attribute //...WHERE emp.firstName IS EMPTY String emptyAttributeName = ((AttributeNode)getLeft().getRight()).getAttributeName(); Expression whereClause = getLeft().getLeft().generateExpression(context); if (notIndicated) { return whereClause.notEmpty(emptyAttributeName); } else { return whereClause.isEmpty(emptyAttributeName); } }