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

    boolean this_present_oldDbName = true && this.isSetOldDbName();
    boolean that_present_oldDbName = true && that.isSetOldDbName();
    if (this_present_oldDbName || that_present_oldDbName) {
      if (!(this_present_oldDbName && that_present_oldDbName))
        return false;
      if (!this.oldDbName.equals(that.oldDbName))
        return false;
    }

    boolean this_present_newDb = true && this.isSetNewDb();
    boolean that_present_newDb = true && that.isSetNewDb();
    if (this_present_newDb || that_present_newDb) {
      if (!(this_present_newDb && that_present_newDb))
        return false;
      if (!this.newDb.equals(that.newDb))
        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/AlterDatabaseRequest.java