/** * INTERNAL: * Return if the expression is equal to the other. * This is used to allow dynamic expression's SQL to be cached. */ public boolean equals(Object object) { if (this == object) { return true; } if (!super.equals(object)) { return false; } CompoundExpression expression = (CompoundExpression) object; return ((this.operator == expression.operator) || ((this.operator != null) && this.operator.equals(expression.operator))) && ((this.firstChild == expression.firstChild) || ((this.firstChild != null) && this.firstChild.equals(expression.firstChild))) && ((this.secondChild == expression.secondChild) || ((this.secondChild != null) && this.secondChild.equals(expression.secondChild))); }
/** * INTERNAL: * Return if the expression is equal to the other. * This is used to allow dynamic expression's SQL to be cached. */ public boolean equals(Object object) { if (this == object) { return true; } if (!super.equals(object)) { return false; } CompoundExpression expression = (CompoundExpression) object; return ((this.operator == expression.operator) || ((this.operator != null) && this.operator.equals(expression.operator))) && ((this.firstChild == expression.firstChild) || ((this.firstChild != null) && this.firstChild.equals(expression.firstChild))) && ((this.secondChild == expression.secondChild) || ((this.secondChild != null) && this.secondChild.equals(expression.secondChild))); }
/** * INTERNAL: * Return if the expression is equal to the other. * This is used to allow dynamic expression's SQL to be cached. */ public boolean equals(Object object) { if (this == object) { return true; } if (!super.equals(object)) { return false; } CompoundExpression expression = (CompoundExpression) object; return ((this.operator == expression.operator) || ((this.operator != null) && this.operator.equals(expression.operator))) && ((this.firstChild == expression.firstChild) || ((this.firstChild != null) && this.firstChild.equals(expression.firstChild))) && ((this.secondChild == expression.secondChild) || ((this.secondChild != null) && this.secondChild.equals(expression.secondChild))); }
if ((this.operator != expression.getOperator()) && ((this.operator == null) || (!this.operator.equals(expression.getOperator())))) { return false;
if ((this.operator != expression.getOperator()) && ((this.operator == null) || (!this.operator.equals(expression.getOperator())))) { return false;
if ((getOperator() != expression.getOperator()) && ((getOperator() == null) || (!getOperator().equals(expression.getOperator())))) { return false;
if (mapping == null && this.attributeExpression.isFunctionExpression() && this.getResultType() == null){ FunctionExpression expression = ((FunctionExpression)this.attributeExpression); if (expression.getOperator().equals(ExpressionOperator.maximum()) || expression.getOperator().equals(ExpressionOperator.minimum())){ mapping = expression.getBaseExpression().getLeafMapping(query, query.getDescriptor(), query.getSession());
if (mapping == null && this.attributeExpression.isFunctionExpression() && this.getResultType() == null){ FunctionExpression expression = ((FunctionExpression)this.attributeExpression); if (expression.getOperator().equals(ExpressionOperator.maximum()) || expression.getOperator().equals(ExpressionOperator.minimum())){ mapping = expression.getBaseExpression().getLeafMapping(query, query.getDescriptor(), query.getSession());