/** * Compares this criteria to another object for equality * @param obj Other object * @return True if objects are equal */ public boolean equals(Object obj) { if(this == obj) { return true; } if(! (obj instanceof IsDistinctCriteria)) { return false; } IsDistinctCriteria other = (IsDistinctCriteria) obj; if (isNegated() ^ other.isNegated()) { return false; } return EquivalenceUtil.areEqual(leftRowValue, other.leftRowValue) && EquivalenceUtil.areEqual(rightRowValue, other.rightRowValue); }
/** * Compares this criteria to another object for equality * @param obj Other object * @return True if objects are equal */ public boolean equals(Object obj) { if(this == obj) { return true; } if(! (obj instanceof IsDistinctCriteria)) { return false; } IsDistinctCriteria other = (IsDistinctCriteria) obj; if (isNegated() ^ other.isNegated()) { return false; } return EquivalenceUtil.areEqual(leftRowValue, other.leftRowValue) && EquivalenceUtil.areEqual(rightRowValue, other.rightRowValue); }
/** * Compares this criteria to another object for equality * @param obj Other object * @return True if objects are equal */ public boolean equals(Object obj) { if(this == obj) { return true; } if(! (obj instanceof IsDistinctCriteria)) { return false; } IsDistinctCriteria other = (IsDistinctCriteria) obj; if (isNegated() ^ other.isNegated()) { return false; } return EquivalenceUtil.areEqual(leftRowValue, other.leftRowValue) && EquivalenceUtil.areEqual(rightRowValue, other.rightRowValue); }
org.teiid.language.IsDistinct translate(IsDistinctCriteria criteria) { return new IsDistinct(translate((Expression) criteria.getLeftRowValue()), translate((Expression)criteria.getRightRowValue()), criteria.isNegated()); }
org.teiid.language.IsDistinct translate(IsDistinctCriteria criteria) { return new IsDistinct(translate((Expression) criteria.getLeftRowValue()), translate((Expression)criteria.getRightRowValue()), criteria.isNegated()); }
/** * Deep copy of object * @return Deep copy of object */ public Object clone() { IsDistinctCriteria criteriaCopy = new IsDistinctCriteria(); criteriaCopy.setNegated(isNegated()); criteriaCopy.setLeftRowValue((LanguageObject)this.leftRowValue.clone()); criteriaCopy.setRightRowValue((LanguageObject)this.rightRowValue.clone()); return criteriaCopy; }
/** * Deep copy of object * @return Deep copy of object */ public Object clone() { IsDistinctCriteria criteriaCopy = new IsDistinctCriteria(); criteriaCopy.setNegated(isNegated()); criteriaCopy.setLeftRowValue((LanguageObject)this.leftRowValue.clone()); criteriaCopy.setRightRowValue((LanguageObject)this.rightRowValue.clone()); return criteriaCopy; }
List<TempMetadataID> colsOther = right.getElements(); if (cols.size() != colsOther.size()) { return !idc.isNegated(); if (l == null) { if (r != null) { if (idc.isNegated()) { return false; if (idc.isNegated()) { return false; if (idc.isNegated()) { return false; if (idc.isNegated()) { return false; if (idc.isNegated()) { return true;
/** * Deep copy of object * @return Deep copy of object */ public Object clone() { IsDistinctCriteria criteriaCopy = new IsDistinctCriteria(); criteriaCopy.setNegated(isNegated()); criteriaCopy.setLeftRowValue(this.getLeftRowValue().clone()); criteriaCopy.setRightRowValue(this.getRightRowValue().clone()); return criteriaCopy; }
@Override public void visit(IsDistinctCriteria isDistinctCriteria) { append(isDistinctCriteria.getLeftRowValue()); append(SPACE); append(IS); append(SPACE); if (isDistinctCriteria.isNegated()) { append(NOT); append(SPACE); } append(DISTINCT); append(SPACE); append(FROM); append(SPACE); append(isDistinctCriteria.getRightRowValue()); }
@Override public void visit(IsDistinctCriteria isDistinctCriteria) { append(isDistinctCriteria.getLeftRowValue()); append(SPACE); append(IS); append(SPACE); if (isDistinctCriteria.isNegated()) { append(NOT); append(SPACE); } append(DISTINCT); append(SPACE); append(FROM); append(SPACE); append(isDistinctCriteria.getRightRowValue()); }
@Override public void visit(IsDistinctCriteria isDistinctCriteria) { append(isDistinctCriteria.getLeftRowValue()); append(SPACE); append(IS); append(SPACE); if (isDistinctCriteria.isNegated()) { append(NOT); append(SPACE); } append(DISTINCT); append(SPACE); append(FROM); append(SPACE); append(isDistinctCriteria.getRightRowValue()); }