| 4496 |
mandeep.dh |
1 |
/**
|
|
|
2 |
* Autogenerated by Thrift Compiler (0.7.0)
|
|
|
3 |
*
|
|
|
4 |
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
|
5 |
*/
|
|
|
6 |
package in.shop2020.purchase;
|
|
|
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;
|
|
|
18 |
import java.nio.ByteBuffer;
|
|
|
19 |
import java.util.Arrays;
|
|
|
20 |
import org.slf4j.Logger;
|
|
|
21 |
import org.slf4j.LoggerFactory;
|
|
|
22 |
|
|
|
23 |
public class LineItem implements org.apache.thrift.TBase<LineItem, LineItem._Fields>, java.io.Serializable, Cloneable {
|
|
|
24 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("LineItem");
|
|
|
25 |
|
|
|
26 |
private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", 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 PRODUCT_GROUP_FIELD_DESC = new org.apache.thrift.protocol.TField("productGroup", org.apache.thrift.protocol.TType.STRING, (short)3);
|
|
|
29 |
private static final org.apache.thrift.protocol.TField BRAND_FIELD_DESC = new org.apache.thrift.protocol.TField("brand", org.apache.thrift.protocol.TType.STRING, (short)4);
|
|
|
30 |
private static final org.apache.thrift.protocol.TField MODEL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("modelNumber", org.apache.thrift.protocol.TType.STRING, (short)5);
|
|
|
31 |
private static final org.apache.thrift.protocol.TField MODEL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("modelName", org.apache.thrift.protocol.TType.STRING, (short)6);
|
|
|
32 |
private static final org.apache.thrift.protocol.TField COLOR_FIELD_DESC = new org.apache.thrift.protocol.TField("color", org.apache.thrift.protocol.TType.STRING, (short)7);
|
|
|
33 |
private static final org.apache.thrift.protocol.TField ITEM_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("itemNumber", org.apache.thrift.protocol.TType.STRING, (short)8);
|
|
|
34 |
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)9);
|
|
|
35 |
private static final org.apache.thrift.protocol.TField UNFULFILLED_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("unfulfilledQuantity", org.apache.thrift.protocol.TType.DOUBLE, (short)10);
|
|
|
36 |
private static final org.apache.thrift.protocol.TField CREATED_AT_FIELD_DESC = new org.apache.thrift.protocol.TField("createdAt", org.apache.thrift.protocol.TType.I64, (short)11);
|
|
|
37 |
private static final org.apache.thrift.protocol.TField UNIT_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("unitPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)12);
|
|
|
38 |
private static final org.apache.thrift.protocol.TField FULFILLED_FIELD_DESC = new org.apache.thrift.protocol.TField("fulfilled", org.apache.thrift.protocol.TType.BOOL, (short)13);
|
| 4754 |
mandeep.dh |
39 |
private static final org.apache.thrift.protocol.TField COD_COUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("codCount", org.apache.thrift.protocol.TType.I64, (short)14);
|
| 6821 |
amar.kumar |
40 |
private static final org.apache.thrift.protocol.TField AVAILABLE_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("availableQuantity", org.apache.thrift.protocol.TType.I64, (short)15);
|
|
|
41 |
private static final org.apache.thrift.protocol.TField RESERVED_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("reservedQuantity", org.apache.thrift.protocol.TType.I64, (short)16);
|
|
|
42 |
private static final org.apache.thrift.protocol.TField AVG_SALES_FIELD_DESC = new org.apache.thrift.protocol.TField("avgSales", org.apache.thrift.protocol.TType.DOUBLE, (short)17);
|
|
|
43 |
private static final org.apache.thrift.protocol.TField MIN_STOCK_LEVEL_FIELD_DESC = new org.apache.thrift.protocol.TField("minStockLevel", org.apache.thrift.protocol.TType.I64, (short)18);
|
|
|
44 |
private static final org.apache.thrift.protocol.TField NUMBER_OF_DAYS_STOCK_FIELD_DESC = new org.apache.thrift.protocol.TField("numberOfDaysStock", org.apache.thrift.protocol.TType.I64, (short)19);
|
|
|
45 |
private static final org.apache.thrift.protocol.TField SUGGESTED_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("suggestedQuantity", org.apache.thrift.protocol.TType.I64, (short)20);
|
|
|
46 |
private static final org.apache.thrift.protocol.TField NUMBER_OF_DAYS_IN_STOCK_FIELD_DESC = new org.apache.thrift.protocol.TField("numberOfDaysInStock", org.apache.thrift.protocol.TType.I64, (short)21);
|
| 6857 |
amar.kumar |
47 |
private static final org.apache.thrift.protocol.TField LAST_XDAYS_SALE_FIELD_DESC = new org.apache.thrift.protocol.TField("lastXdaysSale", org.apache.thrift.protocol.TType.STRING, (short)22);
|
| 6880 |
amar.kumar |
48 |
private static final org.apache.thrift.protocol.TField PREVIOUSLY_ORDERED_QTY_FIELD_DESC = new org.apache.thrift.protocol.TField("previouslyOrderedQty", org.apache.thrift.protocol.TType.I64, (short)23);
|
| 7672 |
rajveer |
49 |
private static final org.apache.thrift.protocol.TField NLC_FIELD_DESC = new org.apache.thrift.protocol.TField("nlc", org.apache.thrift.protocol.TType.DOUBLE, (short)24);
|
| 4496 |
mandeep.dh |
50 |
|
|
|
51 |
private long orderId; // required
|
|
|
52 |
private long itemId; // required
|
|
|
53 |
private String productGroup; // required
|
|
|
54 |
private String brand; // required
|
|
|
55 |
private String modelNumber; // required
|
|
|
56 |
private String modelName; // required
|
|
|
57 |
private String color; // required
|
|
|
58 |
private String itemNumber; // required
|
|
|
59 |
private double quantity; // required
|
|
|
60 |
private double unfulfilledQuantity; // required
|
|
|
61 |
private long createdAt; // required
|
|
|
62 |
private double unitPrice; // required
|
|
|
63 |
private boolean fulfilled; // required
|
| 4754 |
mandeep.dh |
64 |
private long codCount; // required
|
| 6821 |
amar.kumar |
65 |
private long availableQuantity; // required
|
|
|
66 |
private long reservedQuantity; // required
|
|
|
67 |
private double avgSales; // required
|
|
|
68 |
private long minStockLevel; // required
|
|
|
69 |
private long numberOfDaysStock; // required
|
|
|
70 |
private long suggestedQuantity; // required
|
|
|
71 |
private long numberOfDaysInStock; // required
|
| 6857 |
amar.kumar |
72 |
private String lastXdaysSale; // required
|
| 6880 |
amar.kumar |
73 |
private long previouslyOrderedQty; // required
|
| 7672 |
rajveer |
74 |
private double nlc; // required
|
| 4496 |
mandeep.dh |
75 |
|
|
|
76 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
77 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
78 |
ORDER_ID((short)1, "orderId"),
|
|
|
79 |
ITEM_ID((short)2, "itemId"),
|
|
|
80 |
PRODUCT_GROUP((short)3, "productGroup"),
|
|
|
81 |
BRAND((short)4, "brand"),
|
|
|
82 |
MODEL_NUMBER((short)5, "modelNumber"),
|
|
|
83 |
MODEL_NAME((short)6, "modelName"),
|
|
|
84 |
COLOR((short)7, "color"),
|
|
|
85 |
ITEM_NUMBER((short)8, "itemNumber"),
|
|
|
86 |
QUANTITY((short)9, "quantity"),
|
|
|
87 |
UNFULFILLED_QUANTITY((short)10, "unfulfilledQuantity"),
|
|
|
88 |
CREATED_AT((short)11, "createdAt"),
|
|
|
89 |
UNIT_PRICE((short)12, "unitPrice"),
|
| 4754 |
mandeep.dh |
90 |
FULFILLED((short)13, "fulfilled"),
|
| 6821 |
amar.kumar |
91 |
COD_COUNT((short)14, "codCount"),
|
|
|
92 |
AVAILABLE_QUANTITY((short)15, "availableQuantity"),
|
|
|
93 |
RESERVED_QUANTITY((short)16, "reservedQuantity"),
|
|
|
94 |
AVG_SALES((short)17, "avgSales"),
|
|
|
95 |
MIN_STOCK_LEVEL((short)18, "minStockLevel"),
|
|
|
96 |
NUMBER_OF_DAYS_STOCK((short)19, "numberOfDaysStock"),
|
|
|
97 |
SUGGESTED_QUANTITY((short)20, "suggestedQuantity"),
|
| 6857 |
amar.kumar |
98 |
NUMBER_OF_DAYS_IN_STOCK((short)21, "numberOfDaysInStock"),
|
| 6880 |
amar.kumar |
99 |
LAST_XDAYS_SALE((short)22, "lastXdaysSale"),
|
| 7672 |
rajveer |
100 |
PREVIOUSLY_ORDERED_QTY((short)23, "previouslyOrderedQty"),
|
|
|
101 |
NLC((short)24, "nlc");
|
| 4496 |
mandeep.dh |
102 |
|
|
|
103 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
104 |
|
|
|
105 |
static {
|
|
|
106 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
107 |
byName.put(field.getFieldName(), field);
|
|
|
108 |
}
|
|
|
109 |
}
|
|
|
110 |
|
|
|
111 |
/**
|
|
|
112 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
113 |
*/
|
|
|
114 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
115 |
switch(fieldId) {
|
|
|
116 |
case 1: // ORDER_ID
|
|
|
117 |
return ORDER_ID;
|
|
|
118 |
case 2: // ITEM_ID
|
|
|
119 |
return ITEM_ID;
|
|
|
120 |
case 3: // PRODUCT_GROUP
|
|
|
121 |
return PRODUCT_GROUP;
|
|
|
122 |
case 4: // BRAND
|
|
|
123 |
return BRAND;
|
|
|
124 |
case 5: // MODEL_NUMBER
|
|
|
125 |
return MODEL_NUMBER;
|
|
|
126 |
case 6: // MODEL_NAME
|
|
|
127 |
return MODEL_NAME;
|
|
|
128 |
case 7: // COLOR
|
|
|
129 |
return COLOR;
|
|
|
130 |
case 8: // ITEM_NUMBER
|
|
|
131 |
return ITEM_NUMBER;
|
|
|
132 |
case 9: // QUANTITY
|
|
|
133 |
return QUANTITY;
|
|
|
134 |
case 10: // UNFULFILLED_QUANTITY
|
|
|
135 |
return UNFULFILLED_QUANTITY;
|
|
|
136 |
case 11: // CREATED_AT
|
|
|
137 |
return CREATED_AT;
|
|
|
138 |
case 12: // UNIT_PRICE
|
|
|
139 |
return UNIT_PRICE;
|
|
|
140 |
case 13: // FULFILLED
|
|
|
141 |
return FULFILLED;
|
| 4754 |
mandeep.dh |
142 |
case 14: // COD_COUNT
|
|
|
143 |
return COD_COUNT;
|
| 6821 |
amar.kumar |
144 |
case 15: // AVAILABLE_QUANTITY
|
|
|
145 |
return AVAILABLE_QUANTITY;
|
|
|
146 |
case 16: // RESERVED_QUANTITY
|
|
|
147 |
return RESERVED_QUANTITY;
|
|
|
148 |
case 17: // AVG_SALES
|
|
|
149 |
return AVG_SALES;
|
|
|
150 |
case 18: // MIN_STOCK_LEVEL
|
|
|
151 |
return MIN_STOCK_LEVEL;
|
|
|
152 |
case 19: // NUMBER_OF_DAYS_STOCK
|
|
|
153 |
return NUMBER_OF_DAYS_STOCK;
|
|
|
154 |
case 20: // SUGGESTED_QUANTITY
|
|
|
155 |
return SUGGESTED_QUANTITY;
|
|
|
156 |
case 21: // NUMBER_OF_DAYS_IN_STOCK
|
|
|
157 |
return NUMBER_OF_DAYS_IN_STOCK;
|
| 6857 |
amar.kumar |
158 |
case 22: // LAST_XDAYS_SALE
|
|
|
159 |
return LAST_XDAYS_SALE;
|
| 6880 |
amar.kumar |
160 |
case 23: // PREVIOUSLY_ORDERED_QTY
|
|
|
161 |
return PREVIOUSLY_ORDERED_QTY;
|
| 7672 |
rajveer |
162 |
case 24: // NLC
|
|
|
163 |
return NLC;
|
| 4496 |
mandeep.dh |
164 |
default:
|
|
|
165 |
return null;
|
|
|
166 |
}
|
|
|
167 |
}
|
|
|
168 |
|
|
|
169 |
/**
|
|
|
170 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
171 |
* if it is not found.
|
|
|
172 |
*/
|
|
|
173 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
174 |
_Fields fields = findByThriftId(fieldId);
|
|
|
175 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
176 |
return fields;
|
|
|
177 |
}
|
|
|
178 |
|
|
|
179 |
/**
|
|
|
180 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
181 |
*/
|
|
|
182 |
public static _Fields findByName(String name) {
|
|
|
183 |
return byName.get(name);
|
|
|
184 |
}
|
|
|
185 |
|
|
|
186 |
private final short _thriftId;
|
|
|
187 |
private final String _fieldName;
|
|
|
188 |
|
|
|
189 |
_Fields(short thriftId, String fieldName) {
|
|
|
190 |
_thriftId = thriftId;
|
|
|
191 |
_fieldName = fieldName;
|
|
|
192 |
}
|
|
|
193 |
|
|
|
194 |
public short getThriftFieldId() {
|
|
|
195 |
return _thriftId;
|
|
|
196 |
}
|
|
|
197 |
|
|
|
198 |
public String getFieldName() {
|
|
|
199 |
return _fieldName;
|
|
|
200 |
}
|
|
|
201 |
}
|
|
|
202 |
|
|
|
203 |
// isset id assignments
|
|
|
204 |
private static final int __ORDERID_ISSET_ID = 0;
|
|
|
205 |
private static final int __ITEMID_ISSET_ID = 1;
|
|
|
206 |
private static final int __QUANTITY_ISSET_ID = 2;
|
|
|
207 |
private static final int __UNFULFILLEDQUANTITY_ISSET_ID = 3;
|
|
|
208 |
private static final int __CREATEDAT_ISSET_ID = 4;
|
|
|
209 |
private static final int __UNITPRICE_ISSET_ID = 5;
|
|
|
210 |
private static final int __FULFILLED_ISSET_ID = 6;
|
| 4754 |
mandeep.dh |
211 |
private static final int __CODCOUNT_ISSET_ID = 7;
|
| 6821 |
amar.kumar |
212 |
private static final int __AVAILABLEQUANTITY_ISSET_ID = 8;
|
|
|
213 |
private static final int __RESERVEDQUANTITY_ISSET_ID = 9;
|
|
|
214 |
private static final int __AVGSALES_ISSET_ID = 10;
|
|
|
215 |
private static final int __MINSTOCKLEVEL_ISSET_ID = 11;
|
|
|
216 |
private static final int __NUMBEROFDAYSSTOCK_ISSET_ID = 12;
|
|
|
217 |
private static final int __SUGGESTEDQUANTITY_ISSET_ID = 13;
|
|
|
218 |
private static final int __NUMBEROFDAYSINSTOCK_ISSET_ID = 14;
|
| 6880 |
amar.kumar |
219 |
private static final int __PREVIOUSLYORDEREDQTY_ISSET_ID = 15;
|
| 7672 |
rajveer |
220 |
private static final int __NLC_ISSET_ID = 16;
|
|
|
221 |
private BitSet __isset_bit_vector = new BitSet(17);
|
| 4496 |
mandeep.dh |
222 |
|
|
|
223 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
224 |
static {
|
|
|
225 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
226 |
tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
227 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
228 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
229 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
230 |
tmpMap.put(_Fields.PRODUCT_GROUP, new org.apache.thrift.meta_data.FieldMetaData("productGroup", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
231 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
232 |
tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
233 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
234 |
tmpMap.put(_Fields.MODEL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("modelNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
235 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
236 |
tmpMap.put(_Fields.MODEL_NAME, new org.apache.thrift.meta_data.FieldMetaData("modelName", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
237 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
238 |
tmpMap.put(_Fields.COLOR, new org.apache.thrift.meta_data.FieldMetaData("color", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
239 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
240 |
tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
241 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
242 |
tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
243 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
244 |
tmpMap.put(_Fields.UNFULFILLED_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("unfulfilledQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
245 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
246 |
tmpMap.put(_Fields.CREATED_AT, new org.apache.thrift.meta_data.FieldMetaData("createdAt", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
247 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
248 |
tmpMap.put(_Fields.UNIT_PRICE, new org.apache.thrift.meta_data.FieldMetaData("unitPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
249 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
250 |
tmpMap.put(_Fields.FULFILLED, new org.apache.thrift.meta_data.FieldMetaData("fulfilled", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
251 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
| 4754 |
mandeep.dh |
252 |
tmpMap.put(_Fields.COD_COUNT, new org.apache.thrift.meta_data.FieldMetaData("codCount", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
253 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 6821 |
amar.kumar |
254 |
tmpMap.put(_Fields.AVAILABLE_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("availableQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
255 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
256 |
tmpMap.put(_Fields.RESERVED_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("reservedQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
257 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
258 |
tmpMap.put(_Fields.AVG_SALES, new org.apache.thrift.meta_data.FieldMetaData("avgSales", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
259 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
260 |
tmpMap.put(_Fields.MIN_STOCK_LEVEL, new org.apache.thrift.meta_data.FieldMetaData("minStockLevel", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
261 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
262 |
tmpMap.put(_Fields.NUMBER_OF_DAYS_STOCK, new org.apache.thrift.meta_data.FieldMetaData("numberOfDaysStock", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
263 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
264 |
tmpMap.put(_Fields.SUGGESTED_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("suggestedQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
265 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
266 |
tmpMap.put(_Fields.NUMBER_OF_DAYS_IN_STOCK, new org.apache.thrift.meta_data.FieldMetaData("numberOfDaysInStock", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
267 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 6857 |
amar.kumar |
268 |
tmpMap.put(_Fields.LAST_XDAYS_SALE, new org.apache.thrift.meta_data.FieldMetaData("lastXdaysSale", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
269 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 6880 |
amar.kumar |
270 |
tmpMap.put(_Fields.PREVIOUSLY_ORDERED_QTY, new org.apache.thrift.meta_data.FieldMetaData("previouslyOrderedQty", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
271 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 7672 |
rajveer |
272 |
tmpMap.put(_Fields.NLC, new org.apache.thrift.meta_data.FieldMetaData("nlc", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
273 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
| 4496 |
mandeep.dh |
274 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
275 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(LineItem.class, metaDataMap);
|
|
|
276 |
}
|
|
|
277 |
|
|
|
278 |
public LineItem() {
|
|
|
279 |
}
|
|
|
280 |
|
|
|
281 |
public LineItem(
|
|
|
282 |
long orderId,
|
|
|
283 |
long itemId,
|
|
|
284 |
String productGroup,
|
|
|
285 |
String brand,
|
|
|
286 |
String modelNumber,
|
|
|
287 |
String modelName,
|
|
|
288 |
String color,
|
|
|
289 |
String itemNumber,
|
|
|
290 |
double quantity,
|
|
|
291 |
double unfulfilledQuantity,
|
|
|
292 |
long createdAt,
|
|
|
293 |
double unitPrice,
|
| 4754 |
mandeep.dh |
294 |
boolean fulfilled,
|
| 6821 |
amar.kumar |
295 |
long codCount,
|
|
|
296 |
long availableQuantity,
|
|
|
297 |
long reservedQuantity,
|
|
|
298 |
double avgSales,
|
|
|
299 |
long minStockLevel,
|
|
|
300 |
long numberOfDaysStock,
|
|
|
301 |
long suggestedQuantity,
|
| 6857 |
amar.kumar |
302 |
long numberOfDaysInStock,
|
| 6880 |
amar.kumar |
303 |
String lastXdaysSale,
|
| 7672 |
rajveer |
304 |
long previouslyOrderedQty,
|
|
|
305 |
double nlc)
|
| 4496 |
mandeep.dh |
306 |
{
|
|
|
307 |
this();
|
|
|
308 |
this.orderId = orderId;
|
|
|
309 |
setOrderIdIsSet(true);
|
|
|
310 |
this.itemId = itemId;
|
|
|
311 |
setItemIdIsSet(true);
|
|
|
312 |
this.productGroup = productGroup;
|
|
|
313 |
this.brand = brand;
|
|
|
314 |
this.modelNumber = modelNumber;
|
|
|
315 |
this.modelName = modelName;
|
|
|
316 |
this.color = color;
|
|
|
317 |
this.itemNumber = itemNumber;
|
|
|
318 |
this.quantity = quantity;
|
|
|
319 |
setQuantityIsSet(true);
|
|
|
320 |
this.unfulfilledQuantity = unfulfilledQuantity;
|
|
|
321 |
setUnfulfilledQuantityIsSet(true);
|
|
|
322 |
this.createdAt = createdAt;
|
|
|
323 |
setCreatedAtIsSet(true);
|
|
|
324 |
this.unitPrice = unitPrice;
|
|
|
325 |
setUnitPriceIsSet(true);
|
|
|
326 |
this.fulfilled = fulfilled;
|
|
|
327 |
setFulfilledIsSet(true);
|
| 4754 |
mandeep.dh |
328 |
this.codCount = codCount;
|
|
|
329 |
setCodCountIsSet(true);
|
| 6821 |
amar.kumar |
330 |
this.availableQuantity = availableQuantity;
|
|
|
331 |
setAvailableQuantityIsSet(true);
|
|
|
332 |
this.reservedQuantity = reservedQuantity;
|
|
|
333 |
setReservedQuantityIsSet(true);
|
|
|
334 |
this.avgSales = avgSales;
|
|
|
335 |
setAvgSalesIsSet(true);
|
|
|
336 |
this.minStockLevel = minStockLevel;
|
|
|
337 |
setMinStockLevelIsSet(true);
|
|
|
338 |
this.numberOfDaysStock = numberOfDaysStock;
|
|
|
339 |
setNumberOfDaysStockIsSet(true);
|
|
|
340 |
this.suggestedQuantity = suggestedQuantity;
|
|
|
341 |
setSuggestedQuantityIsSet(true);
|
|
|
342 |
this.numberOfDaysInStock = numberOfDaysInStock;
|
|
|
343 |
setNumberOfDaysInStockIsSet(true);
|
| 6857 |
amar.kumar |
344 |
this.lastXdaysSale = lastXdaysSale;
|
| 6880 |
amar.kumar |
345 |
this.previouslyOrderedQty = previouslyOrderedQty;
|
|
|
346 |
setPreviouslyOrderedQtyIsSet(true);
|
| 7672 |
rajveer |
347 |
this.nlc = nlc;
|
|
|
348 |
setNlcIsSet(true);
|
| 4496 |
mandeep.dh |
349 |
}
|
|
|
350 |
|
|
|
351 |
/**
|
|
|
352 |
* Performs a deep copy on <i>other</i>.
|
|
|
353 |
*/
|
|
|
354 |
public LineItem(LineItem other) {
|
|
|
355 |
__isset_bit_vector.clear();
|
|
|
356 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
357 |
this.orderId = other.orderId;
|
|
|
358 |
this.itemId = other.itemId;
|
|
|
359 |
if (other.isSetProductGroup()) {
|
|
|
360 |
this.productGroup = other.productGroup;
|
|
|
361 |
}
|
|
|
362 |
if (other.isSetBrand()) {
|
|
|
363 |
this.brand = other.brand;
|
|
|
364 |
}
|
|
|
365 |
if (other.isSetModelNumber()) {
|
|
|
366 |
this.modelNumber = other.modelNumber;
|
|
|
367 |
}
|
|
|
368 |
if (other.isSetModelName()) {
|
|
|
369 |
this.modelName = other.modelName;
|
|
|
370 |
}
|
|
|
371 |
if (other.isSetColor()) {
|
|
|
372 |
this.color = other.color;
|
|
|
373 |
}
|
|
|
374 |
if (other.isSetItemNumber()) {
|
|
|
375 |
this.itemNumber = other.itemNumber;
|
|
|
376 |
}
|
|
|
377 |
this.quantity = other.quantity;
|
|
|
378 |
this.unfulfilledQuantity = other.unfulfilledQuantity;
|
|
|
379 |
this.createdAt = other.createdAt;
|
|
|
380 |
this.unitPrice = other.unitPrice;
|
|
|
381 |
this.fulfilled = other.fulfilled;
|
| 4754 |
mandeep.dh |
382 |
this.codCount = other.codCount;
|
| 6821 |
amar.kumar |
383 |
this.availableQuantity = other.availableQuantity;
|
|
|
384 |
this.reservedQuantity = other.reservedQuantity;
|
|
|
385 |
this.avgSales = other.avgSales;
|
|
|
386 |
this.minStockLevel = other.minStockLevel;
|
|
|
387 |
this.numberOfDaysStock = other.numberOfDaysStock;
|
|
|
388 |
this.suggestedQuantity = other.suggestedQuantity;
|
|
|
389 |
this.numberOfDaysInStock = other.numberOfDaysInStock;
|
| 6857 |
amar.kumar |
390 |
if (other.isSetLastXdaysSale()) {
|
|
|
391 |
this.lastXdaysSale = other.lastXdaysSale;
|
|
|
392 |
}
|
| 6880 |
amar.kumar |
393 |
this.previouslyOrderedQty = other.previouslyOrderedQty;
|
| 7672 |
rajveer |
394 |
this.nlc = other.nlc;
|
| 4496 |
mandeep.dh |
395 |
}
|
|
|
396 |
|
|
|
397 |
public LineItem deepCopy() {
|
|
|
398 |
return new LineItem(this);
|
|
|
399 |
}
|
|
|
400 |
|
|
|
401 |
@Override
|
|
|
402 |
public void clear() {
|
|
|
403 |
setOrderIdIsSet(false);
|
|
|
404 |
this.orderId = 0;
|
|
|
405 |
setItemIdIsSet(false);
|
|
|
406 |
this.itemId = 0;
|
|
|
407 |
this.productGroup = null;
|
|
|
408 |
this.brand = null;
|
|
|
409 |
this.modelNumber = null;
|
|
|
410 |
this.modelName = null;
|
|
|
411 |
this.color = null;
|
|
|
412 |
this.itemNumber = null;
|
|
|
413 |
setQuantityIsSet(false);
|
|
|
414 |
this.quantity = 0.0;
|
|
|
415 |
setUnfulfilledQuantityIsSet(false);
|
|
|
416 |
this.unfulfilledQuantity = 0.0;
|
|
|
417 |
setCreatedAtIsSet(false);
|
|
|
418 |
this.createdAt = 0;
|
|
|
419 |
setUnitPriceIsSet(false);
|
|
|
420 |
this.unitPrice = 0.0;
|
|
|
421 |
setFulfilledIsSet(false);
|
|
|
422 |
this.fulfilled = false;
|
| 4754 |
mandeep.dh |
423 |
setCodCountIsSet(false);
|
|
|
424 |
this.codCount = 0;
|
| 6821 |
amar.kumar |
425 |
setAvailableQuantityIsSet(false);
|
|
|
426 |
this.availableQuantity = 0;
|
|
|
427 |
setReservedQuantityIsSet(false);
|
|
|
428 |
this.reservedQuantity = 0;
|
|
|
429 |
setAvgSalesIsSet(false);
|
|
|
430 |
this.avgSales = 0.0;
|
|
|
431 |
setMinStockLevelIsSet(false);
|
|
|
432 |
this.minStockLevel = 0;
|
|
|
433 |
setNumberOfDaysStockIsSet(false);
|
|
|
434 |
this.numberOfDaysStock = 0;
|
|
|
435 |
setSuggestedQuantityIsSet(false);
|
|
|
436 |
this.suggestedQuantity = 0;
|
|
|
437 |
setNumberOfDaysInStockIsSet(false);
|
|
|
438 |
this.numberOfDaysInStock = 0;
|
| 6857 |
amar.kumar |
439 |
this.lastXdaysSale = null;
|
| 6880 |
amar.kumar |
440 |
setPreviouslyOrderedQtyIsSet(false);
|
|
|
441 |
this.previouslyOrderedQty = 0;
|
| 7672 |
rajveer |
442 |
setNlcIsSet(false);
|
|
|
443 |
this.nlc = 0.0;
|
| 4496 |
mandeep.dh |
444 |
}
|
|
|
445 |
|
|
|
446 |
public long getOrderId() {
|
|
|
447 |
return this.orderId;
|
|
|
448 |
}
|
|
|
449 |
|
|
|
450 |
public void setOrderId(long orderId) {
|
|
|
451 |
this.orderId = orderId;
|
|
|
452 |
setOrderIdIsSet(true);
|
|
|
453 |
}
|
|
|
454 |
|
|
|
455 |
public void unsetOrderId() {
|
|
|
456 |
__isset_bit_vector.clear(__ORDERID_ISSET_ID);
|
|
|
457 |
}
|
|
|
458 |
|
|
|
459 |
/** Returns true if field orderId is set (has been assigned a value) and false otherwise */
|
|
|
460 |
public boolean isSetOrderId() {
|
|
|
461 |
return __isset_bit_vector.get(__ORDERID_ISSET_ID);
|
|
|
462 |
}
|
|
|
463 |
|
|
|
464 |
public void setOrderIdIsSet(boolean value) {
|
|
|
465 |
__isset_bit_vector.set(__ORDERID_ISSET_ID, value);
|
|
|
466 |
}
|
|
|
467 |
|
|
|
468 |
public long getItemId() {
|
|
|
469 |
return this.itemId;
|
|
|
470 |
}
|
|
|
471 |
|
|
|
472 |
public void setItemId(long itemId) {
|
|
|
473 |
this.itemId = itemId;
|
|
|
474 |
setItemIdIsSet(true);
|
|
|
475 |
}
|
|
|
476 |
|
|
|
477 |
public void unsetItemId() {
|
|
|
478 |
__isset_bit_vector.clear(__ITEMID_ISSET_ID);
|
|
|
479 |
}
|
|
|
480 |
|
|
|
481 |
/** Returns true if field itemId is set (has been assigned a value) and false otherwise */
|
|
|
482 |
public boolean isSetItemId() {
|
|
|
483 |
return __isset_bit_vector.get(__ITEMID_ISSET_ID);
|
|
|
484 |
}
|
|
|
485 |
|
|
|
486 |
public void setItemIdIsSet(boolean value) {
|
|
|
487 |
__isset_bit_vector.set(__ITEMID_ISSET_ID, value);
|
|
|
488 |
}
|
|
|
489 |
|
|
|
490 |
public String getProductGroup() {
|
|
|
491 |
return this.productGroup;
|
|
|
492 |
}
|
|
|
493 |
|
|
|
494 |
public void setProductGroup(String productGroup) {
|
|
|
495 |
this.productGroup = productGroup;
|
|
|
496 |
}
|
|
|
497 |
|
|
|
498 |
public void unsetProductGroup() {
|
|
|
499 |
this.productGroup = null;
|
|
|
500 |
}
|
|
|
501 |
|
|
|
502 |
/** Returns true if field productGroup is set (has been assigned a value) and false otherwise */
|
|
|
503 |
public boolean isSetProductGroup() {
|
|
|
504 |
return this.productGroup != null;
|
|
|
505 |
}
|
|
|
506 |
|
|
|
507 |
public void setProductGroupIsSet(boolean value) {
|
|
|
508 |
if (!value) {
|
|
|
509 |
this.productGroup = null;
|
|
|
510 |
}
|
|
|
511 |
}
|
|
|
512 |
|
|
|
513 |
public String getBrand() {
|
|
|
514 |
return this.brand;
|
|
|
515 |
}
|
|
|
516 |
|
|
|
517 |
public void setBrand(String brand) {
|
|
|
518 |
this.brand = brand;
|
|
|
519 |
}
|
|
|
520 |
|
|
|
521 |
public void unsetBrand() {
|
|
|
522 |
this.brand = null;
|
|
|
523 |
}
|
|
|
524 |
|
|
|
525 |
/** Returns true if field brand is set (has been assigned a value) and false otherwise */
|
|
|
526 |
public boolean isSetBrand() {
|
|
|
527 |
return this.brand != null;
|
|
|
528 |
}
|
|
|
529 |
|
|
|
530 |
public void setBrandIsSet(boolean value) {
|
|
|
531 |
if (!value) {
|
|
|
532 |
this.brand = null;
|
|
|
533 |
}
|
|
|
534 |
}
|
|
|
535 |
|
|
|
536 |
public String getModelNumber() {
|
|
|
537 |
return this.modelNumber;
|
|
|
538 |
}
|
|
|
539 |
|
|
|
540 |
public void setModelNumber(String modelNumber) {
|
|
|
541 |
this.modelNumber = modelNumber;
|
|
|
542 |
}
|
|
|
543 |
|
|
|
544 |
public void unsetModelNumber() {
|
|
|
545 |
this.modelNumber = null;
|
|
|
546 |
}
|
|
|
547 |
|
|
|
548 |
/** Returns true if field modelNumber is set (has been assigned a value) and false otherwise */
|
|
|
549 |
public boolean isSetModelNumber() {
|
|
|
550 |
return this.modelNumber != null;
|
|
|
551 |
}
|
|
|
552 |
|
|
|
553 |
public void setModelNumberIsSet(boolean value) {
|
|
|
554 |
if (!value) {
|
|
|
555 |
this.modelNumber = null;
|
|
|
556 |
}
|
|
|
557 |
}
|
|
|
558 |
|
|
|
559 |
public String getModelName() {
|
|
|
560 |
return this.modelName;
|
|
|
561 |
}
|
|
|
562 |
|
|
|
563 |
public void setModelName(String modelName) {
|
|
|
564 |
this.modelName = modelName;
|
|
|
565 |
}
|
|
|
566 |
|
|
|
567 |
public void unsetModelName() {
|
|
|
568 |
this.modelName = null;
|
|
|
569 |
}
|
|
|
570 |
|
|
|
571 |
/** Returns true if field modelName is set (has been assigned a value) and false otherwise */
|
|
|
572 |
public boolean isSetModelName() {
|
|
|
573 |
return this.modelName != null;
|
|
|
574 |
}
|
|
|
575 |
|
|
|
576 |
public void setModelNameIsSet(boolean value) {
|
|
|
577 |
if (!value) {
|
|
|
578 |
this.modelName = null;
|
|
|
579 |
}
|
|
|
580 |
}
|
|
|
581 |
|
|
|
582 |
public String getColor() {
|
|
|
583 |
return this.color;
|
|
|
584 |
}
|
|
|
585 |
|
|
|
586 |
public void setColor(String color) {
|
|
|
587 |
this.color = color;
|
|
|
588 |
}
|
|
|
589 |
|
|
|
590 |
public void unsetColor() {
|
|
|
591 |
this.color = null;
|
|
|
592 |
}
|
|
|
593 |
|
|
|
594 |
/** Returns true if field color is set (has been assigned a value) and false otherwise */
|
|
|
595 |
public boolean isSetColor() {
|
|
|
596 |
return this.color != null;
|
|
|
597 |
}
|
|
|
598 |
|
|
|
599 |
public void setColorIsSet(boolean value) {
|
|
|
600 |
if (!value) {
|
|
|
601 |
this.color = null;
|
|
|
602 |
}
|
|
|
603 |
}
|
|
|
604 |
|
|
|
605 |
public String getItemNumber() {
|
|
|
606 |
return this.itemNumber;
|
|
|
607 |
}
|
|
|
608 |
|
|
|
609 |
public void setItemNumber(String itemNumber) {
|
|
|
610 |
this.itemNumber = itemNumber;
|
|
|
611 |
}
|
|
|
612 |
|
|
|
613 |
public void unsetItemNumber() {
|
|
|
614 |
this.itemNumber = null;
|
|
|
615 |
}
|
|
|
616 |
|
|
|
617 |
/** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
|
|
|
618 |
public boolean isSetItemNumber() {
|
|
|
619 |
return this.itemNumber != null;
|
|
|
620 |
}
|
|
|
621 |
|
|
|
622 |
public void setItemNumberIsSet(boolean value) {
|
|
|
623 |
if (!value) {
|
|
|
624 |
this.itemNumber = null;
|
|
|
625 |
}
|
|
|
626 |
}
|
|
|
627 |
|
|
|
628 |
public double getQuantity() {
|
|
|
629 |
return this.quantity;
|
|
|
630 |
}
|
|
|
631 |
|
|
|
632 |
public void setQuantity(double quantity) {
|
|
|
633 |
this.quantity = quantity;
|
|
|
634 |
setQuantityIsSet(true);
|
|
|
635 |
}
|
|
|
636 |
|
|
|
637 |
public void unsetQuantity() {
|
|
|
638 |
__isset_bit_vector.clear(__QUANTITY_ISSET_ID);
|
|
|
639 |
}
|
|
|
640 |
|
|
|
641 |
/** Returns true if field quantity is set (has been assigned a value) and false otherwise */
|
|
|
642 |
public boolean isSetQuantity() {
|
|
|
643 |
return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
|
|
|
644 |
}
|
|
|
645 |
|
|
|
646 |
public void setQuantityIsSet(boolean value) {
|
|
|
647 |
__isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
|
|
|
648 |
}
|
|
|
649 |
|
|
|
650 |
public double getUnfulfilledQuantity() {
|
|
|
651 |
return this.unfulfilledQuantity;
|
|
|
652 |
}
|
|
|
653 |
|
|
|
654 |
public void setUnfulfilledQuantity(double unfulfilledQuantity) {
|
|
|
655 |
this.unfulfilledQuantity = unfulfilledQuantity;
|
|
|
656 |
setUnfulfilledQuantityIsSet(true);
|
|
|
657 |
}
|
|
|
658 |
|
|
|
659 |
public void unsetUnfulfilledQuantity() {
|
|
|
660 |
__isset_bit_vector.clear(__UNFULFILLEDQUANTITY_ISSET_ID);
|
|
|
661 |
}
|
|
|
662 |
|
|
|
663 |
/** Returns true if field unfulfilledQuantity is set (has been assigned a value) and false otherwise */
|
|
|
664 |
public boolean isSetUnfulfilledQuantity() {
|
|
|
665 |
return __isset_bit_vector.get(__UNFULFILLEDQUANTITY_ISSET_ID);
|
|
|
666 |
}
|
|
|
667 |
|
|
|
668 |
public void setUnfulfilledQuantityIsSet(boolean value) {
|
|
|
669 |
__isset_bit_vector.set(__UNFULFILLEDQUANTITY_ISSET_ID, value);
|
|
|
670 |
}
|
|
|
671 |
|
|
|
672 |
public long getCreatedAt() {
|
|
|
673 |
return this.createdAt;
|
|
|
674 |
}
|
|
|
675 |
|
|
|
676 |
public void setCreatedAt(long createdAt) {
|
|
|
677 |
this.createdAt = createdAt;
|
|
|
678 |
setCreatedAtIsSet(true);
|
|
|
679 |
}
|
|
|
680 |
|
|
|
681 |
public void unsetCreatedAt() {
|
|
|
682 |
__isset_bit_vector.clear(__CREATEDAT_ISSET_ID);
|
|
|
683 |
}
|
|
|
684 |
|
|
|
685 |
/** Returns true if field createdAt is set (has been assigned a value) and false otherwise */
|
|
|
686 |
public boolean isSetCreatedAt() {
|
|
|
687 |
return __isset_bit_vector.get(__CREATEDAT_ISSET_ID);
|
|
|
688 |
}
|
|
|
689 |
|
|
|
690 |
public void setCreatedAtIsSet(boolean value) {
|
|
|
691 |
__isset_bit_vector.set(__CREATEDAT_ISSET_ID, value);
|
|
|
692 |
}
|
|
|
693 |
|
|
|
694 |
public double getUnitPrice() {
|
|
|
695 |
return this.unitPrice;
|
|
|
696 |
}
|
|
|
697 |
|
|
|
698 |
public void setUnitPrice(double unitPrice) {
|
|
|
699 |
this.unitPrice = unitPrice;
|
|
|
700 |
setUnitPriceIsSet(true);
|
|
|
701 |
}
|
|
|
702 |
|
|
|
703 |
public void unsetUnitPrice() {
|
|
|
704 |
__isset_bit_vector.clear(__UNITPRICE_ISSET_ID);
|
|
|
705 |
}
|
|
|
706 |
|
|
|
707 |
/** Returns true if field unitPrice is set (has been assigned a value) and false otherwise */
|
|
|
708 |
public boolean isSetUnitPrice() {
|
|
|
709 |
return __isset_bit_vector.get(__UNITPRICE_ISSET_ID);
|
|
|
710 |
}
|
|
|
711 |
|
|
|
712 |
public void setUnitPriceIsSet(boolean value) {
|
|
|
713 |
__isset_bit_vector.set(__UNITPRICE_ISSET_ID, value);
|
|
|
714 |
}
|
|
|
715 |
|
|
|
716 |
public boolean isFulfilled() {
|
|
|
717 |
return this.fulfilled;
|
|
|
718 |
}
|
|
|
719 |
|
|
|
720 |
public void setFulfilled(boolean fulfilled) {
|
|
|
721 |
this.fulfilled = fulfilled;
|
|
|
722 |
setFulfilledIsSet(true);
|
|
|
723 |
}
|
|
|
724 |
|
|
|
725 |
public void unsetFulfilled() {
|
|
|
726 |
__isset_bit_vector.clear(__FULFILLED_ISSET_ID);
|
|
|
727 |
}
|
|
|
728 |
|
|
|
729 |
/** Returns true if field fulfilled is set (has been assigned a value) and false otherwise */
|
|
|
730 |
public boolean isSetFulfilled() {
|
|
|
731 |
return __isset_bit_vector.get(__FULFILLED_ISSET_ID);
|
|
|
732 |
}
|
|
|
733 |
|
|
|
734 |
public void setFulfilledIsSet(boolean value) {
|
|
|
735 |
__isset_bit_vector.set(__FULFILLED_ISSET_ID, value);
|
|
|
736 |
}
|
|
|
737 |
|
| 4754 |
mandeep.dh |
738 |
public long getCodCount() {
|
|
|
739 |
return this.codCount;
|
|
|
740 |
}
|
|
|
741 |
|
|
|
742 |
public void setCodCount(long codCount) {
|
|
|
743 |
this.codCount = codCount;
|
|
|
744 |
setCodCountIsSet(true);
|
|
|
745 |
}
|
|
|
746 |
|
|
|
747 |
public void unsetCodCount() {
|
|
|
748 |
__isset_bit_vector.clear(__CODCOUNT_ISSET_ID);
|
|
|
749 |
}
|
|
|
750 |
|
|
|
751 |
/** Returns true if field codCount is set (has been assigned a value) and false otherwise */
|
|
|
752 |
public boolean isSetCodCount() {
|
|
|
753 |
return __isset_bit_vector.get(__CODCOUNT_ISSET_ID);
|
|
|
754 |
}
|
|
|
755 |
|
|
|
756 |
public void setCodCountIsSet(boolean value) {
|
|
|
757 |
__isset_bit_vector.set(__CODCOUNT_ISSET_ID, value);
|
|
|
758 |
}
|
|
|
759 |
|
| 6821 |
amar.kumar |
760 |
public long getAvailableQuantity() {
|
|
|
761 |
return this.availableQuantity;
|
|
|
762 |
}
|
|
|
763 |
|
|
|
764 |
public void setAvailableQuantity(long availableQuantity) {
|
|
|
765 |
this.availableQuantity = availableQuantity;
|
|
|
766 |
setAvailableQuantityIsSet(true);
|
|
|
767 |
}
|
|
|
768 |
|
|
|
769 |
public void unsetAvailableQuantity() {
|
|
|
770 |
__isset_bit_vector.clear(__AVAILABLEQUANTITY_ISSET_ID);
|
|
|
771 |
}
|
|
|
772 |
|
|
|
773 |
/** Returns true if field availableQuantity is set (has been assigned a value) and false otherwise */
|
|
|
774 |
public boolean isSetAvailableQuantity() {
|
|
|
775 |
return __isset_bit_vector.get(__AVAILABLEQUANTITY_ISSET_ID);
|
|
|
776 |
}
|
|
|
777 |
|
|
|
778 |
public void setAvailableQuantityIsSet(boolean value) {
|
|
|
779 |
__isset_bit_vector.set(__AVAILABLEQUANTITY_ISSET_ID, value);
|
|
|
780 |
}
|
|
|
781 |
|
|
|
782 |
public long getReservedQuantity() {
|
|
|
783 |
return this.reservedQuantity;
|
|
|
784 |
}
|
|
|
785 |
|
|
|
786 |
public void setReservedQuantity(long reservedQuantity) {
|
|
|
787 |
this.reservedQuantity = reservedQuantity;
|
|
|
788 |
setReservedQuantityIsSet(true);
|
|
|
789 |
}
|
|
|
790 |
|
|
|
791 |
public void unsetReservedQuantity() {
|
|
|
792 |
__isset_bit_vector.clear(__RESERVEDQUANTITY_ISSET_ID);
|
|
|
793 |
}
|
|
|
794 |
|
|
|
795 |
/** Returns true if field reservedQuantity is set (has been assigned a value) and false otherwise */
|
|
|
796 |
public boolean isSetReservedQuantity() {
|
|
|
797 |
return __isset_bit_vector.get(__RESERVEDQUANTITY_ISSET_ID);
|
|
|
798 |
}
|
|
|
799 |
|
|
|
800 |
public void setReservedQuantityIsSet(boolean value) {
|
|
|
801 |
__isset_bit_vector.set(__RESERVEDQUANTITY_ISSET_ID, value);
|
|
|
802 |
}
|
|
|
803 |
|
|
|
804 |
public double getAvgSales() {
|
|
|
805 |
return this.avgSales;
|
|
|
806 |
}
|
|
|
807 |
|
|
|
808 |
public void setAvgSales(double avgSales) {
|
|
|
809 |
this.avgSales = avgSales;
|
|
|
810 |
setAvgSalesIsSet(true);
|
|
|
811 |
}
|
|
|
812 |
|
|
|
813 |
public void unsetAvgSales() {
|
|
|
814 |
__isset_bit_vector.clear(__AVGSALES_ISSET_ID);
|
|
|
815 |
}
|
|
|
816 |
|
|
|
817 |
/** Returns true if field avgSales is set (has been assigned a value) and false otherwise */
|
|
|
818 |
public boolean isSetAvgSales() {
|
|
|
819 |
return __isset_bit_vector.get(__AVGSALES_ISSET_ID);
|
|
|
820 |
}
|
|
|
821 |
|
|
|
822 |
public void setAvgSalesIsSet(boolean value) {
|
|
|
823 |
__isset_bit_vector.set(__AVGSALES_ISSET_ID, value);
|
|
|
824 |
}
|
|
|
825 |
|
|
|
826 |
public long getMinStockLevel() {
|
|
|
827 |
return this.minStockLevel;
|
|
|
828 |
}
|
|
|
829 |
|
|
|
830 |
public void setMinStockLevel(long minStockLevel) {
|
|
|
831 |
this.minStockLevel = minStockLevel;
|
|
|
832 |
setMinStockLevelIsSet(true);
|
|
|
833 |
}
|
|
|
834 |
|
|
|
835 |
public void unsetMinStockLevel() {
|
|
|
836 |
__isset_bit_vector.clear(__MINSTOCKLEVEL_ISSET_ID);
|
|
|
837 |
}
|
|
|
838 |
|
|
|
839 |
/** Returns true if field minStockLevel is set (has been assigned a value) and false otherwise */
|
|
|
840 |
public boolean isSetMinStockLevel() {
|
|
|
841 |
return __isset_bit_vector.get(__MINSTOCKLEVEL_ISSET_ID);
|
|
|
842 |
}
|
|
|
843 |
|
|
|
844 |
public void setMinStockLevelIsSet(boolean value) {
|
|
|
845 |
__isset_bit_vector.set(__MINSTOCKLEVEL_ISSET_ID, value);
|
|
|
846 |
}
|
|
|
847 |
|
|
|
848 |
public long getNumberOfDaysStock() {
|
|
|
849 |
return this.numberOfDaysStock;
|
|
|
850 |
}
|
|
|
851 |
|
|
|
852 |
public void setNumberOfDaysStock(long numberOfDaysStock) {
|
|
|
853 |
this.numberOfDaysStock = numberOfDaysStock;
|
|
|
854 |
setNumberOfDaysStockIsSet(true);
|
|
|
855 |
}
|
|
|
856 |
|
|
|
857 |
public void unsetNumberOfDaysStock() {
|
|
|
858 |
__isset_bit_vector.clear(__NUMBEROFDAYSSTOCK_ISSET_ID);
|
|
|
859 |
}
|
|
|
860 |
|
|
|
861 |
/** Returns true if field numberOfDaysStock is set (has been assigned a value) and false otherwise */
|
|
|
862 |
public boolean isSetNumberOfDaysStock() {
|
|
|
863 |
return __isset_bit_vector.get(__NUMBEROFDAYSSTOCK_ISSET_ID);
|
|
|
864 |
}
|
|
|
865 |
|
|
|
866 |
public void setNumberOfDaysStockIsSet(boolean value) {
|
|
|
867 |
__isset_bit_vector.set(__NUMBEROFDAYSSTOCK_ISSET_ID, value);
|
|
|
868 |
}
|
|
|
869 |
|
|
|
870 |
public long getSuggestedQuantity() {
|
|
|
871 |
return this.suggestedQuantity;
|
|
|
872 |
}
|
|
|
873 |
|
|
|
874 |
public void setSuggestedQuantity(long suggestedQuantity) {
|
|
|
875 |
this.suggestedQuantity = suggestedQuantity;
|
|
|
876 |
setSuggestedQuantityIsSet(true);
|
|
|
877 |
}
|
|
|
878 |
|
|
|
879 |
public void unsetSuggestedQuantity() {
|
|
|
880 |
__isset_bit_vector.clear(__SUGGESTEDQUANTITY_ISSET_ID);
|
|
|
881 |
}
|
|
|
882 |
|
|
|
883 |
/** Returns true if field suggestedQuantity is set (has been assigned a value) and false otherwise */
|
|
|
884 |
public boolean isSetSuggestedQuantity() {
|
|
|
885 |
return __isset_bit_vector.get(__SUGGESTEDQUANTITY_ISSET_ID);
|
|
|
886 |
}
|
|
|
887 |
|
|
|
888 |
public void setSuggestedQuantityIsSet(boolean value) {
|
|
|
889 |
__isset_bit_vector.set(__SUGGESTEDQUANTITY_ISSET_ID, value);
|
|
|
890 |
}
|
|
|
891 |
|
|
|
892 |
public long getNumberOfDaysInStock() {
|
|
|
893 |
return this.numberOfDaysInStock;
|
|
|
894 |
}
|
|
|
895 |
|
|
|
896 |
public void setNumberOfDaysInStock(long numberOfDaysInStock) {
|
|
|
897 |
this.numberOfDaysInStock = numberOfDaysInStock;
|
|
|
898 |
setNumberOfDaysInStockIsSet(true);
|
|
|
899 |
}
|
|
|
900 |
|
|
|
901 |
public void unsetNumberOfDaysInStock() {
|
|
|
902 |
__isset_bit_vector.clear(__NUMBEROFDAYSINSTOCK_ISSET_ID);
|
|
|
903 |
}
|
|
|
904 |
|
|
|
905 |
/** Returns true if field numberOfDaysInStock is set (has been assigned a value) and false otherwise */
|
|
|
906 |
public boolean isSetNumberOfDaysInStock() {
|
|
|
907 |
return __isset_bit_vector.get(__NUMBEROFDAYSINSTOCK_ISSET_ID);
|
|
|
908 |
}
|
|
|
909 |
|
|
|
910 |
public void setNumberOfDaysInStockIsSet(boolean value) {
|
|
|
911 |
__isset_bit_vector.set(__NUMBEROFDAYSINSTOCK_ISSET_ID, value);
|
|
|
912 |
}
|
|
|
913 |
|
| 6857 |
amar.kumar |
914 |
public String getLastXdaysSale() {
|
|
|
915 |
return this.lastXdaysSale;
|
|
|
916 |
}
|
|
|
917 |
|
|
|
918 |
public void setLastXdaysSale(String lastXdaysSale) {
|
|
|
919 |
this.lastXdaysSale = lastXdaysSale;
|
|
|
920 |
}
|
|
|
921 |
|
|
|
922 |
public void unsetLastXdaysSale() {
|
|
|
923 |
this.lastXdaysSale = null;
|
|
|
924 |
}
|
|
|
925 |
|
|
|
926 |
/** Returns true if field lastXdaysSale is set (has been assigned a value) and false otherwise */
|
|
|
927 |
public boolean isSetLastXdaysSale() {
|
|
|
928 |
return this.lastXdaysSale != null;
|
|
|
929 |
}
|
|
|
930 |
|
|
|
931 |
public void setLastXdaysSaleIsSet(boolean value) {
|
|
|
932 |
if (!value) {
|
|
|
933 |
this.lastXdaysSale = null;
|
|
|
934 |
}
|
|
|
935 |
}
|
|
|
936 |
|
| 6880 |
amar.kumar |
937 |
public long getPreviouslyOrderedQty() {
|
|
|
938 |
return this.previouslyOrderedQty;
|
|
|
939 |
}
|
|
|
940 |
|
|
|
941 |
public void setPreviouslyOrderedQty(long previouslyOrderedQty) {
|
|
|
942 |
this.previouslyOrderedQty = previouslyOrderedQty;
|
|
|
943 |
setPreviouslyOrderedQtyIsSet(true);
|
|
|
944 |
}
|
|
|
945 |
|
|
|
946 |
public void unsetPreviouslyOrderedQty() {
|
|
|
947 |
__isset_bit_vector.clear(__PREVIOUSLYORDEREDQTY_ISSET_ID);
|
|
|
948 |
}
|
|
|
949 |
|
|
|
950 |
/** Returns true if field previouslyOrderedQty is set (has been assigned a value) and false otherwise */
|
|
|
951 |
public boolean isSetPreviouslyOrderedQty() {
|
|
|
952 |
return __isset_bit_vector.get(__PREVIOUSLYORDEREDQTY_ISSET_ID);
|
|
|
953 |
}
|
|
|
954 |
|
|
|
955 |
public void setPreviouslyOrderedQtyIsSet(boolean value) {
|
|
|
956 |
__isset_bit_vector.set(__PREVIOUSLYORDEREDQTY_ISSET_ID, value);
|
|
|
957 |
}
|
|
|
958 |
|
| 7672 |
rajveer |
959 |
public double getNlc() {
|
|
|
960 |
return this.nlc;
|
|
|
961 |
}
|
|
|
962 |
|
|
|
963 |
public void setNlc(double nlc) {
|
|
|
964 |
this.nlc = nlc;
|
|
|
965 |
setNlcIsSet(true);
|
|
|
966 |
}
|
|
|
967 |
|
|
|
968 |
public void unsetNlc() {
|
|
|
969 |
__isset_bit_vector.clear(__NLC_ISSET_ID);
|
|
|
970 |
}
|
|
|
971 |
|
|
|
972 |
/** Returns true if field nlc is set (has been assigned a value) and false otherwise */
|
|
|
973 |
public boolean isSetNlc() {
|
|
|
974 |
return __isset_bit_vector.get(__NLC_ISSET_ID);
|
|
|
975 |
}
|
|
|
976 |
|
|
|
977 |
public void setNlcIsSet(boolean value) {
|
|
|
978 |
__isset_bit_vector.set(__NLC_ISSET_ID, value);
|
|
|
979 |
}
|
|
|
980 |
|
| 4496 |
mandeep.dh |
981 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
982 |
switch (field) {
|
|
|
983 |
case ORDER_ID:
|
|
|
984 |
if (value == null) {
|
|
|
985 |
unsetOrderId();
|
|
|
986 |
} else {
|
|
|
987 |
setOrderId((Long)value);
|
|
|
988 |
}
|
|
|
989 |
break;
|
|
|
990 |
|
|
|
991 |
case ITEM_ID:
|
|
|
992 |
if (value == null) {
|
|
|
993 |
unsetItemId();
|
|
|
994 |
} else {
|
|
|
995 |
setItemId((Long)value);
|
|
|
996 |
}
|
|
|
997 |
break;
|
|
|
998 |
|
|
|
999 |
case PRODUCT_GROUP:
|
|
|
1000 |
if (value == null) {
|
|
|
1001 |
unsetProductGroup();
|
|
|
1002 |
} else {
|
|
|
1003 |
setProductGroup((String)value);
|
|
|
1004 |
}
|
|
|
1005 |
break;
|
|
|
1006 |
|
|
|
1007 |
case BRAND:
|
|
|
1008 |
if (value == null) {
|
|
|
1009 |
unsetBrand();
|
|
|
1010 |
} else {
|
|
|
1011 |
setBrand((String)value);
|
|
|
1012 |
}
|
|
|
1013 |
break;
|
|
|
1014 |
|
|
|
1015 |
case MODEL_NUMBER:
|
|
|
1016 |
if (value == null) {
|
|
|
1017 |
unsetModelNumber();
|
|
|
1018 |
} else {
|
|
|
1019 |
setModelNumber((String)value);
|
|
|
1020 |
}
|
|
|
1021 |
break;
|
|
|
1022 |
|
|
|
1023 |
case MODEL_NAME:
|
|
|
1024 |
if (value == null) {
|
|
|
1025 |
unsetModelName();
|
|
|
1026 |
} else {
|
|
|
1027 |
setModelName((String)value);
|
|
|
1028 |
}
|
|
|
1029 |
break;
|
|
|
1030 |
|
|
|
1031 |
case COLOR:
|
|
|
1032 |
if (value == null) {
|
|
|
1033 |
unsetColor();
|
|
|
1034 |
} else {
|
|
|
1035 |
setColor((String)value);
|
|
|
1036 |
}
|
|
|
1037 |
break;
|
|
|
1038 |
|
|
|
1039 |
case ITEM_NUMBER:
|
|
|
1040 |
if (value == null) {
|
|
|
1041 |
unsetItemNumber();
|
|
|
1042 |
} else {
|
|
|
1043 |
setItemNumber((String)value);
|
|
|
1044 |
}
|
|
|
1045 |
break;
|
|
|
1046 |
|
|
|
1047 |
case QUANTITY:
|
|
|
1048 |
if (value == null) {
|
|
|
1049 |
unsetQuantity();
|
|
|
1050 |
} else {
|
|
|
1051 |
setQuantity((Double)value);
|
|
|
1052 |
}
|
|
|
1053 |
break;
|
|
|
1054 |
|
|
|
1055 |
case UNFULFILLED_QUANTITY:
|
|
|
1056 |
if (value == null) {
|
|
|
1057 |
unsetUnfulfilledQuantity();
|
|
|
1058 |
} else {
|
|
|
1059 |
setUnfulfilledQuantity((Double)value);
|
|
|
1060 |
}
|
|
|
1061 |
break;
|
|
|
1062 |
|
|
|
1063 |
case CREATED_AT:
|
|
|
1064 |
if (value == null) {
|
|
|
1065 |
unsetCreatedAt();
|
|
|
1066 |
} else {
|
|
|
1067 |
setCreatedAt((Long)value);
|
|
|
1068 |
}
|
|
|
1069 |
break;
|
|
|
1070 |
|
|
|
1071 |
case UNIT_PRICE:
|
|
|
1072 |
if (value == null) {
|
|
|
1073 |
unsetUnitPrice();
|
|
|
1074 |
} else {
|
|
|
1075 |
setUnitPrice((Double)value);
|
|
|
1076 |
}
|
|
|
1077 |
break;
|
|
|
1078 |
|
|
|
1079 |
case FULFILLED:
|
|
|
1080 |
if (value == null) {
|
|
|
1081 |
unsetFulfilled();
|
|
|
1082 |
} else {
|
|
|
1083 |
setFulfilled((Boolean)value);
|
|
|
1084 |
}
|
|
|
1085 |
break;
|
|
|
1086 |
|
| 4754 |
mandeep.dh |
1087 |
case COD_COUNT:
|
|
|
1088 |
if (value == null) {
|
|
|
1089 |
unsetCodCount();
|
|
|
1090 |
} else {
|
|
|
1091 |
setCodCount((Long)value);
|
|
|
1092 |
}
|
|
|
1093 |
break;
|
|
|
1094 |
|
| 6821 |
amar.kumar |
1095 |
case AVAILABLE_QUANTITY:
|
|
|
1096 |
if (value == null) {
|
|
|
1097 |
unsetAvailableQuantity();
|
|
|
1098 |
} else {
|
|
|
1099 |
setAvailableQuantity((Long)value);
|
|
|
1100 |
}
|
|
|
1101 |
break;
|
|
|
1102 |
|
|
|
1103 |
case RESERVED_QUANTITY:
|
|
|
1104 |
if (value == null) {
|
|
|
1105 |
unsetReservedQuantity();
|
|
|
1106 |
} else {
|
|
|
1107 |
setReservedQuantity((Long)value);
|
|
|
1108 |
}
|
|
|
1109 |
break;
|
|
|
1110 |
|
|
|
1111 |
case AVG_SALES:
|
|
|
1112 |
if (value == null) {
|
|
|
1113 |
unsetAvgSales();
|
|
|
1114 |
} else {
|
|
|
1115 |
setAvgSales((Double)value);
|
|
|
1116 |
}
|
|
|
1117 |
break;
|
|
|
1118 |
|
|
|
1119 |
case MIN_STOCK_LEVEL:
|
|
|
1120 |
if (value == null) {
|
|
|
1121 |
unsetMinStockLevel();
|
|
|
1122 |
} else {
|
|
|
1123 |
setMinStockLevel((Long)value);
|
|
|
1124 |
}
|
|
|
1125 |
break;
|
|
|
1126 |
|
|
|
1127 |
case NUMBER_OF_DAYS_STOCK:
|
|
|
1128 |
if (value == null) {
|
|
|
1129 |
unsetNumberOfDaysStock();
|
|
|
1130 |
} else {
|
|
|
1131 |
setNumberOfDaysStock((Long)value);
|
|
|
1132 |
}
|
|
|
1133 |
break;
|
|
|
1134 |
|
|
|
1135 |
case SUGGESTED_QUANTITY:
|
|
|
1136 |
if (value == null) {
|
|
|
1137 |
unsetSuggestedQuantity();
|
|
|
1138 |
} else {
|
|
|
1139 |
setSuggestedQuantity((Long)value);
|
|
|
1140 |
}
|
|
|
1141 |
break;
|
|
|
1142 |
|
|
|
1143 |
case NUMBER_OF_DAYS_IN_STOCK:
|
|
|
1144 |
if (value == null) {
|
|
|
1145 |
unsetNumberOfDaysInStock();
|
|
|
1146 |
} else {
|
|
|
1147 |
setNumberOfDaysInStock((Long)value);
|
|
|
1148 |
}
|
|
|
1149 |
break;
|
|
|
1150 |
|
| 6857 |
amar.kumar |
1151 |
case LAST_XDAYS_SALE:
|
|
|
1152 |
if (value == null) {
|
|
|
1153 |
unsetLastXdaysSale();
|
|
|
1154 |
} else {
|
|
|
1155 |
setLastXdaysSale((String)value);
|
|
|
1156 |
}
|
|
|
1157 |
break;
|
|
|
1158 |
|
| 6880 |
amar.kumar |
1159 |
case PREVIOUSLY_ORDERED_QTY:
|
|
|
1160 |
if (value == null) {
|
|
|
1161 |
unsetPreviouslyOrderedQty();
|
|
|
1162 |
} else {
|
|
|
1163 |
setPreviouslyOrderedQty((Long)value);
|
|
|
1164 |
}
|
|
|
1165 |
break;
|
|
|
1166 |
|
| 7672 |
rajveer |
1167 |
case NLC:
|
|
|
1168 |
if (value == null) {
|
|
|
1169 |
unsetNlc();
|
|
|
1170 |
} else {
|
|
|
1171 |
setNlc((Double)value);
|
|
|
1172 |
}
|
|
|
1173 |
break;
|
|
|
1174 |
|
| 4496 |
mandeep.dh |
1175 |
}
|
|
|
1176 |
}
|
|
|
1177 |
|
|
|
1178 |
public Object getFieldValue(_Fields field) {
|
|
|
1179 |
switch (field) {
|
|
|
1180 |
case ORDER_ID:
|
|
|
1181 |
return Long.valueOf(getOrderId());
|
|
|
1182 |
|
|
|
1183 |
case ITEM_ID:
|
|
|
1184 |
return Long.valueOf(getItemId());
|
|
|
1185 |
|
|
|
1186 |
case PRODUCT_GROUP:
|
|
|
1187 |
return getProductGroup();
|
|
|
1188 |
|
|
|
1189 |
case BRAND:
|
|
|
1190 |
return getBrand();
|
|
|
1191 |
|
|
|
1192 |
case MODEL_NUMBER:
|
|
|
1193 |
return getModelNumber();
|
|
|
1194 |
|
|
|
1195 |
case MODEL_NAME:
|
|
|
1196 |
return getModelName();
|
|
|
1197 |
|
|
|
1198 |
case COLOR:
|
|
|
1199 |
return getColor();
|
|
|
1200 |
|
|
|
1201 |
case ITEM_NUMBER:
|
|
|
1202 |
return getItemNumber();
|
|
|
1203 |
|
|
|
1204 |
case QUANTITY:
|
|
|
1205 |
return Double.valueOf(getQuantity());
|
|
|
1206 |
|
|
|
1207 |
case UNFULFILLED_QUANTITY:
|
|
|
1208 |
return Double.valueOf(getUnfulfilledQuantity());
|
|
|
1209 |
|
|
|
1210 |
case CREATED_AT:
|
|
|
1211 |
return Long.valueOf(getCreatedAt());
|
|
|
1212 |
|
|
|
1213 |
case UNIT_PRICE:
|
|
|
1214 |
return Double.valueOf(getUnitPrice());
|
|
|
1215 |
|
|
|
1216 |
case FULFILLED:
|
|
|
1217 |
return Boolean.valueOf(isFulfilled());
|
|
|
1218 |
|
| 4754 |
mandeep.dh |
1219 |
case COD_COUNT:
|
|
|
1220 |
return Long.valueOf(getCodCount());
|
|
|
1221 |
|
| 6821 |
amar.kumar |
1222 |
case AVAILABLE_QUANTITY:
|
|
|
1223 |
return Long.valueOf(getAvailableQuantity());
|
|
|
1224 |
|
|
|
1225 |
case RESERVED_QUANTITY:
|
|
|
1226 |
return Long.valueOf(getReservedQuantity());
|
|
|
1227 |
|
|
|
1228 |
case AVG_SALES:
|
|
|
1229 |
return Double.valueOf(getAvgSales());
|
|
|
1230 |
|
|
|
1231 |
case MIN_STOCK_LEVEL:
|
|
|
1232 |
return Long.valueOf(getMinStockLevel());
|
|
|
1233 |
|
|
|
1234 |
case NUMBER_OF_DAYS_STOCK:
|
|
|
1235 |
return Long.valueOf(getNumberOfDaysStock());
|
|
|
1236 |
|
|
|
1237 |
case SUGGESTED_QUANTITY:
|
|
|
1238 |
return Long.valueOf(getSuggestedQuantity());
|
|
|
1239 |
|
|
|
1240 |
case NUMBER_OF_DAYS_IN_STOCK:
|
|
|
1241 |
return Long.valueOf(getNumberOfDaysInStock());
|
|
|
1242 |
|
| 6857 |
amar.kumar |
1243 |
case LAST_XDAYS_SALE:
|
|
|
1244 |
return getLastXdaysSale();
|
|
|
1245 |
|
| 6880 |
amar.kumar |
1246 |
case PREVIOUSLY_ORDERED_QTY:
|
|
|
1247 |
return Long.valueOf(getPreviouslyOrderedQty());
|
|
|
1248 |
|
| 7672 |
rajveer |
1249 |
case NLC:
|
|
|
1250 |
return Double.valueOf(getNlc());
|
|
|
1251 |
|
| 4496 |
mandeep.dh |
1252 |
}
|
|
|
1253 |
throw new IllegalStateException();
|
|
|
1254 |
}
|
|
|
1255 |
|
|
|
1256 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
1257 |
public boolean isSet(_Fields field) {
|
|
|
1258 |
if (field == null) {
|
|
|
1259 |
throw new IllegalArgumentException();
|
|
|
1260 |
}
|
|
|
1261 |
|
|
|
1262 |
switch (field) {
|
|
|
1263 |
case ORDER_ID:
|
|
|
1264 |
return isSetOrderId();
|
|
|
1265 |
case ITEM_ID:
|
|
|
1266 |
return isSetItemId();
|
|
|
1267 |
case PRODUCT_GROUP:
|
|
|
1268 |
return isSetProductGroup();
|
|
|
1269 |
case BRAND:
|
|
|
1270 |
return isSetBrand();
|
|
|
1271 |
case MODEL_NUMBER:
|
|
|
1272 |
return isSetModelNumber();
|
|
|
1273 |
case MODEL_NAME:
|
|
|
1274 |
return isSetModelName();
|
|
|
1275 |
case COLOR:
|
|
|
1276 |
return isSetColor();
|
|
|
1277 |
case ITEM_NUMBER:
|
|
|
1278 |
return isSetItemNumber();
|
|
|
1279 |
case QUANTITY:
|
|
|
1280 |
return isSetQuantity();
|
|
|
1281 |
case UNFULFILLED_QUANTITY:
|
|
|
1282 |
return isSetUnfulfilledQuantity();
|
|
|
1283 |
case CREATED_AT:
|
|
|
1284 |
return isSetCreatedAt();
|
|
|
1285 |
case UNIT_PRICE:
|
|
|
1286 |
return isSetUnitPrice();
|
|
|
1287 |
case FULFILLED:
|
|
|
1288 |
return isSetFulfilled();
|
| 4754 |
mandeep.dh |
1289 |
case COD_COUNT:
|
|
|
1290 |
return isSetCodCount();
|
| 6821 |
amar.kumar |
1291 |
case AVAILABLE_QUANTITY:
|
|
|
1292 |
return isSetAvailableQuantity();
|
|
|
1293 |
case RESERVED_QUANTITY:
|
|
|
1294 |
return isSetReservedQuantity();
|
|
|
1295 |
case AVG_SALES:
|
|
|
1296 |
return isSetAvgSales();
|
|
|
1297 |
case MIN_STOCK_LEVEL:
|
|
|
1298 |
return isSetMinStockLevel();
|
|
|
1299 |
case NUMBER_OF_DAYS_STOCK:
|
|
|
1300 |
return isSetNumberOfDaysStock();
|
|
|
1301 |
case SUGGESTED_QUANTITY:
|
|
|
1302 |
return isSetSuggestedQuantity();
|
|
|
1303 |
case NUMBER_OF_DAYS_IN_STOCK:
|
|
|
1304 |
return isSetNumberOfDaysInStock();
|
| 6857 |
amar.kumar |
1305 |
case LAST_XDAYS_SALE:
|
|
|
1306 |
return isSetLastXdaysSale();
|
| 6880 |
amar.kumar |
1307 |
case PREVIOUSLY_ORDERED_QTY:
|
|
|
1308 |
return isSetPreviouslyOrderedQty();
|
| 7672 |
rajveer |
1309 |
case NLC:
|
|
|
1310 |
return isSetNlc();
|
| 4496 |
mandeep.dh |
1311 |
}
|
|
|
1312 |
throw new IllegalStateException();
|
|
|
1313 |
}
|
|
|
1314 |
|
|
|
1315 |
@Override
|
|
|
1316 |
public boolean equals(Object that) {
|
|
|
1317 |
if (that == null)
|
|
|
1318 |
return false;
|
|
|
1319 |
if (that instanceof LineItem)
|
|
|
1320 |
return this.equals((LineItem)that);
|
|
|
1321 |
return false;
|
|
|
1322 |
}
|
|
|
1323 |
|
|
|
1324 |
public boolean equals(LineItem that) {
|
|
|
1325 |
if (that == null)
|
|
|
1326 |
return false;
|
|
|
1327 |
|
|
|
1328 |
boolean this_present_orderId = true;
|
|
|
1329 |
boolean that_present_orderId = true;
|
|
|
1330 |
if (this_present_orderId || that_present_orderId) {
|
|
|
1331 |
if (!(this_present_orderId && that_present_orderId))
|
|
|
1332 |
return false;
|
|
|
1333 |
if (this.orderId != that.orderId)
|
|
|
1334 |
return false;
|
|
|
1335 |
}
|
|
|
1336 |
|
|
|
1337 |
boolean this_present_itemId = true;
|
|
|
1338 |
boolean that_present_itemId = true;
|
|
|
1339 |
if (this_present_itemId || that_present_itemId) {
|
|
|
1340 |
if (!(this_present_itemId && that_present_itemId))
|
|
|
1341 |
return false;
|
|
|
1342 |
if (this.itemId != that.itemId)
|
|
|
1343 |
return false;
|
|
|
1344 |
}
|
|
|
1345 |
|
|
|
1346 |
boolean this_present_productGroup = true && this.isSetProductGroup();
|
|
|
1347 |
boolean that_present_productGroup = true && that.isSetProductGroup();
|
|
|
1348 |
if (this_present_productGroup || that_present_productGroup) {
|
|
|
1349 |
if (!(this_present_productGroup && that_present_productGroup))
|
|
|
1350 |
return false;
|
|
|
1351 |
if (!this.productGroup.equals(that.productGroup))
|
|
|
1352 |
return false;
|
|
|
1353 |
}
|
|
|
1354 |
|
|
|
1355 |
boolean this_present_brand = true && this.isSetBrand();
|
|
|
1356 |
boolean that_present_brand = true && that.isSetBrand();
|
|
|
1357 |
if (this_present_brand || that_present_brand) {
|
|
|
1358 |
if (!(this_present_brand && that_present_brand))
|
|
|
1359 |
return false;
|
|
|
1360 |
if (!this.brand.equals(that.brand))
|
|
|
1361 |
return false;
|
|
|
1362 |
}
|
|
|
1363 |
|
|
|
1364 |
boolean this_present_modelNumber = true && this.isSetModelNumber();
|
|
|
1365 |
boolean that_present_modelNumber = true && that.isSetModelNumber();
|
|
|
1366 |
if (this_present_modelNumber || that_present_modelNumber) {
|
|
|
1367 |
if (!(this_present_modelNumber && that_present_modelNumber))
|
|
|
1368 |
return false;
|
|
|
1369 |
if (!this.modelNumber.equals(that.modelNumber))
|
|
|
1370 |
return false;
|
|
|
1371 |
}
|
|
|
1372 |
|
|
|
1373 |
boolean this_present_modelName = true && this.isSetModelName();
|
|
|
1374 |
boolean that_present_modelName = true && that.isSetModelName();
|
|
|
1375 |
if (this_present_modelName || that_present_modelName) {
|
|
|
1376 |
if (!(this_present_modelName && that_present_modelName))
|
|
|
1377 |
return false;
|
|
|
1378 |
if (!this.modelName.equals(that.modelName))
|
|
|
1379 |
return false;
|
|
|
1380 |
}
|
|
|
1381 |
|
|
|
1382 |
boolean this_present_color = true && this.isSetColor();
|
|
|
1383 |
boolean that_present_color = true && that.isSetColor();
|
|
|
1384 |
if (this_present_color || that_present_color) {
|
|
|
1385 |
if (!(this_present_color && that_present_color))
|
|
|
1386 |
return false;
|
|
|
1387 |
if (!this.color.equals(that.color))
|
|
|
1388 |
return false;
|
|
|
1389 |
}
|
|
|
1390 |
|
|
|
1391 |
boolean this_present_itemNumber = true && this.isSetItemNumber();
|
|
|
1392 |
boolean that_present_itemNumber = true && that.isSetItemNumber();
|
|
|
1393 |
if (this_present_itemNumber || that_present_itemNumber) {
|
|
|
1394 |
if (!(this_present_itemNumber && that_present_itemNumber))
|
|
|
1395 |
return false;
|
|
|
1396 |
if (!this.itemNumber.equals(that.itemNumber))
|
|
|
1397 |
return false;
|
|
|
1398 |
}
|
|
|
1399 |
|
|
|
1400 |
boolean this_present_quantity = true;
|
|
|
1401 |
boolean that_present_quantity = true;
|
|
|
1402 |
if (this_present_quantity || that_present_quantity) {
|
|
|
1403 |
if (!(this_present_quantity && that_present_quantity))
|
|
|
1404 |
return false;
|
|
|
1405 |
if (this.quantity != that.quantity)
|
|
|
1406 |
return false;
|
|
|
1407 |
}
|
|
|
1408 |
|
|
|
1409 |
boolean this_present_unfulfilledQuantity = true;
|
|
|
1410 |
boolean that_present_unfulfilledQuantity = true;
|
|
|
1411 |
if (this_present_unfulfilledQuantity || that_present_unfulfilledQuantity) {
|
|
|
1412 |
if (!(this_present_unfulfilledQuantity && that_present_unfulfilledQuantity))
|
|
|
1413 |
return false;
|
|
|
1414 |
if (this.unfulfilledQuantity != that.unfulfilledQuantity)
|
|
|
1415 |
return false;
|
|
|
1416 |
}
|
|
|
1417 |
|
|
|
1418 |
boolean this_present_createdAt = true;
|
|
|
1419 |
boolean that_present_createdAt = true;
|
|
|
1420 |
if (this_present_createdAt || that_present_createdAt) {
|
|
|
1421 |
if (!(this_present_createdAt && that_present_createdAt))
|
|
|
1422 |
return false;
|
|
|
1423 |
if (this.createdAt != that.createdAt)
|
|
|
1424 |
return false;
|
|
|
1425 |
}
|
|
|
1426 |
|
|
|
1427 |
boolean this_present_unitPrice = true;
|
|
|
1428 |
boolean that_present_unitPrice = true;
|
|
|
1429 |
if (this_present_unitPrice || that_present_unitPrice) {
|
|
|
1430 |
if (!(this_present_unitPrice && that_present_unitPrice))
|
|
|
1431 |
return false;
|
|
|
1432 |
if (this.unitPrice != that.unitPrice)
|
|
|
1433 |
return false;
|
|
|
1434 |
}
|
|
|
1435 |
|
|
|
1436 |
boolean this_present_fulfilled = true;
|
|
|
1437 |
boolean that_present_fulfilled = true;
|
|
|
1438 |
if (this_present_fulfilled || that_present_fulfilled) {
|
|
|
1439 |
if (!(this_present_fulfilled && that_present_fulfilled))
|
|
|
1440 |
return false;
|
|
|
1441 |
if (this.fulfilled != that.fulfilled)
|
|
|
1442 |
return false;
|
|
|
1443 |
}
|
|
|
1444 |
|
| 4754 |
mandeep.dh |
1445 |
boolean this_present_codCount = true;
|
|
|
1446 |
boolean that_present_codCount = true;
|
|
|
1447 |
if (this_present_codCount || that_present_codCount) {
|
|
|
1448 |
if (!(this_present_codCount && that_present_codCount))
|
|
|
1449 |
return false;
|
|
|
1450 |
if (this.codCount != that.codCount)
|
|
|
1451 |
return false;
|
|
|
1452 |
}
|
|
|
1453 |
|
| 6821 |
amar.kumar |
1454 |
boolean this_present_availableQuantity = true;
|
|
|
1455 |
boolean that_present_availableQuantity = true;
|
|
|
1456 |
if (this_present_availableQuantity || that_present_availableQuantity) {
|
|
|
1457 |
if (!(this_present_availableQuantity && that_present_availableQuantity))
|
|
|
1458 |
return false;
|
|
|
1459 |
if (this.availableQuantity != that.availableQuantity)
|
|
|
1460 |
return false;
|
|
|
1461 |
}
|
|
|
1462 |
|
|
|
1463 |
boolean this_present_reservedQuantity = true;
|
|
|
1464 |
boolean that_present_reservedQuantity = true;
|
|
|
1465 |
if (this_present_reservedQuantity || that_present_reservedQuantity) {
|
|
|
1466 |
if (!(this_present_reservedQuantity && that_present_reservedQuantity))
|
|
|
1467 |
return false;
|
|
|
1468 |
if (this.reservedQuantity != that.reservedQuantity)
|
|
|
1469 |
return false;
|
|
|
1470 |
}
|
|
|
1471 |
|
|
|
1472 |
boolean this_present_avgSales = true;
|
|
|
1473 |
boolean that_present_avgSales = true;
|
|
|
1474 |
if (this_present_avgSales || that_present_avgSales) {
|
|
|
1475 |
if (!(this_present_avgSales && that_present_avgSales))
|
|
|
1476 |
return false;
|
|
|
1477 |
if (this.avgSales != that.avgSales)
|
|
|
1478 |
return false;
|
|
|
1479 |
}
|
|
|
1480 |
|
|
|
1481 |
boolean this_present_minStockLevel = true;
|
|
|
1482 |
boolean that_present_minStockLevel = true;
|
|
|
1483 |
if (this_present_minStockLevel || that_present_minStockLevel) {
|
|
|
1484 |
if (!(this_present_minStockLevel && that_present_minStockLevel))
|
|
|
1485 |
return false;
|
|
|
1486 |
if (this.minStockLevel != that.minStockLevel)
|
|
|
1487 |
return false;
|
|
|
1488 |
}
|
|
|
1489 |
|
|
|
1490 |
boolean this_present_numberOfDaysStock = true;
|
|
|
1491 |
boolean that_present_numberOfDaysStock = true;
|
|
|
1492 |
if (this_present_numberOfDaysStock || that_present_numberOfDaysStock) {
|
|
|
1493 |
if (!(this_present_numberOfDaysStock && that_present_numberOfDaysStock))
|
|
|
1494 |
return false;
|
|
|
1495 |
if (this.numberOfDaysStock != that.numberOfDaysStock)
|
|
|
1496 |
return false;
|
|
|
1497 |
}
|
|
|
1498 |
|
|
|
1499 |
boolean this_present_suggestedQuantity = true;
|
|
|
1500 |
boolean that_present_suggestedQuantity = true;
|
|
|
1501 |
if (this_present_suggestedQuantity || that_present_suggestedQuantity) {
|
|
|
1502 |
if (!(this_present_suggestedQuantity && that_present_suggestedQuantity))
|
|
|
1503 |
return false;
|
|
|
1504 |
if (this.suggestedQuantity != that.suggestedQuantity)
|
|
|
1505 |
return false;
|
|
|
1506 |
}
|
|
|
1507 |
|
|
|
1508 |
boolean this_present_numberOfDaysInStock = true;
|
|
|
1509 |
boolean that_present_numberOfDaysInStock = true;
|
|
|
1510 |
if (this_present_numberOfDaysInStock || that_present_numberOfDaysInStock) {
|
|
|
1511 |
if (!(this_present_numberOfDaysInStock && that_present_numberOfDaysInStock))
|
|
|
1512 |
return false;
|
|
|
1513 |
if (this.numberOfDaysInStock != that.numberOfDaysInStock)
|
|
|
1514 |
return false;
|
|
|
1515 |
}
|
|
|
1516 |
|
| 6857 |
amar.kumar |
1517 |
boolean this_present_lastXdaysSale = true && this.isSetLastXdaysSale();
|
|
|
1518 |
boolean that_present_lastXdaysSale = true && that.isSetLastXdaysSale();
|
|
|
1519 |
if (this_present_lastXdaysSale || that_present_lastXdaysSale) {
|
|
|
1520 |
if (!(this_present_lastXdaysSale && that_present_lastXdaysSale))
|
|
|
1521 |
return false;
|
|
|
1522 |
if (!this.lastXdaysSale.equals(that.lastXdaysSale))
|
|
|
1523 |
return false;
|
|
|
1524 |
}
|
|
|
1525 |
|
| 6880 |
amar.kumar |
1526 |
boolean this_present_previouslyOrderedQty = true;
|
|
|
1527 |
boolean that_present_previouslyOrderedQty = true;
|
|
|
1528 |
if (this_present_previouslyOrderedQty || that_present_previouslyOrderedQty) {
|
|
|
1529 |
if (!(this_present_previouslyOrderedQty && that_present_previouslyOrderedQty))
|
|
|
1530 |
return false;
|
|
|
1531 |
if (this.previouslyOrderedQty != that.previouslyOrderedQty)
|
|
|
1532 |
return false;
|
|
|
1533 |
}
|
|
|
1534 |
|
| 7672 |
rajveer |
1535 |
boolean this_present_nlc = true;
|
|
|
1536 |
boolean that_present_nlc = true;
|
|
|
1537 |
if (this_present_nlc || that_present_nlc) {
|
|
|
1538 |
if (!(this_present_nlc && that_present_nlc))
|
|
|
1539 |
return false;
|
|
|
1540 |
if (this.nlc != that.nlc)
|
|
|
1541 |
return false;
|
|
|
1542 |
}
|
|
|
1543 |
|
| 4496 |
mandeep.dh |
1544 |
return true;
|
|
|
1545 |
}
|
|
|
1546 |
|
|
|
1547 |
@Override
|
|
|
1548 |
public int hashCode() {
|
|
|
1549 |
return 0;
|
|
|
1550 |
}
|
|
|
1551 |
|
|
|
1552 |
public int compareTo(LineItem other) {
|
|
|
1553 |
if (!getClass().equals(other.getClass())) {
|
|
|
1554 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
1555 |
}
|
|
|
1556 |
|
|
|
1557 |
int lastComparison = 0;
|
|
|
1558 |
LineItem typedOther = (LineItem)other;
|
|
|
1559 |
|
|
|
1560 |
lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
|
|
|
1561 |
if (lastComparison != 0) {
|
|
|
1562 |
return lastComparison;
|
|
|
1563 |
}
|
|
|
1564 |
if (isSetOrderId()) {
|
|
|
1565 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
|
|
|
1566 |
if (lastComparison != 0) {
|
|
|
1567 |
return lastComparison;
|
|
|
1568 |
}
|
|
|
1569 |
}
|
|
|
1570 |
lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
|
|
|
1571 |
if (lastComparison != 0) {
|
|
|
1572 |
return lastComparison;
|
|
|
1573 |
}
|
|
|
1574 |
if (isSetItemId()) {
|
|
|
1575 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
|
|
|
1576 |
if (lastComparison != 0) {
|
|
|
1577 |
return lastComparison;
|
|
|
1578 |
}
|
|
|
1579 |
}
|
|
|
1580 |
lastComparison = Boolean.valueOf(isSetProductGroup()).compareTo(typedOther.isSetProductGroup());
|
|
|
1581 |
if (lastComparison != 0) {
|
|
|
1582 |
return lastComparison;
|
|
|
1583 |
}
|
|
|
1584 |
if (isSetProductGroup()) {
|
|
|
1585 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.productGroup, typedOther.productGroup);
|
|
|
1586 |
if (lastComparison != 0) {
|
|
|
1587 |
return lastComparison;
|
|
|
1588 |
}
|
|
|
1589 |
}
|
|
|
1590 |
lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());
|
|
|
1591 |
if (lastComparison != 0) {
|
|
|
1592 |
return lastComparison;
|
|
|
1593 |
}
|
|
|
1594 |
if (isSetBrand()) {
|
|
|
1595 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brand, typedOther.brand);
|
|
|
1596 |
if (lastComparison != 0) {
|
|
|
1597 |
return lastComparison;
|
|
|
1598 |
}
|
|
|
1599 |
}
|
|
|
1600 |
lastComparison = Boolean.valueOf(isSetModelNumber()).compareTo(typedOther.isSetModelNumber());
|
|
|
1601 |
if (lastComparison != 0) {
|
|
|
1602 |
return lastComparison;
|
|
|
1603 |
}
|
|
|
1604 |
if (isSetModelNumber()) {
|
|
|
1605 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modelNumber, typedOther.modelNumber);
|
|
|
1606 |
if (lastComparison != 0) {
|
|
|
1607 |
return lastComparison;
|
|
|
1608 |
}
|
|
|
1609 |
}
|
|
|
1610 |
lastComparison = Boolean.valueOf(isSetModelName()).compareTo(typedOther.isSetModelName());
|
|
|
1611 |
if (lastComparison != 0) {
|
|
|
1612 |
return lastComparison;
|
|
|
1613 |
}
|
|
|
1614 |
if (isSetModelName()) {
|
|
|
1615 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modelName, typedOther.modelName);
|
|
|
1616 |
if (lastComparison != 0) {
|
|
|
1617 |
return lastComparison;
|
|
|
1618 |
}
|
|
|
1619 |
}
|
|
|
1620 |
lastComparison = Boolean.valueOf(isSetColor()).compareTo(typedOther.isSetColor());
|
|
|
1621 |
if (lastComparison != 0) {
|
|
|
1622 |
return lastComparison;
|
|
|
1623 |
}
|
|
|
1624 |
if (isSetColor()) {
|
|
|
1625 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.color, typedOther.color);
|
|
|
1626 |
if (lastComparison != 0) {
|
|
|
1627 |
return lastComparison;
|
|
|
1628 |
}
|
|
|
1629 |
}
|
|
|
1630 |
lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
|
|
|
1631 |
if (lastComparison != 0) {
|
|
|
1632 |
return lastComparison;
|
|
|
1633 |
}
|
|
|
1634 |
if (isSetItemNumber()) {
|
|
|
1635 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
|
|
|
1636 |
if (lastComparison != 0) {
|
|
|
1637 |
return lastComparison;
|
|
|
1638 |
}
|
|
|
1639 |
}
|
|
|
1640 |
lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
|
|
|
1641 |
if (lastComparison != 0) {
|
|
|
1642 |
return lastComparison;
|
|
|
1643 |
}
|
|
|
1644 |
if (isSetQuantity()) {
|
|
|
1645 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
|
|
|
1646 |
if (lastComparison != 0) {
|
|
|
1647 |
return lastComparison;
|
|
|
1648 |
}
|
|
|
1649 |
}
|
|
|
1650 |
lastComparison = Boolean.valueOf(isSetUnfulfilledQuantity()).compareTo(typedOther.isSetUnfulfilledQuantity());
|
|
|
1651 |
if (lastComparison != 0) {
|
|
|
1652 |
return lastComparison;
|
|
|
1653 |
}
|
|
|
1654 |
if (isSetUnfulfilledQuantity()) {
|
|
|
1655 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unfulfilledQuantity, typedOther.unfulfilledQuantity);
|
|
|
1656 |
if (lastComparison != 0) {
|
|
|
1657 |
return lastComparison;
|
|
|
1658 |
}
|
|
|
1659 |
}
|
|
|
1660 |
lastComparison = Boolean.valueOf(isSetCreatedAt()).compareTo(typedOther.isSetCreatedAt());
|
|
|
1661 |
if (lastComparison != 0) {
|
|
|
1662 |
return lastComparison;
|
|
|
1663 |
}
|
|
|
1664 |
if (isSetCreatedAt()) {
|
|
|
1665 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createdAt, typedOther.createdAt);
|
|
|
1666 |
if (lastComparison != 0) {
|
|
|
1667 |
return lastComparison;
|
|
|
1668 |
}
|
|
|
1669 |
}
|
|
|
1670 |
lastComparison = Boolean.valueOf(isSetUnitPrice()).compareTo(typedOther.isSetUnitPrice());
|
|
|
1671 |
if (lastComparison != 0) {
|
|
|
1672 |
return lastComparison;
|
|
|
1673 |
}
|
|
|
1674 |
if (isSetUnitPrice()) {
|
|
|
1675 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unitPrice, typedOther.unitPrice);
|
|
|
1676 |
if (lastComparison != 0) {
|
|
|
1677 |
return lastComparison;
|
|
|
1678 |
}
|
|
|
1679 |
}
|
|
|
1680 |
lastComparison = Boolean.valueOf(isSetFulfilled()).compareTo(typedOther.isSetFulfilled());
|
|
|
1681 |
if (lastComparison != 0) {
|
|
|
1682 |
return lastComparison;
|
|
|
1683 |
}
|
|
|
1684 |
if (isSetFulfilled()) {
|
|
|
1685 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilled, typedOther.fulfilled);
|
|
|
1686 |
if (lastComparison != 0) {
|
|
|
1687 |
return lastComparison;
|
|
|
1688 |
}
|
|
|
1689 |
}
|
| 4754 |
mandeep.dh |
1690 |
lastComparison = Boolean.valueOf(isSetCodCount()).compareTo(typedOther.isSetCodCount());
|
|
|
1691 |
if (lastComparison != 0) {
|
|
|
1692 |
return lastComparison;
|
|
|
1693 |
}
|
|
|
1694 |
if (isSetCodCount()) {
|
|
|
1695 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.codCount, typedOther.codCount);
|
|
|
1696 |
if (lastComparison != 0) {
|
|
|
1697 |
return lastComparison;
|
|
|
1698 |
}
|
|
|
1699 |
}
|
| 6821 |
amar.kumar |
1700 |
lastComparison = Boolean.valueOf(isSetAvailableQuantity()).compareTo(typedOther.isSetAvailableQuantity());
|
|
|
1701 |
if (lastComparison != 0) {
|
|
|
1702 |
return lastComparison;
|
|
|
1703 |
}
|
|
|
1704 |
if (isSetAvailableQuantity()) {
|
|
|
1705 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.availableQuantity, typedOther.availableQuantity);
|
|
|
1706 |
if (lastComparison != 0) {
|
|
|
1707 |
return lastComparison;
|
|
|
1708 |
}
|
|
|
1709 |
}
|
|
|
1710 |
lastComparison = Boolean.valueOf(isSetReservedQuantity()).compareTo(typedOther.isSetReservedQuantity());
|
|
|
1711 |
if (lastComparison != 0) {
|
|
|
1712 |
return lastComparison;
|
|
|
1713 |
}
|
|
|
1714 |
if (isSetReservedQuantity()) {
|
|
|
1715 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.reservedQuantity, typedOther.reservedQuantity);
|
|
|
1716 |
if (lastComparison != 0) {
|
|
|
1717 |
return lastComparison;
|
|
|
1718 |
}
|
|
|
1719 |
}
|
|
|
1720 |
lastComparison = Boolean.valueOf(isSetAvgSales()).compareTo(typedOther.isSetAvgSales());
|
|
|
1721 |
if (lastComparison != 0) {
|
|
|
1722 |
return lastComparison;
|
|
|
1723 |
}
|
|
|
1724 |
if (isSetAvgSales()) {
|
|
|
1725 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.avgSales, typedOther.avgSales);
|
|
|
1726 |
if (lastComparison != 0) {
|
|
|
1727 |
return lastComparison;
|
|
|
1728 |
}
|
|
|
1729 |
}
|
|
|
1730 |
lastComparison = Boolean.valueOf(isSetMinStockLevel()).compareTo(typedOther.isSetMinStockLevel());
|
|
|
1731 |
if (lastComparison != 0) {
|
|
|
1732 |
return lastComparison;
|
|
|
1733 |
}
|
|
|
1734 |
if (isSetMinStockLevel()) {
|
|
|
1735 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.minStockLevel, typedOther.minStockLevel);
|
|
|
1736 |
if (lastComparison != 0) {
|
|
|
1737 |
return lastComparison;
|
|
|
1738 |
}
|
|
|
1739 |
}
|
|
|
1740 |
lastComparison = Boolean.valueOf(isSetNumberOfDaysStock()).compareTo(typedOther.isSetNumberOfDaysStock());
|
|
|
1741 |
if (lastComparison != 0) {
|
|
|
1742 |
return lastComparison;
|
|
|
1743 |
}
|
|
|
1744 |
if (isSetNumberOfDaysStock()) {
|
|
|
1745 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numberOfDaysStock, typedOther.numberOfDaysStock);
|
|
|
1746 |
if (lastComparison != 0) {
|
|
|
1747 |
return lastComparison;
|
|
|
1748 |
}
|
|
|
1749 |
}
|
|
|
1750 |
lastComparison = Boolean.valueOf(isSetSuggestedQuantity()).compareTo(typedOther.isSetSuggestedQuantity());
|
|
|
1751 |
if (lastComparison != 0) {
|
|
|
1752 |
return lastComparison;
|
|
|
1753 |
}
|
|
|
1754 |
if (isSetSuggestedQuantity()) {
|
|
|
1755 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.suggestedQuantity, typedOther.suggestedQuantity);
|
|
|
1756 |
if (lastComparison != 0) {
|
|
|
1757 |
return lastComparison;
|
|
|
1758 |
}
|
|
|
1759 |
}
|
|
|
1760 |
lastComparison = Boolean.valueOf(isSetNumberOfDaysInStock()).compareTo(typedOther.isSetNumberOfDaysInStock());
|
|
|
1761 |
if (lastComparison != 0) {
|
|
|
1762 |
return lastComparison;
|
|
|
1763 |
}
|
|
|
1764 |
if (isSetNumberOfDaysInStock()) {
|
|
|
1765 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.numberOfDaysInStock, typedOther.numberOfDaysInStock);
|
|
|
1766 |
if (lastComparison != 0) {
|
|
|
1767 |
return lastComparison;
|
|
|
1768 |
}
|
|
|
1769 |
}
|
| 6857 |
amar.kumar |
1770 |
lastComparison = Boolean.valueOf(isSetLastXdaysSale()).compareTo(typedOther.isSetLastXdaysSale());
|
|
|
1771 |
if (lastComparison != 0) {
|
|
|
1772 |
return lastComparison;
|
|
|
1773 |
}
|
|
|
1774 |
if (isSetLastXdaysSale()) {
|
|
|
1775 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastXdaysSale, typedOther.lastXdaysSale);
|
|
|
1776 |
if (lastComparison != 0) {
|
|
|
1777 |
return lastComparison;
|
|
|
1778 |
}
|
|
|
1779 |
}
|
| 6880 |
amar.kumar |
1780 |
lastComparison = Boolean.valueOf(isSetPreviouslyOrderedQty()).compareTo(typedOther.isSetPreviouslyOrderedQty());
|
|
|
1781 |
if (lastComparison != 0) {
|
|
|
1782 |
return lastComparison;
|
|
|
1783 |
}
|
|
|
1784 |
if (isSetPreviouslyOrderedQty()) {
|
|
|
1785 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.previouslyOrderedQty, typedOther.previouslyOrderedQty);
|
|
|
1786 |
if (lastComparison != 0) {
|
|
|
1787 |
return lastComparison;
|
|
|
1788 |
}
|
|
|
1789 |
}
|
| 7672 |
rajveer |
1790 |
lastComparison = Boolean.valueOf(isSetNlc()).compareTo(typedOther.isSetNlc());
|
|
|
1791 |
if (lastComparison != 0) {
|
|
|
1792 |
return lastComparison;
|
|
|
1793 |
}
|
|
|
1794 |
if (isSetNlc()) {
|
|
|
1795 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nlc, typedOther.nlc);
|
|
|
1796 |
if (lastComparison != 0) {
|
|
|
1797 |
return lastComparison;
|
|
|
1798 |
}
|
|
|
1799 |
}
|
| 4496 |
mandeep.dh |
1800 |
return 0;
|
|
|
1801 |
}
|
|
|
1802 |
|
|
|
1803 |
public _Fields fieldForId(int fieldId) {
|
|
|
1804 |
return _Fields.findByThriftId(fieldId);
|
|
|
1805 |
}
|
|
|
1806 |
|
|
|
1807 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
1808 |
org.apache.thrift.protocol.TField field;
|
|
|
1809 |
iprot.readStructBegin();
|
|
|
1810 |
while (true)
|
|
|
1811 |
{
|
|
|
1812 |
field = iprot.readFieldBegin();
|
|
|
1813 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
1814 |
break;
|
|
|
1815 |
}
|
|
|
1816 |
switch (field.id) {
|
|
|
1817 |
case 1: // ORDER_ID
|
|
|
1818 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1819 |
this.orderId = iprot.readI64();
|
|
|
1820 |
setOrderIdIsSet(true);
|
|
|
1821 |
} else {
|
|
|
1822 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1823 |
}
|
|
|
1824 |
break;
|
|
|
1825 |
case 2: // ITEM_ID
|
|
|
1826 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1827 |
this.itemId = iprot.readI64();
|
|
|
1828 |
setItemIdIsSet(true);
|
|
|
1829 |
} else {
|
|
|
1830 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1831 |
}
|
|
|
1832 |
break;
|
|
|
1833 |
case 3: // PRODUCT_GROUP
|
|
|
1834 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1835 |
this.productGroup = iprot.readString();
|
|
|
1836 |
} else {
|
|
|
1837 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1838 |
}
|
|
|
1839 |
break;
|
|
|
1840 |
case 4: // BRAND
|
|
|
1841 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1842 |
this.brand = iprot.readString();
|
|
|
1843 |
} else {
|
|
|
1844 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1845 |
}
|
|
|
1846 |
break;
|
|
|
1847 |
case 5: // MODEL_NUMBER
|
|
|
1848 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1849 |
this.modelNumber = iprot.readString();
|
|
|
1850 |
} else {
|
|
|
1851 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1852 |
}
|
|
|
1853 |
break;
|
|
|
1854 |
case 6: // MODEL_NAME
|
|
|
1855 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1856 |
this.modelName = iprot.readString();
|
|
|
1857 |
} else {
|
|
|
1858 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1859 |
}
|
|
|
1860 |
break;
|
|
|
1861 |
case 7: // COLOR
|
|
|
1862 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1863 |
this.color = iprot.readString();
|
|
|
1864 |
} else {
|
|
|
1865 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1866 |
}
|
|
|
1867 |
break;
|
|
|
1868 |
case 8: // ITEM_NUMBER
|
|
|
1869 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1870 |
this.itemNumber = iprot.readString();
|
|
|
1871 |
} else {
|
|
|
1872 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1873 |
}
|
|
|
1874 |
break;
|
|
|
1875 |
case 9: // QUANTITY
|
|
|
1876 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
1877 |
this.quantity = iprot.readDouble();
|
|
|
1878 |
setQuantityIsSet(true);
|
|
|
1879 |
} else {
|
|
|
1880 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1881 |
}
|
|
|
1882 |
break;
|
|
|
1883 |
case 10: // UNFULFILLED_QUANTITY
|
|
|
1884 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
1885 |
this.unfulfilledQuantity = iprot.readDouble();
|
|
|
1886 |
setUnfulfilledQuantityIsSet(true);
|
|
|
1887 |
} else {
|
|
|
1888 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1889 |
}
|
|
|
1890 |
break;
|
|
|
1891 |
case 11: // CREATED_AT
|
|
|
1892 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1893 |
this.createdAt = iprot.readI64();
|
|
|
1894 |
setCreatedAtIsSet(true);
|
|
|
1895 |
} else {
|
|
|
1896 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1897 |
}
|
|
|
1898 |
break;
|
|
|
1899 |
case 12: // UNIT_PRICE
|
|
|
1900 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
1901 |
this.unitPrice = iprot.readDouble();
|
|
|
1902 |
setUnitPriceIsSet(true);
|
|
|
1903 |
} else {
|
|
|
1904 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1905 |
}
|
|
|
1906 |
break;
|
|
|
1907 |
case 13: // FULFILLED
|
|
|
1908 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
1909 |
this.fulfilled = iprot.readBool();
|
|
|
1910 |
setFulfilledIsSet(true);
|
|
|
1911 |
} else {
|
|
|
1912 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1913 |
}
|
|
|
1914 |
break;
|
| 4754 |
mandeep.dh |
1915 |
case 14: // COD_COUNT
|
|
|
1916 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1917 |
this.codCount = iprot.readI64();
|
|
|
1918 |
setCodCountIsSet(true);
|
|
|
1919 |
} else {
|
|
|
1920 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1921 |
}
|
|
|
1922 |
break;
|
| 6821 |
amar.kumar |
1923 |
case 15: // AVAILABLE_QUANTITY
|
|
|
1924 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1925 |
this.availableQuantity = iprot.readI64();
|
|
|
1926 |
setAvailableQuantityIsSet(true);
|
|
|
1927 |
} else {
|
|
|
1928 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1929 |
}
|
|
|
1930 |
break;
|
|
|
1931 |
case 16: // RESERVED_QUANTITY
|
|
|
1932 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1933 |
this.reservedQuantity = iprot.readI64();
|
|
|
1934 |
setReservedQuantityIsSet(true);
|
|
|
1935 |
} else {
|
|
|
1936 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1937 |
}
|
|
|
1938 |
break;
|
|
|
1939 |
case 17: // AVG_SALES
|
|
|
1940 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
1941 |
this.avgSales = iprot.readDouble();
|
|
|
1942 |
setAvgSalesIsSet(true);
|
|
|
1943 |
} else {
|
|
|
1944 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1945 |
}
|
|
|
1946 |
break;
|
|
|
1947 |
case 18: // MIN_STOCK_LEVEL
|
|
|
1948 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1949 |
this.minStockLevel = iprot.readI64();
|
|
|
1950 |
setMinStockLevelIsSet(true);
|
|
|
1951 |
} else {
|
|
|
1952 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1953 |
}
|
|
|
1954 |
break;
|
|
|
1955 |
case 19: // NUMBER_OF_DAYS_STOCK
|
|
|
1956 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1957 |
this.numberOfDaysStock = iprot.readI64();
|
|
|
1958 |
setNumberOfDaysStockIsSet(true);
|
|
|
1959 |
} else {
|
|
|
1960 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1961 |
}
|
|
|
1962 |
break;
|
|
|
1963 |
case 20: // SUGGESTED_QUANTITY
|
|
|
1964 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1965 |
this.suggestedQuantity = iprot.readI64();
|
|
|
1966 |
setSuggestedQuantityIsSet(true);
|
|
|
1967 |
} else {
|
|
|
1968 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1969 |
}
|
|
|
1970 |
break;
|
|
|
1971 |
case 21: // NUMBER_OF_DAYS_IN_STOCK
|
|
|
1972 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1973 |
this.numberOfDaysInStock = iprot.readI64();
|
|
|
1974 |
setNumberOfDaysInStockIsSet(true);
|
|
|
1975 |
} else {
|
|
|
1976 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1977 |
}
|
|
|
1978 |
break;
|
| 6857 |
amar.kumar |
1979 |
case 22: // LAST_XDAYS_SALE
|
|
|
1980 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1981 |
this.lastXdaysSale = iprot.readString();
|
|
|
1982 |
} else {
|
|
|
1983 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1984 |
}
|
|
|
1985 |
break;
|
| 6880 |
amar.kumar |
1986 |
case 23: // PREVIOUSLY_ORDERED_QTY
|
|
|
1987 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1988 |
this.previouslyOrderedQty = iprot.readI64();
|
|
|
1989 |
setPreviouslyOrderedQtyIsSet(true);
|
|
|
1990 |
} else {
|
|
|
1991 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1992 |
}
|
|
|
1993 |
break;
|
| 7672 |
rajveer |
1994 |
case 24: // NLC
|
|
|
1995 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
1996 |
this.nlc = iprot.readDouble();
|
|
|
1997 |
setNlcIsSet(true);
|
|
|
1998 |
} else {
|
|
|
1999 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2000 |
}
|
|
|
2001 |
break;
|
| 4496 |
mandeep.dh |
2002 |
default:
|
|
|
2003 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2004 |
}
|
|
|
2005 |
iprot.readFieldEnd();
|
|
|
2006 |
}
|
|
|
2007 |
iprot.readStructEnd();
|
|
|
2008 |
validate();
|
|
|
2009 |
}
|
|
|
2010 |
|
|
|
2011 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
2012 |
validate();
|
|
|
2013 |
|
|
|
2014 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
2015 |
oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
|
|
|
2016 |
oprot.writeI64(this.orderId);
|
|
|
2017 |
oprot.writeFieldEnd();
|
|
|
2018 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
|
|
2019 |
oprot.writeI64(this.itemId);
|
|
|
2020 |
oprot.writeFieldEnd();
|
|
|
2021 |
if (this.productGroup != null) {
|
|
|
2022 |
oprot.writeFieldBegin(PRODUCT_GROUP_FIELD_DESC);
|
|
|
2023 |
oprot.writeString(this.productGroup);
|
|
|
2024 |
oprot.writeFieldEnd();
|
|
|
2025 |
}
|
|
|
2026 |
if (this.brand != null) {
|
|
|
2027 |
oprot.writeFieldBegin(BRAND_FIELD_DESC);
|
|
|
2028 |
oprot.writeString(this.brand);
|
|
|
2029 |
oprot.writeFieldEnd();
|
|
|
2030 |
}
|
|
|
2031 |
if (this.modelNumber != null) {
|
|
|
2032 |
oprot.writeFieldBegin(MODEL_NUMBER_FIELD_DESC);
|
|
|
2033 |
oprot.writeString(this.modelNumber);
|
|
|
2034 |
oprot.writeFieldEnd();
|
|
|
2035 |
}
|
|
|
2036 |
if (this.modelName != null) {
|
|
|
2037 |
oprot.writeFieldBegin(MODEL_NAME_FIELD_DESC);
|
|
|
2038 |
oprot.writeString(this.modelName);
|
|
|
2039 |
oprot.writeFieldEnd();
|
|
|
2040 |
}
|
|
|
2041 |
if (this.color != null) {
|
|
|
2042 |
oprot.writeFieldBegin(COLOR_FIELD_DESC);
|
|
|
2043 |
oprot.writeString(this.color);
|
|
|
2044 |
oprot.writeFieldEnd();
|
|
|
2045 |
}
|
|
|
2046 |
if (this.itemNumber != null) {
|
|
|
2047 |
oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
|
|
|
2048 |
oprot.writeString(this.itemNumber);
|
|
|
2049 |
oprot.writeFieldEnd();
|
|
|
2050 |
}
|
|
|
2051 |
oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
|
|
|
2052 |
oprot.writeDouble(this.quantity);
|
|
|
2053 |
oprot.writeFieldEnd();
|
|
|
2054 |
oprot.writeFieldBegin(UNFULFILLED_QUANTITY_FIELD_DESC);
|
|
|
2055 |
oprot.writeDouble(this.unfulfilledQuantity);
|
|
|
2056 |
oprot.writeFieldEnd();
|
|
|
2057 |
oprot.writeFieldBegin(CREATED_AT_FIELD_DESC);
|
|
|
2058 |
oprot.writeI64(this.createdAt);
|
|
|
2059 |
oprot.writeFieldEnd();
|
|
|
2060 |
oprot.writeFieldBegin(UNIT_PRICE_FIELD_DESC);
|
|
|
2061 |
oprot.writeDouble(this.unitPrice);
|
|
|
2062 |
oprot.writeFieldEnd();
|
|
|
2063 |
oprot.writeFieldBegin(FULFILLED_FIELD_DESC);
|
|
|
2064 |
oprot.writeBool(this.fulfilled);
|
|
|
2065 |
oprot.writeFieldEnd();
|
| 4754 |
mandeep.dh |
2066 |
oprot.writeFieldBegin(COD_COUNT_FIELD_DESC);
|
|
|
2067 |
oprot.writeI64(this.codCount);
|
|
|
2068 |
oprot.writeFieldEnd();
|
| 6821 |
amar.kumar |
2069 |
oprot.writeFieldBegin(AVAILABLE_QUANTITY_FIELD_DESC);
|
|
|
2070 |
oprot.writeI64(this.availableQuantity);
|
|
|
2071 |
oprot.writeFieldEnd();
|
|
|
2072 |
oprot.writeFieldBegin(RESERVED_QUANTITY_FIELD_DESC);
|
|
|
2073 |
oprot.writeI64(this.reservedQuantity);
|
|
|
2074 |
oprot.writeFieldEnd();
|
|
|
2075 |
oprot.writeFieldBegin(AVG_SALES_FIELD_DESC);
|
|
|
2076 |
oprot.writeDouble(this.avgSales);
|
|
|
2077 |
oprot.writeFieldEnd();
|
|
|
2078 |
oprot.writeFieldBegin(MIN_STOCK_LEVEL_FIELD_DESC);
|
|
|
2079 |
oprot.writeI64(this.minStockLevel);
|
|
|
2080 |
oprot.writeFieldEnd();
|
|
|
2081 |
oprot.writeFieldBegin(NUMBER_OF_DAYS_STOCK_FIELD_DESC);
|
|
|
2082 |
oprot.writeI64(this.numberOfDaysStock);
|
|
|
2083 |
oprot.writeFieldEnd();
|
|
|
2084 |
oprot.writeFieldBegin(SUGGESTED_QUANTITY_FIELD_DESC);
|
|
|
2085 |
oprot.writeI64(this.suggestedQuantity);
|
|
|
2086 |
oprot.writeFieldEnd();
|
|
|
2087 |
oprot.writeFieldBegin(NUMBER_OF_DAYS_IN_STOCK_FIELD_DESC);
|
|
|
2088 |
oprot.writeI64(this.numberOfDaysInStock);
|
|
|
2089 |
oprot.writeFieldEnd();
|
| 6857 |
amar.kumar |
2090 |
if (this.lastXdaysSale != null) {
|
|
|
2091 |
oprot.writeFieldBegin(LAST_XDAYS_SALE_FIELD_DESC);
|
|
|
2092 |
oprot.writeString(this.lastXdaysSale);
|
|
|
2093 |
oprot.writeFieldEnd();
|
|
|
2094 |
}
|
| 6880 |
amar.kumar |
2095 |
oprot.writeFieldBegin(PREVIOUSLY_ORDERED_QTY_FIELD_DESC);
|
|
|
2096 |
oprot.writeI64(this.previouslyOrderedQty);
|
|
|
2097 |
oprot.writeFieldEnd();
|
| 7672 |
rajveer |
2098 |
oprot.writeFieldBegin(NLC_FIELD_DESC);
|
|
|
2099 |
oprot.writeDouble(this.nlc);
|
|
|
2100 |
oprot.writeFieldEnd();
|
| 4496 |
mandeep.dh |
2101 |
oprot.writeFieldStop();
|
|
|
2102 |
oprot.writeStructEnd();
|
|
|
2103 |
}
|
|
|
2104 |
|
|
|
2105 |
@Override
|
|
|
2106 |
public String toString() {
|
|
|
2107 |
StringBuilder sb = new StringBuilder("LineItem(");
|
|
|
2108 |
boolean first = true;
|
|
|
2109 |
|
|
|
2110 |
sb.append("orderId:");
|
|
|
2111 |
sb.append(this.orderId);
|
|
|
2112 |
first = false;
|
|
|
2113 |
if (!first) sb.append(", ");
|
|
|
2114 |
sb.append("itemId:");
|
|
|
2115 |
sb.append(this.itemId);
|
|
|
2116 |
first = false;
|
|
|
2117 |
if (!first) sb.append(", ");
|
|
|
2118 |
sb.append("productGroup:");
|
|
|
2119 |
if (this.productGroup == null) {
|
|
|
2120 |
sb.append("null");
|
|
|
2121 |
} else {
|
|
|
2122 |
sb.append(this.productGroup);
|
|
|
2123 |
}
|
|
|
2124 |
first = false;
|
|
|
2125 |
if (!first) sb.append(", ");
|
|
|
2126 |
sb.append("brand:");
|
|
|
2127 |
if (this.brand == null) {
|
|
|
2128 |
sb.append("null");
|
|
|
2129 |
} else {
|
|
|
2130 |
sb.append(this.brand);
|
|
|
2131 |
}
|
|
|
2132 |
first = false;
|
|
|
2133 |
if (!first) sb.append(", ");
|
|
|
2134 |
sb.append("modelNumber:");
|
|
|
2135 |
if (this.modelNumber == null) {
|
|
|
2136 |
sb.append("null");
|
|
|
2137 |
} else {
|
|
|
2138 |
sb.append(this.modelNumber);
|
|
|
2139 |
}
|
|
|
2140 |
first = false;
|
|
|
2141 |
if (!first) sb.append(", ");
|
|
|
2142 |
sb.append("modelName:");
|
|
|
2143 |
if (this.modelName == null) {
|
|
|
2144 |
sb.append("null");
|
|
|
2145 |
} else {
|
|
|
2146 |
sb.append(this.modelName);
|
|
|
2147 |
}
|
|
|
2148 |
first = false;
|
|
|
2149 |
if (!first) sb.append(", ");
|
|
|
2150 |
sb.append("color:");
|
|
|
2151 |
if (this.color == null) {
|
|
|
2152 |
sb.append("null");
|
|
|
2153 |
} else {
|
|
|
2154 |
sb.append(this.color);
|
|
|
2155 |
}
|
|
|
2156 |
first = false;
|
|
|
2157 |
if (!first) sb.append(", ");
|
|
|
2158 |
sb.append("itemNumber:");
|
|
|
2159 |
if (this.itemNumber == null) {
|
|
|
2160 |
sb.append("null");
|
|
|
2161 |
} else {
|
|
|
2162 |
sb.append(this.itemNumber);
|
|
|
2163 |
}
|
|
|
2164 |
first = false;
|
|
|
2165 |
if (!first) sb.append(", ");
|
|
|
2166 |
sb.append("quantity:");
|
|
|
2167 |
sb.append(this.quantity);
|
|
|
2168 |
first = false;
|
|
|
2169 |
if (!first) sb.append(", ");
|
|
|
2170 |
sb.append("unfulfilledQuantity:");
|
|
|
2171 |
sb.append(this.unfulfilledQuantity);
|
|
|
2172 |
first = false;
|
|
|
2173 |
if (!first) sb.append(", ");
|
|
|
2174 |
sb.append("createdAt:");
|
|
|
2175 |
sb.append(this.createdAt);
|
|
|
2176 |
first = false;
|
|
|
2177 |
if (!first) sb.append(", ");
|
|
|
2178 |
sb.append("unitPrice:");
|
|
|
2179 |
sb.append(this.unitPrice);
|
|
|
2180 |
first = false;
|
|
|
2181 |
if (!first) sb.append(", ");
|
|
|
2182 |
sb.append("fulfilled:");
|
|
|
2183 |
sb.append(this.fulfilled);
|
|
|
2184 |
first = false;
|
| 4754 |
mandeep.dh |
2185 |
if (!first) sb.append(", ");
|
|
|
2186 |
sb.append("codCount:");
|
|
|
2187 |
sb.append(this.codCount);
|
|
|
2188 |
first = false;
|
| 6821 |
amar.kumar |
2189 |
if (!first) sb.append(", ");
|
|
|
2190 |
sb.append("availableQuantity:");
|
|
|
2191 |
sb.append(this.availableQuantity);
|
|
|
2192 |
first = false;
|
|
|
2193 |
if (!first) sb.append(", ");
|
|
|
2194 |
sb.append("reservedQuantity:");
|
|
|
2195 |
sb.append(this.reservedQuantity);
|
|
|
2196 |
first = false;
|
|
|
2197 |
if (!first) sb.append(", ");
|
|
|
2198 |
sb.append("avgSales:");
|
|
|
2199 |
sb.append(this.avgSales);
|
|
|
2200 |
first = false;
|
|
|
2201 |
if (!first) sb.append(", ");
|
|
|
2202 |
sb.append("minStockLevel:");
|
|
|
2203 |
sb.append(this.minStockLevel);
|
|
|
2204 |
first = false;
|
|
|
2205 |
if (!first) sb.append(", ");
|
|
|
2206 |
sb.append("numberOfDaysStock:");
|
|
|
2207 |
sb.append(this.numberOfDaysStock);
|
|
|
2208 |
first = false;
|
|
|
2209 |
if (!first) sb.append(", ");
|
|
|
2210 |
sb.append("suggestedQuantity:");
|
|
|
2211 |
sb.append(this.suggestedQuantity);
|
|
|
2212 |
first = false;
|
|
|
2213 |
if (!first) sb.append(", ");
|
|
|
2214 |
sb.append("numberOfDaysInStock:");
|
|
|
2215 |
sb.append(this.numberOfDaysInStock);
|
|
|
2216 |
first = false;
|
| 6857 |
amar.kumar |
2217 |
if (!first) sb.append(", ");
|
|
|
2218 |
sb.append("lastXdaysSale:");
|
|
|
2219 |
if (this.lastXdaysSale == null) {
|
|
|
2220 |
sb.append("null");
|
|
|
2221 |
} else {
|
|
|
2222 |
sb.append(this.lastXdaysSale);
|
|
|
2223 |
}
|
|
|
2224 |
first = false;
|
| 6880 |
amar.kumar |
2225 |
if (!first) sb.append(", ");
|
|
|
2226 |
sb.append("previouslyOrderedQty:");
|
|
|
2227 |
sb.append(this.previouslyOrderedQty);
|
|
|
2228 |
first = false;
|
| 7672 |
rajveer |
2229 |
if (!first) sb.append(", ");
|
|
|
2230 |
sb.append("nlc:");
|
|
|
2231 |
sb.append(this.nlc);
|
|
|
2232 |
first = false;
|
| 4496 |
mandeep.dh |
2233 |
sb.append(")");
|
|
|
2234 |
return sb.toString();
|
|
|
2235 |
}
|
|
|
2236 |
|
|
|
2237 |
public void validate() throws org.apache.thrift.TException {
|
|
|
2238 |
// check for required fields
|
|
|
2239 |
}
|
|
|
2240 |
|
|
|
2241 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
2242 |
try {
|
|
|
2243 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
2244 |
} catch (org.apache.thrift.TException te) {
|
|
|
2245 |
throw new java.io.IOException(te);
|
|
|
2246 |
}
|
|
|
2247 |
}
|
|
|
2248 |
|
|
|
2249 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
2250 |
try {
|
|
|
2251 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
2252 |
__isset_bit_vector = new BitSet(1);
|
|
|
2253 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
2254 |
} catch (org.apache.thrift.TException te) {
|
|
|
2255 |
throw new java.io.IOException(te);
|
|
|
2256 |
}
|
|
|
2257 |
}
|
|
|
2258 |
|
|
|
2259 |
}
|
|
|
2260 |
|