use of org.eclipse.persistence.jpa.jpql.parser.ValueExpression in project eclipselink by eclipse-ee4j.
the class AbstractSemanticValidator method validateJoin.
/**
* Validates the given {@link Join}.
*
* @param expression The {@link ValueExpression} to validate
*/
protected void validateJoin(Join expression) {
if (expression.hasJoinAssociationPath()) {
Expression joinAssociationPath = expression.getJoinAssociationPath();
validateJoinCollectionValuedPathExpression(joinAssociationPath, false);
joinAssociationPath.accept(this);
}
if (expression.hasIdentificationVariable()) {
try {
registerIdentificationVariable = false;
expression.getIdentificationVariable().accept(this);
} finally {
registerIdentificationVariable = true;
}
}
}
use of org.eclipse.persistence.jpa.jpql.parser.ValueExpression in project eclipselink by eclipse-ee4j.
the class ReportItemBuilder method visit.
@Override
public void visit(ValueExpression expression) {
IdentificationVariable identificationVariable = (IdentificationVariable) expression.getExpression();
Expression queryExpression = queryContext.buildExpression(expression, type);
addAttribute(identificationVariable.getText(), queryExpression);
}
Aggregations