Subversion Repositories SmartDukaan

Rev

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

Rev 5739 Rev 5813
Line 31... Line 31...
31
  private static final org.apache.thrift.protocol.TField CITY_FIELD_DESC = new org.apache.thrift.protocol.TField("city", org.apache.thrift.protocol.TType.STRING, (short)6);
31
  private static final org.apache.thrift.protocol.TField CITY_FIELD_DESC = new org.apache.thrift.protocol.TField("city", org.apache.thrift.protocol.TType.STRING, (short)6);
32
  private static final org.apache.thrift.protocol.TField STATE_FIELD_DESC = new org.apache.thrift.protocol.TField("state", org.apache.thrift.protocol.TType.STRING, (short)7);
32
  private static final org.apache.thrift.protocol.TField STATE_FIELD_DESC = new org.apache.thrift.protocol.TField("state", org.apache.thrift.protocol.TType.STRING, (short)7);
33
  private static final org.apache.thrift.protocol.TField PIN_FIELD_DESC = new org.apache.thrift.protocol.TField("pin", org.apache.thrift.protocol.TType.STRING, (short)8);
33
  private static final org.apache.thrift.protocol.TField PIN_FIELD_DESC = new org.apache.thrift.protocol.TField("pin", org.apache.thrift.protocol.TType.STRING, (short)8);
34
  private static final org.apache.thrift.protocol.TField PHONE_FIELD_DESC = new org.apache.thrift.protocol.TField("phone", org.apache.thrift.protocol.TType.STRING, (short)9);
34
  private static final org.apache.thrift.protocol.TField PHONE_FIELD_DESC = new org.apache.thrift.protocol.TField("phone", org.apache.thrift.protocol.TType.STRING, (short)9);
35
  private static final org.apache.thrift.protocol.TField ZONE_FIELD_DESC = new org.apache.thrift.protocol.TField("zone", org.apache.thrift.protocol.TType.STRING, (short)10);
35
  private static final org.apache.thrift.protocol.TField ZONE_FIELD_DESC = new org.apache.thrift.protocol.TField("zone", org.apache.thrift.protocol.TType.STRING, (short)10);
-
 
36
  private static final org.apache.thrift.protocol.TField BDM_FIELD_DESC = new org.apache.thrift.protocol.TField("bdm", org.apache.thrift.protocol.TType.STRING, (short)11);
-
 
37
  private static final org.apache.thrift.protocol.TField BDM_EMAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("bdmEmail", org.apache.thrift.protocol.TType.STRING, (short)12);
36
 
38
 
37
  private long id; // required
39
  private long id; // required
38
  private String hotspotId; // required
40
  private String hotspotId; // required
39
  private String name; // required
41
  private String name; // required
40
  private String line1; // required
42
  private String line1; // required
Line 42... Line 44...
42
  private String city; // required
44
  private String city; // required
43
  private String state; // required
45
  private String state; // required
44
  private String pin; // required
46
  private String pin; // required
45
  private String phone; // required
47
  private String phone; // required
46
  private String zone; // required
48
  private String zone; // required
-
 
49
  private String bdm; // required
-
 
50
  private String bdmEmail; // required
47
 
51
 
48
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
52
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
49
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
53
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
50
    ID((short)1, "id"),
54
    ID((short)1, "id"),
51
    HOTSPOT_ID((short)2, "hotspotId"),
55
    HOTSPOT_ID((short)2, "hotspotId"),
Line 54... Line 58...
54
    LINE2((short)5, "line2"),
58
    LINE2((short)5, "line2"),
55
    CITY((short)6, "city"),
59
    CITY((short)6, "city"),
56
    STATE((short)7, "state"),
60
    STATE((short)7, "state"),
57
    PIN((short)8, "pin"),
61
    PIN((short)8, "pin"),
58
    PHONE((short)9, "phone"),
62
    PHONE((short)9, "phone"),
59
    ZONE((short)10, "zone");
63
    ZONE((short)10, "zone"),
