public void postBuild(DescriptorEvent event) { RelationExpression expression = (RelationExpression)event.getObject(); if ((expression.getFirstChild() != null) && (expression.getSecondChild() != null)) { if (expression.getSecondChild().isValueExpression()) { expression.getSecondChild().setLocalBase(expression.getFirstChild()); } if (expression.getFirstChild().isValueExpression()) { expression.getFirstChild().setLocalBase(expression.getSecondChild()); } } } });
public void postBuild(DescriptorEvent event) { RelationExpression expression = (RelationExpression)event.getObject(); if ((expression.getFirstChild() != null) && (expression.getSecondChild() != null)) { if (expression.getSecondChild().isValueExpression()) { expression.getSecondChild().setLocalBase(expression.getFirstChild()); } if (expression.getFirstChild().isValueExpression()) { expression.getFirstChild().setLocalBase(expression.getSecondChild()); } } } });
@Override public void postBuild(DescriptorEvent event) { RelationExpression expression = (RelationExpression)event.getObject(); if ((expression.getFirstChild() != null) && (expression.getSecondChild() != null)) { if (expression.getSecondChild().isValueExpression()) { expression.getSecondChild().setLocalBase(expression.getFirstChild()); } if (expression.getFirstChild().isValueExpression()) { expression.getFirstChild().setLocalBase(expression.getSecondChild()); } } } });
if (!(((InternalExpression) value).isLiteral() || ((InternalExpression) value).isParameter())) { RelationExpression baseIn = (RelationExpression) this.currentNode; this.currentNode = baseIn.getFirstChild().in(((SubQueryImpl) value).subQuery); if (this.parentNode != null) { if (this.parentNode.isCompoundExpression()) { if (this.currentNode.isRelationExpression()) { RelationExpression baseIn = (RelationExpression) this.currentNode; ((InternalSelection) value).getCurrentNode().setLocalBase(baseIn.getFirstChild()); ((Collection) ((CollectionExpression) baseIn.getSecondChild()).getValue()).add(((InternalSelection) value).getCurrentNode()); } else {
if (expression.isRelationExpression()) { RelationExpression relation = (RelationExpression)expression; Object left = extractValueFromExpression(relation.getFirstChild(), query); Object right = extractValueFromExpression(relation.getSecondChild(), query); if (relation.getOperator().getSelector() == ExpressionOperator.Equal) { if (expr.isRelationExpression()) { RelationExpression relation = (RelationExpression)expr; Object left = extractValueFromExpression(relation.getFirstChild(), query); Object right = extractValueFromExpression(relation.getSecondChild(), query);