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