Subversion Repositories SmartDukaan

Rev

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

Rev 3853 Rev 5327
Line 32... Line 32...
32
  private static final org.apache.thrift.protocol.TField PASSWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("password", org.apache.thrift.protocol.TType.STRING, (short)3);
32
  private static final org.apache.thrift.protocol.TField PASSWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("password", org.apache.thrift.protocol.TType.STRING, (short)3);
33
  private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)4);
33
  private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)4);
34
  private static final org.apache.thrift.protocol.TField DATE_OF_BIRTH_FIELD_DESC = new org.apache.thrift.protocol.TField("dateOfBirth", org.apache.thrift.protocol.TType.STRING, (short)5);
34
  private static final org.apache.thrift.protocol.TField DATE_OF_BIRTH_FIELD_DESC = new org.apache.thrift.protocol.TField("dateOfBirth", org.apache.thrift.protocol.TType.STRING, (short)5);
35
  private static final org.apache.thrift.protocol.TField SEX_FIELD_DESC = new org.apache.thrift.protocol.TField("sex", org.apache.thrift.protocol.TType.I32, (short)6);
35
  private static final org.apache.thrift.protocol.TField SEX_FIELD_DESC = new org.apache.thrift.protocol.TField("sex", org.apache.thrift.protocol.TType.I32, (short)6);
36
  private static final org.apache.thrift.protocol.TField MOBILE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("mobileNumber", org.apache.thrift.protocol.TType.STRING, (short)7);
36
  private static final org.apache.thrift.protocol.TField MOBILE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("mobileNumber", org.apache.thrift.protocol.TType.STRING, (short)7);
-
 
37
  private static final org.apache.thrift.protocol.TField LAST_LOGIN_FIELD_DESC = new org.apache.thrift.protocol.TField("lastLogin", org.apache.thrift.protocol.TType.I64, (short)8);
-
 
38
  private static final org.apache.thrift.protocol.TField LAST_LOGOUT_FIELD_DESC = new org.apache.thrift.protocol.TField("lastLogout", org.apache.thrift.protocol.TType.I64, (short)9);
37
  private static final org.apache.thrift.protocol.TField SOCIAL_HANDLES_FIELD_DESC = new org.apache.thrift.protocol.TField("socialHandles", org.apache.thrift.protocol.TType.STRUCT, (short)8);
39
  private static final org.apache.thrift.protocol.TField ACTIVE_SINCE_FIELD_DESC = new org.apache.thrift.protocol.TField("activeSince", org.apache.thrift.protocol.TType.I64, (short)10);
38
  private static final org.apache.thrift.protocol.TField ADDRESSES_FIELD_DESC = new org.apache.thrift.protocol.TField("addresses", org.apache.thrift.protocol.TType.LIST, (short)9);
40
  private static final org.apache.thrift.protocol.TField ADDRESSES_FIELD_DESC = new org.apache.thrift.protocol.TField("addresses", org.apache.thrift.protocol.TType.LIST, (short)11);
39
  private static final org.apache.thrift.protocol.TField DEFAULT_ADDRESS_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("defaultAddressId", org.apache.thrift.protocol.TType.I64, (short)10);
41
  private static final org.apache.thrift.protocol.TField DEFAULT_ADDRESS_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("defaultAddressId", org.apache.thrift.protocol.TType.I64, (short)12);
40
  private static final org.apache.thrift.protocol.TField COMMUNICATION_EMAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("communicationEmail", org.apache.thrift.protocol.TType.STRING, (short)11);
42
  private static final org.apache.thrift.protocol.TField COMMUNICATION_EMAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("communicationEmail", org.apache.thrift.protocol.TType.STRING, (short)13);
41
  private static final org.apache.thrift.protocol.TField ACTIVE_CART_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("activeCartId", org.apache.thrift.protocol.TType.I64, (short)12);
43
  private static final org.apache.thrift.protocol.TField ACTIVE_CART_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("activeCartId", org.apache.thrift.protocol.TType.I64, (short)14);
42
  private static final org.apache.thrift.protocol.TField JSESSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("jsessionId", org.apache.thrift.protocol.TType.STRING, (short)13);
44
  private static final org.apache.thrift.protocol.TField JSESSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("jsessionId", org.apache.thrift.protocol.TType.STRING, (short)15);
43
  private static final org.apache.thrift.protocol.TField IS_ANONYMOUS_FIELD_DESC = new org.apache.thrift.protocol.TField("isAnonymous", org.apache.thrift.protocol.TType.BOOL, (short)14);
45
  private static final org.apache.thrift.protocol.TField IS_ANONYMOUS_FIELD_DESC = new org.apache.thrift.protocol.TField("isAnonymous", org.apache.thrift.protocol.TType.BOOL, (short)16);
44
  private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.STRING, (short)15);
46
  private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.STRING, (short)17);
45
  private static final org.apache.thrift.protocol.TField SOURCE_START_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("sourceStartTime", org.apache.thrift.protocol.TType.I64, (short)16);
47
  private static final org.apache.thrift.protocol.TField SOURCE_START_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("sourceStartTime", org.apache.thrift.protocol.TType.I64, (short)18);
