Ejemplo n.º 1
0
 @Override
 public void write(org.apache.thrift.protocol.TProtocol prot, Appl struct)
     throws org.apache.thrift.TException {
   TTupleProtocol oprot = (TTupleProtocol) prot;
   BitSet optionals = new BitSet();
   if (struct.isSetId()) {
     optionals.set(0);
   }
   if (struct.isSetType()) {
     optionals.set(1);
   }
   if (struct.isSetExcuteAction()) {
     optionals.set(2);
   }
   if (struct.isSetExcuteDescribe()) {
     optionals.set(3);
   }
   if (struct.isSetPkgName()) {
     optionals.set(4);
   }
   if (struct.isSetLevel()) {
     optionals.set(5);
   }
   if (struct.isSetCategory()) {
     optionals.set(6);
   }
   if (struct.isSetName()) {
     optionals.set(7);
   }
   oprot.writeBitSet(optionals, 8);
   if (struct.isSetId()) {
     oprot.writeString(struct.id);
   }
   if (struct.isSetType()) {
     oprot.writeString(struct.type);
   }
   if (struct.isSetExcuteAction()) {
     oprot.writeI32(struct.excuteAction);
   }
   if (struct.isSetExcuteDescribe()) {
     oprot.writeString(struct.excuteDescribe);
   }
   if (struct.isSetPkgName()) {
     oprot.writeString(struct.pkgName);
   }
   if (struct.isSetLevel()) {
     oprot.writeString(struct.level);
   }
   if (struct.isSetCategory()) {
     oprot.writeString(struct.category);
   }
   if (struct.isSetName()) {
     oprot.writeString(struct.name);
   }
 }
Ejemplo n.º 2
0
 /** Performs a deep copy on <i>other</i>. */
 public Appl(Appl other) {
   __isset_bit_vector.clear();
   __isset_bit_vector.or(other.__isset_bit_vector);
   if (other.isSetId()) {
     this.id = other.id;
   }
   if (other.isSetType()) {
     this.type = other.type;
   }
   this.excuteAction = other.excuteAction;
   if (other.isSetExcuteDescribe()) {
     this.excuteDescribe = other.excuteDescribe;
   }
   if (other.isSetPkgName()) {
     this.pkgName = other.pkgName;
   }
   if (other.isSetLevel()) {
     this.level = other.level;
   }
   if (other.isSetCategory()) {
     this.category = other.category;
   }
   if (other.isSetName()) {
     this.name = other.name;
   }
 }
Ejemplo n.º 3
0
  public int compareTo(Appl other) {
    if (!getClass().equals(other.getClass())) {
      return getClass().getName().compareTo(other.getClass().getName());
    }

    int lastComparison = 0;
    Appl typedOther = (Appl) other;

    lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetId()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetType()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetExcuteAction()).compareTo(typedOther.isSetExcuteAction());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetExcuteAction()) {
      lastComparison =
          org.apache.thrift.TBaseHelper.compareTo(this.excuteAction, typedOther.excuteAction);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison =
        Boolean.valueOf(isSetExcuteDescribe()).compareTo(typedOther.isSetExcuteDescribe());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetExcuteDescribe()) {
      lastComparison =
          org.apache.thrift.TBaseHelper.compareTo(this.excuteDescribe, typedOther.excuteDescribe);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetPkgName()).compareTo(typedOther.isSetPkgName());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetPkgName()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pkgName, typedOther.pkgName);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetLevel()).compareTo(typedOther.isSetLevel());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetLevel()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.level, typedOther.level);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetCategory()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetName()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    return 0;
  }
Ejemplo n.º 4
0
  public boolean equals(Appl that) {
    if (that == null) return false;

    boolean this_present_id = true && this.isSetId();
    boolean that_present_id = true && that.isSetId();
    if (this_present_id || that_present_id) {
      if (!(this_present_id && that_present_id)) return false;
      if (!this.id.equals(that.id)) return false;
    }

    boolean this_present_type = true && this.isSetType();
    boolean that_present_type = true && that.isSetType();
    if (this_present_type || that_present_type) {
      if (!(this_present_type && that_present_type)) return false;
      if (!this.type.equals(that.type)) return false;
    }

    boolean this_present_excuteAction = true;
    boolean that_present_excuteAction = true;
    if (this_present_excuteAction || that_present_excuteAction) {
      if (!(this_present_excuteAction && that_present_excuteAction)) return false;
      if (this.excuteAction != that.excuteAction) return false;
    }

    boolean this_present_excuteDescribe = true && this.isSetExcuteDescribe();
    boolean that_present_excuteDescribe = true && that.isSetExcuteDescribe();
    if (this_present_excuteDescribe || that_present_excuteDescribe) {
      if (!(this_present_excuteDescribe && that_present_excuteDescribe)) return false;
      if (!this.excuteDescribe.equals(that.excuteDescribe)) return false;
    }

    boolean this_present_pkgName = true && this.isSetPkgName();
    boolean that_present_pkgName = true && that.isSetPkgName();
    if (this_present_pkgName || that_present_pkgName) {
      if (!(this_present_pkgName && that_present_pkgName)) return false;
      if (!this.pkgName.equals(that.pkgName)) return false;
    }

    boolean this_present_level = true && this.isSetLevel();
    boolean that_present_level = true && that.isSetLevel();
    if (this_present_level || that_present_level) {
      if (!(this_present_level && that_present_level)) return false;
      if (!this.level.equals(that.level)) return false;
    }

    boolean this_present_category = true && this.isSetCategory();
    boolean that_present_category = true && that.isSetCategory();
    if (this_present_category || that_present_category) {
      if (!(this_present_category && that_present_category)) return false;
      if (!this.category.equals(that.category)) return false;
    }

    boolean this_present_name = true && this.isSetName();
    boolean that_present_name = true && that.isSetName();
    if (this_present_name || that_present_name) {
      if (!(this_present_name && that_present_name)) return false;
      if (!this.name.equals(that.name)) return false;
    }

    return true;
  }