-
 
64
    BDM((short)11, "bdm"),
-
 
65
    BDM_EMAIL((short)12, "bdmEmail");
60
 
66
 
61
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
67
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
62
 
68
 
63
    static {
69
    static {
64
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
70
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 89... Line 95...
89
          return PIN;
95
          return PIN;
90
        case 9: // PHONE
96
        case 9: // PHONE
91
          return PHONE;
97
          return PHONE;
92
        case 10: // ZONE
98
        case 10: // ZONE
93
          return ZONE;
99
          return ZONE;
-
 
100
        case 11: // BDM
-
 
101
          return BDM;
-
 
102
        case 12: // BDM_EMAIL
-
 
103
          return BDM_EMAIL;
94
        default:
104
        default:
95
          return null;
105
          return null;
96
      }
106
      }
97
    }
107
    }
98
 
108
 
Line 155... Line 165...
155
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
165
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
156
    tmpMap.put(_Fields.PHONE, new org.apache.thrift.meta_data.FieldMetaData("phone", org.apache.thrift.TFieldRequirementType.DEFAULT, 
166
    tmpMap.put(_Fields.PHONE, new org.apache.thrift.meta_data.FieldMetaData("phone", org.apache.thrift.TFieldRequirementType.DEFAULT, 
157
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
167
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
158
    tmpMap.put(_Fields.ZONE, new org.apache.thrift.meta_data.FieldMetaData("zone", org.apache.thrift.TFieldRequirementType.DEFAULT, 
168
    tmpMap.put(_Fields.ZONE, new org.apache.thrift.meta_data.FieldMetaData("zone", org.apache.thrift.TFieldRequirementType.DEFAULT, 
159
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
169
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
170
    tmpMap.put(_Fields.BDM, new org.apache.thrift.meta_data.FieldMetaData("bdm", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
171
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
172
    tmpMap.put(_Fields.BDM_EMAIL, new org.apache.thrift.meta_data.FieldMetaData("bdmEmail", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
173
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
160
    metaDataMap = Collections.unmodifiableMap(tmpMap);
174
    metaDataMap = Collections.unmodifiableMap(tmpMap);
161
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(PickupStore.class, metaDataMap);
175
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(PickupStore.class, metaDataMap);
162
  }
176
  }
163
 
177
 
164
  public PickupStore() {
178
  public PickupStore() {
Line 172... Line 186...
172
    String line2,
186
    String line2,
173
    String city,
187
    String city,
174
    String state,
188
    String state,
175
    String pin,
189
    String pin,
176
    String phone,
190
    String phone,
177
    String zone)
191
    String zone,
-
 
192
    String bdm,
-
 
193
    String bdmEmail)
178
  {
194
  {
179
    this();
195
    this();
180
    this.id = id;
196
    this.id = id;
181
    setIdIsSet(true);
197
    setIdIsSet(true);
182
    this.hotspotId = hotspotId;
198
    this.hotspotId = hotspotId;
Line 186... Line 202...
186
    this.city = city;
202
    this.city = city;
187
    this.state = state;
203
    this.state = state;
188
    this.pin = pin;
204
    this.pin = pin;
189
    this.phone = phone;
205
    this.phone = phone;
190
    this.zone = zone;
206
    this.zone = zone;
-
 
207
    this.bdm = bdm;
-
 
208
    this.bdmEmail = bdmEmail;
191
  }
209
  }
192
 
210
 
193
  /**
211
  /**
194
   * Performs a deep copy on <i>other</i>.
212
   * Performs a deep copy on <i>other</i>.
195
   */
213
   */
Line 222... Line 240...
222
      this.phone = other.phone;
240
      this.phone = other.phone;
223
    }
241
    }
224
    if (other.isSetZone()) {
242
    if (other.isSetZone()) {
225
      this.zone = other.zone;
243
      this.zone = other.zone;
226
    }
244
    }
-
 
245
    if (other.isSetBdm()) {
-
 
246
      this.bdm = other.bdm;
-
 
247
    }
-
 
248
    if (other.isSetBdmEmail()) {
-
 
249
      this.bdmEmail = other.bdmEmail;
-
 
250
    }
227
  }
251
  }
228
 
252
 
229
  public PickupStore deepCopy() {
253
  public PickupStore deepCopy() {
230
    return new PickupStore(this);
254
    return new PickupStore(this);
231
  }
255
  }
Line 241... Line 265...
241
    this.city = null;
265
    this.city = null;
242
    this.state = null;
266
    this.state = null;
243
    this.pin = null;
267
    this.pin = null;
244
    this.phone = null;
268
    this.phone = null;
245
    this.zone = null;
269
    this.zone = null;
-
 
270
    this.bdm = null;
-
 
271
    this.bdmEmail = null;
246
  }
272
  }
247
 
273
 
248
  public long getId() {
274
  public long getId() {
249
    return this.id;
275
    return this.id;
250
  }
276
  }
Line 472... Line 498...
472
    if (!value) {
498
    if (!value) {
473
      this.zone = null;
499
      this.zone = null;
474
    }
500
    }
475
  }
501
  }
476
 
502
 
-
 
503
  public String getBdm() {
-
 
504
    return this.bdm;
-
 
505
  }
-
 
506
 
-
 
507
  public void setBdm(String bdm) {
-
 
508
    this.bdm = bdm;
-
 
509
  }
-
 
510
 
-
 
511
  public void unsetBdm() {
-
 
512
    this.bdm = null;
-
 
513
  }
-
 
514
 
-
 
515
  /** Returns true if field bdm is set (has been assigned a value) and false otherwise */
-
 
516
  public boolean isSetBdm() {
-
 
517
    return this.bdm != null;
-
 
518
  }
-
 
519
 
-
 
520
  public void setBdmIsSet(boolean value) {
-
 
521
    if (!value) {
-
 
522
      this.bdm = null;
-
 
523
    }
-
 
524
  }
-
 
525
 
-
 
526
  public String getBdmEmail() {
-
 
527
    return this.bdmEmail;
-
 
528
  }
-
 
529
 
-
 
530
  public void setBdmEmail(String bdmEmail) {
-
 
531
    this.bdmEmail = bdmEmail;
-
 
532
  }
-
 
533
 
-
 
534
  public void unsetBdmEmail() {
-
 
535
    this.bdmEmail = null;
-
 
536
  }
-
 
537
 
-
 
538
  /** Returns true if field bdmEmail is set (has been assigned a value) and false otherwise */
-
 
539
  public boolean isSetBdmEmail() {
-
 
540
    return this.bdmEmail != null;
-
 
541
  }
-
 
542
 
-
 
543
  public void setBdmEmailIsSet(boolean value) {
-
 
544
    if (!value) {
-
 
545
      this.bdmEmail = null;
-
 
546
    }
-
 
547
  }
-
 
548
 
477
  public void setFieldValue(_Fields field, Object value) {
549
  public void setFieldValue(_Fields field, Object value) {
478
    switch (field) {
550
    switch (field) {
479
    case ID:
551
    case ID:
480
      if (value == null) {
552
      if (value == null) {
481
        unsetId();
553
        unsetId();
Line 554... Line 626...
554
      } else {
626
      } else {
555
        setZone((String)value);
627
        setZone((String)value);
556
      }
628
      }
557
      break;
629
      break;
558
 
630
 
-
 
631
    case BDM:
-
 
632
      if (value == null) {
-
 
633
        unsetBdm();
-
 
634
      } else {
-
 
635
        setBdm((String)value);
-
 
636
      }
-
 
637
      break;
-
 
638
 
-
 
639
    case BDM_EMAIL:
-
 
640
      if (value == null) {
-
 
641
        unsetBdmEmail();
-
 
642
      } else {
-
 
643
        setBdmEmail((String)value);
-
 
644
      }
-
 
645
      break;
-
 
646
 
559
    }
647
    }
560
  }
648
  }
561
 
649
 
562
  public Object getFieldValue(_Fields field) {
650
  public Object getFieldValue(_Fields field) {
563
    switch (field) {
651
    switch (field) {
Line 589... Line 677...
589
      return getPhone();
677
      return getPhone();
590
 
678
 
591
    case ZONE:
679
    case ZONE:
592
      return getZone();
680
      return getZone();
593
 
681
 
-
 
682
    case BDM:
-
 
683
      return getBdm();
-
 
684
 
-
 
685
    case BDM_EMAIL:
-
 
686
      return getBdmEmail();
-
 
687
 
594
    }
688
    }
595
    throw new IllegalStateException();
689
    throw new IllegalStateException();
596
  }
690
  }
597
 
691
 
598
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
692
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 620... Line 714...
620
      return isSetPin();
714
      return isSetPin();
621
    case PHONE:
715
    case PHONE:
622
      return isSetPhone();
716
      return isSetPhone();
623
    case ZONE:
717
    case ZONE:
624
      return isSetZone();
718
      return isSetZone();
-
 
719
    case BDM:
-
 
720
      return isSetBdm();
-
 
721
    case BDM_EMAIL:
-
 
722
      return isSetBdmEmail();
625
    }
723
    }
