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