46
  private static final org.apache.thrift.protocol.TField TRUST_LEVEL_FIELD_DESC = new org.apache.thrift.protocol.TField("trustLevel", org.apache.thrift.protocol.TType.DOUBLE, (short)17);
48
  private static final org.apache.thrift.protocol.TField TRUST_LEVEL_FIELD_DESC = new org.apache.thrift.protocol.TField("trustLevel", org.apache.thrift.protocol.TType.DOUBLE, (short)19);
47
 
49
 
48
  private long userId; // required
50
  private long userId; // required
49
  private String email; // required
51
  private String email; // required
50
  private String password; // required
52
  private String password; // required
51
  private String name; // required
53
  private String name; // required
52
  private String dateOfBirth; // required
54
  private String dateOfBirth; // required
53
  private Sex sex; // required
55
  private Sex sex; // required
54
  private String mobileNumber; // required
56
  private String mobileNumber; // required
55
  private SocialHandles socialHandles; // required
57
  private long lastLogin; // required
-
 
58
  private long lastLogout; // required
-
 
59
  private long activeSince; // required
56
  private List<Address> addresses; // required
60
  private List<Address> addresses; // required
57
  private long defaultAddressId; // required
61
  private long defaultAddressId; // required
58
  private String communicationEmail; // required
62
  private String communicationEmail; // required
59
  private long activeCartId; // required
63
  private long activeCartId; // required
60
  private String jsessionId; // required
64
  private String jsessionId; // required
Line 74... Line 78...
74
     * 
78
     * 
75
     * @see Sex
79
     * @see Sex
76
     */
80
     */
77
    SEX((short)6, "sex"),
81
    SEX((short)6, "sex"),
78
    MOBILE_NUMBER((short)7, "mobileNumber"),
82
    MOBILE_NUMBER((short)7, "mobileNumber"),
-
 
83
    LAST_LOGIN((short)8, "lastLogin"),
-
 
84
    LAST_LOGOUT((short)9, "lastLogout"),
79
    SOCIAL_HANDLES((short)8, "socialHandles"),
85
    ACTIVE_SINCE((short)10, "activeSince"),
80
    ADDRESSES((short)9, "addresses"),
86
    ADDRESSES((short)11, "addresses"),
81
    DEFAULT_ADDRESS_ID((short)10, "defaultAddressId"),
87
    DEFAULT_ADDRESS_ID((short)12, "defaultAddressId"),
82
    COMMUNICATION_EMAIL((short)11, "communicationEmail"),
88
    COMMUNICATION_EMAIL((short)13, "communicationEmail"),
83
    ACTIVE_CART_ID((short)12, "activeCartId"),
89
    ACTIVE_CART_ID((short)14, "activeCartId"),
84
    JSESSION_ID((short)13, "jsessionId"),
90
    JSESSION_ID((short)15, "jsessionId"),
85
    IS_ANONYMOUS((short)14, "isAnonymous"),
91
    IS_ANONYMOUS((short)16, "isAnonymous"),
86
    SOURCE((short)15, "source"),
92
    SOURCE((short)17, "source"),
87
    SOURCE_START_TIME((short)16, "sourceStartTime"),
93
    SOURCE_START_TIME((short)18, "sourceStartTime"),
88
    TRUST_LEVEL((short)17, "trustLevel");
94
    TRUST_LEVEL((short)19, "trustLevel");
89
 
95
 
90
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
96
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
91
 
97
 
92
    static {
98
    static {
93
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
99
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 112... Line 118...
112
          return DATE_OF_BIRTH;
118
          return DATE_OF_BIRTH;
113
        case 6: // SEX
119
        case 6: // SEX
114
          return SEX;
120
          return SEX;
115
        case 7: // MOBILE_NUMBER
121
        case 7: // MOBILE_NUMBER
116
          return MOBILE_NUMBER;
122
          return MOBILE_NUMBER;
-
 
123
        case 8: // LAST_LOGIN
-
 
124
          return LAST_LOGIN;
-
 
125
        case 9: // LAST_LOGOUT
-
 
126
          return LAST_LOGOUT;
117
        case 8: // SOCIAL_HANDLES
127
        case 10: // ACTIVE_SINCE
118
          return SOCIAL_HANDLES;
128
          return ACTIVE_SINCE;
119
        case 9: // ADDRESSES
129
        case 11: // ADDRESSES
120
          return ADDRESSES;
130
          return ADDRESSES;
121
        case 10: // DEFAULT_ADDRESS_ID
131
        case 12: // DEFAULT_ADDRESS_ID
122
          return DEFAULT_ADDRESS_ID;
132
          return DEFAULT_ADDRESS_ID;
123
        case 11: // COMMUNICATION_EMAIL
133
        case 13: // COMMUNICATION_EMAIL
124
          return COMMUNICATION_EMAIL;
134
          return COMMUNICATION_EMAIL;
125
        case 12: // ACTIVE_CART_ID
135
        case 14: // ACTIVE_CART_ID
126
          return ACTIVE_CART_ID;
136
          return ACTIVE_CART_ID;
127
        case 13: // JSESSION_ID
137
        case 15: // JSESSION_ID
128
          return JSESSION_ID;
138
          return JSESSION_ID;
129
        case 14: // IS_ANONYMOUS
139
        case 16: // IS_ANONYMOUS
130
          return IS_ANONYMOUS;
140
          return IS_ANONYMOUS;
131
        case 15: // SOURCE
141
        case 17: // SOURCE
132
          return SOURCE;
142
          return SOURCE;
133
        case 16: // SOURCE_START_TIME
143
        case 18: // SOURCE_START_TIME
134
          return SOURCE_START_TIME;
144
          return SOURCE_START_TIME;
135
        case 17: // TRUST_LEVEL
145
        case 19: // TRUST_LEVEL
136
          return TRUST_LEVEL;
146
          return TRUST_LEVEL;
137
        default:
147
        default:
138
          return null;
148
          return null;
139
      }
149
      }
