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