/** * INTERNAL * Return a EclipseLink expression by 'BETWEEN' and 'AND'ing the expressions from the left, * rightForBetween and rightForAnd nodes */ public Expression generateExpression(GenerationContext context) { // Get the left expression Expression whereClause = getLeft().generateExpression(context); // Between it with whatever the rightForBetween expression and rightForAnd expressions are whereClause = whereClause.between(getRightForBetween().generateExpression(context), getRightForAnd().generateExpression(context)); // and return the expression... return whereClause; }
/** * INTERNAL * Return a EclipseLink expression by 'BETWEEN' and 'AND'ing the expressions from the left, * rightForBetween and rightForAnd nodes */ public Expression generateExpression(GenerationContext context) { // Get the left expression Expression whereClause = getLeft().generateExpression(context); // Between it with whatever the rightForBetween expression and rightForAnd expressions are whereClause = whereClause.between(getRightForBetween().generateExpression(context), getRightForAnd().generateExpression(context)); // and return the expression... return whereClause; }
/** * INTERNAL * Return a EclipseLink expression by 'BETWEEN' and 'AND'ing the expressions from the left, * rightForBetween and rightForAnd nodes */ public Expression generateExpression(GenerationContext context) { // Get the left expression Expression whereClause = getLeft().generateExpression(context); // Between it with whatever the rightForBetween expression and rightForAnd expressions are whereClause = whereClause.between(getRightForBetween().generateExpression(context), getRightForAnd().generateExpression(context)); // and return the expression... return whereClause; }