140
    }
150
    }
Line 173... Line 183...
173
    }
183
    }
174
  }
184
  }
175
 
185
 
176
  // isset id assignments
186
  // isset id assignments
177
  private static final int __USERID_ISSET_ID = 0;
187
  private static final int __USERID_ISSET_ID = 0;
-
 
188
  private static final int __LASTLOGIN_ISSET_ID = 1;
-
 
189
  private static final int __LASTLOGOUT_ISSET_ID = 2;
-
 
190
  private static final int __ACTIVESINCE_ISSET_ID = 3;
178
  private static final int __DEFAULTADDRESSID_ISSET_ID = 1;
191
  private static final int __DEFAULTADDRESSID_ISSET_ID = 4;
179
  private static final int __ACTIVECARTID_ISSET_ID = 2;
192
  private static final int __ACTIVECARTID_ISSET_ID = 5;
180
  private static final int __ISANONYMOUS_ISSET_ID = 3;
193
  private static final int __ISANONYMOUS_ISSET_ID = 6;
181
  private static final int __SOURCESTARTTIME_ISSET_ID = 4;
194
  private static final int __SOURCESTARTTIME_ISSET_ID = 7;
182
  private static final int __TRUSTLEVEL_ISSET_ID = 5;
195
  private static final int __TRUSTLEVEL_ISSET_ID = 8;
183
  private BitSet __isset_bit_vector = new BitSet(6);
196
  private BitSet __isset_bit_vector = new BitSet(9);
184
 
197
 
