| 553 |
chandransh |
1 |
/**
|
| 3430 |
rajveer |
2 |
* Autogenerated by Thrift Compiler (0.7.0)
|
| 553 |
chandransh |
3 |
*
|
|
|
4 |
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
|
5 |
*/
|
|
|
6 |
package in.shop2020.model.v1.user;
|
|
|
7 |
|
|
|
8 |
import java.util.List;
|
|
|
9 |
import java.util.ArrayList;
|
|
|
10 |
import java.util.Map;
|
|
|
11 |
import java.util.HashMap;
|
|
|
12 |
import java.util.EnumMap;
|
|
|
13 |
import java.util.Set;
|
|
|
14 |
import java.util.HashSet;
|
|
|
15 |
import java.util.EnumSet;
|
|
|
16 |
import java.util.Collections;
|
|
|
17 |
import java.util.BitSet;
|
| 3430 |
rajveer |
18 |
import java.nio.ByteBuffer;
|
| 553 |
chandransh |
19 |
import java.util.Arrays;
|
|
|
20 |
import org.slf4j.Logger;
|
|
|
21 |
import org.slf4j.LoggerFactory;
|
|
|
22 |
|
|
|
23 |
/**
|
|
|
24 |
* The user structure holding the basic information that identifies the user.
|
|
|
25 |
* *
|
|
|
26 |
*/
|
| 3430 |
rajveer |
27 |
public class User implements org.apache.thrift.TBase<User, User._Fields>, java.io.Serializable, Cloneable {
|
|
|
28 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("User");
|
| 553 |
chandransh |
29 |
|
| 3430 |
rajveer |
30 |
private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
31 |
private static final org.apache.thrift.protocol.TField EMAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("email", org.apache.thrift.protocol.TType.STRING, (short)2);
|
|
|
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);
|
|
|
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);
|
|
|
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);
|
| 5327 |
rajveer |
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);
|
|
|
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);
|
|
|
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);
|
|
|
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);
|
|
|
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);
|
|
|
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);
|
|
|
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);
|
|
|
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);
|
|
|
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);
|
|
|
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);
|
|
|
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);
|
| 7825 |
amar.kumar |
49 |
private static final org.apache.thrift.protocol.TField IS_FACEBOOK_USER_FIELD_DESC = new org.apache.thrift.protocol.TField("isFacebookUser", org.apache.thrift.protocol.TType.BOOL, (short)20);
|
|
|
50 |
private static final org.apache.thrift.protocol.TField FACEBOOK_ACCESS_TOKEN_FIELD_DESC = new org.apache.thrift.protocol.TField("facebookAccessToken", org.apache.thrift.protocol.TType.STRING, (short)21);
|
|
|
51 |
private static final org.apache.thrift.protocol.TField FACEBOOK_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("facebookId", org.apache.thrift.protocol.TType.STRING, (short)22);
|
| 8201 |
rajveer |
52 |
private static final org.apache.thrift.protocol.TField SOURCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sourceId", org.apache.thrift.protocol.TType.I64, (short)23);
|
| 553 |
chandransh |
53 |
|
| 3430 |
rajveer |
54 |
private long userId; // required
|
|
|
55 |
private String email; // required
|
|
|
56 |
private String password; // required
|
|
|
57 |
private String name; // required
|
|
|
58 |
private String dateOfBirth; // required
|
|
|
59 |
private Sex sex; // required
|
|
|
60 |
private String mobileNumber; // required
|
| 5327 |
rajveer |
61 |
private long lastLogin; // required
|
|
|
62 |
private long lastLogout; // required
|
|
|
63 |
private long activeSince; // required
|
| 3430 |
rajveer |
64 |
private List<Address> addresses; // required
|
|
|
65 |
private long defaultAddressId; // required
|
|
|
66 |
private String communicationEmail; // required
|
|
|
67 |
private long activeCartId; // required
|
|
|
68 |
private String jsessionId; // required
|
|
|
69 |
private boolean isAnonymous; // required
|
|
|
70 |
private String source; // required
|
|
|
71 |
private long sourceStartTime; // required
|
| 3499 |
mandeep.dh |
72 |
private double trustLevel; // required
|
| 7825 |
amar.kumar |
73 |
private boolean isFacebookUser; // required
|
|
|
74 |
private String facebookAccessToken; // required
|
|
|
75 |
private String facebookId; // required
|
| 8201 |
rajveer |
76 |
private long sourceId; // required
|
| 553 |
chandransh |
77 |
|
|
|
78 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
79 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 553 |
chandransh |
80 |
USER_ID((short)1, "userId"),
|
|
|
81 |
EMAIL((short)2, "email"),
|
|
|
82 |
PASSWORD((short)3, "password"),
|
|
|
83 |
NAME((short)4, "name"),
|
|
|
84 |
DATE_OF_BIRTH((short)5, "dateOfBirth"),
|
|
|
85 |
/**
|
|
|
86 |
*
|
|
|
87 |
* @see Sex
|
|
|
88 |
*/
|
|
|
89 |
SEX((short)6, "sex"),
|
| 571 |
rajveer |
90 |
MOBILE_NUMBER((short)7, "mobileNumber"),
|
| 5327 |
rajveer |
91 |
LAST_LOGIN((short)8, "lastLogin"),
|
|
|
92 |
LAST_LOGOUT((short)9, "lastLogout"),
|
|
|
93 |
ACTIVE_SINCE((short)10, "activeSince"),
|
|
|
94 |
ADDRESSES((short)11, "addresses"),
|
|
|
95 |
DEFAULT_ADDRESS_ID((short)12, "defaultAddressId"),
|
|
|
96 |
COMMUNICATION_EMAIL((short)13, "communicationEmail"),
|
|
|
97 |
ACTIVE_CART_ID((short)14, "activeCartId"),
|
|
|
98 |
JSESSION_ID((short)15, "jsessionId"),
|
|
|
99 |
IS_ANONYMOUS((short)16, "isAnonymous"),
|
|
|
100 |
SOURCE((short)17, "source"),
|
|
|
101 |
SOURCE_START_TIME((short)18, "sourceStartTime"),
|
| 7825 |
amar.kumar |
102 |
TRUST_LEVEL((short)19, "trustLevel"),
|
|
|
103 |
IS_FACEBOOK_USER((short)20, "isFacebookUser"),
|
|
|
104 |
FACEBOOK_ACCESS_TOKEN((short)21, "facebookAccessToken"),
|
| 8201 |
rajveer |
105 |
FACEBOOK_ID((short)22, "facebookId"),
|
|
|
106 |
SOURCE_ID((short)23, "sourceId");
|
| 553 |
chandransh |
107 |
|
|
|
108 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
109 |
|
|
|
110 |
static {
|
|
|
111 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
112 |
byName.put(field.getFieldName(), field);
|
|
|
113 |
}
|
|
|
114 |
}
|
|
|
115 |
|
|
|
116 |
/**
|
|
|
117 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
118 |
*/
|
|
|
119 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
120 |
switch(fieldId) {
|
|
|
121 |
case 1: // USER_ID
|
|
|
122 |
return USER_ID;
|
|
|
123 |
case 2: // EMAIL
|
|
|
124 |
return EMAIL;
|
|
|
125 |
case 3: // PASSWORD
|
|
|
126 |
return PASSWORD;
|
|
|
127 |
case 4: // NAME
|
|
|
128 |
return NAME;
|
|
|
129 |
case 5: // DATE_OF_BIRTH
|
|
|
130 |
return DATE_OF_BIRTH;
|
|
|
131 |
case 6: // SEX
|
|
|
132 |
return SEX;
|
|
|
133 |
case 7: // MOBILE_NUMBER
|
|
|
134 |
return MOBILE_NUMBER;
|
| 5327 |
rajveer |
135 |
case 8: // LAST_LOGIN
|
|
|
136 |
return LAST_LOGIN;
|
|
|
137 |
case 9: // LAST_LOGOUT
|
|
|
138 |
return LAST_LOGOUT;
|
|
|
139 |
case 10: // ACTIVE_SINCE
|
|
|
140 |
return ACTIVE_SINCE;
|
|
|
141 |
case 11: // ADDRESSES
|
| 3430 |
rajveer |
142 |
return ADDRESSES;
|
| 5327 |
rajveer |
143 |
case 12: // DEFAULT_ADDRESS_ID
|
| 3430 |
rajveer |
144 |
return DEFAULT_ADDRESS_ID;
|
| 5327 |
rajveer |
145 |
case 13: // COMMUNICATION_EMAIL
|
| 3430 |
rajveer |
146 |
return COMMUNICATION_EMAIL;
|
| 5327 |
rajveer |
147 |
case 14: // ACTIVE_CART_ID
|
| 3430 |
rajveer |
148 |
return ACTIVE_CART_ID;
|
| 5327 |
rajveer |
149 |
case 15: // JSESSION_ID
|
| 3430 |
rajveer |
150 |
return JSESSION_ID;
|
| 5327 |
rajveer |
151 |
case 16: // IS_ANONYMOUS
|
| 3430 |
rajveer |
152 |
return IS_ANONYMOUS;
|
| 5327 |
rajveer |
153 |
case 17: // SOURCE
|
| 3430 |
rajveer |
154 |
return SOURCE;
|
| 5327 |
rajveer |
155 |
case 18: // SOURCE_START_TIME
|
| 3430 |
rajveer |
156 |
return SOURCE_START_TIME;
|
| 5327 |
rajveer |
157 |
case 19: // TRUST_LEVEL
|
| 3499 |
mandeep.dh |
158 |
return TRUST_LEVEL;
|
| 7825 |
amar.kumar |
159 |
case 20: // IS_FACEBOOK_USER
|
|
|
160 |
return IS_FACEBOOK_USER;
|
|
|
161 |
case 21: // FACEBOOK_ACCESS_TOKEN
|
|
|
162 |
return FACEBOOK_ACCESS_TOKEN;
|
|
|
163 |
case 22: // FACEBOOK_ID
|
|
|
164 |
return FACEBOOK_ID;
|
| 8201 |
rajveer |
165 |
case 23: // SOURCE_ID
|
|
|
166 |
return SOURCE_ID;
|
| 3430 |
rajveer |
167 |
default:
|
|
|
168 |
return null;
|
|
|
169 |
}
|
| 553 |
chandransh |
170 |
}
|
|
|
171 |
|
|
|
172 |
/**
|
|
|
173 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
174 |
* if it is not found.
|
|
|
175 |
*/
|
|
|
176 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
177 |
_Fields fields = findByThriftId(fieldId);
|
|
|
178 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
179 |
return fields;
|
|
|
180 |
}
|
|
|
181 |
|
|
|
182 |
/**
|
|
|
183 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
184 |
*/
|
|
|
185 |
public static _Fields findByName(String name) {
|
|
|
186 |
return byName.get(name);
|
|
|
187 |
}
|
|
|
188 |
|
|
|
189 |
private final short _thriftId;
|
|
|
190 |
private final String _fieldName;
|
|
|
191 |
|
|
|
192 |
_Fields(short thriftId, String fieldName) {
|
|
|
193 |
_thriftId = thriftId;
|
|
|
194 |
_fieldName = fieldName;
|
|
|
195 |
}
|
|
|
196 |
|
|
|
197 |
public short getThriftFieldId() {
|
|
|
198 |
return _thriftId;
|
|
|
199 |
}
|
|
|
200 |
|
|
|
201 |
public String getFieldName() {
|
|
|
202 |
return _fieldName;
|
|
|
203 |
}
|
|
|
204 |
}
|
|
|
205 |
|
|
|
206 |
// isset id assignments
|
|
|
207 |
private static final int __USERID_ISSET_ID = 0;
|
| 5327 |
rajveer |
208 |
private static final int __LASTLOGIN_ISSET_ID = 1;
|
|
|
209 |
private static final int __LASTLOGOUT_ISSET_ID = 2;
|
|
|
210 |
private static final int __ACTIVESINCE_ISSET_ID = 3;
|
|
|
211 |
private static final int __DEFAULTADDRESSID_ISSET_ID = 4;
|
|
|
212 |
private static final int __ACTIVECARTID_ISSET_ID = 5;
|
|
|
213 |
private static final int __ISANONYMOUS_ISSET_ID = 6;
|
|
|
214 |
private static final int __SOURCESTARTTIME_ISSET_ID = 7;
|
|
|
215 |
private static final int __TRUSTLEVEL_ISSET_ID = 8;
|
| 7825 |
amar.kumar |
216 |
private static final int __ISFACEBOOKUSER_ISSET_ID = 9;
|
| 8201 |
rajveer |
217 |
private static final int __SOURCEID_ISSET_ID = 10;
|
|
|
218 |
private BitSet __isset_bit_vector = new BitSet(11);
|
| 553 |
chandransh |
219 |
|
| 3430 |
rajveer |
220 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 553 |
chandransh |
221 |
static {
|
| 3430 |
rajveer |
222 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
223 |
tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
224 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
225 |
tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
226 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
227 |
tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
228 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
229 |
tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
230 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
231 |
tmpMap.put(_Fields.DATE_OF_BIRTH, new org.apache.thrift.meta_data.FieldMetaData("dateOfBirth", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
232 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
233 |
tmpMap.put(_Fields.SEX, new org.apache.thrift.meta_data.FieldMetaData("sex", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
234 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, Sex.class)));
|
| 3853 |
mandeep.dh |
235 |
tmpMap.put(_Fields.MOBILE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("mobileNumber", org.apache.thrift.TFieldRequirementType.OPTIONAL,
|
| 3430 |
rajveer |
236 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 5327 |
rajveer |
237 |
tmpMap.put(_Fields.LAST_LOGIN, new org.apache.thrift.meta_data.FieldMetaData("lastLogin", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
238 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
239 |
tmpMap.put(_Fields.LAST_LOGOUT, new org.apache.thrift.meta_data.FieldMetaData("lastLogout", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
240 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
241 |
tmpMap.put(_Fields.ACTIVE_SINCE, new org.apache.thrift.meta_data.FieldMetaData("activeSince", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
242 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 3430 |
rajveer |
243 |
tmpMap.put(_Fields.ADDRESSES, new org.apache.thrift.meta_data.FieldMetaData("addresses", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
244 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
245 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Address.class))));
|
|
|
246 |
tmpMap.put(_Fields.DEFAULT_ADDRESS_ID, new org.apache.thrift.meta_data.FieldMetaData("defaultAddressId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
247 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
248 |
tmpMap.put(_Fields.COMMUNICATION_EMAIL, new org.apache.thrift.meta_data.FieldMetaData("communicationEmail", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
249 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
250 |
tmpMap.put(_Fields.ACTIVE_CART_ID, new org.apache.thrift.meta_data.FieldMetaData("activeCartId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
251 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
252 |
tmpMap.put(_Fields.JSESSION_ID, new org.apache.thrift.meta_data.FieldMetaData("jsessionId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
253 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
254 |
tmpMap.put(_Fields.IS_ANONYMOUS, new org.apache.thrift.meta_data.FieldMetaData("isAnonymous", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
255 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
|
|
256 |
tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
257 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
258 |
tmpMap.put(_Fields.SOURCE_START_TIME, new org.apache.thrift.meta_data.FieldMetaData("sourceStartTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
259 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 3499 |
mandeep.dh |
260 |
tmpMap.put(_Fields.TRUST_LEVEL, new org.apache.thrift.meta_data.FieldMetaData("trustLevel", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
261 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
| 7825 |
amar.kumar |
262 |
tmpMap.put(_Fields.IS_FACEBOOK_USER, new org.apache.thrift.meta_data.FieldMetaData("isFacebookUser", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
263 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
|
|
264 |
tmpMap.put(_Fields.FACEBOOK_ACCESS_TOKEN, new org.apache.thrift.meta_data.FieldMetaData("facebookAccessToken", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
265 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
266 |
tmpMap.put(_Fields.FACEBOOK_ID, new org.apache.thrift.meta_data.FieldMetaData("facebookId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
267 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 8201 |
rajveer |
268 |
tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
269 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 3430 |
rajveer |
270 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
271 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(User.class, metaDataMap);
|
| 553 |
chandransh |
272 |
}
|
|
|
273 |
|
|
|
274 |
public User() {
|
|
|
275 |
}
|
|
|
276 |
|
|
|
277 |
public User(
|
|
|
278 |
long userId,
|
|
|
279 |
String email,
|
|
|
280 |
String password,
|
|
|
281 |
String name,
|
| 571 |
rajveer |
282 |
String dateOfBirth,
|
| 553 |
chandransh |
283 |
Sex sex,
|
| 5327 |
rajveer |
284 |
long lastLogin,
|
|
|
285 |
long lastLogout,
|
|
|
286 |
long activeSince,
|
| 553 |
chandransh |
287 |
List<Address> addresses,
|
|
|
288 |
long defaultAddressId,
|
|
|
289 |
String communicationEmail,
|
|
|
290 |
long activeCartId,
|
|
|
291 |
String jsessionId,
|
| 2020 |
vikas |
292 |
boolean isAnonymous,
|
| 2816 |
vikas |
293 |
String source,
|
| 3499 |
mandeep.dh |
294 |
long sourceStartTime,
|
| 7825 |
amar.kumar |
295 |
double trustLevel,
|
|
|
296 |
boolean isFacebookUser,
|
|
|
297 |
String facebookAccessToken,
|
| 8201 |
rajveer |
298 |
String facebookId,
|
|
|
299 |
long sourceId)
|
| 553 |
chandransh |
300 |
{
|
|
|
301 |
this();
|
|
|
302 |
this.userId = userId;
|
|
|
303 |
setUserIdIsSet(true);
|
|
|
304 |
this.email = email;
|
|
|
305 |
this.password = password;
|
|
|
306 |
this.name = name;
|
|
|
307 |
this.dateOfBirth = dateOfBirth;
|
|
|
308 |
this.sex = sex;
|
| 5327 |
rajveer |
309 |
this.lastLogin = lastLogin;
|
|
|
310 |
setLastLoginIsSet(true);
|
|
|
311 |
this.lastLogout = lastLogout;
|
|
|
312 |
setLastLogoutIsSet(true);
|
|
|
313 |
this.activeSince = activeSince;
|
|
|
314 |
setActiveSinceIsSet(true);
|
| 553 |
chandransh |
315 |
this.addresses = addresses;
|
|
|
316 |
this.defaultAddressId = defaultAddressId;
|
|
|
317 |
setDefaultAddressIdIsSet(true);
|
|
|
318 |
this.communicationEmail = communicationEmail;
|
|
|
319 |
this.activeCartId = activeCartId;
|
|
|
320 |
setActiveCartIdIsSet(true);
|
|
|
321 |
this.jsessionId = jsessionId;
|
|
|
322 |
this.isAnonymous = isAnonymous;
|
|
|
323 |
setIsAnonymousIsSet(true);
|
| 2020 |
vikas |
324 |
this.source = source;
|
| 2816 |
vikas |
325 |
this.sourceStartTime = sourceStartTime;
|
|
|
326 |
setSourceStartTimeIsSet(true);
|
| 3499 |
mandeep.dh |
327 |
this.trustLevel = trustLevel;
|
|
|
328 |
setTrustLevelIsSet(true);
|
| 7825 |
amar.kumar |
329 |
this.isFacebookUser = isFacebookUser;
|
|
|
330 |
setIsFacebookUserIsSet(true);
|
|
|
331 |
this.facebookAccessToken = facebookAccessToken;
|
|
|
332 |
this.facebookId = facebookId;
|
| 8201 |
rajveer |
333 |
this.sourceId = sourceId;
|
|
|
334 |
setSourceIdIsSet(true);
|
| 553 |
chandransh |
335 |
}
|
|
|
336 |
|
|
|
337 |
/**
|
|
|
338 |
* Performs a deep copy on <i>other</i>.
|
|
|
339 |
*/
|
|
|
340 |
public User(User other) {
|
|
|
341 |
__isset_bit_vector.clear();
|
|
|
342 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
343 |
this.userId = other.userId;
|
|
|
344 |
if (other.isSetEmail()) {
|
|
|
345 |
this.email = other.email;
|
|
|
346 |
}
|
|
|
347 |
if (other.isSetPassword()) {
|
|
|
348 |
this.password = other.password;
|
|
|
349 |
}
|
|
|
350 |
if (other.isSetName()) {
|
|
|
351 |
this.name = other.name;
|
|
|
352 |
}
|
| 571 |
rajveer |
353 |
if (other.isSetDateOfBirth()) {
|
|
|
354 |
this.dateOfBirth = other.dateOfBirth;
|
|
|
355 |
}
|
| 553 |
chandransh |
356 |
if (other.isSetSex()) {
|
|
|
357 |
this.sex = other.sex;
|
|
|
358 |
}
|
| 571 |
rajveer |
359 |
if (other.isSetMobileNumber()) {
|
|
|
360 |
this.mobileNumber = other.mobileNumber;
|
| 553 |
chandransh |
361 |
}
|
| 5327 |
rajveer |
362 |
this.lastLogin = other.lastLogin;
|
|
|
363 |
this.lastLogout = other.lastLogout;
|
|
|
364 |
this.activeSince = other.activeSince;
|
| 553 |
chandransh |
365 |
if (other.isSetAddresses()) {
|
|
|
366 |
List<Address> __this__addresses = new ArrayList<Address>();
|
|
|
367 |
for (Address other_element : other.addresses) {
|
|
|
368 |
__this__addresses.add(new Address(other_element));
|
|
|
369 |
}
|
|
|
370 |
this.addresses = __this__addresses;
|
|
|
371 |
}
|
|
|
372 |
this.defaultAddressId = other.defaultAddressId;
|
|
|
373 |
if (other.isSetCommunicationEmail()) {
|
|
|
374 |
this.communicationEmail = other.communicationEmail;
|
|
|
375 |
}
|
|
|
376 |
this.activeCartId = other.activeCartId;
|
|
|
377 |
if (other.isSetJsessionId()) {
|
|
|
378 |
this.jsessionId = other.jsessionId;
|
|
|
379 |
}
|
|
|
380 |
this.isAnonymous = other.isAnonymous;
|
| 2020 |
vikas |
381 |
if (other.isSetSource()) {
|
|
|
382 |
this.source = other.source;
|
|
|
383 |
}
|
| 2816 |
vikas |
384 |
this.sourceStartTime = other.sourceStartTime;
|
| 3499 |
mandeep.dh |
385 |
this.trustLevel = other.trustLevel;
|
| 7825 |
amar.kumar |
386 |
this.isFacebookUser = other.isFacebookUser;
|
|
|
387 |
if (other.isSetFacebookAccessToken()) {
|
|
|
388 |
this.facebookAccessToken = other.facebookAccessToken;
|
|
|
389 |
}
|
|
|
390 |
if (other.isSetFacebookId()) {
|
|
|
391 |
this.facebookId = other.facebookId;
|
|
|
392 |
}
|
| 8201 |
rajveer |
393 |
this.sourceId = other.sourceId;
|
| 553 |
chandransh |
394 |
}
|
|
|
395 |
|
|
|
396 |
public User deepCopy() {
|
|
|
397 |
return new User(this);
|
|
|
398 |
}
|
|
|
399 |
|
| 3430 |
rajveer |
400 |
@Override
|
|
|
401 |
public void clear() {
|
|
|
402 |
setUserIdIsSet(false);
|
|
|
403 |
this.userId = 0;
|
|
|
404 |
this.email = null;
|
|
|
405 |
this.password = null;
|
|
|
406 |
this.name = null;
|
|
|
407 |
this.dateOfBirth = null;
|
|
|
408 |
this.sex = null;
|
|
|
409 |
this.mobileNumber = null;
|
| 5327 |
rajveer |
410 |
setLastLoginIsSet(false);
|
|
|
411 |
this.lastLogin = 0;
|
|
|
412 |
setLastLogoutIsSet(false);
|
|
|
413 |
this.lastLogout = 0;
|
|
|
414 |
setActiveSinceIsSet(false);
|
|
|
415 |
this.activeSince = 0;
|
| 3430 |
rajveer |
416 |
this.addresses = null;
|
|
|
417 |
setDefaultAddressIdIsSet(false);
|
|
|
418 |
this.defaultAddressId = 0;
|
|
|
419 |
this.communicationEmail = null;
|
|
|
420 |
setActiveCartIdIsSet(false);
|
|
|
421 |
this.activeCartId = 0;
|
|
|
422 |
this.jsessionId = null;
|
|
|
423 |
setIsAnonymousIsSet(false);
|
|
|
424 |
this.isAnonymous = false;
|
|
|
425 |
this.source = null;
|
|
|
426 |
setSourceStartTimeIsSet(false);
|
|
|
427 |
this.sourceStartTime = 0;
|
| 3499 |
mandeep.dh |
428 |
setTrustLevelIsSet(false);
|
|
|
429 |
this.trustLevel = 0.0;
|
| 7825 |
amar.kumar |
430 |
setIsFacebookUserIsSet(false);
|
|
|
431 |
this.isFacebookUser = false;
|
|
|
432 |
this.facebookAccessToken = null;
|
|
|
433 |
this.facebookId = null;
|
| 8201 |
rajveer |
434 |
setSourceIdIsSet(false);
|
|
|
435 |
this.sourceId = 0;
|
| 553 |
chandransh |
436 |
}
|
|
|
437 |
|
|
|
438 |
public long getUserId() {
|
|
|
439 |
return this.userId;
|
|
|
440 |
}
|
|
|
441 |
|
| 3430 |
rajveer |
442 |
public void setUserId(long userId) {
|
| 553 |
chandransh |
443 |
this.userId = userId;
|
|
|
444 |
setUserIdIsSet(true);
|
|
|
445 |
}
|
|
|
446 |
|
|
|
447 |
public void unsetUserId() {
|
|
|
448 |
__isset_bit_vector.clear(__USERID_ISSET_ID);
|
|
|
449 |
}
|
|
|
450 |
|
| 3430 |
rajveer |
451 |
/** Returns true if field userId is set (has been assigned a value) and false otherwise */
|
| 553 |
chandransh |
452 |
public boolean isSetUserId() {
|
|
|
453 |
return __isset_bit_vector.get(__USERID_ISSET_ID);
|
|
|
454 |
}
|
|
|
455 |
|
|
|
456 |
public void setUserIdIsSet(boolean value) {
|
|
|
457 |
__isset_bit_vector.set(__USERID_ISSET_ID, value);
|
|
|
458 |
}
|
|
|
459 |
|
|
|
460 |
public String getEmail() {
|
|
|
461 |
return this.email;
|
|
|
462 |
}
|
|
|
463 |
|
| 3430 |
rajveer |
464 |
public void setEmail(String email) {
|
| 553 |
chandransh |
465 |
this.email = email;
|
|
|
466 |
}
|
|
|
467 |
|
|
|
468 |
public void unsetEmail() {
|
|
|
469 |
this.email = null;
|
|
|
470 |
}
|
|
|
471 |
|
| 3430 |
rajveer |
472 |
/** Returns true if field email is set (has been assigned a value) and false otherwise */
|
| 553 |
chandransh |
473 |
public boolean isSetEmail() {
|
|
|
474 |
return this.email != null;
|
|
|
475 |
}
|
|
|
476 |
|
|
|
477 |
public void setEmailIsSet(boolean value) {
|
|
|
478 |
if (!value) {
|
|
|
479 |
this.email = null;
|
|
|
480 |
}
|
|
|
481 |
}
|
|
|
482 |
|
|
|
483 |
public String getPassword() {
|
|
|
484 |
return this.password;
|
|
|
485 |
}
|
|
|
486 |
|
| 3430 |
rajveer |
487 |
public void setPassword(String password) {
|
| 553 |
chandransh |
488 |
this.password = password;
|
|
|
489 |
}
|
|
|
490 |
|
|
|
491 |
public void unsetPassword() {
|
|
|
492 |
this.password = null;
|
|
|
493 |
}
|
|
|
494 |
|
| 3430 |
rajveer |
495 |
/** Returns true if field password is set (has been assigned a value) and false otherwise */
|
| 553 |
chandransh |
496 |
public boolean isSetPassword() {
|
|
|
497 |
return this.password != null;
|
|
|
498 |
}
|
|
|
499 |
|
|
|
500 |
public void setPasswordIsSet(boolean value) {
|
|
|
501 |
if (!value) {
|
|
|
502 |
this.password = null;
|
|
|
503 |
}
|
|
|
504 |
}
|
|
|
505 |
|
|
|
506 |
public String getName() {
|
|
|
507 |
return this.name;
|
|
|
508 |
}
|
|
|
509 |
|
| 3430 |
rajveer |
510 |
public void setName(String name) {
|
| 553 |
chandransh |
511 |
this.name = name;
|
|
|
512 |
}
|
|
|
513 |
|
|
|
514 |
public void unsetName() {
|
|
|
515 |
this.name = null;
|
|
|
516 |
}
|
|
|
517 |
|
| 3430 |
rajveer |
518 |
/** Returns true if field name is set (has been assigned a value) and false otherwise */
|
| 553 |
chandransh |
519 |
public boolean isSetName() {
|
|
|
520 |
return this.name != null;
|
|
|
521 |
}
|
|
|
522 |
|
|
|
523 |
public void setNameIsSet(boolean value) {
|
|
|
524 |
if (!value) {
|
|
|
525 |
this.name = null;
|
|
|
526 |
}
|
|
|
527 |
}
|
|
|
528 |
|
| 571 |
rajveer |
529 |
public String getDateOfBirth() {
|
| 553 |
chandransh |
530 |
return this.dateOfBirth;
|
|
|
531 |
}
|
|
|
532 |
|
| 3430 |
rajveer |
533 |
public void setDateOfBirth(String dateOfBirth) {
|
| 553 |
chandransh |
534 |
this.dateOfBirth = dateOfBirth;
|
|
|
535 |
}
|
|
|
536 |
|
|
|
537 |
public void unsetDateOfBirth() {
|
| 571 |
rajveer |
538 |
this.dateOfBirth = null;
|
| 553 |
chandransh |
539 |
}
|
|
|
540 |
|
| 3430 |
rajveer |
541 |
/** Returns true if field dateOfBirth is set (has been assigned a value) and false otherwise */
|
| 553 |
chandransh |
542 |
public boolean isSetDateOfBirth() {
|
| 571 |
rajveer |
543 |
return this.dateOfBirth != null;
|
| 553 |
chandransh |
544 |
}
|
|
|
545 |
|
|
|
546 |
public void setDateOfBirthIsSet(boolean value) {
|
| 571 |
rajveer |
547 |
if (!value) {
|
|
|
548 |
this.dateOfBirth = null;
|
|
|
549 |
}
|
| 553 |
chandransh |
550 |
}
|
|
|
551 |
|
|
|
552 |
/**
|
|
|
553 |
*
|
|
|
554 |
* @see Sex
|
|
|
555 |
*/
|
|
|
556 |
public Sex getSex() {
|
|
|
557 |
return this.sex;
|
|
|
558 |
}
|
|
|
559 |
|
|
|
560 |
/**
|
|
|
561 |
*
|
|
|
562 |
* @see Sex
|
|
|
563 |
*/
|
| 3430 |
rajveer |
564 |
public void setSex(Sex sex) {
|
| 553 |
chandransh |
565 |
this.sex = sex;
|
|
|
566 |
}
|
|
|
567 |
|
|
|
568 |
public void unsetSex() {
|
|
|
569 |
this.sex = null;
|
|
|
570 |
}
|
|
|
571 |
|
| 3430 |
rajveer |
572 |
/** Returns true if field sex is set (has been assigned a value) and false otherwise */
|
| 553 |
chandransh |
573 |
public boolean isSetSex() {
|
|
|
574 |
return this.sex != null;
|
|
|
575 |
}
|
|
|
576 |
|
|
|
577 |
public void setSexIsSet(boolean value) {
|
|
|
578 |
if (!value) {
|
|
|
579 |
this.sex = null;
|
|
|
580 |
}
|
|
|
581 |
}
|
|
|
582 |
|
| 571 |
rajveer |
583 |
public String getMobileNumber() {
|
|
|
584 |
return this.mobileNumber;
|
| 553 |
chandransh |
585 |
}
|
|
|
586 |
|
| 3430 |
rajveer |
587 |
public void setMobileNumber(String mobileNumber) {
|
| 571 |
rajveer |
588 |
this.mobileNumber = mobileNumber;
|
| 553 |
chandransh |
589 |
}
|
|
|
590 |
|
| 571 |
rajveer |
591 |
public void unsetMobileNumber() {
|
|
|
592 |
this.mobileNumber = null;
|
| 553 |
chandransh |
593 |
}
|
|
|
594 |
|
| 3430 |
rajveer |
595 |
/** Returns true if field mobileNumber is set (has been assigned a value) and false otherwise */
|
| 571 |
rajveer |
596 |
public boolean isSetMobileNumber() {
|
|
|
597 |
return this.mobileNumber != null;
|
| 553 |
chandransh |
598 |
}
|
|
|
599 |
|
| 571 |
rajveer |
600 |
public void setMobileNumberIsSet(boolean value) {
|
| 553 |
chandransh |
601 |
if (!value) {
|
| 571 |
rajveer |
602 |
this.mobileNumber = null;
|
| 553 |
chandransh |
603 |
}
|
|
|
604 |
}
|
|
|
605 |
|
| 5327 |
rajveer |
606 |
public long getLastLogin() {
|
|
|
607 |
return this.lastLogin;
|
| 553 |
chandransh |
608 |
}
|
|
|
609 |
|
| 5327 |
rajveer |
610 |
public void setLastLogin(long lastLogin) {
|
|
|
611 |
this.lastLogin = lastLogin;
|
|
|
612 |
setLastLoginIsSet(true);
|
| 553 |
chandransh |
613 |
}
|
|
|
614 |
|
| 5327 |
rajveer |
615 |
public void unsetLastLogin() {
|
|
|
616 |
__isset_bit_vector.clear(__LASTLOGIN_ISSET_ID);
|
| 553 |
chandransh |
617 |
}
|
|
|
618 |
|
| 5327 |
rajveer |
619 |
/** Returns true if field lastLogin is set (has been assigned a value) and false otherwise */
|
|
|
620 |
public boolean isSetLastLogin() {
|
|
|
621 |
return __isset_bit_vector.get(__LASTLOGIN_ISSET_ID);
|
| 553 |
chandransh |
622 |
}
|
|
|
623 |
|
| 5327 |
rajveer |
624 |
public void setLastLoginIsSet(boolean value) {
|
|
|
625 |
__isset_bit_vector.set(__LASTLOGIN_ISSET_ID, value);
|
| 553 |
chandransh |
626 |
}
|
|
|
627 |
|
| 5327 |
rajveer |
628 |
public long getLastLogout() {
|
|
|
629 |
return this.lastLogout;
|
|
|
630 |
}
|
|
|
631 |
|
|
|
632 |
public void setLastLogout(long lastLogout) {
|
|
|
633 |
this.lastLogout = lastLogout;
|
|
|
634 |
setLastLogoutIsSet(true);
|
|
|
635 |
}
|
|
|
636 |
|
|
|
637 |
public void unsetLastLogout() {
|
|
|
638 |
__isset_bit_vector.clear(__LASTLOGOUT_ISSET_ID);
|
|
|
639 |
}
|
|
|
640 |
|
|
|
641 |
/** Returns true if field lastLogout is set (has been assigned a value) and false otherwise */
|
|
|
642 |
public boolean isSetLastLogout() {
|
|
|
643 |
return __isset_bit_vector.get(__LASTLOGOUT_ISSET_ID);
|
|
|
644 |
}
|
|
|
645 |
|
|
|
646 |
public void setLastLogoutIsSet(boolean value) {
|
|
|
647 |
__isset_bit_vector.set(__LASTLOGOUT_ISSET_ID, value);
|
|
|
648 |
}
|
|
|
649 |
|
|
|
650 |
public long getActiveSince() {
|
|
|
651 |
return this.activeSince;
|
|
|
652 |
}
|
|
|
653 |
|
|
|
654 |
public void setActiveSince(long activeSince) {
|
|
|
655 |
this.activeSince = activeSince;
|
|
|
656 |
setActiveSinceIsSet(true);
|
|
|
657 |
}
|
|
|
658 |
|
|
|
659 |
public void unsetActiveSince() {
|
|
|
660 |
__isset_bit_vector.clear(__ACTIVESINCE_ISSET_ID);
|
|
|
661 |
}
|
|
|
662 |
|
|
|
663 |
/** Returns true if field activeSince is set (has been assigned a value) and false otherwise */
|
|
|
664 |
public boolean isSetActiveSince() {
|
|
|
665 |
return __isset_bit_vector.get(__ACTIVESINCE_ISSET_ID);
|
|
|
666 |
}
|
|
|
667 |
|
|
|
668 |
public void setActiveSinceIsSet(boolean value) {
|
|
|
669 |
__isset_bit_vector.set(__ACTIVESINCE_ISSET_ID, value);
|
|
|
670 |
}
|
|
|
671 |
|
| 553 |
chandransh |
672 |
public int getAddressesSize() {
|
|
|
673 |
return (this.addresses == null) ? 0 : this.addresses.size();
|
|
|
674 |
}
|
|
|
675 |
|
|
|
676 |
public java.util.Iterator<Address> getAddressesIterator() {
|
|
|
677 |
return (this.addresses == null) ? null : this.addresses.iterator();
|
|
|
678 |
}
|
|
|
679 |
|
|
|
680 |
public void addToAddresses(Address elem) {
|
|
|
681 |
if (this.addresses == null) {
|
|
|
682 |
this.addresses = new ArrayList<Address>();
|
|
|
683 |
}
|
|
|
684 |
this.addresses.add(elem);
|
|
|
685 |
}
|
|
|
686 |
|
|
|
687 |
public List<Address> getAddresses() {
|
|
|
688 |
return this.addresses;
|
|
|
689 |
}
|
|
|
690 |
|
| 3430 |
rajveer |
691 |
public void setAddresses(List<Address> addresses) {
|
| 553 |
chandransh |
692 |
this.addresses = addresses;
|
|
|
693 |
}
|
|
|
694 |
|
|
|
695 |
public void unsetAddresses() {
|
|
|
696 |
this.addresses = null;
|
|
|
697 |
}
|
|
|
698 |
|
| 3430 |
rajveer |
699 |
/** Returns true if field addresses is set (has been assigned a value) and false otherwise */
|
| 553 |
chandransh |
700 |
public boolean isSetAddresses() {
|
|
|
701 |
return this.addresses != null;
|
|
|
702 |
}
|
|
|
703 |
|
|
|
704 |
public void setAddressesIsSet(boolean value) {
|
|
|
705 |
if (!value) {
|
|
|
706 |
this.addresses = null;
|
|
|
707 |
}
|
|
|
708 |
}
|
|
|
709 |
|
|
|
710 |
public long getDefaultAddressId() {
|
|
|
711 |
return this.defaultAddressId;
|
|
|
712 |
}
|
|
|
713 |
|
| 3430 |
rajveer |
714 |
public void setDefaultAddressId(long defaultAddressId) {
|
| 553 |
chandransh |
715 |
this.defaultAddressId = defaultAddressId;
|
|
|
716 |
setDefaultAddressIdIsSet(true);
|
|
|
717 |
}
|
|
|
718 |
|
|
|
719 |
public void unsetDefaultAddressId() {
|
|
|
720 |
__isset_bit_vector.clear(__DEFAULTADDRESSID_ISSET_ID);
|
|
|
721 |
}
|
|
|
722 |
|
| 3430 |
rajveer |
723 |
/** Returns true if field defaultAddressId is set (has been assigned a value) and false otherwise */
|
| 553 |
chandransh |
724 |
public boolean isSetDefaultAddressId() {
|
|
|
725 |
return __isset_bit_vector.get(__DEFAULTADDRESSID_ISSET_ID);
|
|
|
726 |
}
|
|
|
727 |
|
|
|
728 |
public void setDefaultAddressIdIsSet(boolean value) {
|
|
|
729 |
__isset_bit_vector.set(__DEFAULTADDRESSID_ISSET_ID, value);
|
|
|
730 |
}
|
|
|
731 |
|
|
|
732 |
public String getCommunicationEmail() {
|
|
|
733 |
return this.communicationEmail;
|
|
|
734 |
}
|
|
|
735 |
|
| 3430 |
rajveer |
736 |
public void setCommunicationEmail(String communicationEmail) {
|
| 553 |
chandransh |
737 |
this.communicationEmail = communicationEmail;
|
|
|
738 |
}
|
|
|
739 |
|
|
|
740 |
public void unsetCommunicationEmail() {
|
|
|
741 |
this.communicationEmail = null;
|
|
|
742 |
}
|
|
|
743 |
|
| 3430 |
rajveer |
744 |
/** Returns true if field communicationEmail is set (has been assigned a value) and false otherwise */
|
| 553 |
chandransh |
745 |
public boolean isSetCommunicationEmail() {
|
|
|
746 |
return this.communicationEmail != null;
|
|
|
747 |
}
|
|
|
748 |
|
|
|
749 |
public void setCommunicationEmailIsSet(boolean value) {
|
|
|
750 |
if (!value) {
|
|
|
751 |
this.communicationEmail = null;
|
|
|
752 |
}
|
|
|
753 |
}
|
|
|
754 |
|
|
|
755 |
public long getActiveCartId() {
|
|
|
756 |
return this.activeCartId;
|
|
|
757 |
}
|
|
|
758 |
|
| 3430 |
rajveer |
759 |
public void setActiveCartId(long activeCartId) {
|
| 553 |
chandransh |
760 |
this.activeCartId = activeCartId;
|
|
|
761 |
setActiveCartIdIsSet(true);
|
|
|
762 |
}
|
|
|
763 |
|
|
|
764 |
public void unsetActiveCartId() {
|
|
|
765 |
__isset_bit_vector.clear(__ACTIVECARTID_ISSET_ID);
|
|
|
766 |
}
|
|
|
767 |
|
| 3430 |
rajveer |
768 |
/** Returns true if field activeCartId is set (has been assigned a value) and false otherwise */
|
| 553 |
chandransh |
769 |
public boolean isSetActiveCartId() {
|
|
|
770 |
return __isset_bit_vector.get(__ACTIVECARTID_ISSET_ID);
|
|
|
771 |
}
|
|
|
772 |
|
|
|
773 |
public void setActiveCartIdIsSet(boolean value) {
|
|
|
774 |
__isset_bit_vector.set(__ACTIVECARTID_ISSET_ID, value);
|
|
|
775 |
}
|
|
|
776 |
|
|
|
777 |
public String getJsessionId() {
|
|
|
778 |
return this.jsessionId;
|
|
|
779 |
}
|
|
|
780 |
|
| 3430 |
rajveer |
781 |
public void setJsessionId(String jsessionId) {
|
| 553 |
chandransh |
782 |
this.jsessionId = jsessionId;
|
|
|
783 |
}
|
|
|
784 |
|
|
|
785 |
public void unsetJsessionId() {
|
|
|
786 |
this.jsessionId = null;
|
|
|
787 |
}
|
|
|
788 |
|
| 3430 |
rajveer |
789 |
/** Returns true if field jsessionId is set (has been assigned a value) and false otherwise */
|
| 553 |
chandransh |
790 |
public boolean isSetJsessionId() {
|
|
|
791 |
return this.jsessionId != null;
|
|
|
792 |
}
|
|
|
793 |
|
|
|
794 |
public void setJsessionIdIsSet(boolean value) {
|
|
|
795 |
if (!value) {
|
|
|
796 |
this.jsessionId = null;
|
|
|
797 |
}
|
|
|
798 |
}
|
|
|
799 |
|
|
|
800 |
public boolean isIsAnonymous() {
|
|
|
801 |
return this.isAnonymous;
|
|
|
802 |
}
|
|
|
803 |
|
| 3430 |
rajveer |
804 |
public void setIsAnonymous(boolean isAnonymous) {
|
| 553 |
chandransh |
805 |
this.isAnonymous = isAnonymous;
|
|
|
806 |
setIsAnonymousIsSet(true);
|
|
|
807 |
}
|
|
|
808 |
|
|
|
809 |
public void unsetIsAnonymous() {
|
|
|
810 |
__isset_bit_vector.clear(__ISANONYMOUS_ISSET_ID);
|
|
|
811 |
}
|
|
|
812 |
|
| 3430 |
rajveer |
813 |
/** Returns true if field isAnonymous is set (has been assigned a value) and false otherwise */
|
| 553 |
chandransh |
814 |
public boolean isSetIsAnonymous() {
|
|
|
815 |
return __isset_bit_vector.get(__ISANONYMOUS_ISSET_ID);
|
|
|
816 |
}
|
|
|
817 |
|
|
|
818 |
public void setIsAnonymousIsSet(boolean value) {
|
|
|
819 |
__isset_bit_vector.set(__ISANONYMOUS_ISSET_ID, value);
|
|
|
820 |
}
|
|
|
821 |
|
| 2020 |
vikas |
822 |
public String getSource() {
|
|
|
823 |
return this.source;
|
|
|
824 |
}
|
|
|
825 |
|
| 3430 |
rajveer |
826 |
public void setSource(String source) {
|
| 2020 |
vikas |
827 |
this.source = source;
|
|
|
828 |
}
|
|
|
829 |
|
|
|
830 |
public void unsetSource() {
|
|
|
831 |
this.source = null;
|
|
|
832 |
}
|
|
|
833 |
|
| 3430 |
rajveer |
834 |
/** Returns true if field source is set (has been assigned a value) and false otherwise */
|
| 2020 |
vikas |
835 |
public boolean isSetSource() {
|
|
|
836 |
return this.source != null;
|
|
|
837 |
}
|
|
|
838 |
|
|
|
839 |
public void setSourceIsSet(boolean value) {
|
|
|
840 |
if (!value) {
|
|
|
841 |
this.source = null;
|
|
|
842 |
}
|
|
|
843 |
}
|
|
|
844 |
|
| 2816 |
vikas |
845 |
public long getSourceStartTime() {
|
|
|
846 |
return this.sourceStartTime;
|
|
|
847 |
}
|
|
|
848 |
|
| 3430 |
rajveer |
849 |
public void setSourceStartTime(long sourceStartTime) {
|
| 2816 |
vikas |
850 |
this.sourceStartTime = sourceStartTime;
|
|
|
851 |
setSourceStartTimeIsSet(true);
|
|
|
852 |
}
|
|
|
853 |
|
|
|
854 |
public void unsetSourceStartTime() {
|
|
|
855 |
__isset_bit_vector.clear(__SOURCESTARTTIME_ISSET_ID);
|
|
|
856 |
}
|
|
|
857 |
|
| 3430 |
rajveer |
858 |
/** Returns true if field sourceStartTime is set (has been assigned a value) and false otherwise */
|
| 2816 |
vikas |
859 |
public boolean isSetSourceStartTime() {
|
|
|
860 |
return __isset_bit_vector.get(__SOURCESTARTTIME_ISSET_ID);
|
|
|
861 |
}
|
|
|
862 |
|
|
|
863 |
public void setSourceStartTimeIsSet(boolean value) {
|
|
|
864 |
__isset_bit_vector.set(__SOURCESTARTTIME_ISSET_ID, value);
|
|
|
865 |
}
|
|
|
866 |
|
| 3499 |
mandeep.dh |
867 |
public double getTrustLevel() {
|
|
|
868 |
return this.trustLevel;
|
|
|
869 |
}
|
|
|
870 |
|
|
|
871 |
public void setTrustLevel(double trustLevel) {
|
|
|
872 |
this.trustLevel = trustLevel;
|
|
|
873 |
setTrustLevelIsSet(true);
|
|
|
874 |
}
|
|
|
875 |
|
|
|
876 |
public void unsetTrustLevel() {
|
|
|
877 |
__isset_bit_vector.clear(__TRUSTLEVEL_ISSET_ID);
|
|
|
878 |
}
|
|
|
879 |
|
|
|
880 |
/** Returns true if field trustLevel is set (has been assigned a value) and false otherwise */
|
|
|
881 |
public boolean isSetTrustLevel() {
|
|
|
882 |
return __isset_bit_vector.get(__TRUSTLEVEL_ISSET_ID);
|
|
|
883 |
}
|
|
|
884 |
|
|
|
885 |
public void setTrustLevelIsSet(boolean value) {
|
|
|
886 |
__isset_bit_vector.set(__TRUSTLEVEL_ISSET_ID, value);
|
|
|
887 |
}
|
|
|
888 |
|
| 7825 |
amar.kumar |
889 |
public boolean isIsFacebookUser() {
|
|
|
890 |
return this.isFacebookUser;
|
|
|
891 |
}
|
|
|
892 |
|
|
|
893 |
public void setIsFacebookUser(boolean isFacebookUser) {
|
|
|
894 |
this.isFacebookUser = isFacebookUser;
|
|
|
895 |
setIsFacebookUserIsSet(true);
|
|
|
896 |
}
|
|
|
897 |
|
|
|
898 |
public void unsetIsFacebookUser() {
|
|
|
899 |
__isset_bit_vector.clear(__ISFACEBOOKUSER_ISSET_ID);
|
|
|
900 |
}
|
|
|
901 |
|
|
|
902 |
/** Returns true if field isFacebookUser is set (has been assigned a value) and false otherwise */
|
|
|
903 |
public boolean isSetIsFacebookUser() {
|
|
|
904 |
return __isset_bit_vector.get(__ISFACEBOOKUSER_ISSET_ID);
|
|
|
905 |
}
|
|
|
906 |
|
|
|
907 |
public void setIsFacebookUserIsSet(boolean value) {
|
|
|
908 |
__isset_bit_vector.set(__ISFACEBOOKUSER_ISSET_ID, value);
|
|
|
909 |
}
|
|
|
910 |
|
|
|
911 |
public String getFacebookAccessToken() {
|
|
|
912 |
return this.facebookAccessToken;
|
|
|
913 |
}
|
|
|
914 |
|
|
|
915 |
public void setFacebookAccessToken(String facebookAccessToken) {
|
|
|
916 |
this.facebookAccessToken = facebookAccessToken;
|
|
|
917 |
}
|
|
|
918 |
|
|
|
919 |
public void unsetFacebookAccessToken() {
|
|
|
920 |
this.facebookAccessToken = null;
|
|
|
921 |
}
|
|
|
922 |
|
|
|
923 |
/** Returns true if field facebookAccessToken is set (has been assigned a value) and false otherwise */
|
|
|
924 |
public boolean isSetFacebookAccessToken() {
|
|
|
925 |
return this.facebookAccessToken != null;
|
|
|
926 |
}
|
|
|
927 |
|
|
|
928 |
public void setFacebookAccessTokenIsSet(boolean value) {
|
|
|
929 |
if (!value) {
|
|
|
930 |
this.facebookAccessToken = null;
|
|
|
931 |
}
|
|
|
932 |
}
|
|
|
933 |
|
|
|
934 |
public String getFacebookId() {
|
|
|
935 |
return this.facebookId;
|
|
|
936 |
}
|
|
|
937 |
|
|
|
938 |
public void setFacebookId(String facebookId) {
|
|
|
939 |
this.facebookId = facebookId;
|
|
|
940 |
}
|
|
|
941 |
|
|
|
942 |
public void unsetFacebookId() {
|
|
|
943 |
this.facebookId = null;
|
|
|
944 |
}
|
|
|
945 |
|
|
|
946 |
/** Returns true if field facebookId is set (has been assigned a value) and false otherwise */
|
|
|
947 |
public boolean isSetFacebookId() {
|
|
|
948 |
return this.facebookId != null;
|
|
|
949 |
}
|
|
|
950 |
|
|
|
951 |
public void setFacebookIdIsSet(boolean value) {
|
|
|
952 |
if (!value) {
|
|
|
953 |
this.facebookId = null;
|
|
|
954 |
}
|
|
|
955 |
}
|
|
|
956 |
|
| 8201 |
rajveer |
957 |
public long getSourceId() {
|
|
|
958 |
return this.sourceId;
|
|
|
959 |
}
|
|
|
960 |
|
|
|
961 |
public void setSourceId(long sourceId) {
|
|
|
962 |
this.sourceId = sourceId;
|
|
|
963 |
setSourceIdIsSet(true);
|
|
|
964 |
}
|
|
|
965 |
|
|
|
966 |
public void unsetSourceId() {
|
|
|
967 |
__isset_bit_vector.clear(__SOURCEID_ISSET_ID);
|
|
|
968 |
}
|
|
|
969 |
|
|
|
970 |
/** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
|
|
|
971 |
public boolean isSetSourceId() {
|
|
|
972 |
return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
|
|
|
973 |
}
|
|
|
974 |
|
|
|
975 |
public void setSourceIdIsSet(boolean value) {
|
|
|
976 |
__isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
|
|
|
977 |
}
|
|
|
978 |
|
| 553 |
chandransh |
979 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
980 |
switch (field) {
|
|
|
981 |
case USER_ID:
|
|
|
982 |
if (value == null) {
|
|
|
983 |
unsetUserId();
|
|
|
984 |
} else {
|
|
|
985 |
setUserId((Long)value);
|
|
|
986 |
}
|
|
|
987 |
break;
|
|
|
988 |
|
|
|
989 |
case EMAIL:
|
|
|
990 |
if (value == null) {
|
|
|
991 |
unsetEmail();
|
|
|
992 |
} else {
|
|
|
993 |
setEmail((String)value);
|
|
|
994 |
}
|
|
|
995 |
break;
|
|
|
996 |
|
|
|
997 |
case PASSWORD:
|
|
|
998 |
if (value == null) {
|
|
|
999 |
unsetPassword();
|
|
|
1000 |
} else {
|
|
|
1001 |
setPassword((String)value);
|
|
|
1002 |
}
|
|
|
1003 |
break;
|
|
|
1004 |
|
|
|
1005 |
case NAME:
|
|
|
1006 |
if (value == null) {
|
|
|
1007 |
unsetName();
|
|
|
1008 |
} else {
|
|
|
1009 |
setName((String)value);
|
|
|
1010 |
}
|
|
|
1011 |
break;
|
|
|
1012 |
|
|
|
1013 |
case DATE_OF_BIRTH:
|
|
|
1014 |
if (value == null) {
|
|
|
1015 |
unsetDateOfBirth();
|
|
|
1016 |
} else {
|
| 571 |
rajveer |
1017 |
setDateOfBirth((String)value);
|
| 553 |
chandransh |
1018 |
}
|
|
|
1019 |
break;
|
|
|
1020 |
|
|
|
1021 |
case SEX:
|
|
|
1022 |
if (value == null) {
|
|
|
1023 |
unsetSex();
|
|
|
1024 |
} else {
|
|
|
1025 |
setSex((Sex)value);
|
|
|
1026 |
}
|
|
|
1027 |
break;
|
|
|
1028 |
|
| 571 |
rajveer |
1029 |
case MOBILE_NUMBER:
|
| 553 |
chandransh |
1030 |
if (value == null) {
|
| 571 |
rajveer |
1031 |
unsetMobileNumber();
|
| 553 |
chandransh |
1032 |
} else {
|
| 571 |
rajveer |
1033 |
setMobileNumber((String)value);
|
| 553 |
chandransh |
1034 |
}
|
|
|
1035 |
break;
|
|
|
1036 |
|
| 5327 |
rajveer |
1037 |
case LAST_LOGIN:
|
| 553 |
chandransh |
1038 |
if (value == null) {
|
| 5327 |
rajveer |
1039 |
unsetLastLogin();
|
| 553 |
chandransh |
1040 |
} else {
|
| 5327 |
rajveer |
1041 |
setLastLogin((Long)value);
|
| 553 |
chandransh |
1042 |
}
|
|
|
1043 |
break;
|
|
|
1044 |
|
| 5327 |
rajveer |
1045 |
case LAST_LOGOUT:
|
|
|
1046 |
if (value == null) {
|
|
|
1047 |
unsetLastLogout();
|
|
|
1048 |
} else {
|
|
|
1049 |
setLastLogout((Long)value);
|
|
|
1050 |
}
|
|
|
1051 |
break;
|
|
|
1052 |
|
|
|
1053 |
case ACTIVE_SINCE:
|
|
|
1054 |
if (value == null) {
|
|
|
1055 |
unsetActiveSince();
|
|
|
1056 |
} else {
|
|
|
1057 |
setActiveSince((Long)value);
|
|
|
1058 |
}
|
|
|
1059 |
break;
|
|
|
1060 |
|
| 553 |
chandransh |
1061 |
case ADDRESSES:
|
|
|
1062 |
if (value == null) {
|
|
|
1063 |
unsetAddresses();
|
|
|
1064 |
} else {
|
|
|
1065 |
setAddresses((List<Address>)value);
|
|
|
1066 |
}
|
|
|
1067 |
break;
|
|
|
1068 |
|
|
|
1069 |
case DEFAULT_ADDRESS_ID:
|
|
|
1070 |
if (value == null) {
|
|
|
1071 |
unsetDefaultAddressId();
|
|
|
1072 |
} else {
|
|
|
1073 |
setDefaultAddressId((Long)value);
|
|
|
1074 |
}
|
|
|
1075 |
break;
|
|
|
1076 |
|
|
|
1077 |
case COMMUNICATION_EMAIL:
|
|
|
1078 |
if (value == null) {
|
|
|
1079 |
unsetCommunicationEmail();
|
|
|
1080 |
} else {
|
|
|
1081 |
setCommunicationEmail((String)value);
|
|
|
1082 |
}
|
|
|
1083 |
break;
|
|
|
1084 |
|
|
|
1085 |
case ACTIVE_CART_ID:
|
|
|
1086 |
if (value == null) {
|
|
|
1087 |
unsetActiveCartId();
|
|
|
1088 |
} else {
|
|
|
1089 |
setActiveCartId((Long)value);
|
|
|
1090 |
}
|
|
|
1091 |
break;
|
|
|
1092 |
|
|
|
1093 |
case JSESSION_ID:
|
|
|
1094 |
if (value == null) {
|
|
|
1095 |
unsetJsessionId();
|
|
|
1096 |
} else {
|
|
|
1097 |
setJsessionId((String)value);
|
|
|
1098 |
}
|
|
|
1099 |
break;
|
|
|
1100 |
|
|
|
1101 |
case IS_ANONYMOUS:
|
|
|
1102 |
if (value == null) {
|
|
|
1103 |
unsetIsAnonymous();
|
|
|
1104 |
} else {
|
|
|
1105 |
setIsAnonymous((Boolean)value);
|
|
|
1106 |
}
|
|
|
1107 |
break;
|
|
|
1108 |
|
| 2020 |
vikas |
1109 |
case SOURCE:
|
|
|
1110 |
if (value == null) {
|
|
|
1111 |
unsetSource();
|
|
|
1112 |
} else {
|
|
|
1113 |
setSource((String)value);
|
|
|
1114 |
}
|
|
|
1115 |
break;
|
|
|
1116 |
|
| 2816 |
vikas |
1117 |
case SOURCE_START_TIME:
|
|
|
1118 |
if (value == null) {
|
|
|
1119 |
unsetSourceStartTime();
|
|
|
1120 |
} else {
|
|
|
1121 |
setSourceStartTime((Long)value);
|
|
|
1122 |
}
|
|
|
1123 |
break;
|
|
|
1124 |
|
| 3499 |
mandeep.dh |
1125 |
case TRUST_LEVEL:
|
|
|
1126 |
if (value == null) {
|
|
|
1127 |
unsetTrustLevel();
|
|
|
1128 |
} else {
|
|
|
1129 |
setTrustLevel((Double)value);
|
|
|
1130 |
}
|
|
|
1131 |
break;
|
|
|
1132 |
|
| 7825 |
amar.kumar |
1133 |
case IS_FACEBOOK_USER:
|
|
|
1134 |
if (value == null) {
|
|
|
1135 |
unsetIsFacebookUser();
|
|
|
1136 |
} else {
|
|
|
1137 |
setIsFacebookUser((Boolean)value);
|
|
|
1138 |
}
|
|
|
1139 |
break;
|
|
|
1140 |
|
|
|
1141 |
case FACEBOOK_ACCESS_TOKEN:
|
|
|
1142 |
if (value == null) {
|
|
|
1143 |
unsetFacebookAccessToken();
|
|
|
1144 |
} else {
|
|
|
1145 |
setFacebookAccessToken((String)value);
|
|
|
1146 |
}
|
|
|
1147 |
break;
|
|
|
1148 |
|
|
|
1149 |
case FACEBOOK_ID:
|
|
|
1150 |
if (value == null) {
|
|
|
1151 |
unsetFacebookId();
|
|
|
1152 |
} else {
|
|
|
1153 |
setFacebookId((String)value);
|
|
|
1154 |
}
|
|
|
1155 |
break;
|
|
|
1156 |
|
| 8201 |
rajveer |
1157 |
case SOURCE_ID:
|
|
|
1158 |
if (value == null) {
|
|
|
1159 |
unsetSourceId();
|
|
|
1160 |
} else {
|
|
|
1161 |
setSourceId((Long)value);
|
|
|
1162 |
}
|
|
|
1163 |
break;
|
|
|
1164 |
|
| 553 |
chandransh |
1165 |
}
|
|
|
1166 |
}
|
|
|
1167 |
|
|
|
1168 |
public Object getFieldValue(_Fields field) {
|
|
|
1169 |
switch (field) {
|
|
|
1170 |
case USER_ID:
|
| 3430 |
rajveer |
1171 |
return Long.valueOf(getUserId());
|
| 553 |
chandransh |
1172 |
|
|
|
1173 |
case EMAIL:
|
|
|
1174 |
return getEmail();
|
|
|
1175 |
|
|
|
1176 |
case PASSWORD:
|
|
|
1177 |
return getPassword();
|
|
|
1178 |
|
|
|
1179 |
case NAME:
|
|
|
1180 |
return getName();
|
|
|
1181 |
|
|
|
1182 |
case DATE_OF_BIRTH:
|
| 571 |
rajveer |
1183 |
return getDateOfBirth();
|
| 553 |
chandransh |
1184 |
|
|
|
1185 |
case SEX:
|
|
|
1186 |
return getSex();
|
|
|
1187 |
|
| 571 |
rajveer |
1188 |
case MOBILE_NUMBER:
|
|
|
1189 |
return getMobileNumber();
|
| 553 |
chandransh |
1190 |
|
| 5327 |
rajveer |
1191 |
case LAST_LOGIN:
|
|
|
1192 |
return Long.valueOf(getLastLogin());
|
| 553 |
chandransh |
1193 |
|
| 5327 |
rajveer |
1194 |
case LAST_LOGOUT:
|
|
|
1195 |
return Long.valueOf(getLastLogout());
|
|
|
1196 |
|
|
|
1197 |
case ACTIVE_SINCE:
|
|
|
1198 |
return Long.valueOf(getActiveSince());
|
|
|
1199 |
|
| 553 |
chandransh |
1200 |
case ADDRESSES:
|
|
|
1201 |
return getAddresses();
|
|
|
1202 |
|
|
|
1203 |
case DEFAULT_ADDRESS_ID:
|
| 3430 |
rajveer |
1204 |
return Long.valueOf(getDefaultAddressId());
|
| 553 |
chandransh |
1205 |
|
|
|
1206 |
case COMMUNICATION_EMAIL:
|
|
|
1207 |
return getCommunicationEmail();
|
|
|
1208 |
|
|
|
1209 |
case ACTIVE_CART_ID:
|
| 3430 |
rajveer |
1210 |
return Long.valueOf(getActiveCartId());
|
| 553 |
chandransh |
1211 |
|
|
|
1212 |
case JSESSION_ID:
|
|
|
1213 |
return getJsessionId();
|
|
|
1214 |
|
|
|
1215 |
case IS_ANONYMOUS:
|
| 3430 |
rajveer |
1216 |
return Boolean.valueOf(isIsAnonymous());
|
| 553 |
chandransh |
1217 |
|
| 2020 |
vikas |
1218 |
case SOURCE:
|
|
|
1219 |
return getSource();
|
|
|
1220 |
|
| 2816 |
vikas |
1221 |
case SOURCE_START_TIME:
|
| 3430 |
rajveer |
1222 |
return Long.valueOf(getSourceStartTime());
|
| 2816 |
vikas |
1223 |
|
| 3499 |
mandeep.dh |
1224 |
case TRUST_LEVEL:
|
|
|
1225 |
return Double.valueOf(getTrustLevel());
|
|
|
1226 |
|
| 7825 |
amar.kumar |
1227 |
case IS_FACEBOOK_USER:
|
|
|
1228 |
return Boolean.valueOf(isIsFacebookUser());
|
|
|
1229 |
|
|
|
1230 |
case FACEBOOK_ACCESS_TOKEN:
|
|
|
1231 |
return getFacebookAccessToken();
|
|
|
1232 |
|
|
|
1233 |
case FACEBOOK_ID:
|
|
|
1234 |
return getFacebookId();
|
|
|
1235 |
|
| 8201 |
rajveer |
1236 |
case SOURCE_ID:
|
|
|
1237 |
return Long.valueOf(getSourceId());
|
|
|
1238 |
|
| 553 |
chandransh |
1239 |
}
|
|
|
1240 |
throw new IllegalStateException();
|
|
|
1241 |
}
|
|
|
1242 |
|
| 3430 |
rajveer |
1243 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
1244 |
public boolean isSet(_Fields field) {
|
|
|
1245 |
if (field == null) {
|
|
|
1246 |
throw new IllegalArgumentException();
|
|
|
1247 |
}
|
| 553 |
chandransh |
1248 |
|
|
|
1249 |
switch (field) {
|
|
|
1250 |
case USER_ID:
|
|
|
1251 |
return isSetUserId();
|
|
|
1252 |
case EMAIL:
|
|
|
1253 |
return isSetEmail();
|
|
|
1254 |
case PASSWORD:
|
|
|
1255 |
return isSetPassword();
|
|
|
1256 |
case NAME:
|
|
|
1257 |
return isSetName();
|
|
|
1258 |
case DATE_OF_BIRTH:
|
|
|
1259 |
return isSetDateOfBirth();
|
|
|
1260 |
case SEX:
|
|
|
1261 |
return isSetSex();
|
| 571 |
rajveer |
1262 |
case MOBILE_NUMBER:
|
|
|
1263 |
return isSetMobileNumber();
|
| 5327 |
rajveer |
1264 |
case LAST_LOGIN:
|
|
|
1265 |
return isSetLastLogin();
|
|
|
1266 |
case LAST_LOGOUT:
|
|
|
1267 |
return isSetLastLogout();
|
|
|
1268 |
case ACTIVE_SINCE:
|
|
|
1269 |
return isSetActiveSince();
|
| 553 |
chandransh |
1270 |
case ADDRESSES:
|
|
|
1271 |
return isSetAddresses();
|
|
|
1272 |
case DEFAULT_ADDRESS_ID:
|
|
|
1273 |
return isSetDefaultAddressId();
|
|
|
1274 |
case COMMUNICATION_EMAIL:
|
|
|
1275 |
return isSetCommunicationEmail();
|
|
|
1276 |
case ACTIVE_CART_ID:
|
|
|
1277 |
return isSetActiveCartId();
|
|
|
1278 |
case JSESSION_ID:
|
|
|
1279 |
return isSetJsessionId();
|
|
|
1280 |
case IS_ANONYMOUS:
|
|
|
1281 |
return isSetIsAnonymous();
|
| 2020 |
vikas |
1282 |
case SOURCE:
|
|
|
1283 |
return isSetSource();
|
| 2816 |
vikas |
1284 |
case SOURCE_START_TIME:
|
|
|
1285 |
return isSetSourceStartTime();
|
| 3499 |
mandeep.dh |
1286 |
case TRUST_LEVEL:
|
|
|
1287 |
return isSetTrustLevel();
|
| 7825 |
amar.kumar |
1288 |
case IS_FACEBOOK_USER:
|
|
|
1289 |
return isSetIsFacebookUser();
|
|
|
1290 |
case FACEBOOK_ACCESS_TOKEN:
|
|
|
1291 |
return isSetFacebookAccessToken();
|
|
|
1292 |
case FACEBOOK_ID:
|
|
|
1293 |
return isSetFacebookId();
|
| 8201 |
rajveer |
1294 |
case SOURCE_ID:
|
|
|
1295 |
return isSetSourceId();
|
| 553 |
chandransh |
1296 |
}
|
|
|
1297 |
throw new IllegalStateException();
|
|
|
1298 |
}
|
|
|
1299 |
|
|
|
1300 |
@Override
|
|
|
1301 |
public boolean equals(Object that) {
|
|
|
1302 |
if (that == null)
|
|
|
1303 |
return false;
|
|
|
1304 |
if (that instanceof User)
|
|
|
1305 |
return this.equals((User)that);
|
|
|
1306 |
return false;
|
|
|
1307 |
}
|
|
|
1308 |
|
|
|
1309 |
public boolean equals(User that) {
|
|
|
1310 |
if (that == null)
|
|
|
1311 |
return false;
|
|
|
1312 |
|
|
|
1313 |
boolean this_present_userId = true;
|
|
|
1314 |
boolean that_present_userId = true;
|
|
|
1315 |
if (this_present_userId || that_present_userId) {
|
|
|
1316 |
if (!(this_present_userId && that_present_userId))
|
|
|
1317 |
return false;
|
|
|
1318 |
if (this.userId != that.userId)
|
|
|
1319 |
return false;
|
|
|
1320 |
}
|
|
|
1321 |
|
|
|
1322 |
boolean this_present_email = true && this.isSetEmail();
|
|
|
1323 |
boolean that_present_email = true && that.isSetEmail();
|
|
|
1324 |
if (this_present_email || that_present_email) {
|
|
|
1325 |
if (!(this_present_email && that_present_email))
|
|
|
1326 |
return false;
|
|
|
1327 |
if (!this.email.equals(that.email))
|
|
|
1328 |
return false;
|
|
|
1329 |
}
|
|
|
1330 |
|
|
|
1331 |
boolean this_present_password = true && this.isSetPassword();
|
|
|
1332 |
boolean that_present_password = true && that.isSetPassword();
|
|
|
1333 |
if (this_present_password || that_present_password) {
|
|
|
1334 |
if (!(this_present_password && that_present_password))
|
|
|
1335 |
return false;
|
|
|
1336 |
if (!this.password.equals(that.password))
|
|
|
1337 |
return false;
|
|
|
1338 |
}
|
|
|
1339 |
|
|
|
1340 |
boolean this_present_name = true && this.isSetName();
|
|
|
1341 |
boolean that_present_name = true && that.isSetName();
|
|
|
1342 |
if (this_present_name || that_present_name) {
|
|
|
1343 |
if (!(this_present_name && that_present_name))
|
|
|
1344 |
return false;
|
|
|
1345 |
if (!this.name.equals(that.name))
|
|
|
1346 |
return false;
|
|
|
1347 |
}
|
|
|
1348 |
|
| 571 |
rajveer |
1349 |
boolean this_present_dateOfBirth = true && this.isSetDateOfBirth();
|
|
|
1350 |
boolean that_present_dateOfBirth = true && that.isSetDateOfBirth();
|
| 553 |
chandransh |
1351 |
if (this_present_dateOfBirth || that_present_dateOfBirth) {
|
|
|
1352 |
if (!(this_present_dateOfBirth && that_present_dateOfBirth))
|
|
|
1353 |
return false;
|
| 571 |
rajveer |
1354 |
if (!this.dateOfBirth.equals(that.dateOfBirth))
|
| 553 |
chandransh |
1355 |
return false;
|
|
|
1356 |
}
|
|
|
1357 |
|
|
|
1358 |
boolean this_present_sex = true && this.isSetSex();
|
|
|
1359 |
boolean that_present_sex = true && that.isSetSex();
|
|
|
1360 |
if (this_present_sex || that_present_sex) {
|
|
|
1361 |
if (!(this_present_sex && that_present_sex))
|
|
|
1362 |
return false;
|
|
|
1363 |
if (!this.sex.equals(that.sex))
|
|
|
1364 |
return false;
|
|
|
1365 |
}
|
|
|
1366 |
|
| 571 |
rajveer |
1367 |
boolean this_present_mobileNumber = true && this.isSetMobileNumber();
|
|
|
1368 |
boolean that_present_mobileNumber = true && that.isSetMobileNumber();
|
|
|
1369 |
if (this_present_mobileNumber || that_present_mobileNumber) {
|
|
|
1370 |
if (!(this_present_mobileNumber && that_present_mobileNumber))
|
| 553 |
chandransh |
1371 |
return false;
|
| 571 |
rajveer |
1372 |
if (!this.mobileNumber.equals(that.mobileNumber))
|
| 553 |
chandransh |
1373 |
return false;
|
|
|
1374 |
}
|
|
|
1375 |
|
| 5327 |
rajveer |
1376 |
boolean this_present_lastLogin = true;
|
|
|
1377 |
boolean that_present_lastLogin = true;
|
|
|
1378 |
if (this_present_lastLogin || that_present_lastLogin) {
|
|
|
1379 |
if (!(this_present_lastLogin && that_present_lastLogin))
|
| 553 |
chandransh |
1380 |
return false;
|
| 5327 |
rajveer |
1381 |
if (this.lastLogin != that.lastLogin)
|
| 553 |
chandransh |
1382 |
return false;
|
|
|
1383 |
}
|
|
|
1384 |
|
| 5327 |
rajveer |
1385 |
boolean this_present_lastLogout = true;
|
|
|
1386 |
boolean that_present_lastLogout = true;
|
|
|
1387 |
if (this_present_lastLogout || that_present_lastLogout) {
|
|
|
1388 |
if (!(this_present_lastLogout && that_present_lastLogout))
|
|
|
1389 |
return false;
|
|
|
1390 |
if (this.lastLogout != that.lastLogout)
|
|
|
1391 |
return false;
|
|
|
1392 |
}
|
|
|
1393 |
|
|
|
1394 |
boolean this_present_activeSince = true;
|
|
|
1395 |
boolean that_present_activeSince = true;
|
|
|
1396 |
if (this_present_activeSince || that_present_activeSince) {
|
|
|
1397 |
if (!(this_present_activeSince && that_present_activeSince))
|
|
|
1398 |
return false;
|
|
|
1399 |
if (this.activeSince != that.activeSince)
|
|
|
1400 |
return false;
|
|
|
1401 |
}
|
|
|
1402 |
|
| 553 |
chandransh |
1403 |
boolean this_present_addresses = true && this.isSetAddresses();
|
|
|
1404 |
boolean that_present_addresses = true && that.isSetAddresses();
|
|
|
1405 |
if (this_present_addresses || that_present_addresses) {
|
|
|
1406 |
if (!(this_present_addresses && that_present_addresses))
|
|
|
1407 |
return false;
|
|
|
1408 |
if (!this.addresses.equals(that.addresses))
|
|
|
1409 |
return false;
|
|
|
1410 |
}
|
|
|
1411 |
|
|
|
1412 |
boolean this_present_defaultAddressId = true;
|
|
|
1413 |
boolean that_present_defaultAddressId = true;
|
|
|
1414 |
if (this_present_defaultAddressId || that_present_defaultAddressId) {
|
|
|
1415 |
if (!(this_present_defaultAddressId && that_present_defaultAddressId))
|
|
|
1416 |
return false;
|
|
|
1417 |
if (this.defaultAddressId != that.defaultAddressId)
|
|
|
1418 |
return false;
|
|
|
1419 |
}
|
|
|
1420 |
|
|
|
1421 |
boolean this_present_communicationEmail = true && this.isSetCommunicationEmail();
|
|
|
1422 |
boolean that_present_communicationEmail = true && that.isSetCommunicationEmail();
|
|
|
1423 |
if (this_present_communicationEmail || that_present_communicationEmail) {
|
|
|
1424 |
if (!(this_present_communicationEmail && that_present_communicationEmail))
|
|
|
1425 |
return false;
|
|
|
1426 |
if (!this.communicationEmail.equals(that.communicationEmail))
|
|
|
1427 |
return false;
|
|
|
1428 |
}
|
|
|
1429 |
|
|
|
1430 |
boolean this_present_activeCartId = true;
|
|
|
1431 |
boolean that_present_activeCartId = true;
|
|
|
1432 |
if (this_present_activeCartId || that_present_activeCartId) {
|
|
|
1433 |
if (!(this_present_activeCartId && that_present_activeCartId))
|
|
|
1434 |
return false;
|
|
|
1435 |
if (this.activeCartId != that.activeCartId)
|
|
|
1436 |
return false;
|
|
|
1437 |
}
|
|
|
1438 |
|
|
|
1439 |
boolean this_present_jsessionId = true && this.isSetJsessionId();
|
|
|
1440 |
boolean that_present_jsessionId = true && that.isSetJsessionId();
|
|
|
1441 |
if (this_present_jsessionId || that_present_jsessionId) {
|
|
|
1442 |
if (!(this_present_jsessionId && that_present_jsessionId))
|
|
|
1443 |
return false;
|
|
|
1444 |
if (!this.jsessionId.equals(that.jsessionId))
|
|
|
1445 |
return false;
|
|
|
1446 |
}
|
|
|
1447 |
|
|
|
1448 |
boolean this_present_isAnonymous = true;
|
|
|
1449 |
boolean that_present_isAnonymous = true;
|
|
|
1450 |
if (this_present_isAnonymous || that_present_isAnonymous) {
|
|
|
1451 |
if (!(this_present_isAnonymous && that_present_isAnonymous))
|
|
|
1452 |
return false;
|
|
|
1453 |
if (this.isAnonymous != that.isAnonymous)
|
|
|
1454 |
return false;
|
|
|
1455 |
}
|
|
|
1456 |
|
| 2020 |
vikas |
1457 |
boolean this_present_source = true && this.isSetSource();
|
|
|
1458 |
boolean that_present_source = true && that.isSetSource();
|
|
|
1459 |
if (this_present_source || that_present_source) {
|
|
|
1460 |
if (!(this_present_source && that_present_source))
|
|
|
1461 |
return false;
|
|
|
1462 |
if (!this.source.equals(that.source))
|
|
|
1463 |
return false;
|
|
|
1464 |
}
|
|
|
1465 |
|
| 2816 |
vikas |
1466 |
boolean this_present_sourceStartTime = true;
|
|
|
1467 |
boolean that_present_sourceStartTime = true;
|
|
|
1468 |
if (this_present_sourceStartTime || that_present_sourceStartTime) {
|
|
|
1469 |
if (!(this_present_sourceStartTime && that_present_sourceStartTime))
|
|
|
1470 |
return false;
|
|
|
1471 |
if (this.sourceStartTime != that.sourceStartTime)
|
|
|
1472 |
return false;
|
|
|
1473 |
}
|
|
|
1474 |
|
| 3499 |
mandeep.dh |
1475 |
boolean this_present_trustLevel = true;
|
|
|
1476 |
boolean that_present_trustLevel = true;
|
|
|
1477 |
if (this_present_trustLevel || that_present_trustLevel) {
|
|
|
1478 |
if (!(this_present_trustLevel && that_present_trustLevel))
|
|
|
1479 |
return false;
|
|
|
1480 |
if (this.trustLevel != that.trustLevel)
|
|
|
1481 |
return false;
|
|
|
1482 |
}
|
|
|
1483 |
|
| 7825 |
amar.kumar |
1484 |
boolean this_present_isFacebookUser = true;
|
|
|
1485 |
boolean that_present_isFacebookUser = true;
|
|
|
1486 |
if (this_present_isFacebookUser || that_present_isFacebookUser) {
|
|
|
1487 |
if (!(this_present_isFacebookUser && that_present_isFacebookUser))
|
|
|
1488 |
return false;
|
|
|
1489 |
if (this.isFacebookUser != that.isFacebookUser)
|
|
|
1490 |
return false;
|
|
|
1491 |
}
|
|
|
1492 |
|
|
|
1493 |
boolean this_present_facebookAccessToken = true && this.isSetFacebookAccessToken();
|
|
|
1494 |
boolean that_present_facebookAccessToken = true && that.isSetFacebookAccessToken();
|
|
|
1495 |
if (this_present_facebookAccessToken || that_present_facebookAccessToken) {
|
|
|
1496 |
if (!(this_present_facebookAccessToken && that_present_facebookAccessToken))
|
|
|
1497 |
return false;
|
|
|
1498 |
if (!this.facebookAccessToken.equals(that.facebookAccessToken))
|
|
|
1499 |
return false;
|
|
|
1500 |
}
|
|
|
1501 |
|
|
|
1502 |
boolean this_present_facebookId = true && this.isSetFacebookId();
|
|
|
1503 |
boolean that_present_facebookId = true && that.isSetFacebookId();
|
|
|
1504 |
if (this_present_facebookId || that_present_facebookId) {
|
|
|
1505 |
if (!(this_present_facebookId && that_present_facebookId))
|
|
|
1506 |
return false;
|
|
|
1507 |
if (!this.facebookId.equals(that.facebookId))
|
|
|
1508 |
return false;
|
|
|
1509 |
}
|
|
|
1510 |
|
| 8201 |
rajveer |
1511 |
boolean this_present_sourceId = true;
|
|
|
1512 |
boolean that_present_sourceId = true;
|
|
|
1513 |
if (this_present_sourceId || that_present_sourceId) {
|
|
|
1514 |
if (!(this_present_sourceId && that_present_sourceId))
|
|
|
1515 |
return false;
|
|
|
1516 |
if (this.sourceId != that.sourceId)
|
|
|
1517 |
return false;
|
|
|
1518 |
}
|
|
|
1519 |
|
| 553 |
chandransh |
1520 |
return true;
|
|
|
1521 |
}
|
|
|
1522 |
|
|
|
1523 |
@Override
|
|
|
1524 |
public int hashCode() {
|
|
|
1525 |
return 0;
|
|
|
1526 |
}
|
|
|
1527 |
|
| 571 |
rajveer |
1528 |
public int compareTo(User other) {
|
|
|
1529 |
if (!getClass().equals(other.getClass())) {
|
|
|
1530 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
1531 |
}
|
|
|
1532 |
|
|
|
1533 |
int lastComparison = 0;
|
|
|
1534 |
User typedOther = (User)other;
|
|
|
1535 |
|
| 3430 |
rajveer |
1536 |
lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
|
| 571 |
rajveer |
1537 |
if (lastComparison != 0) {
|
|
|
1538 |
return lastComparison;
|
|
|
1539 |
}
|
| 3430 |
rajveer |
1540 |
if (isSetUserId()) {
|
|
|
1541 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
|
|
|
1542 |
if (lastComparison != 0) {
|
|
|
1543 |
return lastComparison;
|
|
|
1544 |
}
|
| 571 |
rajveer |
1545 |
}
|
| 3430 |
rajveer |
1546 |
lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());
|
| 571 |
rajveer |
1547 |
if (lastComparison != 0) {
|
|
|
1548 |
return lastComparison;
|
|
|
1549 |
}
|
| 3430 |
rajveer |
1550 |
if (isSetEmail()) {
|
|
|
1551 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);
|
|
|
1552 |
if (lastComparison != 0) {
|
|
|
1553 |
return lastComparison;
|
|
|
1554 |
}
|
| 571 |
rajveer |
1555 |
}
|
| 3430 |
rajveer |
1556 |
lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
|
| 571 |
rajveer |
1557 |
if (lastComparison != 0) {
|
|
|
1558 |
return lastComparison;
|
|
|
1559 |
}
|
| 3430 |
rajveer |
1560 |
if (isSetPassword()) {
|
|
|
1561 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
|
|
|
1562 |
if (lastComparison != 0) {
|
|
|
1563 |
return lastComparison;
|
|
|
1564 |
}
|
| 571 |
rajveer |
1565 |
}
|
| 3430 |
rajveer |
1566 |
lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
|
| 571 |
rajveer |
1567 |
if (lastComparison != 0) {
|
|
|
1568 |
return lastComparison;
|
|
|
1569 |
}
|
| 3430 |
rajveer |
1570 |
if (isSetName()) {
|
|
|
1571 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
|
|
|
1572 |
if (lastComparison != 0) {
|
|
|
1573 |
return lastComparison;
|
|
|
1574 |
}
|
| 571 |
rajveer |
1575 |
}
|
| 3430 |
rajveer |
1576 |
lastComparison = Boolean.valueOf(isSetDateOfBirth()).compareTo(typedOther.isSetDateOfBirth());
|
| 571 |
rajveer |
1577 |
if (lastComparison != 0) {
|
|
|
1578 |
return lastComparison;
|
|
|
1579 |
}
|
| 3430 |
rajveer |
1580 |
if (isSetDateOfBirth()) {
|
|
|
1581 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dateOfBirth, typedOther.dateOfBirth);
|
|
|
1582 |
if (lastComparison != 0) {
|
|
|
1583 |
return lastComparison;
|
|
|
1584 |
}
|
| 571 |
rajveer |
1585 |
}
|
| 3430 |
rajveer |
1586 |
lastComparison = Boolean.valueOf(isSetSex()).compareTo(typedOther.isSetSex());
|
| 571 |
rajveer |
1587 |
if (lastComparison != 0) {
|
|
|
1588 |
return lastComparison;
|
|
|
1589 |
}
|
| 3430 |
rajveer |
1590 |
if (isSetSex()) {
|
|
|
1591 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sex, typedOther.sex);
|
|
|
1592 |
if (lastComparison != 0) {
|
|
|
1593 |
return lastComparison;
|
|
|
1594 |
}
|
| 571 |
rajveer |
1595 |
}
|
| 3430 |
rajveer |
1596 |
lastComparison = Boolean.valueOf(isSetMobileNumber()).compareTo(typedOther.isSetMobileNumber());
|
| 571 |
rajveer |
1597 |
if (lastComparison != 0) {
|
|
|
1598 |
return lastComparison;
|
|
|
1599 |
}
|
| 3430 |
rajveer |
1600 |
if (isSetMobileNumber()) {
|
|
|
1601 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mobileNumber, typedOther.mobileNumber);
|
|
|
1602 |
if (lastComparison != 0) {
|
|
|
1603 |
return lastComparison;
|
|
|
1604 |
}
|
| 571 |
rajveer |
1605 |
}
|
| 5327 |
rajveer |
1606 |
lastComparison = Boolean.valueOf(isSetLastLogin()).compareTo(typedOther.isSetLastLogin());
|
| 571 |
rajveer |
1607 |
if (lastComparison != 0) {
|
|
|
1608 |
return lastComparison;
|
|
|
1609 |
}
|
| 5327 |
rajveer |
1610 |
if (isSetLastLogin()) {
|
|
|
1611 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastLogin, typedOther.lastLogin);
|
| 3430 |
rajveer |
1612 |
if (lastComparison != 0) {
|
|
|
1613 |
return lastComparison;
|
|
|
1614 |
}
|
| 571 |
rajveer |
1615 |
}
|
| 5327 |
rajveer |
1616 |
lastComparison = Boolean.valueOf(isSetLastLogout()).compareTo(typedOther.isSetLastLogout());
|
|
|
1617 |
if (lastComparison != 0) {
|
|
|
1618 |
return lastComparison;
|
|
|
1619 |
}
|
|
|
1620 |
if (isSetLastLogout()) {
|
|
|
1621 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastLogout, typedOther.lastLogout);
|
|
|
1622 |
if (lastComparison != 0) {
|
|
|
1623 |
return lastComparison;
|
|
|
1624 |
}
|
|
|
1625 |
}
|
|
|
1626 |
lastComparison = Boolean.valueOf(isSetActiveSince()).compareTo(typedOther.isSetActiveSince());
|
|
|
1627 |
if (lastComparison != 0) {
|
|
|
1628 |
return lastComparison;
|
|
|
1629 |
}
|
|
|
1630 |
if (isSetActiveSince()) {
|
|
|
1631 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.activeSince, typedOther.activeSince);
|
|
|
1632 |
if (lastComparison != 0) {
|
|
|
1633 |
return lastComparison;
|
|
|
1634 |
}
|
|
|
1635 |
}
|
| 3430 |
rajveer |
1636 |
lastComparison = Boolean.valueOf(isSetAddresses()).compareTo(typedOther.isSetAddresses());
|
| 571 |
rajveer |
1637 |
if (lastComparison != 0) {
|
|
|
1638 |
return lastComparison;
|
|
|
1639 |
}
|
| 3430 |
rajveer |
1640 |
if (isSetAddresses()) {
|
|
|
1641 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addresses, typedOther.addresses);
|
|
|
1642 |
if (lastComparison != 0) {
|
|
|
1643 |
return lastComparison;
|
|
|
1644 |
}
|
| 571 |
rajveer |
1645 |
}
|
| 3430 |
rajveer |
1646 |
lastComparison = Boolean.valueOf(isSetDefaultAddressId()).compareTo(typedOther.isSetDefaultAddressId());
|
| 571 |
rajveer |
1647 |
if (lastComparison != 0) {
|
|
|
1648 |
return lastComparison;
|
|
|
1649 |
}
|
| 3430 |
rajveer |
1650 |
if (isSetDefaultAddressId()) {
|
|
|
1651 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.defaultAddressId, typedOther.defaultAddressId);
|
|
|
1652 |
if (lastComparison != 0) {
|
|
|
1653 |
return lastComparison;
|
|
|
1654 |
}
|
| 571 |
rajveer |
1655 |
}
|
| 3430 |
rajveer |
1656 |
lastComparison = Boolean.valueOf(isSetCommunicationEmail()).compareTo(typedOther.isSetCommunicationEmail());
|
| 571 |
rajveer |
1657 |
if (lastComparison != 0) {
|
|
|
1658 |
return lastComparison;
|
|
|
1659 |
}
|
| 3430 |
rajveer |
1660 |
if (isSetCommunicationEmail()) {
|
|
|
1661 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.communicationEmail, typedOther.communicationEmail);
|
|
|
1662 |
if (lastComparison != 0) {
|
|
|
1663 |
return lastComparison;
|
|
|
1664 |
}
|
| 571 |
rajveer |
1665 |
}
|
| 3430 |
rajveer |
1666 |
lastComparison = Boolean.valueOf(isSetActiveCartId()).compareTo(typedOther.isSetActiveCartId());
|
| 571 |
rajveer |
1667 |
if (lastComparison != 0) {
|
|
|
1668 |
return lastComparison;
|
|
|
1669 |
}
|
| 3430 |
rajveer |
1670 |
if (isSetActiveCartId()) {
|
|
|
1671 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.activeCartId, typedOther.activeCartId);
|
|
|
1672 |
if (lastComparison != 0) {
|
|
|
1673 |
return lastComparison;
|
|
|
1674 |
}
|
| 571 |
rajveer |
1675 |
}
|
| 3430 |
rajveer |
1676 |
lastComparison = Boolean.valueOf(isSetJsessionId()).compareTo(typedOther.isSetJsessionId());
|
| 571 |
rajveer |
1677 |
if (lastComparison != 0) {
|
|
|
1678 |
return lastComparison;
|
|
|
1679 |
}
|
| 3430 |
rajveer |
1680 |
if (isSetJsessionId()) {
|
|
|
1681 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.jsessionId, typedOther.jsessionId);
|
|
|
1682 |
if (lastComparison != 0) {
|
|
|
1683 |
return lastComparison;
|
|
|
1684 |
}
|
| 571 |
rajveer |
1685 |
}
|
| 3430 |
rajveer |
1686 |
lastComparison = Boolean.valueOf(isSetIsAnonymous()).compareTo(typedOther.isSetIsAnonymous());
|
| 571 |
rajveer |
1687 |
if (lastComparison != 0) {
|
|
|
1688 |
return lastComparison;
|
|
|
1689 |
}
|
| 3430 |
rajveer |
1690 |
if (isSetIsAnonymous()) {
|
|
|
1691 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isAnonymous, typedOther.isAnonymous);
|
|
|
1692 |
if (lastComparison != 0) {
|
|
|
1693 |
return lastComparison;
|
|
|
1694 |
}
|
| 571 |
rajveer |
1695 |
}
|
| 3430 |
rajveer |
1696 |
lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
|
| 2020 |
vikas |
1697 |
if (lastComparison != 0) {
|
|
|
1698 |
return lastComparison;
|
|
|
1699 |
}
|
| 3430 |
rajveer |
1700 |
if (isSetSource()) {
|
|
|
1701 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
|
|
|
1702 |
if (lastComparison != 0) {
|
|
|
1703 |
return lastComparison;
|
|
|
1704 |
}
|
| 2020 |
vikas |
1705 |
}
|
| 3430 |
rajveer |
1706 |
lastComparison = Boolean.valueOf(isSetSourceStartTime()).compareTo(typedOther.isSetSourceStartTime());
|
| 2816 |
vikas |
1707 |
if (lastComparison != 0) {
|
|
|
1708 |
return lastComparison;
|
|
|
1709 |
}
|
| 3430 |
rajveer |
1710 |
if (isSetSourceStartTime()) {
|
|
|
1711 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceStartTime, typedOther.sourceStartTime);
|
|
|
1712 |
if (lastComparison != 0) {
|
|
|
1713 |
return lastComparison;
|
|
|
1714 |
}
|
| 2816 |
vikas |
1715 |
}
|
| 3499 |
mandeep.dh |
1716 |
lastComparison = Boolean.valueOf(isSetTrustLevel()).compareTo(typedOther.isSetTrustLevel());
|
|
|
1717 |
if (lastComparison != 0) {
|
|
|
1718 |
return lastComparison;
|
|
|
1719 |
}
|
|
|
1720 |
if (isSetTrustLevel()) {
|
|
|
1721 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.trustLevel, typedOther.trustLevel);
|
|
|
1722 |
if (lastComparison != 0) {
|
|
|
1723 |
return lastComparison;
|
|
|
1724 |
}
|
|
|
1725 |
}
|
| 7825 |
amar.kumar |
1726 |
lastComparison = Boolean.valueOf(isSetIsFacebookUser()).compareTo(typedOther.isSetIsFacebookUser());
|
|
|
1727 |
if (lastComparison != 0) {
|
|
|
1728 |
return lastComparison;
|
|
|
1729 |
}
|
|
|
1730 |
if (isSetIsFacebookUser()) {
|
|
|
1731 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isFacebookUser, typedOther.isFacebookUser);
|
|
|
1732 |
if (lastComparison != 0) {
|
|
|
1733 |
return lastComparison;
|
|
|
1734 |
}
|
|
|
1735 |
}
|
|
|
1736 |
lastComparison = Boolean.valueOf(isSetFacebookAccessToken()).compareTo(typedOther.isSetFacebookAccessToken());
|
|
|
1737 |
if (lastComparison != 0) {
|
|
|
1738 |
return lastComparison;
|
|
|
1739 |
}
|
|
|
1740 |
if (isSetFacebookAccessToken()) {
|
|
|
1741 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.facebookAccessToken, typedOther.facebookAccessToken);
|
|
|
1742 |
if (lastComparison != 0) {
|
|
|
1743 |
return lastComparison;
|
|
|
1744 |
}
|
|
|
1745 |
}
|
|
|
1746 |
lastComparison = Boolean.valueOf(isSetFacebookId()).compareTo(typedOther.isSetFacebookId());
|
|
|
1747 |
if (lastComparison != 0) {
|
|
|
1748 |
return lastComparison;
|
|
|
1749 |
}
|
|
|
1750 |
if (isSetFacebookId()) {
|
|
|
1751 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.facebookId, typedOther.facebookId);
|
|
|
1752 |
if (lastComparison != 0) {
|
|
|
1753 |
return lastComparison;
|
|
|
1754 |
}
|
|
|
1755 |
}
|
| 8201 |
rajveer |
1756 |
lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
|
|
|
1757 |
if (lastComparison != 0) {
|
|
|
1758 |
return lastComparison;
|
|
|
1759 |
}
|
|
|
1760 |
if (isSetSourceId()) {
|
|
|
1761 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
|
|
|
1762 |
if (lastComparison != 0) {
|
|
|
1763 |
return lastComparison;
|
|
|
1764 |
}
|
|
|
1765 |
}
|
| 571 |
rajveer |
1766 |
return 0;
|
|
|
1767 |
}
|
|
|
1768 |
|
| 3430 |
rajveer |
1769 |
public _Fields fieldForId(int fieldId) {
|
|
|
1770 |
return _Fields.findByThriftId(fieldId);
|
|
|
1771 |
}
|
|
|
1772 |
|
|
|
1773 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
1774 |
org.apache.thrift.protocol.TField field;
|
| 553 |
chandransh |
1775 |
iprot.readStructBegin();
|
|
|
1776 |
while (true)
|
|
|
1777 |
{
|
|
|
1778 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
1779 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 553 |
chandransh |
1780 |
break;
|
|
|
1781 |
}
|
| 3430 |
rajveer |
1782 |
switch (field.id) {
|
|
|
1783 |
case 1: // USER_ID
|
|
|
1784 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1785 |
this.userId = iprot.readI64();
|
|
|
1786 |
setUserIdIsSet(true);
|
|
|
1787 |
} else {
|
|
|
1788 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1789 |
}
|
|
|
1790 |
break;
|
|
|
1791 |
case 2: // EMAIL
|
|
|
1792 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1793 |
this.email = iprot.readString();
|
|
|
1794 |
} else {
|
|
|
1795 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1796 |
}
|
|
|
1797 |
break;
|
|
|
1798 |
case 3: // PASSWORD
|
|
|
1799 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1800 |
this.password = iprot.readString();
|
|
|
1801 |
} else {
|
|
|
1802 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1803 |
}
|
|
|
1804 |
break;
|
|
|
1805 |
case 4: // NAME
|
|
|
1806 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1807 |
this.name = iprot.readString();
|
|
|
1808 |
} else {
|
|
|
1809 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1810 |
}
|
|
|
1811 |
break;
|
|
|
1812 |
case 5: // DATE_OF_BIRTH
|
|
|
1813 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1814 |
this.dateOfBirth = iprot.readString();
|
|
|
1815 |
} else {
|
|
|
1816 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1817 |
}
|
|
|
1818 |
break;
|
|
|
1819 |
case 6: // SEX
|
|
|
1820 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
1821 |
this.sex = Sex.findByValue(iprot.readI32());
|
|
|
1822 |
} else {
|
|
|
1823 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1824 |
}
|
|
|
1825 |
break;
|
|
|
1826 |
case 7: // MOBILE_NUMBER
|
|
|
1827 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1828 |
this.mobileNumber = iprot.readString();
|
|
|
1829 |
} else {
|
|
|
1830 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1831 |
}
|
|
|
1832 |
break;
|
| 5327 |
rajveer |
1833 |
case 8: // LAST_LOGIN
|
|
|
1834 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1835 |
this.lastLogin = iprot.readI64();
|
|
|
1836 |
setLastLoginIsSet(true);
|
| 3430 |
rajveer |
1837 |
} else {
|
|
|
1838 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1839 |
}
|
|
|
1840 |
break;
|
| 5327 |
rajveer |
1841 |
case 9: // LAST_LOGOUT
|
|
|
1842 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1843 |
this.lastLogout = iprot.readI64();
|
|
|
1844 |
setLastLogoutIsSet(true);
|
|
|
1845 |
} else {
|
|
|
1846 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1847 |
}
|
|
|
1848 |
break;
|
|
|
1849 |
case 10: // ACTIVE_SINCE
|
|
|
1850 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1851 |
this.activeSince = iprot.readI64();
|
|
|
1852 |
setActiveSinceIsSet(true);
|
|
|
1853 |
} else {
|
|
|
1854 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1855 |
}
|
|
|
1856 |
break;
|
|
|
1857 |
case 11: // ADDRESSES
|
| 3430 |
rajveer |
1858 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
1859 |
{
|
| 5327 |
rajveer |
1860 |
org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
|
|
|
1861 |
this.addresses = new ArrayList<Address>(_list0.size);
|
|
|
1862 |
for (int _i1 = 0; _i1 < _list0.size; ++_i1)
|
| 553 |
chandransh |
1863 |
{
|
| 5327 |
rajveer |
1864 |
Address _elem2; // required
|
|
|
1865 |
_elem2 = new Address();
|
|
|
1866 |
_elem2.read(iprot);
|
|
|
1867 |
this.addresses.add(_elem2);
|
| 553 |
chandransh |
1868 |
}
|
| 3430 |
rajveer |
1869 |
iprot.readListEnd();
|
| 553 |
chandransh |
1870 |
}
|
| 3430 |
rajveer |
1871 |
} else {
|
|
|
1872 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1873 |
}
|
|
|
1874 |
break;
|
| 5327 |
rajveer |
1875 |
case 12: // DEFAULT_ADDRESS_ID
|
| 3430 |
rajveer |
1876 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1877 |
this.defaultAddressId = iprot.readI64();
|
|
|
1878 |
setDefaultAddressIdIsSet(true);
|
|
|
1879 |
} else {
|
|
|
1880 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1881 |
}
|
|
|
1882 |
break;
|
| 5327 |
rajveer |
1883 |
case 13: // COMMUNICATION_EMAIL
|
| 3430 |
rajveer |
1884 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1885 |
this.communicationEmail = iprot.readString();
|
|
|
1886 |
} else {
|
|
|
1887 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1888 |
}
|
|
|
1889 |
break;
|
| 5327 |
rajveer |
1890 |
case 14: // ACTIVE_CART_ID
|
| 3430 |
rajveer |
1891 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1892 |
this.activeCartId = iprot.readI64();
|
|
|
1893 |
setActiveCartIdIsSet(true);
|
|
|
1894 |
} else {
|
|
|
1895 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1896 |
}
|
|
|
1897 |
break;
|
| 5327 |
rajveer |
1898 |
case 15: // JSESSION_ID
|
| 3430 |
rajveer |
1899 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1900 |
this.jsessionId = iprot.readString();
|
|
|
1901 |
} else {
|
|
|
1902 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1903 |
}
|
|
|
1904 |
break;
|
| 5327 |
rajveer |
1905 |
case 16: // IS_ANONYMOUS
|
| 3430 |
rajveer |
1906 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
1907 |
this.isAnonymous = iprot.readBool();
|
|
|
1908 |
setIsAnonymousIsSet(true);
|
|
|
1909 |
} else {
|
|
|
1910 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1911 |
}
|
|
|
1912 |
break;
|
| 5327 |
rajveer |
1913 |
case 17: // SOURCE
|
| 3430 |
rajveer |
1914 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1915 |
this.source = iprot.readString();
|
|
|
1916 |
} else {
|
|
|
1917 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1918 |
}
|
|
|
1919 |
break;
|
| 5327 |
rajveer |
1920 |
case 18: // SOURCE_START_TIME
|
| 3430 |
rajveer |
1921 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1922 |
this.sourceStartTime = iprot.readI64();
|
|
|
1923 |
setSourceStartTimeIsSet(true);
|
|
|
1924 |
} else {
|
|
|
1925 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1926 |
}
|
|
|
1927 |
break;
|
| 5327 |
rajveer |
1928 |
case 19: // TRUST_LEVEL
|
| 3499 |
mandeep.dh |
1929 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
1930 |
this.trustLevel = iprot.readDouble();
|
|
|
1931 |
setTrustLevelIsSet(true);
|
|
|
1932 |
} else {
|
|
|
1933 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1934 |
}
|
|
|
1935 |
break;
|
| 7825 |
amar.kumar |
1936 |
case 20: // IS_FACEBOOK_USER
|
|
|
1937 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
1938 |
this.isFacebookUser = iprot.readBool();
|
|
|
1939 |
setIsFacebookUserIsSet(true);
|
|
|
1940 |
} else {
|
|
|
1941 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1942 |
}
|
|
|
1943 |
break;
|
|
|
1944 |
case 21: // FACEBOOK_ACCESS_TOKEN
|
|
|
1945 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1946 |
this.facebookAccessToken = iprot.readString();
|
|
|
1947 |
} else {
|
|
|
1948 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1949 |
}
|
|
|
1950 |
break;
|
|
|
1951 |
case 22: // FACEBOOK_ID
|
|
|
1952 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1953 |
this.facebookId = iprot.readString();
|
|
|
1954 |
} else {
|
|
|
1955 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1956 |
}
|
|
|
1957 |
break;
|
| 8201 |
rajveer |
1958 |
case 23: // SOURCE_ID
|
|
|
1959 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1960 |
this.sourceId = iprot.readI64();
|
|
|
1961 |
setSourceIdIsSet(true);
|
|
|
1962 |
} else {
|
|
|
1963 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1964 |
}
|
|
|
1965 |
break;
|
| 3430 |
rajveer |
1966 |
default:
|
|
|
1967 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 553 |
chandransh |
1968 |
}
|
| 3430 |
rajveer |
1969 |
iprot.readFieldEnd();
|
| 553 |
chandransh |
1970 |
}
|
|
|
1971 |
iprot.readStructEnd();
|
|
|
1972 |
validate();
|
|
|
1973 |
}
|
|
|
1974 |
|
| 3430 |
rajveer |
1975 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 553 |
chandransh |
1976 |
validate();
|
|
|
1977 |
|
|
|
1978 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
1979 |
oprot.writeFieldBegin(USER_ID_FIELD_DESC);
|
|
|
1980 |
oprot.writeI64(this.userId);
|
|
|
1981 |
oprot.writeFieldEnd();
|
|
|
1982 |
if (this.email != null) {
|
|
|
1983 |
oprot.writeFieldBegin(EMAIL_FIELD_DESC);
|
|
|
1984 |
oprot.writeString(this.email);
|
|
|
1985 |
oprot.writeFieldEnd();
|
|
|
1986 |
}
|
|
|
1987 |
if (this.password != null) {
|
|
|
1988 |
oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
|
|
|
1989 |
oprot.writeString(this.password);
|
|
|
1990 |
oprot.writeFieldEnd();
|
|
|
1991 |
}
|
|
|
1992 |
if (this.name != null) {
|
|
|
1993 |
oprot.writeFieldBegin(NAME_FIELD_DESC);
|
|
|
1994 |
oprot.writeString(this.name);
|
|
|
1995 |
oprot.writeFieldEnd();
|
|
|
1996 |
}
|
| 571 |
rajveer |
1997 |
if (this.dateOfBirth != null) {
|
|
|
1998 |
oprot.writeFieldBegin(DATE_OF_BIRTH_FIELD_DESC);
|
|
|
1999 |
oprot.writeString(this.dateOfBirth);
|
|
|
2000 |
oprot.writeFieldEnd();
|
|
|
2001 |
}
|
| 553 |
chandransh |
2002 |
if (this.sex != null) {
|
|
|
2003 |
oprot.writeFieldBegin(SEX_FIELD_DESC);
|
|
|
2004 |
oprot.writeI32(this.sex.getValue());
|
|
|
2005 |
oprot.writeFieldEnd();
|
|
|
2006 |
}
|
| 571 |
rajveer |
2007 |
if (this.mobileNumber != null) {
|
| 3853 |
mandeep.dh |
2008 |
if (isSetMobileNumber()) {
|
|
|
2009 |
oprot.writeFieldBegin(MOBILE_NUMBER_FIELD_DESC);
|
|
|
2010 |
oprot.writeString(this.mobileNumber);
|
|
|
2011 |
oprot.writeFieldEnd();
|
|
|
2012 |
}
|
| 553 |
chandransh |
2013 |
}
|
| 5327 |
rajveer |
2014 |
oprot.writeFieldBegin(LAST_LOGIN_FIELD_DESC);
|
|
|
2015 |
oprot.writeI64(this.lastLogin);
|
|
|
2016 |
oprot.writeFieldEnd();
|
|
|
2017 |
oprot.writeFieldBegin(LAST_LOGOUT_FIELD_DESC);
|
|
|
2018 |
oprot.writeI64(this.lastLogout);
|
|
|
2019 |
oprot.writeFieldEnd();
|
|
|
2020 |
oprot.writeFieldBegin(ACTIVE_SINCE_FIELD_DESC);
|
|
|
2021 |
oprot.writeI64(this.activeSince);
|
|
|
2022 |
oprot.writeFieldEnd();
|
| 553 |
chandransh |
2023 |
if (this.addresses != null) {
|
|
|
2024 |
oprot.writeFieldBegin(ADDRESSES_FIELD_DESC);
|
|
|
2025 |
{
|
| 3430 |
rajveer |
2026 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.addresses.size()));
|
| 5327 |
rajveer |
2027 |
for (Address _iter3 : this.addresses)
|
| 553 |
chandransh |
2028 |
{
|
| 5327 |
rajveer |
2029 |
_iter3.write(oprot);
|
| 553 |
chandransh |
2030 |
}
|
|
|
2031 |
oprot.writeListEnd();
|
|
|
2032 |
}
|
|
|
2033 |
oprot.writeFieldEnd();
|
|
|
2034 |
}
|
|
|
2035 |
oprot.writeFieldBegin(DEFAULT_ADDRESS_ID_FIELD_DESC);
|
|
|
2036 |
oprot.writeI64(this.defaultAddressId);
|
|
|
2037 |
oprot.writeFieldEnd();
|
|
|
2038 |
if (this.communicationEmail != null) {
|
|
|
2039 |
oprot.writeFieldBegin(COMMUNICATION_EMAIL_FIELD_DESC);
|
|
|
2040 |
oprot.writeString(this.communicationEmail);
|
|
|
2041 |
oprot.writeFieldEnd();
|
|
|
2042 |
}
|
|
|
2043 |
oprot.writeFieldBegin(ACTIVE_CART_ID_FIELD_DESC);
|
|
|
2044 |
oprot.writeI64(this.activeCartId);
|
|
|
2045 |
oprot.writeFieldEnd();
|
|
|
2046 |
if (this.jsessionId != null) {
|
|
|
2047 |
oprot.writeFieldBegin(JSESSION_ID_FIELD_DESC);
|
|
|
2048 |
oprot.writeString(this.jsessionId);
|
|
|
2049 |
oprot.writeFieldEnd();
|
|
|
2050 |
}
|
|
|
2051 |
oprot.writeFieldBegin(IS_ANONYMOUS_FIELD_DESC);
|
|
|
2052 |
oprot.writeBool(this.isAnonymous);
|
|
|
2053 |
oprot.writeFieldEnd();
|
| 2020 |
vikas |
2054 |
if (this.source != null) {
|
|
|
2055 |
oprot.writeFieldBegin(SOURCE_FIELD_DESC);
|
|
|
2056 |
oprot.writeString(this.source);
|
|
|
2057 |
oprot.writeFieldEnd();
|
|
|
2058 |
}
|
| 2816 |
vikas |
2059 |
oprot.writeFieldBegin(SOURCE_START_TIME_FIELD_DESC);
|
|
|
2060 |
oprot.writeI64(this.sourceStartTime);
|
|
|
2061 |
oprot.writeFieldEnd();
|
| 3499 |
mandeep.dh |
2062 |
oprot.writeFieldBegin(TRUST_LEVEL_FIELD_DESC);
|
|
|
2063 |
oprot.writeDouble(this.trustLevel);
|
|
|
2064 |
oprot.writeFieldEnd();
|
| 7825 |
amar.kumar |
2065 |
oprot.writeFieldBegin(IS_FACEBOOK_USER_FIELD_DESC);
|
|
|
2066 |
oprot.writeBool(this.isFacebookUser);
|
|
|
2067 |
oprot.writeFieldEnd();
|
|
|
2068 |
if (this.facebookAccessToken != null) {
|
|
|
2069 |
oprot.writeFieldBegin(FACEBOOK_ACCESS_TOKEN_FIELD_DESC);
|
|
|
2070 |
oprot.writeString(this.facebookAccessToken);
|
|
|
2071 |
oprot.writeFieldEnd();
|
|
|
2072 |
}
|
|
|
2073 |
if (this.facebookId != null) {
|
|
|
2074 |
oprot.writeFieldBegin(FACEBOOK_ID_FIELD_DESC);
|
|
|
2075 |
oprot.writeString(this.facebookId);
|
|
|
2076 |
oprot.writeFieldEnd();
|
|
|
2077 |
}
|
| 8201 |
rajveer |
2078 |
oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
|
|
|
2079 |
oprot.writeI64(this.sourceId);
|
|
|
2080 |
oprot.writeFieldEnd();
|
| 553 |
chandransh |
2081 |
oprot.writeFieldStop();
|
|
|
2082 |
oprot.writeStructEnd();
|
|
|
2083 |
}
|
|
|
2084 |
|
|
|
2085 |
@Override
|
|
|
2086 |
public String toString() {
|
|
|
2087 |
StringBuilder sb = new StringBuilder("User(");
|
|
|
2088 |
boolean first = true;
|
|
|
2089 |
|
|
|
2090 |
sb.append("userId:");
|
|
|
2091 |
sb.append(this.userId);
|
|
|
2092 |
first = false;
|
|
|
2093 |
if (!first) sb.append(", ");
|
|
|
2094 |
sb.append("email:");
|
|
|
2095 |
if (this.email == null) {
|
|
|
2096 |
sb.append("null");
|
|
|
2097 |
} else {
|
|
|
2098 |
sb.append(this.email);
|
|
|
2099 |
}
|
|
|
2100 |
first = false;
|
|
|
2101 |
if (!first) sb.append(", ");
|
|
|
2102 |
sb.append("password:");
|
|
|
2103 |
if (this.password == null) {
|
|
|
2104 |
sb.append("null");
|
|
|
2105 |
} else {
|
|
|
2106 |
sb.append(this.password);
|
|
|
2107 |
}
|
|
|
2108 |
first = false;
|
|
|
2109 |
if (!first) sb.append(", ");
|
|
|
2110 |
sb.append("name:");
|
|
|
2111 |
if (this.name == null) {
|
|
|
2112 |
sb.append("null");
|
|
|
2113 |
} else {
|
|
|
2114 |
sb.append(this.name);
|
|
|
2115 |
}
|
|
|
2116 |
first = false;
|
|
|
2117 |
if (!first) sb.append(", ");
|
|
|
2118 |
sb.append("dateOfBirth:");
|
| 571 |
rajveer |
2119 |
if (this.dateOfBirth == null) {
|
|
|
2120 |
sb.append("null");
|
|
|
2121 |
} else {
|
|
|
2122 |
sb.append(this.dateOfBirth);
|
|
|
2123 |
}
|
| 553 |
chandransh |
2124 |
first = false;
|
|
|
2125 |
if (!first) sb.append(", ");
|
|
|
2126 |
sb.append("sex:");
|
|
|
2127 |
if (this.sex == null) {
|
|
|
2128 |
sb.append("null");
|
|
|
2129 |
} else {
|
|
|
2130 |
sb.append(this.sex);
|
|
|
2131 |
}
|
|
|
2132 |
first = false;
|
| 3853 |
mandeep.dh |
2133 |
if (isSetMobileNumber()) {
|
|
|
2134 |
if (!first) sb.append(", ");
|
|
|
2135 |
sb.append("mobileNumber:");
|
|
|
2136 |
if (this.mobileNumber == null) {
|
|
|
2137 |
sb.append("null");
|
|
|
2138 |
} else {
|
|
|
2139 |
sb.append(this.mobileNumber);
|
|
|
2140 |
}
|
|
|
2141 |
first = false;
|
| 553 |
chandransh |
2142 |
}
|
|
|
2143 |
if (!first) sb.append(", ");
|
| 5327 |
rajveer |
2144 |
sb.append("lastLogin:");
|
|
|
2145 |
sb.append(this.lastLogin);
|
| 553 |
chandransh |
2146 |
first = false;
|
|
|
2147 |
if (!first) sb.append(", ");
|
| 5327 |
rajveer |
2148 |
sb.append("lastLogout:");
|
|
|
2149 |
sb.append(this.lastLogout);
|
|
|
2150 |
first = false;
|
|
|
2151 |
if (!first) sb.append(", ");
|
|
|
2152 |
sb.append("activeSince:");
|
|
|
2153 |
sb.append(this.activeSince);
|
|
|
2154 |
first = false;
|
|
|
2155 |
if (!first) sb.append(", ");
|
| 553 |
chandransh |
2156 |
sb.append("addresses:");
|
|
|
2157 |
if (this.addresses == null) {
|
|
|
2158 |
sb.append("null");
|
|
|
2159 |
} else {
|
|
|
2160 |
sb.append(this.addresses);
|
|
|
2161 |
}
|
|
|
2162 |
first = false;
|
|
|
2163 |
if (!first) sb.append(", ");
|
|
|
2164 |
sb.append("defaultAddressId:");
|
|
|
2165 |
sb.append(this.defaultAddressId);
|
|
|
2166 |
first = false;
|
|
|
2167 |
if (!first) sb.append(", ");
|
|
|
2168 |
sb.append("communicationEmail:");
|
|
|
2169 |
if (this.communicationEmail == null) {
|
|
|
2170 |
sb.append("null");
|
|
|
2171 |
} else {
|
|
|
2172 |
sb.append(this.communicationEmail);
|
|
|
2173 |
}
|
|
|
2174 |
first = false;
|
|
|
2175 |
if (!first) sb.append(", ");
|
|
|
2176 |
sb.append("activeCartId:");
|
|
|
2177 |
sb.append(this.activeCartId);
|
|
|
2178 |
first = false;
|
|
|
2179 |
if (!first) sb.append(", ");
|
|
|
2180 |
sb.append("jsessionId:");
|
|
|
2181 |
if (this.jsessionId == null) {
|
|
|
2182 |
sb.append("null");
|
|
|
2183 |
} else {
|
|
|
2184 |
sb.append(this.jsessionId);
|
|
|
2185 |
}
|
|
|
2186 |
first = false;
|
|
|
2187 |
if (!first) sb.append(", ");
|
|
|
2188 |
sb.append("isAnonymous:");
|
|
|
2189 |
sb.append(this.isAnonymous);
|
|
|
2190 |
first = false;
|
| 2020 |
vikas |
2191 |
if (!first) sb.append(", ");
|
|
|
2192 |
sb.append("source:");
|
|
|
2193 |
if (this.source == null) {
|
|
|
2194 |
sb.append("null");
|
|
|
2195 |
} else {
|
|
|
2196 |
sb.append(this.source);
|
|
|
2197 |
}
|
|
|
2198 |
first = false;
|
| 2816 |
vikas |
2199 |
if (!first) sb.append(", ");
|
|
|
2200 |
sb.append("sourceStartTime:");
|
|
|
2201 |
sb.append(this.sourceStartTime);
|
|
|
2202 |
first = false;
|
| 3499 |
mandeep.dh |
2203 |
if (!first) sb.append(", ");
|
|
|
2204 |
sb.append("trustLevel:");
|
|
|
2205 |
sb.append(this.trustLevel);
|
|
|
2206 |
first = false;
|
| 7825 |
amar.kumar |
2207 |
if (!first) sb.append(", ");
|
|
|
2208 |
sb.append("isFacebookUser:");
|
|
|
2209 |
sb.append(this.isFacebookUser);
|
|
|
2210 |
first = false;
|
|
|
2211 |
if (!first) sb.append(", ");
|
|
|
2212 |
sb.append("facebookAccessToken:");
|
|
|
2213 |
if (this.facebookAccessToken == null) {
|
|
|
2214 |
sb.append("null");
|
|
|
2215 |
} else {
|
|
|
2216 |
sb.append(this.facebookAccessToken);
|
|
|
2217 |
}
|
|
|
2218 |
first = false;
|
|
|
2219 |
if (!first) sb.append(", ");
|
|
|
2220 |
sb.append("facebookId:");
|
|
|
2221 |
if (this.facebookId == null) {
|
|
|
2222 |
sb.append("null");
|
|
|
2223 |
} else {
|
|
|
2224 |
sb.append(this.facebookId);
|
|
|
2225 |
}
|
|
|
2226 |
first = false;
|
| 8201 |
rajveer |
2227 |
if (!first) sb.append(", ");
|
|
|
2228 |
sb.append("sourceId:");
|
|
|
2229 |
sb.append(this.sourceId);
|
|
|
2230 |
first = false;
|
| 553 |
chandransh |
2231 |
sb.append(")");
|
|
|
2232 |
return sb.toString();
|
|
|
2233 |
}
|
|
|
2234 |
|
| 3430 |
rajveer |
2235 |
public void validate() throws org.apache.thrift.TException {
|
| 553 |
chandransh |
2236 |
// check for required fields
|
|
|
2237 |
}
|
|
|
2238 |
|
| 3430 |
rajveer |
2239 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
2240 |
try {
|
|
|
2241 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
2242 |
} catch (org.apache.thrift.TException te) {
|
|
|
2243 |
throw new java.io.IOException(te);
|
|
|
2244 |
}
|
|
|
2245 |
}
|
|
|
2246 |
|
|
|
2247 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
2248 |
try {
|
|
|
2249 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
2250 |
__isset_bit_vector = new BitSet(1);
|
|
|
2251 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
2252 |
} catch (org.apache.thrift.TException te) {
|
|
|
2253 |
throw new java.io.IOException(te);
|
|
|
2254 |
}
|
|
|
2255 |
}
|
|
|
2256 |
|
| 553 |
chandransh |
2257 |
}
|
|
|
2258 |
|