| 68 |
ashish |
1 |
/**
|
| 3430 |
rajveer |
2 |
* Autogenerated by Thrift Compiler (0.7.0)
|
| 68 |
ashish |
3 |
*
|
|
|
4 |
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
|
5 |
*/
|
|
|
6 |
package in.shop2020.model.v1.order;
|
|
|
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;
|
| 68 |
ashish |
19 |
import java.util.Arrays;
|
|
|
20 |
import org.slf4j.Logger;
|
|
|
21 |
import org.slf4j.LoggerFactory;
|
|
|
22 |
|
| 3430 |
rajveer |
23 |
public class Transaction implements org.apache.thrift.TBase<Transaction, Transaction._Fields>, java.io.Serializable, Cloneable {
|
|
|
24 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Transaction");
|
| 68 |
ashish |
25 |
|
| 3430 |
rajveer |
26 |
private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
27 |
private static final org.apache.thrift.protocol.TField ORDERS_FIELD_DESC = new org.apache.thrift.protocol.TField("orders", org.apache.thrift.protocol.TType.LIST, (short)2);
|
|
|
28 |
private static final org.apache.thrift.protocol.TField CREATED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("createdOn", org.apache.thrift.protocol.TType.I64, (short)3);
|
|
|
29 |
private static final org.apache.thrift.protocol.TField TRANSACTION_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("transactionStatus", org.apache.thrift.protocol.TType.I32, (short)4);
|
|
|
30 |
private static final org.apache.thrift.protocol.TField STATUS_DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("statusDescription", org.apache.thrift.protocol.TType.STRING, (short)5);
|
|
|
31 |
private static final org.apache.thrift.protocol.TField SHOPPING_CARTID_FIELD_DESC = new org.apache.thrift.protocol.TField("shoppingCartid", org.apache.thrift.protocol.TType.I64, (short)6);
|
|
|
32 |
private static final org.apache.thrift.protocol.TField CUSTOMER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("customer_id", org.apache.thrift.protocol.TType.I64, (short)7);
|
|
|
33 |
private static final org.apache.thrift.protocol.TField COUPON_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("coupon_code", org.apache.thrift.protocol.TType.STRING, (short)8);
|
|
|
34 |
private static final org.apache.thrift.protocol.TField SESSION_SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionSource", org.apache.thrift.protocol.TType.STRING, (short)9);
|
|
|
35 |
private static final org.apache.thrift.protocol.TField SESSION_START_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("sessionStartTime", org.apache.thrift.protocol.TType.I64, (short)10);
|
| 3858 |
vikas |
36 |
private static final org.apache.thrift.protocol.TField FIRST_SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("firstSource", org.apache.thrift.protocol.TType.STRING, (short)11);
|
|
|
37 |
private static final org.apache.thrift.protocol.TField FIRST_SOURCE_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("firstSourceTime", org.apache.thrift.protocol.TType.I64, (short)12);
|
| 6389 |
rajveer |
38 |
private static final org.apache.thrift.protocol.TField EMI_SCHEME_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("emiSchemeId", org.apache.thrift.protocol.TType.I64, (short)13);
|
| 68 |
ashish |
39 |
|
| 3430 |
rajveer |
40 |
private long id; // required
|
|
|
41 |
private List<Order> orders; // required
|
|
|
42 |
private long createdOn; // required
|
|
|
43 |
private TransactionStatus transactionStatus; // required
|
|
|
44 |
private String statusDescription; // required
|
|
|
45 |
private long shoppingCartid; // required
|
|
|
46 |
private long customer_id; // required
|
|
|
47 |
private String coupon_code; // required
|
|
|
48 |
private String sessionSource; // required
|
|
|
49 |
private long sessionStartTime; // required
|
| 3858 |
vikas |
50 |
private String firstSource; // required
|
|
|
51 |
private long firstSourceTime; // required
|
| 6389 |
rajveer |
52 |
private long emiSchemeId; // required
|
| 68 |
ashish |
53 |
|
|
|
54 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
55 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 68 |
ashish |
56 |
ID((short)1, "id"),
|
| 483 |
rajveer |
57 |
ORDERS((short)2, "orders"),
|
| 684 |
chandransh |
58 |
CREATED_ON((short)3, "createdOn"),
|
| 68 |
ashish |
59 |
/**
|
|
|
60 |
*
|
|
|
61 |
* @see TransactionStatus
|
|
|
62 |
*/
|
| 684 |
chandransh |
63 |
TRANSACTION_STATUS((short)4, "transactionStatus"),
|
|
|
64 |
STATUS_DESCRIPTION((short)5, "statusDescription"),
|
|
|
65 |
SHOPPING_CARTID((short)6, "shoppingCartid"),
|
| 2219 |
varun.gupt |
66 |
CUSTOMER_ID((short)7, "customer_id"),
|
| 2816 |
vikas |
67 |
COUPON_CODE((short)8, "coupon_code"),
|
|
|
68 |
SESSION_SOURCE((short)9, "sessionSource"),
|
| 3858 |
vikas |
69 |
SESSION_START_TIME((short)10, "sessionStartTime"),
|
|
|
70 |
FIRST_SOURCE((short)11, "firstSource"),
|
| 6389 |
rajveer |
71 |
FIRST_SOURCE_TIME((short)12, "firstSourceTime"),
|
|
|
72 |
EMI_SCHEME_ID((short)13, "emiSchemeId");
|
| 68 |
ashish |
73 |
|
|
|
74 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
75 |
|
|
|
76 |
static {
|
|
|
77 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
78 |
byName.put(field.getFieldName(), field);
|
|
|
79 |
}
|
|
|
80 |
}
|
|
|
81 |
|
|
|
82 |
/**
|
|
|
83 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
84 |
*/
|
|
|
85 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
86 |
switch(fieldId) {
|
|
|
87 |
case 1: // ID
|
|
|
88 |
return ID;
|
|
|
89 |
case 2: // ORDERS
|
|
|
90 |
return ORDERS;
|
|
|
91 |
case 3: // CREATED_ON
|
|
|
92 |
return CREATED_ON;
|
|
|
93 |
case 4: // TRANSACTION_STATUS
|
|
|
94 |
return TRANSACTION_STATUS;
|
|
|
95 |
case 5: // STATUS_DESCRIPTION
|
|
|
96 |
return STATUS_DESCRIPTION;
|
|
|
97 |
case 6: // SHOPPING_CARTID
|
|
|
98 |
return SHOPPING_CARTID;
|
|
|
99 |
case 7: // CUSTOMER_ID
|
|
|
100 |
return CUSTOMER_ID;
|
|
|
101 |
case 8: // COUPON_CODE
|
|
|
102 |
return COUPON_CODE;
|
|
|
103 |
case 9: // SESSION_SOURCE
|
|
|
104 |
return SESSION_SOURCE;
|
|
|
105 |
case 10: // SESSION_START_TIME
|
|
|
106 |
return SESSION_START_TIME;
|
| 3858 |
vikas |
107 |
case 11: // FIRST_SOURCE
|
|
|
108 |
return FIRST_SOURCE;
|
|
|
109 |
case 12: // FIRST_SOURCE_TIME
|
|
|
110 |
return FIRST_SOURCE_TIME;
|
| 6389 |
rajveer |
111 |
case 13: // EMI_SCHEME_ID
|
|
|
112 |
return EMI_SCHEME_ID;
|
| 3430 |
rajveer |
113 |
default:
|
|
|
114 |
return null;
|
|
|
115 |
}
|
| 68 |
ashish |
116 |
}
|
|
|
117 |
|
|
|
118 |
/**
|
|
|
119 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
120 |
* if it is not found.
|
|
|
121 |
*/
|
|
|
122 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
123 |
_Fields fields = findByThriftId(fieldId);
|
|
|
124 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
125 |
return fields;
|
|
|
126 |
}
|
|
|
127 |
|
|
|
128 |
/**
|
|
|
129 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
130 |
*/
|
|
|
131 |
public static _Fields findByName(String name) {
|
|
|
132 |
return byName.get(name);
|
|
|
133 |
}
|
|
|
134 |
|
|
|
135 |
private final short _thriftId;
|
|
|
136 |
private final String _fieldName;
|
|
|
137 |
|
|
|
138 |
_Fields(short thriftId, String fieldName) {
|
|
|
139 |
_thriftId = thriftId;
|
|
|
140 |
_fieldName = fieldName;
|
|
|
141 |
}
|
|
|
142 |
|
|
|
143 |
public short getThriftFieldId() {
|
|
|
144 |
return _thriftId;
|
|
|
145 |
}
|
|
|
146 |
|
|
|
147 |
public String getFieldName() {
|
|
|
148 |
return _fieldName;
|
|
|
149 |
}
|
|
|
150 |
}
|
|
|
151 |
|
|
|
152 |
// isset id assignments
|
|
|
153 |
private static final int __ID_ISSET_ID = 0;
|
|
|
154 |
private static final int __CREATEDON_ISSET_ID = 1;
|
| 483 |
rajveer |
155 |
private static final int __SHOPPINGCARTID_ISSET_ID = 2;
|
| 68 |
ashish |
156 |
private static final int __CUSTOMER_ID_ISSET_ID = 3;
|
| 2816 |
vikas |
157 |
private static final int __SESSIONSTARTTIME_ISSET_ID = 4;
|
| 3858 |
vikas |
158 |
private static final int __FIRSTSOURCETIME_ISSET_ID = 5;
|
| 6389 |
rajveer |
159 |
private static final int __EMISCHEMEID_ISSET_ID = 6;
|
|
|
160 |
private BitSet __isset_bit_vector = new BitSet(7);
|
| 68 |
ashish |
161 |
|
| 3430 |
rajveer |
162 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 68 |
ashish |
163 |
static {
|
| 3430 |
rajveer |
164 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
165 |
tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
166 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
167 |
tmpMap.put(_Fields.ORDERS, new org.apache.thrift.meta_data.FieldMetaData("orders", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
168 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
169 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Order.class))));
|
|
|
170 |
tmpMap.put(_Fields.CREATED_ON, new org.apache.thrift.meta_data.FieldMetaData("createdOn", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
171 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
172 |
tmpMap.put(_Fields.TRANSACTION_STATUS, new org.apache.thrift.meta_data.FieldMetaData("transactionStatus", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
173 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TransactionStatus.class)));
|
|
|
174 |
tmpMap.put(_Fields.STATUS_DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("statusDescription", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
175 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
176 |
tmpMap.put(_Fields.SHOPPING_CARTID, new org.apache.thrift.meta_data.FieldMetaData("shoppingCartid", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
177 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
178 |
tmpMap.put(_Fields.CUSTOMER_ID, new org.apache.thrift.meta_data.FieldMetaData("customer_id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
179 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
180 |
tmpMap.put(_Fields.COUPON_CODE, new org.apache.thrift.meta_data.FieldMetaData("coupon_code", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
181 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
182 |
tmpMap.put(_Fields.SESSION_SOURCE, new org.apache.thrift.meta_data.FieldMetaData("sessionSource", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
183 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
184 |
tmpMap.put(_Fields.SESSION_START_TIME, new org.apache.thrift.meta_data.FieldMetaData("sessionStartTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
185 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 3858 |
vikas |
186 |
tmpMap.put(_Fields.FIRST_SOURCE, new org.apache.thrift.meta_data.FieldMetaData("firstSource", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
187 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
188 |
tmpMap.put(_Fields.FIRST_SOURCE_TIME, new org.apache.thrift.meta_data.FieldMetaData("firstSourceTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
189 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 6389 |
rajveer |
190 |
tmpMap.put(_Fields.EMI_SCHEME_ID, new org.apache.thrift.meta_data.FieldMetaData("emiSchemeId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
191 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 3430 |
rajveer |
192 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
193 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Transaction.class, metaDataMap);
|
| 68 |
ashish |
194 |
}
|
|
|
195 |
|
|
|
196 |
public Transaction() {
|
|
|
197 |
}
|
|
|
198 |
|
|
|
199 |
public Transaction(
|
|
|
200 |
long id,
|
| 483 |
rajveer |
201 |
List<Order> orders,
|
| 68 |
ashish |
202 |
long createdOn,
|
|
|
203 |
TransactionStatus transactionStatus,
|
|
|
204 |
String statusDescription,
|
| 358 |
ashish |
205 |
long shoppingCartid,
|
| 2219 |
varun.gupt |
206 |
long customer_id,
|
| 2816 |
vikas |
207 |
String coupon_code,
|
|
|
208 |
String sessionSource,
|
| 3858 |
vikas |
209 |
long sessionStartTime,
|
|
|
210 |
String firstSource,
|
| 6389 |
rajveer |
211 |
long firstSourceTime,
|
|
|
212 |
long emiSchemeId)
|
| 68 |
ashish |
213 |
{
|
|
|
214 |
this();
|
|
|
215 |
this.id = id;
|
|
|
216 |
setIdIsSet(true);
|
| 483 |
rajveer |
217 |
this.orders = orders;
|
| 68 |
ashish |
218 |
this.createdOn = createdOn;
|
|
|
219 |
setCreatedOnIsSet(true);
|
|
|
220 |
this.transactionStatus = transactionStatus;
|
|
|
221 |
this.statusDescription = statusDescription;
|
| 483 |
rajveer |
222 |
this.shoppingCartid = shoppingCartid;
|
|
|
223 |
setShoppingCartidIsSet(true);
|
| 68 |
ashish |
224 |
this.customer_id = customer_id;
|
|
|
225 |
setCustomer_idIsSet(true);
|
| 2219 |
varun.gupt |
226 |
this.coupon_code = coupon_code;
|
| 2816 |
vikas |
227 |
this.sessionSource = sessionSource;
|
|
|
228 |
this.sessionStartTime = sessionStartTime;
|
|
|
229 |
setSessionStartTimeIsSet(true);
|
| 3858 |
vikas |
230 |
this.firstSource = firstSource;
|
|
|
231 |
this.firstSourceTime = firstSourceTime;
|
|
|
232 |
setFirstSourceTimeIsSet(true);
|
| 6389 |
rajveer |
233 |
this.emiSchemeId = emiSchemeId;
|
|
|
234 |
setEmiSchemeIdIsSet(true);
|
| 68 |
ashish |
235 |
}
|
|
|
236 |
|
|
|
237 |
/**
|
|
|
238 |
* Performs a deep copy on <i>other</i>.
|
|
|
239 |
*/
|
|
|
240 |
public Transaction(Transaction other) {
|
|
|
241 |
__isset_bit_vector.clear();
|
|
|
242 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
243 |
this.id = other.id;
|
| 483 |
rajveer |
244 |
if (other.isSetOrders()) {
|
|
|
245 |
List<Order> __this__orders = new ArrayList<Order>();
|
|
|
246 |
for (Order other_element : other.orders) {
|
|
|
247 |
__this__orders.add(new Order(other_element));
|
|
|
248 |
}
|
|
|
249 |
this.orders = __this__orders;
|
| 68 |
ashish |
250 |
}
|
|
|
251 |
this.createdOn = other.createdOn;
|
|
|
252 |
if (other.isSetTransactionStatus()) {
|
|
|
253 |
this.transactionStatus = other.transactionStatus;
|
|
|
254 |
}
|
|
|
255 |
if (other.isSetStatusDescription()) {
|
|
|
256 |
this.statusDescription = other.statusDescription;
|
|
|
257 |
}
|
| 483 |
rajveer |
258 |
this.shoppingCartid = other.shoppingCartid;
|
| 68 |
ashish |
259 |
this.customer_id = other.customer_id;
|
| 2219 |
varun.gupt |
260 |
if (other.isSetCoupon_code()) {
|
|
|
261 |
this.coupon_code = other.coupon_code;
|
|
|
262 |
}
|
| 2816 |
vikas |
263 |
if (other.isSetSessionSource()) {
|
|
|
264 |
this.sessionSource = other.sessionSource;
|
|
|
265 |
}
|
|
|
266 |
this.sessionStartTime = other.sessionStartTime;
|
| 3858 |
vikas |
267 |
if (other.isSetFirstSource()) {
|
|
|
268 |
this.firstSource = other.firstSource;
|
|
|
269 |
}
|
|
|
270 |
this.firstSourceTime = other.firstSourceTime;
|
| 6389 |
rajveer |
271 |
this.emiSchemeId = other.emiSchemeId;
|
| 68 |
ashish |
272 |
}
|
|
|
273 |
|
|
|
274 |
public Transaction deepCopy() {
|
|
|
275 |
return new Transaction(this);
|
|
|
276 |
}
|
|
|
277 |
|
| 3430 |
rajveer |
278 |
@Override
|
|
|
279 |
public void clear() {
|
|
|
280 |
setIdIsSet(false);
|
|
|
281 |
this.id = 0;
|
|
|
282 |
this.orders = null;
|
|
|
283 |
setCreatedOnIsSet(false);
|
|
|
284 |
this.createdOn = 0;
|
|
|
285 |
this.transactionStatus = null;
|
|
|
286 |
this.statusDescription = null;
|
|
|
287 |
setShoppingCartidIsSet(false);
|
|
|
288 |
this.shoppingCartid = 0;
|
|
|
289 |
setCustomer_idIsSet(false);
|
|
|
290 |
this.customer_id = 0;
|
|
|
291 |
this.coupon_code = null;
|
|
|
292 |
this.sessionSource = null;
|
|
|
293 |
setSessionStartTimeIsSet(false);
|
|
|
294 |
this.sessionStartTime = 0;
|
| 3858 |
vikas |
295 |
this.firstSource = null;
|
|
|
296 |
setFirstSourceTimeIsSet(false);
|
|
|
297 |
this.firstSourceTime = 0;
|
| 6389 |
rajveer |
298 |
setEmiSchemeIdIsSet(false);
|
|
|
299 |
this.emiSchemeId = 0;
|
| 68 |
ashish |
300 |
}
|
|
|
301 |
|
|
|
302 |
public long getId() {
|
|
|
303 |
return this.id;
|
|
|
304 |
}
|
|
|
305 |
|
| 3430 |
rajveer |
306 |
public void setId(long id) {
|
| 68 |
ashish |
307 |
this.id = id;
|
|
|
308 |
setIdIsSet(true);
|
|
|
309 |
}
|
|
|
310 |
|
|
|
311 |
public void unsetId() {
|
|
|
312 |
__isset_bit_vector.clear(__ID_ISSET_ID);
|
|
|
313 |
}
|
|
|
314 |
|
| 3430 |
rajveer |
315 |
/** Returns true if field id is set (has been assigned a value) and false otherwise */
|
| 68 |
ashish |
316 |
public boolean isSetId() {
|
|
|
317 |
return __isset_bit_vector.get(__ID_ISSET_ID);
|
|
|
318 |
}
|
|
|
319 |
|
|
|
320 |
public void setIdIsSet(boolean value) {
|
|
|
321 |
__isset_bit_vector.set(__ID_ISSET_ID, value);
|
|
|
322 |
}
|
|
|
323 |
|
| 483 |
rajveer |
324 |
public int getOrdersSize() {
|
|
|
325 |
return (this.orders == null) ? 0 : this.orders.size();
|
| 68 |
ashish |
326 |
}
|
|
|
327 |
|
| 483 |
rajveer |
328 |
public java.util.Iterator<Order> getOrdersIterator() {
|
|
|
329 |
return (this.orders == null) ? null : this.orders.iterator();
|
| 68 |
ashish |
330 |
}
|
|
|
331 |
|
| 483 |
rajveer |
332 |
public void addToOrders(Order elem) {
|
|
|
333 |
if (this.orders == null) {
|
|
|
334 |
this.orders = new ArrayList<Order>();
|
| 68 |
ashish |
335 |
}
|
| 483 |
rajveer |
336 |
this.orders.add(elem);
|
| 68 |
ashish |
337 |
}
|
|
|
338 |
|
| 483 |
rajveer |
339 |
public List<Order> getOrders() {
|
|
|
340 |
return this.orders;
|
| 68 |
ashish |
341 |
}
|
|
|
342 |
|
| 3430 |
rajveer |
343 |
public void setOrders(List<Order> orders) {
|
| 483 |
rajveer |
344 |
this.orders = orders;
|
| 68 |
ashish |
345 |
}
|
|
|
346 |
|
| 483 |
rajveer |
347 |
public void unsetOrders() {
|
|
|
348 |
this.orders = null;
|
| 68 |
ashish |
349 |
}
|
|
|
350 |
|
| 3430 |
rajveer |
351 |
/** Returns true if field orders is set (has been assigned a value) and false otherwise */
|
| 483 |
rajveer |
352 |
public boolean isSetOrders() {
|
|
|
353 |
return this.orders != null;
|
| 68 |
ashish |
354 |
}
|
|
|
355 |
|
| 483 |
rajveer |
356 |
public void setOrdersIsSet(boolean value) {
|
| 68 |
ashish |
357 |
if (!value) {
|
| 483 |
rajveer |
358 |
this.orders = null;
|
| 68 |
ashish |
359 |
}
|
|
|
360 |
}
|
|
|
361 |
|
|
|
362 |
public long getCreatedOn() {
|
|
|
363 |
return this.createdOn;
|
|
|
364 |
}
|
|
|
365 |
|
| 3430 |
rajveer |
366 |
public void setCreatedOn(long createdOn) {
|
| 68 |
ashish |
367 |
this.createdOn = createdOn;
|
|
|
368 |
setCreatedOnIsSet(true);
|
|
|
369 |
}
|
|
|
370 |
|
|
|
371 |
public void unsetCreatedOn() {
|
|
|
372 |
__isset_bit_vector.clear(__CREATEDON_ISSET_ID);
|
|
|
373 |
}
|
|
|
374 |
|
| 3430 |
rajveer |
375 |
/** Returns true if field createdOn is set (has been assigned a value) and false otherwise */
|
| 68 |
ashish |
376 |
public boolean isSetCreatedOn() {
|
|
|
377 |
return __isset_bit_vector.get(__CREATEDON_ISSET_ID);
|
|
|
378 |
}
|
|
|
379 |
|
|
|
380 |
public void setCreatedOnIsSet(boolean value) {
|
|
|
381 |
__isset_bit_vector.set(__CREATEDON_ISSET_ID, value);
|
|
|
382 |
}
|
|
|
383 |
|
|
|
384 |
/**
|
|
|
385 |
*
|
|
|
386 |
* @see TransactionStatus
|
|
|
387 |
*/
|
|
|
388 |
public TransactionStatus getTransactionStatus() {
|
|
|
389 |
return this.transactionStatus;
|
|
|
390 |
}
|
|
|
391 |
|
|
|
392 |
/**
|
|
|
393 |
*
|
|
|
394 |
* @see TransactionStatus
|
|
|
395 |
*/
|
| 3430 |
rajveer |
396 |
public void setTransactionStatus(TransactionStatus transactionStatus) {
|
| 68 |
ashish |
397 |
this.transactionStatus = transactionStatus;
|
|
|
398 |
}
|
|
|
399 |
|
|
|
400 |
public void unsetTransactionStatus() {
|
|
|
401 |
this.transactionStatus = null;
|
|
|
402 |
}
|
|
|
403 |
|
| 3430 |
rajveer |
404 |
/** Returns true if field transactionStatus is set (has been assigned a value) and false otherwise */
|
| 68 |
ashish |
405 |
public boolean isSetTransactionStatus() {
|
|
|
406 |
return this.transactionStatus != null;
|
|
|
407 |
}
|
|
|
408 |
|
|
|
409 |
public void setTransactionStatusIsSet(boolean value) {
|
|
|
410 |
if (!value) {
|
|
|
411 |
this.transactionStatus = null;
|
|
|
412 |
}
|
|
|
413 |
}
|
|
|
414 |
|
|
|
415 |
public String getStatusDescription() {
|
|
|
416 |
return this.statusDescription;
|
|
|
417 |
}
|
|
|
418 |
|
| 3430 |
rajveer |
419 |
public void setStatusDescription(String statusDescription) {
|
| 68 |
ashish |
420 |
this.statusDescription = statusDescription;
|
|
|
421 |
}
|
|
|
422 |
|
|
|
423 |
public void unsetStatusDescription() {
|
|
|
424 |
this.statusDescription = null;
|
|
|
425 |
}
|
|
|
426 |
|
| 3430 |
rajveer |
427 |
/** Returns true if field statusDescription is set (has been assigned a value) and false otherwise */
|
| 68 |
ashish |
428 |
public boolean isSetStatusDescription() {
|
|
|
429 |
return this.statusDescription != null;
|
|
|
430 |
}
|
|
|
431 |
|
|
|
432 |
public void setStatusDescriptionIsSet(boolean value) {
|
|
|
433 |
if (!value) {
|
|
|
434 |
this.statusDescription = null;
|
|
|
435 |
}
|
|
|
436 |
}
|
|
|
437 |
|
| 132 |
ashish |
438 |
public long getShoppingCartid() {
|
|
|
439 |
return this.shoppingCartid;
|
|
|
440 |
}
|
|
|
441 |
|
| 3430 |
rajveer |
442 |
public void setShoppingCartid(long shoppingCartid) {
|
| 132 |
ashish |
443 |
this.shoppingCartid = shoppingCartid;
|
|
|
444 |
setShoppingCartidIsSet(true);
|
|
|
445 |
}
|
|
|
446 |
|
|
|
447 |
public void unsetShoppingCartid() {
|
|
|
448 |
__isset_bit_vector.clear(__SHOPPINGCARTID_ISSET_ID);
|
|
|
449 |
}
|
|
|
450 |
|
| 3430 |
rajveer |
451 |
/** Returns true if field shoppingCartid is set (has been assigned a value) and false otherwise */
|
| 132 |
ashish |
452 |
public boolean isSetShoppingCartid() {
|
|
|
453 |
return __isset_bit_vector.get(__SHOPPINGCARTID_ISSET_ID);
|
|
|
454 |
}
|
|
|
455 |
|
|
|
456 |
public void setShoppingCartidIsSet(boolean value) {
|
|
|
457 |
__isset_bit_vector.set(__SHOPPINGCARTID_ISSET_ID, value);
|
|
|
458 |
}
|
|
|
459 |
|
| 483 |
rajveer |
460 |
public long getCustomer_id() {
|
|
|
461 |
return this.customer_id;
|
| 358 |
ashish |
462 |
}
|
|
|
463 |
|
| 3430 |
rajveer |
464 |
public void setCustomer_id(long customer_id) {
|
| 483 |
rajveer |
465 |
this.customer_id = customer_id;
|
|
|
466 |
setCustomer_idIsSet(true);
|
| 358 |
ashish |
467 |
}
|
|
|
468 |
|
| 483 |
rajveer |
469 |
public void unsetCustomer_id() {
|
|
|
470 |
__isset_bit_vector.clear(__CUSTOMER_ID_ISSET_ID);
|
| 358 |
ashish |
471 |
}
|
|
|
472 |
|
| 3430 |
rajveer |
473 |
/** Returns true if field customer_id is set (has been assigned a value) and false otherwise */
|
| 483 |
rajveer |
474 |
public boolean isSetCustomer_id() {
|
|
|
475 |
return __isset_bit_vector.get(__CUSTOMER_ID_ISSET_ID);
|
| 358 |
ashish |
476 |
}
|
|
|
477 |
|
| 483 |
rajveer |
478 |
public void setCustomer_idIsSet(boolean value) {
|
|
|
479 |
__isset_bit_vector.set(__CUSTOMER_ID_ISSET_ID, value);
|
| 358 |
ashish |
480 |
}
|
|
|
481 |
|
| 2219 |
varun.gupt |
482 |
public String getCoupon_code() {
|
|
|
483 |
return this.coupon_code;
|
|
|
484 |
}
|
|
|
485 |
|
| 3430 |
rajveer |
486 |
public void setCoupon_code(String coupon_code) {
|
| 2219 |
varun.gupt |
487 |
this.coupon_code = coupon_code;
|
|
|
488 |
}
|
|
|
489 |
|
|
|
490 |
public void unsetCoupon_code() {
|
|
|
491 |
this.coupon_code = null;
|
|
|
492 |
}
|
|
|
493 |
|
| 3430 |
rajveer |
494 |
/** Returns true if field coupon_code is set (has been assigned a value) and false otherwise */
|
| 2219 |
varun.gupt |
495 |
public boolean isSetCoupon_code() {
|
|
|
496 |
return this.coupon_code != null;
|
|
|
497 |
}
|
|
|
498 |
|
|
|
499 |
public void setCoupon_codeIsSet(boolean value) {
|
|
|
500 |
if (!value) {
|
|
|
501 |
this.coupon_code = null;
|
|
|
502 |
}
|
|
|
503 |
}
|
|
|
504 |
|
| 2816 |
vikas |
505 |
public String getSessionSource() {
|
|
|
506 |
return this.sessionSource;
|
|
|
507 |
}
|
|
|
508 |
|
| 3430 |
rajveer |
509 |
public void setSessionSource(String sessionSource) {
|
| 2816 |
vikas |
510 |
this.sessionSource = sessionSource;
|
|
|
511 |
}
|
|
|
512 |
|
|
|
513 |
public void unsetSessionSource() {
|
|
|
514 |
this.sessionSource = null;
|
|
|
515 |
}
|
|
|
516 |
|
| 3430 |
rajveer |
517 |
/** Returns true if field sessionSource is set (has been assigned a value) and false otherwise */
|
| 2816 |
vikas |
518 |
public boolean isSetSessionSource() {
|
|
|
519 |
return this.sessionSource != null;
|
|
|
520 |
}
|
|
|
521 |
|
|
|
522 |
public void setSessionSourceIsSet(boolean value) {
|
|
|
523 |
if (!value) {
|
|
|
524 |
this.sessionSource = null;
|
|
|
525 |
}
|
|
|
526 |
}
|
|
|
527 |
|
|
|
528 |
public long getSessionStartTime() {
|
|
|
529 |
return this.sessionStartTime;
|
|
|
530 |
}
|
|
|
531 |
|
| 3430 |
rajveer |
532 |
public void setSessionStartTime(long sessionStartTime) {
|
| 2816 |
vikas |
533 |
this.sessionStartTime = sessionStartTime;
|
|
|
534 |
setSessionStartTimeIsSet(true);
|
|
|
535 |
}
|
|
|
536 |
|
|
|
537 |
public void unsetSessionStartTime() {
|
|
|
538 |
__isset_bit_vector.clear(__SESSIONSTARTTIME_ISSET_ID);
|
|
|
539 |
}
|
|
|
540 |
|
| 3430 |
rajveer |
541 |
/** Returns true if field sessionStartTime is set (has been assigned a value) and false otherwise */
|
| 2816 |
vikas |
542 |
public boolean isSetSessionStartTime() {
|
|
|
543 |
return __isset_bit_vector.get(__SESSIONSTARTTIME_ISSET_ID);
|
|
|
544 |
}
|
|
|
545 |
|
|
|
546 |
public void setSessionStartTimeIsSet(boolean value) {
|
|
|
547 |
__isset_bit_vector.set(__SESSIONSTARTTIME_ISSET_ID, value);
|
|
|
548 |
}
|
|
|
549 |
|
| 3858 |
vikas |
550 |
public String getFirstSource() {
|
|
|
551 |
return this.firstSource;
|
|
|
552 |
}
|
|
|
553 |
|
|
|
554 |
public void setFirstSource(String firstSource) {
|
|
|
555 |
this.firstSource = firstSource;
|
|
|
556 |
}
|
|
|
557 |
|
|
|
558 |
public void unsetFirstSource() {
|
|
|
559 |
this.firstSource = null;
|
|
|
560 |
}
|
|
|
561 |
|
|
|
562 |
/** Returns true if field firstSource is set (has been assigned a value) and false otherwise */
|
|
|
563 |
public boolean isSetFirstSource() {
|
|
|
564 |
return this.firstSource != null;
|
|
|
565 |
}
|
|
|
566 |
|
|
|
567 |
public void setFirstSourceIsSet(boolean value) {
|
|
|
568 |
if (!value) {
|
|
|
569 |
this.firstSource = null;
|
|
|
570 |
}
|
|
|
571 |
}
|
|
|
572 |
|
|
|
573 |
public long getFirstSourceTime() {
|
|
|
574 |
return this.firstSourceTime;
|
|
|
575 |
}
|
|
|
576 |
|
|
|
577 |
public void setFirstSourceTime(long firstSourceTime) {
|
|
|
578 |
this.firstSourceTime = firstSourceTime;
|
|
|
579 |
setFirstSourceTimeIsSet(true);
|
|
|
580 |
}
|
|
|
581 |
|
|
|
582 |
public void unsetFirstSourceTime() {
|
|
|
583 |
__isset_bit_vector.clear(__FIRSTSOURCETIME_ISSET_ID);
|
|
|
584 |
}
|
|
|
585 |
|
|
|
586 |
/** Returns true if field firstSourceTime is set (has been assigned a value) and false otherwise */
|
|
|
587 |
public boolean isSetFirstSourceTime() {
|
|
|
588 |
return __isset_bit_vector.get(__FIRSTSOURCETIME_ISSET_ID);
|
|
|
589 |
}
|
|
|
590 |
|
|
|
591 |
public void setFirstSourceTimeIsSet(boolean value) {
|
|
|
592 |
__isset_bit_vector.set(__FIRSTSOURCETIME_ISSET_ID, value);
|
|
|
593 |
}
|
|
|
594 |
|
| 6389 |
rajveer |
595 |
public long getEmiSchemeId() {
|
|
|
596 |
return this.emiSchemeId;
|
|
|
597 |
}
|
|
|
598 |
|
|
|
599 |
public void setEmiSchemeId(long emiSchemeId) {
|
|
|
600 |
this.emiSchemeId = emiSchemeId;
|
|
|
601 |
setEmiSchemeIdIsSet(true);
|
|
|
602 |
}
|
|
|
603 |
|
|
|
604 |
public void unsetEmiSchemeId() {
|
|
|
605 |
__isset_bit_vector.clear(__EMISCHEMEID_ISSET_ID);
|
|
|
606 |
}
|
|
|
607 |
|
|
|
608 |
/** Returns true if field emiSchemeId is set (has been assigned a value) and false otherwise */
|
|
|
609 |
public boolean isSetEmiSchemeId() {
|
|
|
610 |
return __isset_bit_vector.get(__EMISCHEMEID_ISSET_ID);
|
|
|
611 |
}
|
|
|
612 |
|
|
|
613 |
public void setEmiSchemeIdIsSet(boolean value) {
|
|
|
614 |
__isset_bit_vector.set(__EMISCHEMEID_ISSET_ID, value);
|
|
|
615 |
}
|
|
|
616 |
|
| 68 |
ashish |
617 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
618 |
switch (field) {
|
|
|
619 |
case ID:
|
|
|
620 |
if (value == null) {
|
|
|
621 |
unsetId();
|
|
|
622 |
} else {
|
|
|
623 |
setId((Long)value);
|
|
|
624 |
}
|
|
|
625 |
break;
|
|
|
626 |
|
| 483 |
rajveer |
627 |
case ORDERS:
|
| 68 |
ashish |
628 |
if (value == null) {
|
| 483 |
rajveer |
629 |
unsetOrders();
|
| 68 |
ashish |
630 |
} else {
|
| 483 |
rajveer |
631 |
setOrders((List<Order>)value);
|
| 68 |
ashish |
632 |
}
|
|
|
633 |
break;
|
|
|
634 |
|
|
|
635 |
case CREATED_ON:
|
|
|
636 |
if (value == null) {
|
|
|
637 |
unsetCreatedOn();
|
|
|
638 |
} else {
|
|
|
639 |
setCreatedOn((Long)value);
|
|
|
640 |
}
|
|
|
641 |
break;
|
|
|
642 |
|
|
|
643 |
case TRANSACTION_STATUS:
|
|
|
644 |
if (value == null) {
|
|
|
645 |
unsetTransactionStatus();
|
|
|
646 |
} else {
|
|
|
647 |
setTransactionStatus((TransactionStatus)value);
|
|
|
648 |
}
|
|
|
649 |
break;
|
|
|
650 |
|
|
|
651 |
case STATUS_DESCRIPTION:
|
|
|
652 |
if (value == null) {
|
|
|
653 |
unsetStatusDescription();
|
|
|
654 |
} else {
|
|
|
655 |
setStatusDescription((String)value);
|
|
|
656 |
}
|
|
|
657 |
break;
|
|
|
658 |
|
| 132 |
ashish |
659 |
case SHOPPING_CARTID:
|
|
|
660 |
if (value == null) {
|
|
|
661 |
unsetShoppingCartid();
|
|
|
662 |
} else {
|
|
|
663 |
setShoppingCartid((Long)value);
|
|
|
664 |
}
|
|
|
665 |
break;
|
|
|
666 |
|
| 483 |
rajveer |
667 |
case CUSTOMER_ID:
|
| 358 |
ashish |
668 |
if (value == null) {
|
| 483 |
rajveer |
669 |
unsetCustomer_id();
|
| 358 |
ashish |
670 |
} else {
|
| 483 |
rajveer |
671 |
setCustomer_id((Long)value);
|
| 358 |
ashish |
672 |
}
|
|
|
673 |
break;
|
|
|
674 |
|
| 2219 |
varun.gupt |
675 |
case COUPON_CODE:
|
|
|
676 |
if (value == null) {
|
|
|
677 |
unsetCoupon_code();
|
|
|
678 |
} else {
|
|
|
679 |
setCoupon_code((String)value);
|
|
|
680 |
}
|
|
|
681 |
break;
|
|
|
682 |
|
| 2816 |
vikas |
683 |
case SESSION_SOURCE:
|
|
|
684 |
if (value == null) {
|
|
|
685 |
unsetSessionSource();
|
|
|
686 |
} else {
|
|
|
687 |
setSessionSource((String)value);
|
|
|
688 |
}
|
|
|
689 |
break;
|
|
|
690 |
|
|
|
691 |
case SESSION_START_TIME:
|
|
|
692 |
if (value == null) {
|
|
|
693 |
unsetSessionStartTime();
|
|
|
694 |
} else {
|
|
|
695 |
setSessionStartTime((Long)value);
|
|
|
696 |
}
|
|
|
697 |
break;
|
|
|
698 |
|
| 3858 |
vikas |
699 |
case FIRST_SOURCE:
|
|
|
700 |
if (value == null) {
|
|
|
701 |
unsetFirstSource();
|
|
|
702 |
} else {
|
|
|
703 |
setFirstSource((String)value);
|
|
|
704 |
}
|
|
|
705 |
break;
|
|
|
706 |
|
|
|
707 |
case FIRST_SOURCE_TIME:
|
|
|
708 |
if (value == null) {
|
|
|
709 |
unsetFirstSourceTime();
|
|
|
710 |
} else {
|
|
|
711 |
setFirstSourceTime((Long)value);
|
|
|
712 |
}
|
|
|
713 |
break;
|
|
|
714 |
|
| 6389 |
rajveer |
715 |
case EMI_SCHEME_ID:
|
|
|
716 |
if (value == null) {
|
|
|
717 |
unsetEmiSchemeId();
|
|
|
718 |
} else {
|
|
|
719 |
setEmiSchemeId((Long)value);
|
|
|
720 |
}
|
|
|
721 |
break;
|
|
|
722 |
|
| 68 |
ashish |
723 |
}
|
|
|
724 |
}
|
|
|
725 |
|
|
|
726 |
public Object getFieldValue(_Fields field) {
|
|
|
727 |
switch (field) {
|
|
|
728 |
case ID:
|
| 3430 |
rajveer |
729 |
return Long.valueOf(getId());
|
| 68 |
ashish |
730 |
|
| 483 |
rajveer |
731 |
case ORDERS:
|
|
|
732 |
return getOrders();
|
| 68 |
ashish |
733 |
|
|
|
734 |
case CREATED_ON:
|
| 3430 |
rajveer |
735 |
return Long.valueOf(getCreatedOn());
|
| 68 |
ashish |
736 |
|
|
|
737 |
case TRANSACTION_STATUS:
|
|
|
738 |
return getTransactionStatus();
|
|
|
739 |
|
|
|
740 |
case STATUS_DESCRIPTION:
|
|
|
741 |
return getStatusDescription();
|
|
|
742 |
|
| 132 |
ashish |
743 |
case SHOPPING_CARTID:
|
| 3430 |
rajveer |
744 |
return Long.valueOf(getShoppingCartid());
|
| 132 |
ashish |
745 |
|
| 483 |
rajveer |
746 |
case CUSTOMER_ID:
|
| 3430 |
rajveer |
747 |
return Long.valueOf(getCustomer_id());
|
| 358 |
ashish |
748 |
|
| 2219 |
varun.gupt |
749 |
case COUPON_CODE:
|
|
|
750 |
return getCoupon_code();
|
|
|
751 |
|
| 2816 |
vikas |
752 |
case SESSION_SOURCE:
|
|
|
753 |
return getSessionSource();
|
|
|
754 |
|
|
|
755 |
case SESSION_START_TIME:
|
| 3430 |
rajveer |
756 |
return Long.valueOf(getSessionStartTime());
|
| 2816 |
vikas |
757 |
|
| 3858 |
vikas |
758 |
case FIRST_SOURCE:
|
|
|
759 |
return getFirstSource();
|
|
|
760 |
|
|
|
761 |
case FIRST_SOURCE_TIME:
|
|
|
762 |
return Long.valueOf(getFirstSourceTime());
|
|
|
763 |
|
| 6389 |
rajveer |
764 |
case EMI_SCHEME_ID:
|
|
|
765 |
return Long.valueOf(getEmiSchemeId());
|
|
|
766 |
|
| 68 |
ashish |
767 |
}
|
|
|
768 |
throw new IllegalStateException();
|
|
|
769 |
}
|
|
|
770 |
|
| 3430 |
rajveer |
771 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
772 |
public boolean isSet(_Fields field) {
|
|
|
773 |
if (field == null) {
|
|
|
774 |
throw new IllegalArgumentException();
|
|
|
775 |
}
|
| 68 |
ashish |
776 |
|
|
|
777 |
switch (field) {
|
|
|
778 |
case ID:
|
|
|
779 |
return isSetId();
|
| 483 |
rajveer |
780 |
case ORDERS:
|
|
|
781 |
return isSetOrders();
|
| 68 |
ashish |
782 |
case CREATED_ON:
|
|
|
783 |
return isSetCreatedOn();
|
|
|
784 |
case TRANSACTION_STATUS:
|
|
|
785 |
return isSetTransactionStatus();
|
|
|
786 |
case STATUS_DESCRIPTION:
|
|
|
787 |
return isSetStatusDescription();
|
| 483 |
rajveer |
788 |
case SHOPPING_CARTID:
|
|
|
789 |
return isSetShoppingCartid();
|
| 68 |
ashish |
790 |
case CUSTOMER_ID:
|
|
|
791 |
return isSetCustomer_id();
|
| 2219 |
varun.gupt |
792 |
case COUPON_CODE:
|
|
|
793 |
return isSetCoupon_code();
|
| 2816 |
vikas |
794 |
case SESSION_SOURCE:
|
|
|
795 |
return isSetSessionSource();
|
|
|
796 |
case SESSION_START_TIME:
|
|
|
797 |
return isSetSessionStartTime();
|
| 3858 |
vikas |
798 |
case FIRST_SOURCE:
|
|
|
799 |
return isSetFirstSource();
|
|
|
800 |
case FIRST_SOURCE_TIME:
|
|
|
801 |
return isSetFirstSourceTime();
|
| 6389 |
rajveer |
802 |
case EMI_SCHEME_ID:
|
|
|
803 |
return isSetEmiSchemeId();
|
| 68 |
ashish |
804 |
}
|
|
|
805 |
throw new IllegalStateException();
|
|
|
806 |
}
|
|
|
807 |
|
|
|
808 |
@Override
|
|
|
809 |
public boolean equals(Object that) {
|
|
|
810 |
if (that == null)
|
|
|
811 |
return false;
|
|
|
812 |
if (that instanceof Transaction)
|
|
|
813 |
return this.equals((Transaction)that);
|
|
|
814 |
return false;
|
|
|
815 |
}
|
|
|
816 |
|
|
|
817 |
public boolean equals(Transaction that) {
|
|
|
818 |
if (that == null)
|
|
|
819 |
return false;
|
|
|
820 |
|
|
|
821 |
boolean this_present_id = true;
|
|
|
822 |
boolean that_present_id = true;
|
|
|
823 |
if (this_present_id || that_present_id) {
|
|
|
824 |
if (!(this_present_id && that_present_id))
|
|
|
825 |
return false;
|
|
|
826 |
if (this.id != that.id)
|
|
|
827 |
return false;
|
|
|
828 |
}
|
|
|
829 |
|
| 483 |
rajveer |
830 |
boolean this_present_orders = true && this.isSetOrders();
|
|
|
831 |
boolean that_present_orders = true && that.isSetOrders();
|
|
|
832 |
if (this_present_orders || that_present_orders) {
|
|
|
833 |
if (!(this_present_orders && that_present_orders))
|
| 68 |
ashish |
834 |
return false;
|
| 483 |
rajveer |
835 |
if (!this.orders.equals(that.orders))
|
| 68 |
ashish |
836 |
return false;
|
|
|
837 |
}
|
|
|
838 |
|
|
|
839 |
boolean this_present_createdOn = true;
|
|
|
840 |
boolean that_present_createdOn = true;
|
|
|
841 |
if (this_present_createdOn || that_present_createdOn) {
|
|
|
842 |
if (!(this_present_createdOn && that_present_createdOn))
|
|
|
843 |
return false;
|
|
|
844 |
if (this.createdOn != that.createdOn)
|
|
|
845 |
return false;
|
|
|
846 |
}
|
|
|
847 |
|
|
|
848 |
boolean this_present_transactionStatus = true && this.isSetTransactionStatus();
|
|
|
849 |
boolean that_present_transactionStatus = true && that.isSetTransactionStatus();
|
|
|
850 |
if (this_present_transactionStatus || that_present_transactionStatus) {
|
|
|
851 |
if (!(this_present_transactionStatus && that_present_transactionStatus))
|
|
|
852 |
return false;
|
|
|
853 |
if (!this.transactionStatus.equals(that.transactionStatus))
|
|
|
854 |
return false;
|
|
|
855 |
}
|
|
|
856 |
|
|
|
857 |
boolean this_present_statusDescription = true && this.isSetStatusDescription();
|
|
|
858 |
boolean that_present_statusDescription = true && that.isSetStatusDescription();
|
|
|
859 |
if (this_present_statusDescription || that_present_statusDescription) {
|
|
|
860 |
if (!(this_present_statusDescription && that_present_statusDescription))
|
|
|
861 |
return false;
|
|
|
862 |
if (!this.statusDescription.equals(that.statusDescription))
|
|
|
863 |
return false;
|
|
|
864 |
}
|
|
|
865 |
|
| 132 |
ashish |
866 |
boolean this_present_shoppingCartid = true;
|
|
|
867 |
boolean that_present_shoppingCartid = true;
|
|
|
868 |
if (this_present_shoppingCartid || that_present_shoppingCartid) {
|
|
|
869 |
if (!(this_present_shoppingCartid && that_present_shoppingCartid))
|
|
|
870 |
return false;
|
|
|
871 |
if (this.shoppingCartid != that.shoppingCartid)
|
|
|
872 |
return false;
|
|
|
873 |
}
|
|
|
874 |
|
| 483 |
rajveer |
875 |
boolean this_present_customer_id = true;
|
|
|
876 |
boolean that_present_customer_id = true;
|
|
|
877 |
if (this_present_customer_id || that_present_customer_id) {
|
|
|
878 |
if (!(this_present_customer_id && that_present_customer_id))
|
| 358 |
ashish |
879 |
return false;
|
| 483 |
rajveer |
880 |
if (this.customer_id != that.customer_id)
|
| 358 |
ashish |
881 |
return false;
|
|
|
882 |
}
|
|
|
883 |
|
| 2219 |
varun.gupt |
884 |
boolean this_present_coupon_code = true && this.isSetCoupon_code();
|
|
|
885 |
boolean that_present_coupon_code = true && that.isSetCoupon_code();
|
|
|
886 |
if (this_present_coupon_code || that_present_coupon_code) {
|
|
|
887 |
if (!(this_present_coupon_code && that_present_coupon_code))
|
|
|
888 |
return false;
|
|
|
889 |
if (!this.coupon_code.equals(that.coupon_code))
|
|
|
890 |
return false;
|
|
|
891 |
}
|
|
|
892 |
|
| 2816 |
vikas |
893 |
boolean this_present_sessionSource = true && this.isSetSessionSource();
|
|
|
894 |
boolean that_present_sessionSource = true && that.isSetSessionSource();
|
|
|
895 |
if (this_present_sessionSource || that_present_sessionSource) {
|
|
|
896 |
if (!(this_present_sessionSource && that_present_sessionSource))
|
|
|
897 |
return false;
|
|
|
898 |
if (!this.sessionSource.equals(that.sessionSource))
|
|
|
899 |
return false;
|
|
|
900 |
}
|
|
|
901 |
|
|
|
902 |
boolean this_present_sessionStartTime = true;
|
|
|
903 |
boolean that_present_sessionStartTime = true;
|
|
|
904 |
if (this_present_sessionStartTime || that_present_sessionStartTime) {
|
|
|
905 |
if (!(this_present_sessionStartTime && that_present_sessionStartTime))
|
|
|
906 |
return false;
|
|
|
907 |
if (this.sessionStartTime != that.sessionStartTime)
|
|
|
908 |
return false;
|
|
|
909 |
}
|
|
|
910 |
|
| 3858 |
vikas |
911 |
boolean this_present_firstSource = true && this.isSetFirstSource();
|
|
|
912 |
boolean that_present_firstSource = true && that.isSetFirstSource();
|
|
|
913 |
if (this_present_firstSource || that_present_firstSource) {
|
|
|
914 |
if (!(this_present_firstSource && that_present_firstSource))
|
|
|
915 |
return false;
|
|
|
916 |
if (!this.firstSource.equals(that.firstSource))
|
|
|
917 |
return false;
|
|
|
918 |
}
|
|
|
919 |
|
|
|
920 |
boolean this_present_firstSourceTime = true;
|
|
|
921 |
boolean that_present_firstSourceTime = true;
|
|
|
922 |
if (this_present_firstSourceTime || that_present_firstSourceTime) {
|
|
|
923 |
if (!(this_present_firstSourceTime && that_present_firstSourceTime))
|
|
|
924 |
return false;
|
|
|
925 |
if (this.firstSourceTime != that.firstSourceTime)
|
|
|
926 |
return false;
|
|
|
927 |
}
|
|
|
928 |
|
| 6389 |
rajveer |
929 |
boolean this_present_emiSchemeId = true;
|
|
|
930 |
boolean that_present_emiSchemeId = true;
|
|
|
931 |
if (this_present_emiSchemeId || that_present_emiSchemeId) {
|
|
|
932 |
if (!(this_present_emiSchemeId && that_present_emiSchemeId))
|
|
|
933 |
return false;
|
|
|
934 |
if (this.emiSchemeId != that.emiSchemeId)
|
|
|
935 |
return false;
|
|
|
936 |
}
|
|
|
937 |
|
| 68 |
ashish |
938 |
return true;
|
|
|
939 |
}
|
|
|
940 |
|
|
|
941 |
@Override
|
|
|
942 |
public int hashCode() {
|
|
|
943 |
return 0;
|
|
|
944 |
}
|
|
|
945 |
|
| 684 |
chandransh |
946 |
public int compareTo(Transaction other) {
|
|
|
947 |
if (!getClass().equals(other.getClass())) {
|
|
|
948 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
949 |
}
|
|
|
950 |
|
|
|
951 |
int lastComparison = 0;
|
|
|
952 |
Transaction typedOther = (Transaction)other;
|
|
|
953 |
|
| 3430 |
rajveer |
954 |
lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
|
| 684 |
chandransh |
955 |
if (lastComparison != 0) {
|
|
|
956 |
return lastComparison;
|
|
|
957 |
}
|
| 3430 |
rajveer |
958 |
if (isSetId()) {
|
|
|
959 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
|
|
|
960 |
if (lastComparison != 0) {
|
|
|
961 |
return lastComparison;
|
|
|
962 |
}
|
| 684 |
chandransh |
963 |
}
|
| 3430 |
rajveer |
964 |
lastComparison = Boolean.valueOf(isSetOrders()).compareTo(typedOther.isSetOrders());
|
| 684 |
chandransh |
965 |
if (lastComparison != 0) {
|
|
|
966 |
return lastComparison;
|
|
|
967 |
}
|
| 3430 |
rajveer |
968 |
if (isSetOrders()) {
|
|
|
969 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orders, typedOther.orders);
|
|
|
970 |
if (lastComparison != 0) {
|
|
|
971 |
return lastComparison;
|
|
|
972 |
}
|
| 684 |
chandransh |
973 |
}
|
| 3430 |
rajveer |
974 |
lastComparison = Boolean.valueOf(isSetCreatedOn()).compareTo(typedOther.isSetCreatedOn());
|
| 684 |
chandransh |
975 |
if (lastComparison != 0) {
|
|
|
976 |
return lastComparison;
|
|
|
977 |
}
|
| 3430 |
rajveer |
978 |
if (isSetCreatedOn()) {
|
|
|
979 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createdOn, typedOther.createdOn);
|
|
|
980 |
if (lastComparison != 0) {
|
|
|
981 |
return lastComparison;
|
|
|
982 |
}
|
| 684 |
chandransh |
983 |
}
|
| 3430 |
rajveer |
984 |
lastComparison = Boolean.valueOf(isSetTransactionStatus()).compareTo(typedOther.isSetTransactionStatus());
|
| 684 |
chandransh |
985 |
if (lastComparison != 0) {
|
|
|
986 |
return lastComparison;
|
|
|
987 |
}
|
| 3430 |
rajveer |
988 |
if (isSetTransactionStatus()) {
|
|
|
989 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionStatus, typedOther.transactionStatus);
|
|
|
990 |
if (lastComparison != 0) {
|
|
|
991 |
return lastComparison;
|
|
|
992 |
}
|
| 684 |
chandransh |
993 |
}
|
| 3430 |
rajveer |
994 |
lastComparison = Boolean.valueOf(isSetStatusDescription()).compareTo(typedOther.isSetStatusDescription());
|
| 684 |
chandransh |
995 |
if (lastComparison != 0) {
|
|
|
996 |
return lastComparison;
|
|
|
997 |
}
|
| 3430 |
rajveer |
998 |
if (isSetStatusDescription()) {
|
|
|
999 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statusDescription, typedOther.statusDescription);
|
|
|
1000 |
if (lastComparison != 0) {
|
|
|
1001 |
return lastComparison;
|
|
|
1002 |
}
|
| 684 |
chandransh |
1003 |
}
|
| 3430 |
rajveer |
1004 |
lastComparison = Boolean.valueOf(isSetShoppingCartid()).compareTo(typedOther.isSetShoppingCartid());
|
| 684 |
chandransh |
1005 |
if (lastComparison != 0) {
|
|
|
1006 |
return lastComparison;
|
|
|
1007 |
}
|
| 3430 |
rajveer |
1008 |
if (isSetShoppingCartid()) {
|
|
|
1009 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shoppingCartid, typedOther.shoppingCartid);
|
|
|
1010 |
if (lastComparison != 0) {
|
|
|
1011 |
return lastComparison;
|
|
|
1012 |
}
|
| 684 |
chandransh |
1013 |
}
|
| 3430 |
rajveer |
1014 |
lastComparison = Boolean.valueOf(isSetCustomer_id()).compareTo(typedOther.isSetCustomer_id());
|
| 684 |
chandransh |
1015 |
if (lastComparison != 0) {
|
|
|
1016 |
return lastComparison;
|
|
|
1017 |
}
|
| 3430 |
rajveer |
1018 |
if (isSetCustomer_id()) {
|
|
|
1019 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customer_id, typedOther.customer_id);
|
|
|
1020 |
if (lastComparison != 0) {
|
|
|
1021 |
return lastComparison;
|
|
|
1022 |
}
|
| 684 |
chandransh |
1023 |
}
|
| 3430 |
rajveer |
1024 |
lastComparison = Boolean.valueOf(isSetCoupon_code()).compareTo(typedOther.isSetCoupon_code());
|
| 2219 |
varun.gupt |
1025 |
if (lastComparison != 0) {
|
|
|
1026 |
return lastComparison;
|
|
|
1027 |
}
|
| 3430 |
rajveer |
1028 |
if (isSetCoupon_code()) {
|
|
|
1029 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.coupon_code, typedOther.coupon_code);
|
|
|
1030 |
if (lastComparison != 0) {
|
|
|
1031 |
return lastComparison;
|
|
|
1032 |
}
|
| 2219 |
varun.gupt |
1033 |
}
|
| 3430 |
rajveer |
1034 |
lastComparison = Boolean.valueOf(isSetSessionSource()).compareTo(typedOther.isSetSessionSource());
|
| 2816 |
vikas |
1035 |
if (lastComparison != 0) {
|
|
|
1036 |
return lastComparison;
|
|
|
1037 |
}
|
| 3430 |
rajveer |
1038 |
if (isSetSessionSource()) {
|
|
|
1039 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionSource, typedOther.sessionSource);
|
|
|
1040 |
if (lastComparison != 0) {
|
|
|
1041 |
return lastComparison;
|
|
|
1042 |
}
|
| 2816 |
vikas |
1043 |
}
|
| 3430 |
rajveer |
1044 |
lastComparison = Boolean.valueOf(isSetSessionStartTime()).compareTo(typedOther.isSetSessionStartTime());
|
| 2816 |
vikas |
1045 |
if (lastComparison != 0) {
|
|
|
1046 |
return lastComparison;
|
|
|
1047 |
}
|
| 3430 |
rajveer |
1048 |
if (isSetSessionStartTime()) {
|
|
|
1049 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionStartTime, typedOther.sessionStartTime);
|
|
|
1050 |
if (lastComparison != 0) {
|
|
|
1051 |
return lastComparison;
|
|
|
1052 |
}
|
| 2816 |
vikas |
1053 |
}
|
| 3858 |
vikas |
1054 |
lastComparison = Boolean.valueOf(isSetFirstSource()).compareTo(typedOther.isSetFirstSource());
|
|
|
1055 |
if (lastComparison != 0) {
|
|
|
1056 |
return lastComparison;
|
|
|
1057 |
}
|
|
|
1058 |
if (isSetFirstSource()) {
|
|
|
1059 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.firstSource, typedOther.firstSource);
|
|
|
1060 |
if (lastComparison != 0) {
|
|
|
1061 |
return lastComparison;
|
|
|
1062 |
}
|
|
|
1063 |
}
|
|
|
1064 |
lastComparison = Boolean.valueOf(isSetFirstSourceTime()).compareTo(typedOther.isSetFirstSourceTime());
|
|
|
1065 |
if (lastComparison != 0) {
|
|
|
1066 |
return lastComparison;
|
|
|
1067 |
}
|
|
|
1068 |
if (isSetFirstSourceTime()) {
|
|
|
1069 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.firstSourceTime, typedOther.firstSourceTime);
|
|
|
1070 |
if (lastComparison != 0) {
|
|
|
1071 |
return lastComparison;
|
|
|
1072 |
}
|
|
|
1073 |
}
|
| 6389 |
rajveer |
1074 |
lastComparison = Boolean.valueOf(isSetEmiSchemeId()).compareTo(typedOther.isSetEmiSchemeId());
|
|
|
1075 |
if (lastComparison != 0) {
|
|
|
1076 |
return lastComparison;
|
|
|
1077 |
}
|
|
|
1078 |
if (isSetEmiSchemeId()) {
|
|
|
1079 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emiSchemeId, typedOther.emiSchemeId);
|
|
|
1080 |
if (lastComparison != 0) {
|
|
|
1081 |
return lastComparison;
|
|
|
1082 |
}
|
|
|
1083 |
}
|
| 684 |
chandransh |
1084 |
return 0;
|
|
|
1085 |
}
|
|
|
1086 |
|
| 3430 |
rajveer |
1087 |
public _Fields fieldForId(int fieldId) {
|
|
|
1088 |
return _Fields.findByThriftId(fieldId);
|
|
|
1089 |
}
|
|
|
1090 |
|
|
|
1091 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
1092 |
org.apache.thrift.protocol.TField field;
|
| 68 |
ashish |
1093 |
iprot.readStructBegin();
|
|
|
1094 |
while (true)
|
|
|
1095 |
{
|
|
|
1096 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
1097 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 68 |
ashish |
1098 |
break;
|
|
|
1099 |
}
|
| 3430 |
rajveer |
1100 |
switch (field.id) {
|
|
|
1101 |
case 1: // ID
|
|
|
1102 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1103 |
this.id = iprot.readI64();
|
|
|
1104 |
setIdIsSet(true);
|
|
|
1105 |
} else {
|
|
|
1106 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1107 |
}
|
|
|
1108 |
break;
|
|
|
1109 |
case 2: // ORDERS
|
|
|
1110 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
1111 |
{
|
|
|
1112 |
org.apache.thrift.protocol.TList _list4 = iprot.readListBegin();
|
|
|
1113 |
this.orders = new ArrayList<Order>(_list4.size);
|
|
|
1114 |
for (int _i5 = 0; _i5 < _list4.size; ++_i5)
|
| 483 |
rajveer |
1115 |
{
|
| 3430 |
rajveer |
1116 |
Order _elem6; // required
|
|
|
1117 |
_elem6 = new Order();
|
|
|
1118 |
_elem6.read(iprot);
|
|
|
1119 |
this.orders.add(_elem6);
|
| 483 |
rajveer |
1120 |
}
|
| 3430 |
rajveer |
1121 |
iprot.readListEnd();
|
| 68 |
ashish |
1122 |
}
|
| 3430 |
rajveer |
1123 |
} else {
|
|
|
1124 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1125 |
}
|
|
|
1126 |
break;
|
|
|
1127 |
case 3: // CREATED_ON
|
|
|
1128 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1129 |
this.createdOn = iprot.readI64();
|
|
|
1130 |
setCreatedOnIsSet(true);
|
|
|
1131 |
} else {
|
|
|
1132 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1133 |
}
|
|
|
1134 |
break;
|
|
|
1135 |
case 4: // TRANSACTION_STATUS
|
|
|
1136 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
1137 |
this.transactionStatus = TransactionStatus.findByValue(iprot.readI32());
|
|
|
1138 |
} else {
|
|
|
1139 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1140 |
}
|
|
|
1141 |
break;
|
|
|
1142 |
case 5: // STATUS_DESCRIPTION
|
|
|
1143 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1144 |
this.statusDescription = iprot.readString();
|
|
|
1145 |
} else {
|
|
|
1146 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1147 |
}
|
|
|
1148 |
break;
|
|
|
1149 |
case 6: // SHOPPING_CARTID
|
|
|
1150 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1151 |
this.shoppingCartid = iprot.readI64();
|
|
|
1152 |
setShoppingCartidIsSet(true);
|
|
|
1153 |
} else {
|
|
|
1154 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1155 |
}
|
|
|
1156 |
break;
|
|
|
1157 |
case 7: // CUSTOMER_ID
|
|
|
1158 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1159 |
this.customer_id = iprot.readI64();
|
|
|
1160 |
setCustomer_idIsSet(true);
|
|
|
1161 |
} else {
|
|
|
1162 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1163 |
}
|
|
|
1164 |
break;
|
|
|
1165 |
case 8: // COUPON_CODE
|
|
|
1166 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1167 |
this.coupon_code = iprot.readString();
|
|
|
1168 |
} else {
|
|
|
1169 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1170 |
}
|
|
|
1171 |
break;
|
|
|
1172 |
case 9: // SESSION_SOURCE
|
|
|
1173 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1174 |
this.sessionSource = iprot.readString();
|
|
|
1175 |
} else {
|
|
|
1176 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1177 |
}
|
|
|
1178 |
break;
|
|
|
1179 |
case 10: // SESSION_START_TIME
|
|
|
1180 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1181 |
this.sessionStartTime = iprot.readI64();
|
|
|
1182 |
setSessionStartTimeIsSet(true);
|
|
|
1183 |
} else {
|
|
|
1184 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1185 |
}
|
|
|
1186 |
break;
|
| 3858 |
vikas |
1187 |
case 11: // FIRST_SOURCE
|
|
|
1188 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1189 |
this.firstSource = iprot.readString();
|
|
|
1190 |
} else {
|
|
|
1191 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1192 |
}
|
|
|
1193 |
break;
|
|
|
1194 |
case 12: // FIRST_SOURCE_TIME
|
|
|
1195 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1196 |
this.firstSourceTime = iprot.readI64();
|
|
|
1197 |
setFirstSourceTimeIsSet(true);
|
|
|
1198 |
} else {
|
|
|
1199 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1200 |
}
|
|
|
1201 |
break;
|
| 6389 |
rajveer |
1202 |
case 13: // EMI_SCHEME_ID
|
|
|
1203 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1204 |
this.emiSchemeId = iprot.readI64();
|
|
|
1205 |
setEmiSchemeIdIsSet(true);
|
|
|
1206 |
} else {
|
|
|
1207 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1208 |
}
|
|
|
1209 |
break;
|
| 3430 |
rajveer |
1210 |
default:
|
|
|
1211 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 68 |
ashish |
1212 |
}
|
| 3430 |
rajveer |
1213 |
iprot.readFieldEnd();
|
| 68 |
ashish |
1214 |
}
|
|
|
1215 |
iprot.readStructEnd();
|
|
|
1216 |
validate();
|
|
|
1217 |
}
|
|
|
1218 |
|
| 3430 |
rajveer |
1219 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 68 |
ashish |
1220 |
validate();
|
|
|
1221 |
|
|
|
1222 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
1223 |
oprot.writeFieldBegin(ID_FIELD_DESC);
|
|
|
1224 |
oprot.writeI64(this.id);
|
|
|
1225 |
oprot.writeFieldEnd();
|
| 483 |
rajveer |
1226 |
if (this.orders != null) {
|
|
|
1227 |
oprot.writeFieldBegin(ORDERS_FIELD_DESC);
|
|
|
1228 |
{
|
| 3430 |
rajveer |
1229 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.orders.size()));
|
| 684 |
chandransh |
1230 |
for (Order _iter7 : this.orders)
|
| 483 |
rajveer |
1231 |
{
|
| 684 |
chandransh |
1232 |
_iter7.write(oprot);
|
| 483 |
rajveer |
1233 |
}
|
|
|
1234 |
oprot.writeListEnd();
|
|
|
1235 |
}
|
| 68 |
ashish |
1236 |
oprot.writeFieldEnd();
|
|
|
1237 |
}
|
|
|
1238 |
oprot.writeFieldBegin(CREATED_ON_FIELD_DESC);
|
|
|
1239 |
oprot.writeI64(this.createdOn);
|
|
|
1240 |
oprot.writeFieldEnd();
|
|
|
1241 |
if (this.transactionStatus != null) {
|
|
|
1242 |
oprot.writeFieldBegin(TRANSACTION_STATUS_FIELD_DESC);
|
|
|
1243 |
oprot.writeI32(this.transactionStatus.getValue());
|
|
|
1244 |
oprot.writeFieldEnd();
|
|
|
1245 |
}
|
|
|
1246 |
if (this.statusDescription != null) {
|
|
|
1247 |
oprot.writeFieldBegin(STATUS_DESCRIPTION_FIELD_DESC);
|
|
|
1248 |
oprot.writeString(this.statusDescription);
|
|
|
1249 |
oprot.writeFieldEnd();
|
|
|
1250 |
}
|
| 132 |
ashish |
1251 |
oprot.writeFieldBegin(SHOPPING_CARTID_FIELD_DESC);
|
|
|
1252 |
oprot.writeI64(this.shoppingCartid);
|
|
|
1253 |
oprot.writeFieldEnd();
|
| 483 |
rajveer |
1254 |
oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
|
|
|
1255 |
oprot.writeI64(this.customer_id);
|
| 358 |
ashish |
1256 |
oprot.writeFieldEnd();
|
| 2219 |
varun.gupt |
1257 |
if (this.coupon_code != null) {
|
|
|
1258 |
oprot.writeFieldBegin(COUPON_CODE_FIELD_DESC);
|
|
|
1259 |
oprot.writeString(this.coupon_code);
|
|
|
1260 |
oprot.writeFieldEnd();
|
|
|
1261 |
}
|
| 2816 |
vikas |
1262 |
if (this.sessionSource != null) {
|
|
|
1263 |
oprot.writeFieldBegin(SESSION_SOURCE_FIELD_DESC);
|
|
|
1264 |
oprot.writeString(this.sessionSource);
|
|
|
1265 |
oprot.writeFieldEnd();
|
|
|
1266 |
}
|
|
|
1267 |
oprot.writeFieldBegin(SESSION_START_TIME_FIELD_DESC);
|
|
|
1268 |
oprot.writeI64(this.sessionStartTime);
|
|
|
1269 |
oprot.writeFieldEnd();
|
| 3858 |
vikas |
1270 |
if (this.firstSource != null) {
|
|
|
1271 |
oprot.writeFieldBegin(FIRST_SOURCE_FIELD_DESC);
|
|
|
1272 |
oprot.writeString(this.firstSource);
|
|
|
1273 |
oprot.writeFieldEnd();
|
|
|
1274 |
}
|
|
|
1275 |
oprot.writeFieldBegin(FIRST_SOURCE_TIME_FIELD_DESC);
|
|
|
1276 |
oprot.writeI64(this.firstSourceTime);
|
|
|
1277 |
oprot.writeFieldEnd();
|
| 6389 |
rajveer |
1278 |
oprot.writeFieldBegin(EMI_SCHEME_ID_FIELD_DESC);
|
|
|
1279 |
oprot.writeI64(this.emiSchemeId);
|
|
|
1280 |
oprot.writeFieldEnd();
|
| 68 |
ashish |
1281 |
oprot.writeFieldStop();
|
|
|
1282 |
oprot.writeStructEnd();
|
|
|
1283 |
}
|
|
|
1284 |
|
|
|
1285 |
@Override
|
|
|
1286 |
public String toString() {
|
|
|
1287 |
StringBuilder sb = new StringBuilder("Transaction(");
|
|
|
1288 |
boolean first = true;
|
|
|
1289 |
|
|
|
1290 |
sb.append("id:");
|
|
|
1291 |
sb.append(this.id);
|
|
|
1292 |
first = false;
|
|
|
1293 |
if (!first) sb.append(", ");
|
| 483 |
rajveer |
1294 |
sb.append("orders:");
|
|
|
1295 |
if (this.orders == null) {
|
| 68 |
ashish |
1296 |
sb.append("null");
|
|
|
1297 |
} else {
|
| 483 |
rajveer |
1298 |
sb.append(this.orders);
|
| 68 |
ashish |
1299 |
}
|
|
|
1300 |
first = false;
|
|
|
1301 |
if (!first) sb.append(", ");
|
|
|
1302 |
sb.append("createdOn:");
|
|
|
1303 |
sb.append(this.createdOn);
|
|
|
1304 |
first = false;
|
|
|
1305 |
if (!first) sb.append(", ");
|
|
|
1306 |
sb.append("transactionStatus:");
|
|
|
1307 |
if (this.transactionStatus == null) {
|
|
|
1308 |
sb.append("null");
|
|
|
1309 |
} else {
|
|
|
1310 |
sb.append(this.transactionStatus);
|
|
|
1311 |
}
|
|
|
1312 |
first = false;
|
|
|
1313 |
if (!first) sb.append(", ");
|
|
|
1314 |
sb.append("statusDescription:");
|
|
|
1315 |
if (this.statusDescription == null) {
|
|
|
1316 |
sb.append("null");
|
|
|
1317 |
} else {
|
|
|
1318 |
sb.append(this.statusDescription);
|
|
|
1319 |
}
|
|
|
1320 |
first = false;
|
|
|
1321 |
if (!first) sb.append(", ");
|
| 132 |
ashish |
1322 |
sb.append("shoppingCartid:");
|
|
|
1323 |
sb.append(this.shoppingCartid);
|
|
|
1324 |
first = false;
|
| 358 |
ashish |
1325 |
if (!first) sb.append(", ");
|
| 483 |
rajveer |
1326 |
sb.append("customer_id:");
|
|
|
1327 |
sb.append(this.customer_id);
|
| 358 |
ashish |
1328 |
first = false;
|
| 2219 |
varun.gupt |
1329 |
if (!first) sb.append(", ");
|
|
|
1330 |
sb.append("coupon_code:");
|
|
|
1331 |
if (this.coupon_code == null) {
|
|
|
1332 |
sb.append("null");
|
|
|
1333 |
} else {
|
|
|
1334 |
sb.append(this.coupon_code);
|
|
|
1335 |
}
|
|
|
1336 |
first = false;
|
| 2816 |
vikas |
1337 |
if (!first) sb.append(", ");
|
|
|
1338 |
sb.append("sessionSource:");
|
|
|
1339 |
if (this.sessionSource == null) {
|
|
|
1340 |
sb.append("null");
|
|
|
1341 |
} else {
|
|
|
1342 |
sb.append(this.sessionSource);
|
|
|
1343 |
}
|
|
|
1344 |
first = false;
|
|
|
1345 |
if (!first) sb.append(", ");
|
|
|
1346 |
sb.append("sessionStartTime:");
|
|
|
1347 |
sb.append(this.sessionStartTime);
|
|
|
1348 |
first = false;
|
| 3858 |
vikas |
1349 |
if (!first) sb.append(", ");
|
|
|
1350 |
sb.append("firstSource:");
|
|
|
1351 |
if (this.firstSource == null) {
|
|
|
1352 |
sb.append("null");
|
|
|
1353 |
} else {
|
|
|
1354 |
sb.append(this.firstSource);
|
|
|
1355 |
}
|
|
|
1356 |
first = false;
|
|
|
1357 |
if (!first) sb.append(", ");
|
|
|
1358 |
sb.append("firstSourceTime:");
|
|
|
1359 |
sb.append(this.firstSourceTime);
|
|
|
1360 |
first = false;
|
| 6389 |
rajveer |
1361 |
if (!first) sb.append(", ");
|
|
|
1362 |
sb.append("emiSchemeId:");
|
|
|
1363 |
sb.append(this.emiSchemeId);
|
|
|
1364 |
first = false;
|
| 68 |
ashish |
1365 |
sb.append(")");
|
|
|
1366 |
return sb.toString();
|
|
|
1367 |
}
|
|
|
1368 |
|
| 3430 |
rajveer |
1369 |
public void validate() throws org.apache.thrift.TException {
|
| 68 |
ashish |
1370 |
// check for required fields
|
|
|
1371 |
}
|
|
|
1372 |
|
| 3430 |
rajveer |
1373 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
1374 |
try {
|
|
|
1375 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
1376 |
} catch (org.apache.thrift.TException te) {
|
|
|
1377 |
throw new java.io.IOException(te);
|
|
|
1378 |
}
|
|
|
1379 |
}
|
|
|
1380 |
|
|
|
1381 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
1382 |
try {
|
|
|
1383 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
1384 |
__isset_bit_vector = new BitSet(1);
|
|
|
1385 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
1386 |
} catch (org.apache.thrift.TException te) {
|
|
|
1387 |
throw new java.io.IOException(te);
|
|
|
1388 |
}
|
|
|
1389 |
}
|
|
|
1390 |
|
| 68 |
ashish |
1391 |
}
|
|
|
1392 |
|