Package org.apache.metamodel.util

Examples of org.apache.metamodel.util.EqualsBuilder


    if (obj == this) {
      return true;
    }
    if (getClass() == obj.getClass()) {
      DataSetTableModel that = (DataSetTableModel) obj;
      EqualsBuilder eb = new EqualsBuilder();
      eb.append(_materializedRows, that._materializedRows);
      eb.append(_selectItems, that._selectItems);
      return eb.isEquals();
    }
    return false;
  }
View Full Code Here


        if (obj == this) {
            return true;
        }
        if (obj instanceof Schema) {
            Schema other = (Schema) obj;
            EqualsBuilder eb = new EqualsBuilder();
            eb.append(getName(), other.getName());
            eb.append(getQuote(), other.getQuote());
            if (eb.isEquals()) {
                try {
                    int tableCount1 = getTableCount();
                    int tableCount2 = other.getTableCount();
                    eb.append(tableCount1, tableCount2);
                } catch (Exception e) {
                    // might occur when schemas are disconnected. Omit this check then.
                }
            }
            return eb.isEquals();
        }
        return false;
    }
View Full Code Here

        }
        if (that == this) {
            return true;
        }

        EqualsBuilder eb = new EqualsBuilder();
        if (exactColumnCompare) {
            eb.append(this._column == that._column);
            eb.append(this._fromItem, that._fromItem);
        } else {
            eb.append(this._column, that._column);
        }
        eb.append(this._function, that._function);
        eb.append(this._functionApproximationAllowed, that._functionApproximationAllowed);
        eb.append(this._expression, that._expression);
        if (_subQuerySelectItem != null) {
            eb.append(_subQuerySelectItem.equalsIgnoreAlias(that._subQuerySelectItem));
        } else {
            if (that._subQuerySelectItem != null) {
                eb.append(false);
            }
        }
        return eb.isEquals();
    }
View Full Code Here

TOP

Related Classes of org.apache.metamodel.util.EqualsBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.