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