185
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
198
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
186
  static {
199
  static {
187
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
200
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
188
    tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
201
    tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 197... Line 210...
197
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
210
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
198
    tmpMap.put(_Fields.SEX, new org.apache.thrift.meta_data.FieldMetaData("sex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
211
    tmpMap.put(_Fields.SEX, new org.apache.thrift.meta_data.FieldMetaData("sex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
199
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, Sex.class)));
212
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, Sex.class)));
200
    tmpMap.put(_Fields.MOBILE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("mobileNumber", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
213
    tmpMap.put(_Fields.MOBILE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("mobileNumber", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
201
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
214
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
215
    tmpMap.put(_Fields.LAST_LOGIN, new org.apache.thrift.meta_data.FieldMetaData("lastLogin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
216
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
217
    tmpMap.put(_Fields.LAST_LOGOUT, new org.apache.thrift.meta_data.FieldMetaData("lastLogout", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
218
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
202
    tmpMap.put(_Fields.SOCIAL_HANDLES, new org.apache.thrift.meta_data.FieldMetaData("socialHandles", org.apache.thrift.TFieldRequirementType.DEFAULT, 
219
    tmpMap.put(_Fields.ACTIVE_SINCE, new org.apache.thrift.meta_data.FieldMetaData("activeSince", org.apache.thrift.TFieldRequirementType.DEFAULT, 
203
        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SocialHandles.class)));
220
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
204
    tmpMap.put(_Fields.ADDRESSES, new org.apache.thrift.meta_data.FieldMetaData("addresses", org.apache.thrift.TFieldRequirementType.DEFAULT, 
221
    tmpMap.put(_Fields.ADDRESSES, new org.apache.thrift.meta_data.FieldMetaData("addresses", org.apache.thrift.TFieldRequirementType.DEFAULT, 
205
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
222
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
206
            new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Address.class))));
223
            new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Address.class))));
207
    tmpMap.put(_Fields.DEFAULT_ADDRESS_ID, new org.apache.thrift.meta_data.FieldMetaData("defaultAddressId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
224
    tmpMap.put(_Fields.DEFAULT_ADDRESS_ID, new org.apache.thrift.meta_data.FieldMetaData("defaultAddressId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
208
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
225
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
Line 232... Line 249...
232
    String email,
249
    String email,
233
    String password,
250
    String password,
234
    String name,
251
    String name,
235
    String dateOfBirth,
252
    String dateOfBirth,
236
    Sex sex,
253
    Sex sex,
237
    SocialHandles socialHandles,
254
    long lastLogin,
-
 
255
    long lastLogout,
-
 
256
    long activeSince,
238
    List<Address> addresses,
257
    List<Address> addresses,
239
    long defaultAddressId,
258
    long defaultAddressId,
240
    String communicationEmail,
259
    String communicationEmail,
241
    long activeCartId,
260
    long activeCartId,
242
    String jsessionId,
261
    String jsessionId,
Line 251... Line 270...
251
    this.email = email;
270
    this.email = email;
252
    this.password = password;
271
    this.password = password;
253
    this.name = name;
272
    this.name = name;
254
    this.dateOfBirth = dateOfBirth;
273
    this.dateOfBirth = dateOfBirth;
255
    this.sex = sex;
274
    this.sex = sex;
-
 
275
    this.lastLogin = lastLogin;
-
 
276
    setLastLoginIsSet(true);
-
 
277
    this.lastLogout = lastLogout;
-
 
278
    setLastLogoutIsSet(true);
256
    this.socialHandles = socialHandles;
279
    this.activeSince = activeSince;
-
 
280
    setActiveSinceIsSet(true);
257
    this.addresses = addresses;
281
    this.addresses = addresses;
258
    this.defaultAddressId = defaultAddressId;
282
    this.defaultAddressId = defaultAddressId;
259
    setDefaultAddressIdIsSet(true);
283
    setDefaultAddressIdIsSet(true);
260
    this.communicationEmail = communicationEmail;
284
    this.communicationEmail = communicationEmail;
261
    this.activeCartId = activeCartId;
285
    this.activeCartId = activeCartId;
Line 293... Line 317...
293
      this.sex = other.sex;
317
      this.sex = other.sex;
294
    }
318
    }
295
    if (other.isSetMobileNumber()) {
319
    if (other.isSetMobileNumber()) {
296
      this.mobileNumber = other.mobileNumber;
320
      this.mobileNumber = other.mobileNumber;
297
    }
321
    }
298
    if (other.isSetSocialHandles()) {
322
    this.lastLogin = other.lastLogin;
299
      this.socialHandles = new SocialHandles(other.socialHandles);
323
    this.lastLogout = other.lastLogout;
300
    }
324
    this.activeSince = other.activeSince;
301
    if (other.isSetAddresses()) {
325
    if (other.isSetAddresses()) {
302
      List<Address> __this__addresses = new ArrayList<Address>();
326
      List<Address> __this__addresses = new ArrayList<Address>();
303
      for (Address other_element : other.addresses) {
327
      for (Address other_element : other.addresses) {
304
        __this__addresses.add(new Address(other_element));
328
        __this__addresses.add(new Address(other_element));
305
      }
329
      }
Line 333... Line 357...
333
    this.password = null;
357
    this.password = null;
334
    this.name = null;
358
    this.name = null;
335
    this.dateOfBirth = null;
359
    this.dateOfBirth = null;
336
    this.sex = null;
360
    this.sex = null;
337
    this.mobileNumber = null;
361
    this.mobileNumber = null;
-
 
362
    setLastLoginIsSet(false);
-
 
363
    this.lastLogin = 0;
-
 
364
    setLastLogoutIsSet(false);
-
 
365
    this.lastLogout = 0;
-
 
366
    setActiveSinceIsSet(false);
338
    this.socialHandles = null;
367
    this.activeSince = 0;
339
    this.addresses = null;
368
    this.addresses = null;
340
    setDefaultAddressIdIsSet(false);
369
    setDefaultAddressIdIsSet(false);
341
    this.defaultAddressId = 0;
370
    this.defaultAddressId = 0;
342
    this.communicationEmail = null;
371
    this.communicationEmail = null;
343
    setActiveCartIdIsSet(false);
372
    setActiveCartIdIsSet(false);
Line 518... Line 547...
518
    if (!value) {
547
    if (!value) {
519
      this.mobileNumber = null;
548
      this.mobileNumber = null;
520
    }
549
    }
521
  }
550
  }
522
 
551
 
523
  public SocialHandles getSocialHandles() {
552
  public long getLastLogin() {
524
    return this.socialHandles;
553
    return this.lastLogin;
525
  }
554
  }
526
 
555
 
527
  public void setSocialHandles(SocialHandles socialHandles) {
556
  public void setLastLogin(long lastLogin) {
528
    this.socialHandles = socialHandles;
557
    this.lastLogin = lastLogin;
-
 
558
    setLastLoginIsSet(true);
529
  }
559
  }
530
 
560
 
531
  public void unsetSocialHandles() {
561
  public void unsetLastLogin() {
532
    this.socialHandles = null;
562
    __isset_bit_vector.clear(__LASTLOGIN_ISSET_ID);
533
  }
563
  }
534
 
564
 
535
  /** Returns true if field socialHandles is set (has been assigned a value) and false otherwise */
565
  /** Returns true if field lastLogin is set (has been assigned a value) and false otherwise */
536
  public boolean isSetSocialHandles() {
566
  public boolean isSetLastLogin() {
537
    return this.socialHandles != null;
567
    return __isset_bit_vector.get(__LASTLOGIN_ISSET_ID);
538
  }
568
  }
539
 
569
 
540
  public void setSocialHandlesIsSet(boolean value) {
570
  public void setLastLoginIsSet(boolean value) {
-
 
571
    __isset_bit_vector.set(__LASTLOGIN_ISSET_ID, value);
-
 
572
  }
-
 
573
 
541
    if (!value) {
574
  public long getLastLogout() {
-
 
575
    return this.lastLogout;
-
 
576
  }
-
 
577
 
-
 
578
  public void setLastLogout(long lastLogout) {
542
      this.socialHandles = null;
579
    this.lastLogout = lastLogout;
-
 
580
    setLastLogoutIsSet(true);
-
 
581
  }
-
 
582
 
-
 
583
  public void unsetLastLogout() {
-
 
584
    __isset_bit_vector.clear(__LASTLOGOUT_ISSET_ID);
-
 
585
  }
-
 
586
 
-
 
587
  /** Returns true if field lastLogout is set (has been assigned a value) and false otherwise */
-
 
588
  public boolean isSetLastLogout() {
-
 
589
    return __isset_bit_vector.get(__LASTLOGOUT_ISSET_ID);
-
 
590
  }
-
 
591
 
-
 
592
  public void setLastLogoutIsSet(boolean value) {
-
 
593
    __isset_bit_vector.set(__LASTLOGOUT_ISSET_ID, value);
-
 
594
  }
-
 
595
 
-
 
596
  public long getActiveSince() {
-
 
597
    return this.activeSince;
-
 
598
  }
-
 
599
 
-
 
600
  public void setActiveSince(long activeSince) {
-
 
601
    this.activeSince = activeSince;
-
 
602
    setActiveSinceIsSet(true);
-
 
603
  }
-
 
604
 
-
 
605
  public void unsetActiveSince() {
-
 
606
    __isset_bit_vector.clear(__ACTIVESINCE_ISSET_ID);
-
 
607
  }
-
 
608
 
-
 
609
  /** Returns true if field activeSince is set (has been assigned a value) and false otherwise */
-
 
610
  public boolean isSetActiveSince() {
-
 
611
    return __isset_bit_vector.get(__ACTIVESINCE_ISSET_ID);
543
    }
612
  }
-
 
613
 
-
 
614
  public void setActiveSinceIsSet(boolean value) {
-
 
615
    __isset_bit_vector.set(__ACTIVESINCE_ISSET_ID, value);
544
  }
616
  }
545
 
617
 
546
  public int getAddressesSize() {
618
  public int getAddressesSize() {
547
    return (this.addresses == null) ? 0 : this.addresses.size();
619
    return (this.addresses == null) ? 0 : this.addresses.size();
548
  }
620
  }
Line 816... Line 888...
816
      } else {
888
      } else {
817
        setMobileNumber((String)value);
889
        setMobileNumber((String)value);
818
      }
890
      }
819
      break;
891
      break;
820
 
892
 
821
    case SOCIAL_HANDLES:
893
    case LAST_LOGIN:
822
      if (value == null) {
894
      if (value == null) {
823
        unsetSocialHandles();
895
        unsetLastLogin();
824
      } else {
896
      } else {
-
 
897
        setLastLogin((Long)value);
-
 
898
      }
-
 
899
      break;
-
 
900
 
-
 
901
    case LAST_LOGOUT:
-
 
902
      if (value == null) {
-
 
903
        unsetLastLogout();
-
 
904
      } else {
-
 
905
        setLastLogout((Long)value);
-
 
906
      }
-
 
907
      break;
-
 
908
 
-
 
909
    case ACTIVE_SINCE:
-
 
910
      if (value == null) {
-
 
911
        unsetActiveSince();
-
 
912
      } else {
825
        setSocialHandles((SocialHandles)value);
913
        setActiveSince((Long)value);
826
      }
914
      }
827
      break;
915
      break;
828
 
916
 
829
    case ADDRESSES:
917
    case ADDRESSES:
830
      if (value == null) {
918
      if (value == null) {
Line 922... Line 1010...
922
      return getSex();
1010
      return getSex();
923
 
1011
 
924
    case MOBILE_NUMBER:
1012
    case MOBILE_NUMBER:
925
      return getMobileNumber();
1013
      return getMobileNumber();
926
 
1014
 
-
 
1015
    case LAST_LOGIN:
-
 
1016
      return Long.valueOf(getLastLogin());
-
 
1017
 
-
 
1018
    case LAST_LOGOUT:
-
 
1019
      return Long.valueOf(getLastLogout());
-
 
1020
 
927
    case SOCIAL_HANDLES:
1021
    case ACTIVE_SINCE:
928
      return getSocialHandles();
1022
      return Long.valueOf(getActiveSince());
929
 
1023
 
930
    case ADDRESSES:
1024
    case ADDRESSES:
931
      return getAddresses();
1025
      return getAddresses();
932
 
1026
 
933
    case DEFAULT_ADDRESS_ID:
1027
    case DEFAULT_ADDRESS_ID:
Line 977... Line 1071...
977
      return isSetDateOfBirth();
1071
      return isSetDateOfBirth();
978
    case SEX:
1072
    case SEX:
979
      return isSetSex();
1073
      return isSetSex();
980
    case MOBILE_NUMBER:
1074
    case MOBILE_NUMBER:
981
      return isSetMobileNumber();
1075
      return isSetMobileNumber();
-
 
1076
    case LAST_LOGIN:
-
 
1077
      return isSetLastLogin();
-
 
1078
    case LAST_LOGOUT:
-
 
1079
      return isSetLastLogout();
982
    case SOCIAL_HANDLES:
1080
    case ACTIVE_SINCE:
983
      return isSetSocialHandles();
1081
      return isSetActiveSince();
984
    case ADDRESSES:
1082
    case ADDRESSES:
985
      return isSetAddresses();
1083
      return isSetAddresses();
986
    case DEFAULT_ADDRESS_ID:
1084
    case DEFAULT_ADDRESS_ID:
987
      return isSetDefaultAddressId();
1085
      return isSetDefaultAddressId();
988
    case COMMUNICATION_EMAIL:
1086
    case COMMUNICATION_EMAIL:
Line 1077... Line 1175...
1077
        return false;
1175
        return false;
1078
      if (!this.mobileNumber.equals(that.mobileNumber))
1176
      if (!this.mobileNumber.equals(that.mobileNumber))
1079
        return false;
1177
        return false;
1080
    }
1178
    }
1081
 
1179
 
-
 
1180
    boolean this_present_lastLogin = true;
-
 
1181
    boolean that_present_lastLogin = true;
-
 
1182
    if (this_present_lastLogin || that_present_lastLogin) {
1082
    boolean this_present_socialHandles = true && this.isSetSocialHandles();
1183
      if (!(this_present_lastLogin && that_present_lastLogin))
-
 
1184
        return false;
-
 
1185
      if (this.lastLogin != that.lastLogin)
-
 
1186
        return false;
-
 
1187
    }
-
 
1188
 
-
 
1189
    boolean this_present_lastLogout = true;
1083
    boolean that_present_socialHandles = true && that.isSetSocialHandles();
1190
    boolean that_present_lastLogout = true;
1084
    if (this_present_socialHandles || that_present_socialHandles) {
1191
    if (this_present_lastLogout || that_present_lastLogout) {
1085
      if (!(this_present_socialHandles && that_present_socialHandles))
1192
      if (!(this_present_lastLogout && that_present_lastLogout))
1086
        return false;
1193
        return false;
-
 
1194
      if (this.lastLogout != that.lastLogout)
-
 
1195
        return false;
-
 
1196
    }
-
 
1197
 
-
 
1198
    boolean this_present_activeSince = true;
-
 
1199
    boolean that_present_activeSince = true;
-
 
1200
    if (this_present_activeSince || that_present_activeSince) {
-
 
1201
      if (!(this_present_activeSince && that_present_activeSince))
-
 
1202
        return false;
1087
      if (!this.socialHandles.equals(that.socialHandles))
1203
      if (this.activeSince != that.activeSince)
1088
        return false;
1204
        return false;
1089
    }
1205
    }
1090
 
1206
 
1091
    boolean this_present_addresses = true && this.isSetAddresses();
1207
    boolean this_present_addresses = true && this.isSetAddresses();
1092
    boolean that_present_addresses = true && that.isSetAddresses();
1208
    boolean that_present_addresses = true && that.isSetAddresses();
Line 1253... Line 1369...
1253
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mobileNumber, typedOther.mobileNumber);
1369
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mobileNumber, typedOther.mobileNumber);
1254
      if (lastComparison != 0) {
1370
      if (lastComparison != 0) {
1255
        return lastComparison;
1371
        return lastComparison;
1256
      }
1372
      }
1257
    }
1373
    }
-
 
1374
    lastComparison = Boolean.valueOf(isSetLastLogin()).compareTo(typedOther.isSetLastLogin());
-
 
1375
    if (lastComparison != 0) {
-
 
1376
      return lastComparison;
-
 
1377
    }
-
 
1378
    if (isSetLastLogin()) {
-
 
1379
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastLogin, typedOther.lastLogin);
-
 
1380
      if (lastComparison != 0) {
-
 
1381
        return lastComparison;
-
 
1382
      }
-
 
1383
    }
