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