626
    throw new IllegalStateException();
724
    throw new IllegalStateException();
627
  }
725
  }
628
 
726
 
629
  @Override
727
  @Override
Line 727... Line 825...
727
        return false;
825
        return false;
728
      if (!this.zone.equals(that.zone))
826
      if (!this.zone.equals(that.zone))
729
        return false;
827
        return false;
730
    }
828
    }
731
 
829
 
-
 
830
    boolean this_present_bdm = true && this.isSetBdm();
-
 
831
    boolean that_present_bdm = true && that.isSetBdm();
-
 
832
    if (this_present_bdm || that_present_bdm) {
-
 
833
      if (!(this_present_bdm && that_present_bdm))
-
 
834
        return false;
-
 
835
      if (!this.bdm.equals(that.bdm))
-
 
836
        return false;
-
 
837
    }
-
 
838
 
-
 
839
    boolean this_present_bdmEmail = true && this.isSetBdmEmail();
-
 
840
    boolean that_present_bdmEmail = true && that.isSetBdmEmail();
-
 
841
    if (this_present_bdmEmail || that_present_bdmEmail) {
-
 
842
      if (!(this_present_bdmEmail && that_present_bdmEmail))
-
 
843
        return false;
-
 
844
      if (!this.bdmEmail.equals(that.bdmEmail))
-
 
845
        return false;
-
 
846
    }
