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