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