-
 
847
 
732
    return true;
848
    return true;
733
  }
849
  }
734
 
850
 
735
  @Override
851
  @Override
736
  public int hashCode() {
852
  public int hashCode() {
Line 843... Line 959...
843
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.zone, typedOther.zone);
959
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.zone, typedOther.zone);
844
      if (lastComparison != 0) {
960
      if (lastComparison != 0) {
845
        return lastComparison;
961
        return lastComparison;
846
      }
962
      }
847
    }
963
    }
-
 
964
    lastComparison = Boolean.valueOf(isSetBdm()).compareTo(typedOther.isSetBdm());
-
 
965
    if (lastComparison != 0) {
-
 
966
      return lastComparison;
-
 
967
    }
-
 
968
    if (isSetBdm()) {
-
 
969
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bdm, typedOther.bdm);
-
 
970
      if (lastComparison != 0) {
-
 
971
        return lastComparison;
-
 
972
      }
-
 
973
    }
-
 
974
    lastComparison = Boolean.valueOf(isSetBdmEmail()).compareTo(typedOther.isSetBdmEmail());
-
 
975
    if (lastComparison != 0) {
-
 
976
      return lastComparison;
-
 
977
    }
-
 
978
    if (isSetBdmEmail()) {
-
 
979
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bdmEmail, typedOther.bdmEmail);
-
 