1258
    lastComparison = Boolean.valueOf(isSetSocialHandles()).compareTo(typedOther.isSetSocialHandles());
1384
    lastComparison = Boolean.valueOf(isSetLastLogout()).compareTo(typedOther.isSetLastLogout());
1259
    if (lastComparison != 0) {
1385
    if (lastComparison != 0) {
1260
      return lastComparison;
1386
      return lastComparison;
1261
    }
1387
    }
-
 
1388
    if (isSetLastLogout()) {
-
 
1389
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastLogout, typedOther.lastLogout);
-
 
1390
      if (lastComparison != 0) {
-
 
1391
        return lastComparison;
-
 
1392
      }
-
 
1393
    }
-
 
1394
    lastComparison = Boolean.valueOf(isSetActiveSince()).compareTo(typedOther.isSetActiveSince());
-
 
1395
    if (lastComparison != 0) {
-
 
1396
      return lastComparison;
-
 
1397
    }
1262
    if (isSetSocialHandles()) {
1398
    if (isSetActiveSince()) {
1263
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.socialHandles, typedOther.socialHandles);
1399
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.activeSince, typedOther.activeSince);
1264
      if (lastComparison != 0) {
1400
      if (lastComparison != 0) {
1265
        return lastComparison;
1401
        return lastComparison;
1266
      }
1402
      }
