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