980
      if (lastComparison != 0) {
-
 
981
        return lastComparison;
-
 
982
      }
-
 
983
    }
848
    return 0;
984
    return 0;
849
  }
985
  }
850
 
986
 
851
  public _Fields fieldForId(int fieldId) {
987
  public _Fields fieldForId(int fieldId) {
852
    return _Fields.findByThriftId(fieldId);
988
    return _Fields.findByThriftId(fieldId);
Line 931... Line 1067...
931
            this.zone = iprot.readString();
1067
            this.zone = iprot.readString();
932
          } else { 
1068
          } else { 
933
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1069
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
934
          }
1070
          }
935
          break;
1071
          break;
-
 
1072
        case 11: // BDM
-
 
1073
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
1074
            this.bdm = iprot.readString();
-
 
1075
          } else { 
-
 
1076
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1077
          }
-
 
1078
          break;
-
 
1079
        case 12: // BDM_EMAIL
-
 
1080
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
1081
            this.bdmEmail = iprot.readString();
-
 
1082
          } else { 
-
 
1083
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1084
          }
-
 
1085
          break;
936
        default:
1086
        default:
937
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1087
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
938
      }
1088
      }
939
      iprot.readFieldEnd();
1089
      iprot.readFieldEnd();
940
    }
1090
    }
Line 992... Line 1142...
992
    if (this.zone != null) {
1142
    if (this.zone != null) {
993
      oprot.writeFieldBegin(ZONE_FIELD_DESC);
1143
      oprot.writeFieldBegin(ZONE_FIELD_DESC);
994
      oprot.writeString(this.zone);
1144
      oprot.writeString(this.zone);
995
      oprot.writeFieldEnd();
1145
      oprot.writeFieldEnd();
996
    }
1146
    }
-
 
1147
    if (this.bdm != null) {
-
 
1148
      oprot.writeFieldBegin(BDM_FIELD_DESC);
-
 
1149
      oprot.writeString(this.bdm);
-
 
1150
      oprot.writeFieldEnd();
-
 
1151
    }
-
 
1152
    if (this.bdmEmail != null) {
-
 
1153
      oprot.writeFieldBegin(BDM_EMAIL_FIELD_DESC);
-
 
1154
      oprot.writeString(this.bdmEmail);
-
 
1155
      oprot.writeFieldEnd();
-
 
1156
    }
997
    oprot.writeFieldStop();
1157
    oprot.writeFieldStop();
998
    oprot.writeStructEnd();
1158
    oprot.writeStructEnd();
999
  }
1159
  }
1000
 
1160
 
1001
  @Override
1161
  @Override
Line 1076... Line 1236...
1076
      sb.append("null");
1236
      sb.append("null");
1077
    } else {
1237
    } else {
1078
      sb.append(this.zone);
1238
      sb.append(this.zone);
1079
    }
1239
    }
1080
    first = false;
1240
    first = false;
-
 
1241
    if (!first) sb.append(", ");
-
 
1242
    sb.append("bdm:");
-
 
1243
    if (this.bdm == null) {
-
 
1244
      sb.append("null");
-
 
1245
    } else {
-
 
1246
      sb.append(this.bdm);
-
 
1247
    }
-
 
1248
    first = false;
-
 
1249
    if (!first) sb.append(", ");
-
 
1250
    sb.append("bdmEmail:");
-
 
1251
    if (this.bdmEmail == null) {
-
 
1252
      sb.append("null");
-
 
1253
    } else {
-
 
1254
      sb.append(this.bdmEmail);
-
 
1255
    }
-
 
1256
    first = false;
1081
    sb.append(")");
1257
    sb.append(")");
1082
    return sb.toString();
1258
    return sb.toString();
1083
  }
1259
  }
1084
 
1260
 
1085
  public void validate() throws org.apache.thrift.TException {
1261
  public void validate() throws org.apache.thrift.TException {