1267
    }
1403
    }
1268
    lastComparison = Boolean.valueOf(isSetAddresses()).compareTo(typedOther.isSetAddresses());
1404
    lastComparison = Boolean.valueOf(isSetAddresses()).compareTo(typedOther.isSetAddresses());
Line 1420... Line 1556...
1420
            this.mobileNumber = iprot.readString();
1556
            this.mobileNumber = iprot.readString();
1421
          } else { 
1557
          } else { 
1422
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1558
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1423
          }
1559
          }
1424
          break;
1560
          break;
1425
        case 8: // SOCIAL_HANDLES
1561
        case 8: // LAST_LOGIN
1426
          if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
1562
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1427
            this.socialHandles = new SocialHandles();
1563
            this.lastLogin = iprot.readI64();
1428
            this.socialHandles.read(iprot);
1564
            setLastLoginIsSet(true);
1429
          } else { 
1565
          } else { 
1430
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1566
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1431
          }
1567
          }
1432
          break;
1568
          break;
-
 
1569
        case 9: // LAST_LOGOUT
-
 
1570
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
1571
            this.lastLogout = iprot.readI64();
-
 
1572
            setLastLogoutIsSet(true);
-
 
1573
          } else { 
-
 
1574
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1575
          }
-
 
1576
          break;
