Subversion Repositories SmartDukaan

Rev

Rev 3028 | Rev 3430 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3028 Rev 3168
Line 107... Line 107...
107
        new FieldValueMetaData(TType.I64)));
107
        new FieldValueMetaData(TType.I64)));
108
    put(_Fields.NAME, new FieldMetaData("name", TFieldRequirementType.DEFAULT, 
108
    put(_Fields.NAME, new FieldMetaData("name", TFieldRequirementType.DEFAULT, 
109
        new FieldValueMetaData(TType.STRING)));
109
        new FieldValueMetaData(TType.STRING)));
110
    put(_Fields.EMAIL_ID, new FieldMetaData("emailId", TFieldRequirementType.DEFAULT, 
110
    put(_Fields.EMAIL_ID, new FieldMetaData("emailId", TFieldRequirementType.DEFAULT, 
111
        new FieldValueMetaData(TType.STRING)));
111
        new FieldValueMetaData(TType.STRING)));
112
    put(_Fields.MANAGER_ID, new FieldMetaData("managerId", TFieldRequirementType.DEFAULT, 
112
    put(_Fields.MANAGER_ID, new FieldMetaData("managerId", TFieldRequirementType.OPTIONAL, 
113
        new FieldValueMetaData(TType.I64)));
113
        new FieldValueMetaData(TType.I64)));
114
    put(_Fields.PASSWORD, new FieldMetaData("password", TFieldRequirementType.DEFAULT, 
114
    put(_Fields.PASSWORD, new FieldMetaData("password", TFieldRequirementType.DEFAULT, 
115
        new FieldValueMetaData(TType.STRING)));
115
        new FieldValueMetaData(TType.STRING)));
116
  }});
116
  }});
117
 
117
 
Line 124... Line 124...
124
 
124
 
125
  public Agent(
125
  public Agent(
126
    long id,
126
    long id,
127
    String name,
127
    String name,
128
    String emailId,
128
    String emailId,
129
    long managerId,
-
 
130
    String password)
129
    String password)
131
  {
130
  {
132
    this();
131
    this();
133
    this.id = id;
132
    this.id = id;
134
    setIdIsSet(true);
133
    setIdIsSet(true);
135
    this.name = name;
134
    this.name = name;
136
    this.emailId = emailId;
135
    this.emailId = emailId;
137
    this.managerId = managerId;
-
 
138
    setManagerIdIsSet(true);
-
 
139
    this.password = password;
136
    this.password = password;
140
  }
137
  }
141
 
138
 
142
  /**
139
  /**
143
   * Performs a deep copy on <i>other</i>.
140
   * Performs a deep copy on <i>other</i>.
Line 418... Line 415...
418
        return false;
415
        return false;
419
      if (!this.emailId.equals(that.emailId))
416
      if (!this.emailId.equals(that.emailId))
420
        return false;
417
        return false;
421
    }
418
    }
422
 
419
 
423
    boolean this_present_managerId = true;
420
    boolean this_present_managerId = true && this.isSetManagerId();
424
    boolean that_present_managerId = true;
421
    boolean that_present_managerId = true && that.isSetManagerId();
425
    if (this_present_managerId || that_present_managerId) {
422
    if (this_present_managerId || that_present_managerId) {
426
      if (!(this_present_managerId && that_present_managerId))
423
      if (!(this_present_managerId && that_present_managerId))
427
        return false;
424
        return false;
428
      if (this.managerId != that.managerId)
425
      if (this.managerId != that.managerId)
429
        return false;
426
        return false;
Line 571... Line 568...
571
    if (this.emailId != null) {
568
    if (this.emailId != null) {
572
      oprot.writeFieldBegin(EMAIL_ID_FIELD_DESC);
569
      oprot.writeFieldBegin(EMAIL_ID_FIELD_DESC);
573
      oprot.writeString(this.emailId);
570
      oprot.writeString(this.emailId);
574
      oprot.writeFieldEnd();
571
      oprot.writeFieldEnd();
575
    }
572
    }
-
 
573
    if (isSetManagerId()) {
576
    oprot.writeFieldBegin(MANAGER_ID_FIELD_DESC);
574
      oprot.writeFieldBegin(MANAGER_ID_FIELD_DESC);
577
    oprot.writeI64(this.managerId);
575
      oprot.writeI64(this.managerId);
578
    oprot.writeFieldEnd();
576
      oprot.writeFieldEnd();
-
 
577
    }
579
    if (this.password != null) {
578
    if (this.password != null) {
580
      oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
579
      oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
581
      oprot.writeString(this.password);
580
      oprot.writeString(this.password);
582
      oprot.writeFieldEnd();
581
      oprot.writeFieldEnd();
583
    }
582
    }
Line 607... Line 606...
607
      sb.append("null");
606
      sb.append("null");
608
    } else {
607
    } else {
609
      sb.append(this.emailId);
608
      sb.append(this.emailId);
610
    }
609
    }
611
    first = false;
610
    first = false;
-
 
611
    if (isSetManagerId()) {
612
    if (!first) sb.append(", ");
612
      if (!first) sb.append(", ");
613
    sb.append("managerId:");
613
      sb.append("managerId:");
614
    sb.append(this.managerId);
614
      sb.append(this.managerId);
615
    first = false;
615
      first = false;
-
 
616
    }
616
    if (!first) sb.append(", ");
617
    if (!first) sb.append(", ");
617
    sb.append("password:");
618
    sb.append("password:");
618
    if (this.password == null) {
619
    if (this.password == null) {
619
      sb.append("null");
620
      sb.append("null");
620
    } else {
621
    } else {