/** * Check whether objects are equal * @param obj Other object * @return True if equal */ public boolean equals(Object obj) { if (!super.equals(obj)) { return false; } if(! (obj instanceof SubqueryFromClause)) { return false; } SubqueryFromClause sfc = (SubqueryFromClause) obj; return this.getName().equalsIgnoreCase(sfc.getName()) && sfc.isOptional() == this.isOptional() && this.command.equals(sfc.command) && this.lateral == sfc.lateral; }
/** * Check whether objects are equal * @param obj Other object * @return True if equal */ public boolean equals(Object obj) { if (!super.equals(obj)) { return false; } if(! (obj instanceof SubqueryFromClause)) { return false; } SubqueryFromClause sfc = (SubqueryFromClause) obj; return this.getName().equalsIgnoreCase(sfc.getName()) && sfc.isOptional() == this.isOptional() && this.command.equals(sfc.command) && this.lateral == sfc.lateral; }
/** * Check whether objects are equal * @param obj Other object * @return True if equal */ public boolean equals(Object obj) { if (!super.equals(obj)) { return false; } if(! (obj instanceof SubqueryFromClause)) { return false; } SubqueryFromClause sfc = (SubqueryFromClause) obj; return this.getName().equalsIgnoreCase(sfc.getName()) && sfc.isOptional() == this.isOptional() && this.command.equals(sfc.command) && this.lateral == sfc.lateral; }
/** * Compare this object to another * @param obj Other object * @return True if equal */ public boolean equals(Object obj) { if (!super.equals(obj)) { return false; } if(!(obj instanceof JoinPredicate)) { return false; } JoinPredicate other = (JoinPredicate) obj; List thisCrit = this.getJoinCriteria(); if(thisCrit != null && thisCrit.size() == 0) { thisCrit = null; } List otherCrit = other.getJoinCriteria(); if(otherCrit != null && otherCrit.size() == 0) { otherCrit = null; } return EquivalenceUtil.areEqual(other.getJoinType(), this.getJoinType()) && EquivalenceUtil.areEqual(other.getLeftClause(), this.getLeftClause()) && EquivalenceUtil.areEqual(other.getRightClause(), this.getRightClause()) && EquivalenceUtil.areEqual(otherCrit, thisCrit); }
/** * Compare this object to another * @param obj Other object * @return True if equal */ public boolean equals(Object obj) { if (!super.equals(obj)) { return false; } if(!(obj instanceof JoinPredicate)) { return false; } JoinPredicate other = (JoinPredicate) obj; List thisCrit = this.getJoinCriteria(); if(thisCrit != null && thisCrit.size() == 0) { thisCrit = null; } List otherCrit = other.getJoinCriteria(); if(otherCrit != null && otherCrit.size() == 0) { otherCrit = null; } return EquivalenceUtil.areEqual(other.getJoinType(), this.getJoinType()) && EquivalenceUtil.areEqual(other.getLeftClause(), this.getLeftClause()) && EquivalenceUtil.areEqual(other.getRightClause(), this.getRightClause()) && EquivalenceUtil.areEqual(otherCrit, thisCrit); }
/** * Compare this object to another * @param obj Other object * @return True if equal */ public boolean equals(Object obj) { if (!super.equals(obj)) { return false; } if(!(obj instanceof JoinPredicate)) { return false; } JoinPredicate other = (JoinPredicate) obj; List thisCrit = this.getJoinCriteria(); if(thisCrit != null && thisCrit.size() == 0) { thisCrit = null; } List otherCrit = other.getJoinCriteria(); if(otherCrit != null && otherCrit.size() == 0) { otherCrit = null; } return EquivalenceUtil.areEqual(other.getJoinType(), this.getJoinType()) && EquivalenceUtil.areEqual(other.getLeftClause(), this.getLeftClause()) && EquivalenceUtil.areEqual(other.getRightClause(), this.getRightClause()) && EquivalenceUtil.areEqual(otherCrit, thisCrit); }
/** * Check whether objects are equal * @param obj Other object * @return True if equal */ public boolean equals(Object obj) { if (!super.equals(obj)) { return false; } if(! (obj instanceof UnaryFromClause)) { return false; } UnaryFromClause other = (UnaryFromClause)obj; if( EquivalenceUtil.areEqual(group.getDefinition(), other.getGroup().getDefinition()) ) { return EquivalenceUtil.areEqual(getGroup().getNonCorrelationName(), other.getGroup().getNonCorrelationName()) && other.isOptional() == this.isOptional() && EquivalenceUtil.areEqual(expandedCommand, other.expandedCommand); } return false; }
/** * Check whether objects are equal * @param obj Other object * @return True if equal */ public boolean equals(Object obj) { if (!super.equals(obj)) { return false; } if(! (obj instanceof UnaryFromClause)) { return false; } UnaryFromClause other = (UnaryFromClause)obj; if( EquivalenceUtil.areEqual(group.getDefinition(), other.getGroup().getDefinition()) ) { return EquivalenceUtil.areEqual(getGroup().getNonCorrelationName(), other.getGroup().getNonCorrelationName()) && other.isOptional() == this.isOptional() && EquivalenceUtil.areEqual(expandedCommand, other.expandedCommand); } return false; }
/** * Check whether objects are equal * @param obj Other object * @return True if equal */ public boolean equals(Object obj) { if (!super.equals(obj)) { return false; } if(! (obj instanceof UnaryFromClause)) { return false; } UnaryFromClause other = (UnaryFromClause)obj; if( EquivalenceUtil.areEqual(group.getDefinition(), other.getGroup().getDefinition()) ) { return EquivalenceUtil.areEqual(getGroup().getNonCorrelationName(), other.getGroup().getNonCorrelationName()) && other.isOptional() == this.isOptional() && EquivalenceUtil.areEqual(expandedCommand, other.expandedCommand); } return false; }