public boolean equals(SQLForeignKey that) {
    if (that == null)
      return false;
    if (this == that)
      return true;

    boolean this_present_pktable_db = true && this.isSetPktable_db();
    boolean that_present_pktable_db = true && that.isSetPktable_db();
    if (this_present_pktable_db || that_present_pktable_db) {
      if (!(this_present_pktable_db && that_present_pktable_db))
        return false;
      if (!this.pktable_db.equals(that.pktable_db))
        return false;
    }

    boolean this_present_pktable_name = true && this.isSetPktable_name();
    boolean that_present_pktable_name = true && that.isSetPktable_name();
    if (this_present_pktable_name || that_present_pktable_name) {
      if (!(this_present_pktable_name && that_present_pktable_name))
        return false;
      if (!this.pktable_name.equals(that.pktable_name))
        return false;
    }

    boolean this_present_pkcolumn_name = true && this.isSetPkcolumn_name();
    boolean that_present_pkcolumn_name = true && that.isSetPkcolumn_name();
    if (this_present_pkcolumn_name || that_present_pkcolumn_name) {
      if (!(this_present_pkcolumn_name && that_present_pkcolumn_name))
        return false;
      if (!this.pkcolumn_name.equals(that.pkcolumn_name))
        return false;
    }

    boolean this_present_fktable_db = true && this.isSetFktable_db();
    boolean that_present_fktable_db = true && that.isSetFktable_db();
    if (this_present_fktable_db || that_present_fktable_db) {
      if (!(this_present_fktable_db && that_present_fktable_db))
        return false;
      if (!this.fktable_db.equals(that.fktable_db))
        return false;
    }

    boolean this_present_fktable_name = true && this.isSetFktable_name();
    boolean that_present_fktable_name = true && that.isSetFktable_name();
    if (this_present_fktable_name || that_present_fktable_name) {
      if (!(this_present_fktable_name && that_present_fktable_name))
        return false;
      if (!this.fktable_name.equals(that.fktable_name))
        return false;
    }

    boolean this_present_fkcolumn_name = true && this.isSetFkcolumn_name();
    boolean that_present_fkcolumn_name = true && that.isSetFkcolumn_name();
    if (this_present_fkcolumn_name || that_present_fkcolumn_name) {
      if (!(this_present_fkcolumn_name && that_present_fkcolumn_name))
        return false;
      if (!this.fkcolumn_name.equals(that.fkcolumn_name))
        return false;
    }

    boolean this_present_key_seq = true;
    boolean that_present_key_seq = true;
    if (this_present_key_seq || that_present_key_seq) {
      if (!(this_present_key_seq && that_present_key_seq))
        return false;
      if (this.key_seq != that.key_seq)
        return false;
    }

    boolean this_present_update_rule = true;
    boolean that_present_update_rule = true;
    if (this_present_update_rule || that_present_update_rule) {
      if (!(this_present_update_rule && that_present_update_rule))
        return false;
      if (this.update_rule != that.update_rule)
        return false;
    }

    boolean this_present_delete_rule = true;
    boolean that_present_delete_rule = true;
    if (this_present_delete_rule || that_present_delete_rule) {
      if (!(this_present_delete_rule && that_present_delete_rule))
        return false;
      if (this.delete_rule != that.delete_rule)
        return false;
    }

    boolean this_present_fk_name = true && this.isSetFk_name();
    boolean that_present_fk_name = true && that.isSetFk_name();
    if (this_present_fk_name || that_present_fk_name) {
      if (!(this_present_fk_name && that_present_fk_name))
        return false;
      if (!this.fk_name.equals(that.fk_name))
        return false;
    }

    boolean this_present_pk_name = true && this.isSetPk_name();
    boolean that_present_pk_name = true && that.isSetPk_name();
    if (this_present_pk_name || that_present_pk_name) {
      if (!(this_present_pk_name && that_present_pk_name))
        return false;
      if (!this.pk_name.equals(that.pk_name))
        return false;
    }

    boolean this_present_enable_cstr = true;
    boolean that_present_enable_cstr = true;
    if (this_present_enable_cstr || that_present_enable_cstr) {
      if (!(this_present_enable_cstr && that_present_enable_cstr))
        return false;
      if (this.enable_cstr != that.enable_cstr)
        return false;
    }

    boolean this_present_validate_cstr = true;
    boolean that_present_validate_cstr = true;
    if (this_present_validate_cstr || that_present_validate_cstr) {
      if (!(this_present_validate_cstr && that_present_validate_cstr))
        return false;
      if (this.validate_cstr != that.validate_cstr)
        return false;
    }

    boolean this_present_rely_cstr = true;
    boolean that_present_rely_cstr = true;
    if (this_present_rely_cstr || that_present_rely_cstr) {
      if (!(this_present_rely_cstr && that_present_rely_cstr))
        return false;
      if (this.rely_cstr != that.rely_cstr)
        return false;
    }

    boolean this_present_catName = true && this.isSetCatName();
    boolean that_present_catName = true && that.isSetCatName();
    if (this_present_catName || that_present_catName) {
      if (!(this_present_catName && that_present_catName))
        return false;
      if (!this.catName.equals(that.catName))
        return false;
    }

    return true;
  }
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SQLForeignKey.java