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