-
 
1577
        case 10: // ACTIVE_SINCE
-
 
1578
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
1579
            this.activeSince = iprot.readI64();
-
 
1580
            setActiveSinceIsSet(true);
-
 
1581
          } else { 
-
 
1582
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1583
          }
-
 
1584
          break;
1433
        case 9: // ADDRESSES
1585
        case 11: // ADDRESSES
1434
          if (field.type == org.apache.thrift.protocol.TType.LIST) {
1586
          if (field.type == org.apache.thrift.protocol.TType.LIST) {
1435
            {
1587
            {
1436
              org.apache.thrift.protocol.TList _list4 = iprot.readListBegin();
1588
              org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
1437
              this.addresses = new ArrayList<Address>(_list4.size);
1589
              this.addresses = new ArrayList<Address>(_list0.size);
1438
              for (int _i5 = 0; _i5 < _list4.size; ++_i5)
1590
              for (int _i1 = 0; _i1 < _list0.size; ++_i1)
1439
              {
1591
              {
1440
                Address _elem6; // required
1592
                Address _elem2; // required
1441
                _elem6 = new Address();
1593
                _elem2 = new Address();
1442
                _elem6.read(iprot);
1594
                _elem2.read(iprot);
1443
                this.addresses.add(_elem6);
1595
                this.addresses.add(_elem2);
1444
              }
1596
              }
1445
              iprot.readListEnd();
1597
              iprot.readListEnd();
1446
            }
1598
            }
1447
          } else { 
1599
          } else { 
1448
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1600
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1449
          }
1601
          }
1450
          break;
1602
          break;
1451
        case 10: // DEFAULT_ADDRESS_ID
1603
        case 12: // DEFAULT_ADDRESS_ID
1452
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1604
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1453
            this.defaultAddressId = iprot.readI64();
1605
            this.defaultAddressId = iprot.readI64();
1454
            setDefaultAddressIdIsSet(true);
1606
            setDefaultAddressIdIsSet(true);
1455
          } else { 
1607
          } else { 
1456
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1608
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1457
          }
1609
          }
1458
          break;
1610
          break;
1459
        case 11: // COMMUNICATION_EMAIL
1611
        case 13: // COMMUNICATION_EMAIL
1460
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1612
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1461
            this.communicationEmail = iprot.readString();
1613
            this.communicationEmail = iprot.readString();
1462
          } else { 
1614
          } else { 
1463
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1615
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1464
          }
1616
          }
1465
          break;
1617
          break;
1466
        case 12: // ACTIVE_CART_ID
1618
        case 14: // ACTIVE_CART_ID
1467
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1619
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1468
            this.activeCartId = iprot.readI64();
1620
            this.activeCartId = iprot.readI64();
1469
            setActiveCartIdIsSet(true);
1621
            setActiveCartIdIsSet(true);
1470
          } else { 
1622
          } else { 
1471
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1623
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1472
          }
1624
          }
1473
          break;
1625
          break;
1474
        case 13: // JSESSION_ID
1626
        case 15: // JSESSION_ID
1475
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1627
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1476
            this.jsessionId = iprot.readString();
1628
            this.jsessionId = iprot.readString();
1477
          } else { 
1629
          } else { 
1478
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1630
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1479
          }
1631
          }
1480
          break;
1632
          break;
1481
        case 14: // IS_ANONYMOUS
1633
        case 16: // IS_ANONYMOUS
1482
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1634
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1483
            this.isAnonymous = iprot.readBool();
1635
            this.isAnonymous = iprot.readBool();
1484
            setIsAnonymousIsSet(true);
1636
            setIsAnonymousIsSet(true);
1485
          } else { 
1637
          } else { 
1486
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1638
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1487
          }
1639
          }
1488
          break;
1640
          break;
1489
        case 15: // SOURCE
1641
        case 17: // SOURCE
1490
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1642
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1491
            this.source = iprot.readString();
1643
            this.source = iprot.readString();
1492
          } else { 
1644
          } else { 
1493
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1645
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1494
          }
1646
          }
1495
          break;
1647
          break;
1496
        case 16: // SOURCE_START_TIME
1648
        case 18: // SOURCE_START_TIME
1497
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1649
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1498
            this.sourceStartTime = iprot.readI64();
1650
            this.sourceStartTime = iprot.readI64();
1499
            setSourceStartTimeIsSet(true);
1651
            setSourceStartTimeIsSet(true);
1500
          } else { 
1652
          } else { 
1501
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1653
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1502
          }
1654
          }
1503
          break;
1655
          break;
1504
        case 17: // TRUST_LEVEL
1656
        case 19: // TRUST_LEVEL
1505
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1657
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1506
            this.trustLevel = iprot.readDouble();
1658
            this.trustLevel = iprot.readDouble();
1507
            setTrustLevelIsSet(true);
1659
            setTrustLevelIsSet(true);
1508
          } else { 
1660
          } else { 
1509
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1661
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 1555... Line 1707...
1555
        oprot.writeFieldBegin(MOBILE_NUMBER_FIELD_DESC);
1707
        oprot.writeFieldBegin(MOBILE_NUMBER_FIELD_DESC);
1556
        oprot.writeString(this.mobileNumber);
1708
        oprot.writeString(this.mobileNumber);
1557
        oprot.writeFieldEnd();
1709
        oprot.writeFieldEnd();
1558
      }
1710
      }
1559
    }
1711
    }
-
 
1712
    oprot.writeFieldBegin(LAST_LOGIN_FIELD_DESC);
1560
    if (this.socialHandles != null) {
1713
    oprot.writeI64(this.lastLogin);
-
 
1714
    oprot.writeFieldEnd();
1561
      oprot.writeFieldBegin(SOCIAL_HANDLES_FIELD_DESC);
1715
    oprot.writeFieldBegin(LAST_LOGOUT_FIELD_DESC);
1562
      this.socialHandles.write(oprot);
1716
    oprot.writeI64(this.lastLogout);
1563
      oprot.writeFieldEnd();
1717
    oprot.writeFieldEnd();
-
 
1718
    oprot.writeFieldBegin(ACTIVE_SINCE_FIELD_DESC);
-
 
1719
    oprot.writeI64(this.activeSince);
1564
    }
1720
    oprot.writeFieldEnd();
1565
    if (this.addresses != null) {
1721
    if (this.addresses != null) {
1566
      oprot.writeFieldBegin(ADDRESSES_FIELD_DESC);
1722
      oprot.writeFieldBegin(ADDRESSES_FIELD_DESC);
1567
      {
1723
      {
1568
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.addresses.size()));
1724
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.addresses.size()));
1569
        for (Address _iter7 : this.addresses)
1725
        for (Address _iter3 : this.addresses)
1570
        {
1726
        {
1571
          _iter7.write(oprot);
1727
          _iter3.write(oprot);
1572
        }
1728
        }
1573
        oprot.writeListEnd();
1729
        oprot.writeListEnd();
1574
      }
1730
      }
1575
      oprot.writeFieldEnd();
1731
      oprot.writeFieldEnd();
1576
    }
1732
    }
Line 1665... Line 1821...
1665
        sb.append(this.mobileNumber);
1821
        sb.append(this.mobileNumber);
1666
      }
1822
      }
1667
      first = false;
1823
      first = false;
1668
    }
1824
    }
1669
    if (!first) sb.append(", ");
1825
    if (!first) sb.append(", ");
1670
    sb.append("socialHandles:");
1826
    sb.append("lastLogin:");
-
 
1827
    sb.append(this.lastLogin);
-
 
1828
    first = false;
1671
    if (this.socialHandles == null) {
1829
    if (!first) sb.append(", ");
1672
      sb.append("null");
1830
    sb.append("lastLogout:");
-
 
1831
    sb.append(this.lastLogout);
1673
    } else {
1832
    first = false;
-
 
1833
    if (!first) sb.append(", ");
1674
      sb.append(this.socialHandles);
1834
    sb.append("activeSince:");
1675
    }
1835
    sb.append(this.activeSince);
1676
    first = false;
1836
    first = false;
1677
    if (!first) sb.append(", ");
1837
    if (!first) sb.append(", ");
1678
    sb.append("addresses:");
1838
    sb.append("addresses:");
1679
    if (this.addresses == null) {
1839
    if (this.addresses == null) {
1680
      sb.append("null");
1840
      sb.append("null");