| 13691 |
manish.sha |
1 |
/**
|
|
|
2 |
* Autogenerated by Thrift Compiler (0.7.0)
|
|
|
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;
|
|
|
18 |
import java.nio.ByteBuffer;
|
|
|
19 |
import java.util.Arrays;
|
|
|
20 |
import org.slf4j.Logger;
|
|
|
21 |
import org.slf4j.LoggerFactory;
|
|
|
22 |
|
|
|
23 |
public class HsOrder implements org.apache.thrift.TBase<HsOrder, HsOrder._Fields>, java.io.Serializable, Cloneable {
|
|
|
24 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("HsOrder");
|
|
|
25 |
|
|
|
26 |
private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
27 |
private static final org.apache.thrift.protocol.TField HS_ORDER_NO_FIELD_DESC = new org.apache.thrift.protocol.TField("hsOrderNo", org.apache.thrift.protocol.TType.STRING, (short)2);
|
|
|
28 |
private static final org.apache.thrift.protocol.TField HS_SUB_ORDER_NO_FIELD_DESC = new org.apache.thrift.protocol.TField("hsSubOrderNo", org.apache.thrift.protocol.TType.STRING, (short)3);
|
|
|
29 |
private static final org.apache.thrift.protocol.TField CATALOGUE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("catalogueName", org.apache.thrift.protocol.TType.STRING, (short)4);
|
|
|
30 |
private static final org.apache.thrift.protocol.TField HS_ORDER_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("hsOrderDate", org.apache.thrift.protocol.TType.I64, (short)5);
|
|
|
31 |
private static final org.apache.thrift.protocol.TField HS_PRODUCT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("hsProductId", org.apache.thrift.protocol.TType.STRING, (short)6);
|
|
|
32 |
private static final org.apache.thrift.protocol.TField HS_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("hsItemId", org.apache.thrift.protocol.TType.STRING, (short)7);
|
|
|
33 |
private static final org.apache.thrift.protocol.TField SELLER_SKU_FIELD_DESC = new org.apache.thrift.protocol.TField("sellerSku", org.apache.thrift.protocol.TType.STRING, (short)8);
|
|
|
34 |
private static final org.apache.thrift.protocol.TField PAYMENT_MODE_FIELD_DESC = new org.apache.thrift.protocol.TField("paymentMode", org.apache.thrift.protocol.TType.STRING, (short)9);
|
|
|
35 |
private static final org.apache.thrift.protocol.TField COURIER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("courierName", org.apache.thrift.protocol.TType.STRING, (short)10);
|
|
|
36 |
private static final org.apache.thrift.protocol.TField SLA_DAYS_FIELD_DESC = new org.apache.thrift.protocol.TField("slaDays", org.apache.thrift.protocol.TType.I64, (short)11);
|
| 13734 |
manish.sha |
37 |
private static final org.apache.thrift.protocol.TField SHIPPING_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("shippingName", org.apache.thrift.protocol.TType.STRING, (short)12);
|
| 13691 |
manish.sha |
38 |
|
|
|
39 |
private long orderId; // required
|
|
|
40 |
private String hsOrderNo; // required
|
|
|
41 |
private String hsSubOrderNo; // required
|
|
|
42 |
private String catalogueName; // required
|
|
|
43 |
private long hsOrderDate; // required
|
|
|
44 |
private String hsProductId; // required
|
|
|
45 |
private String hsItemId; // required
|
|
|
46 |
private String sellerSku; // required
|
|
|
47 |
private String paymentMode; // required
|
|
|
48 |
private String courierName; // required
|
|
|
49 |
private long slaDays; // required
|
| 13734 |
manish.sha |
50 |
private String shippingName; // required
|
| 13691 |
manish.sha |
51 |
|
|
|
52 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
53 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
54 |
ORDER_ID((short)1, "orderId"),
|
|
|
55 |
HS_ORDER_NO((short)2, "hsOrderNo"),
|
|
|
56 |
HS_SUB_ORDER_NO((short)3, "hsSubOrderNo"),
|
|
|
57 |
CATALOGUE_NAME((short)4, "catalogueName"),
|
|
|
58 |
HS_ORDER_DATE((short)5, "hsOrderDate"),
|
|
|
59 |
HS_PRODUCT_ID((short)6, "hsProductId"),
|
|
|
60 |
HS_ITEM_ID((short)7, "hsItemId"),
|
|
|
61 |
SELLER_SKU((short)8, "sellerSku"),
|
|
|
62 |
PAYMENT_MODE((short)9, "paymentMode"),
|
|
|
63 |
COURIER_NAME((short)10, "courierName"),
|
| 13734 |
manish.sha |
64 |
SLA_DAYS((short)11, "slaDays"),
|
|
|
65 |
SHIPPING_NAME((short)12, "shippingName");
|
| 13691 |
manish.sha |
66 |
|
|
|
67 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
68 |
|
|
|
69 |
static {
|
|
|
70 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
71 |
byName.put(field.getFieldName(), field);
|
|
|
72 |
}
|
|
|
73 |
}
|
|
|
74 |
|
|
|
75 |
/**
|
|
|
76 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
77 |
*/
|
|
|
78 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
79 |
switch(fieldId) {
|
|
|
80 |
case 1: // ORDER_ID
|
|
|
81 |
return ORDER_ID;
|
|
|
82 |
case 2: // HS_ORDER_NO
|
|
|
83 |
return HS_ORDER_NO;
|
|
|
84 |
case 3: // HS_SUB_ORDER_NO
|
|
|
85 |
return HS_SUB_ORDER_NO;
|
|
|
86 |
case 4: // CATALOGUE_NAME
|
|
|
87 |
return CATALOGUE_NAME;
|
|
|
88 |
case 5: // HS_ORDER_DATE
|
|
|
89 |
return HS_ORDER_DATE;
|
|
|
90 |
case 6: // HS_PRODUCT_ID
|
|
|
91 |
return HS_PRODUCT_ID;
|
|
|
92 |
case 7: // HS_ITEM_ID
|
|
|
93 |
return HS_ITEM_ID;
|
|
|
94 |
case 8: // SELLER_SKU
|
|
|
95 |
return SELLER_SKU;
|
|
|
96 |
case 9: // PAYMENT_MODE
|
|
|
97 |
return PAYMENT_MODE;
|
|
|
98 |
case 10: // COURIER_NAME
|
|
|
99 |
return COURIER_NAME;
|
|
|
100 |
case 11: // SLA_DAYS
|
|
|
101 |
return SLA_DAYS;
|
| 13734 |
manish.sha |
102 |
case 12: // SHIPPING_NAME
|
|
|
103 |
return SHIPPING_NAME;
|
| 13691 |
manish.sha |
104 |
default:
|
|
|
105 |
return null;
|
|
|
106 |
}
|
|
|
107 |
}
|
|
|
108 |
|
|
|
109 |
/**
|
|
|
110 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
111 |
* if it is not found.
|
|
|
112 |
*/
|
|
|
113 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
114 |
_Fields fields = findByThriftId(fieldId);
|
|
|
115 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
116 |
return fields;
|
|
|
117 |
}
|
|
|
118 |
|
|
|
119 |
/**
|
|
|
120 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
121 |
*/
|
|
|
122 |
public static _Fields findByName(String name) {
|
|
|
123 |
return byName.get(name);
|
|
|
124 |
}
|
|
|
125 |
|
|
|
126 |
private final short _thriftId;
|
|
|
127 |
private final String _fieldName;
|
|
|
128 |
|
|
|
129 |
_Fields(short thriftId, String fieldName) {
|
|
|
130 |
_thriftId = thriftId;
|
|
|
131 |
_fieldName = fieldName;
|
|
|
132 |
}
|
|
|
133 |
|
|
|
134 |
public short getThriftFieldId() {
|
|
|
135 |
return _thriftId;
|
|
|
136 |
}
|
|
|
137 |
|
|
|
138 |
public String getFieldName() {
|
|
|
139 |
return _fieldName;
|
|
|
140 |
}
|
|
|
141 |
}
|
|
|
142 |
|
|
|
143 |
// isset id assignments
|
|
|
144 |
private static final int __ORDERID_ISSET_ID = 0;
|
|
|
145 |
private static final int __HSORDERDATE_ISSET_ID = 1;
|
|
|
146 |
private static final int __SLADAYS_ISSET_ID = 2;
|
|
|
147 |
private BitSet __isset_bit_vector = new BitSet(3);
|
|
|
148 |
|
|
|
149 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
150 |
static {
|
|
|
151 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
152 |
tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
153 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
154 |
tmpMap.put(_Fields.HS_ORDER_NO, new org.apache.thrift.meta_data.FieldMetaData("hsOrderNo", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
155 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
156 |
tmpMap.put(_Fields.HS_SUB_ORDER_NO, new org.apache.thrift.meta_data.FieldMetaData("hsSubOrderNo", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
157 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
158 |
tmpMap.put(_Fields.CATALOGUE_NAME, new org.apache.thrift.meta_data.FieldMetaData("catalogueName", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
159 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
160 |
tmpMap.put(_Fields.HS_ORDER_DATE, new org.apache.thrift.meta_data.FieldMetaData("hsOrderDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
161 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
162 |
tmpMap.put(_Fields.HS_PRODUCT_ID, new org.apache.thrift.meta_data.FieldMetaData("hsProductId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
163 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
164 |
tmpMap.put(_Fields.HS_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("hsItemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
165 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
166 |
tmpMap.put(_Fields.SELLER_SKU, new org.apache.thrift.meta_data.FieldMetaData("sellerSku", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
167 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
168 |
tmpMap.put(_Fields.PAYMENT_MODE, new org.apache.thrift.meta_data.FieldMetaData("paymentMode", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
169 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
170 |
tmpMap.put(_Fields.COURIER_NAME, new org.apache.thrift.meta_data.FieldMetaData("courierName", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
171 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
172 |
tmpMap.put(_Fields.SLA_DAYS, new org.apache.thrift.meta_data.FieldMetaData("slaDays", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
173 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 13734 |
manish.sha |
174 |
tmpMap.put(_Fields.SHIPPING_NAME, new org.apache.thrift.meta_data.FieldMetaData("shippingName", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
175 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 13691 |
manish.sha |
176 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
177 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(HsOrder.class, metaDataMap);
|
|
|
178 |
}
|
|
|
179 |
|
|
|
180 |
public HsOrder() {
|
|
|
181 |
}
|
|
|
182 |
|
|
|
183 |
public HsOrder(
|
|
|
184 |
long orderId,
|
|
|
185 |
String hsOrderNo,
|
|
|
186 |
String hsSubOrderNo,
|
|
|
187 |
String catalogueName,
|
|
|
188 |
long hsOrderDate,
|
|
|
189 |
String hsProductId,
|
|
|
190 |
String hsItemId,
|
|
|
191 |
String sellerSku,
|
|
|
192 |
String paymentMode,
|
|
|
193 |
String courierName,
|
| 13734 |
manish.sha |
194 |
long slaDays,
|
|
|
195 |
String shippingName)
|
| 13691 |
manish.sha |
196 |
{
|
|
|
197 |
this();
|
|
|
198 |
this.orderId = orderId;
|
|
|
199 |
setOrderIdIsSet(true);
|
|
|
200 |
this.hsOrderNo = hsOrderNo;
|
|
|
201 |
this.hsSubOrderNo = hsSubOrderNo;
|
|
|
202 |
this.catalogueName = catalogueName;
|
|
|
203 |
this.hsOrderDate = hsOrderDate;
|
|
|
204 |
setHsOrderDateIsSet(true);
|
|
|
205 |
this.hsProductId = hsProductId;
|
|
|
206 |
this.hsItemId = hsItemId;
|
|
|
207 |
this.sellerSku = sellerSku;
|
|
|
208 |
this.paymentMode = paymentMode;
|
|
|
209 |
this.courierName = courierName;
|
|
|
210 |
this.slaDays = slaDays;
|
|
|
211 |
setSlaDaysIsSet(true);
|
| 13734 |
manish.sha |
212 |
this.shippingName = shippingName;
|
| 13691 |
manish.sha |
213 |
}
|
|
|
214 |
|
|
|
215 |
/**
|
|
|
216 |
* Performs a deep copy on <i>other</i>.
|
|
|
217 |
*/
|
|
|
218 |
public HsOrder(HsOrder other) {
|
|
|
219 |
__isset_bit_vector.clear();
|
|
|
220 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
221 |
this.orderId = other.orderId;
|
|
|
222 |
if (other.isSetHsOrderNo()) {
|
|
|
223 |
this.hsOrderNo = other.hsOrderNo;
|
|
|
224 |
}
|
|
|
225 |
if (other.isSetHsSubOrderNo()) {
|
|
|
226 |
this.hsSubOrderNo = other.hsSubOrderNo;
|
|
|
227 |
}
|
|
|
228 |
if (other.isSetCatalogueName()) {
|
|
|
229 |
this.catalogueName = other.catalogueName;
|
|
|
230 |
}
|
|
|
231 |
this.hsOrderDate = other.hsOrderDate;
|
|
|
232 |
if (other.isSetHsProductId()) {
|
|
|
233 |
this.hsProductId = other.hsProductId;
|
|
|
234 |
}
|
|
|
235 |
if (other.isSetHsItemId()) {
|
|
|
236 |
this.hsItemId = other.hsItemId;
|
|
|
237 |
}
|
|
|
238 |
if (other.isSetSellerSku()) {
|
|
|
239 |
this.sellerSku = other.sellerSku;
|
|
|
240 |
}
|
|
|
241 |
if (other.isSetPaymentMode()) {
|
|
|
242 |
this.paymentMode = other.paymentMode;
|
|
|
243 |
}
|
|
|
244 |
if (other.isSetCourierName()) {
|
|
|
245 |
this.courierName = other.courierName;
|
|
|
246 |
}
|
|
|
247 |
this.slaDays = other.slaDays;
|
| 13734 |
manish.sha |
248 |
if (other.isSetShippingName()) {
|
|
|
249 |
this.shippingName = other.shippingName;
|
|
|
250 |
}
|
| 13691 |
manish.sha |
251 |
}
|
|
|
252 |
|
|
|
253 |
public HsOrder deepCopy() {
|
|
|
254 |
return new HsOrder(this);
|
|
|
255 |
}
|
|
|
256 |
|
|
|
257 |
@Override
|
|
|
258 |
public void clear() {
|
|
|
259 |
setOrderIdIsSet(false);
|
|
|
260 |
this.orderId = 0;
|
|
|
261 |
this.hsOrderNo = null;
|
|
|
262 |
this.hsSubOrderNo = null;
|
|
|
263 |
this.catalogueName = null;
|
|
|
264 |
setHsOrderDateIsSet(false);
|
|
|
265 |
this.hsOrderDate = 0;
|
|
|
266 |
this.hsProductId = null;
|
|
|
267 |
this.hsItemId = null;
|
|
|
268 |
this.sellerSku = null;
|
|
|
269 |
this.paymentMode = null;
|
|
|
270 |
this.courierName = null;
|
|
|
271 |
setSlaDaysIsSet(false);
|
|
|
272 |
this.slaDays = 0;
|
| 13734 |
manish.sha |
273 |
this.shippingName = null;
|
| 13691 |
manish.sha |
274 |
}
|
|
|
275 |
|
|
|
276 |
public long getOrderId() {
|
|
|
277 |
return this.orderId;
|
|
|
278 |
}
|
|
|
279 |
|
|
|
280 |
public void setOrderId(long orderId) {
|
|
|
281 |
this.orderId = orderId;
|
|
|
282 |
setOrderIdIsSet(true);
|
|
|
283 |
}
|
|
|
284 |
|
|
|
285 |
public void unsetOrderId() {
|
|
|
286 |
__isset_bit_vector.clear(__ORDERID_ISSET_ID);
|
|
|
287 |
}
|
|
|
288 |
|
|
|
289 |
/** Returns true if field orderId is set (has been assigned a value) and false otherwise */
|
|
|
290 |
public boolean isSetOrderId() {
|
|
|
291 |
return __isset_bit_vector.get(__ORDERID_ISSET_ID);
|
|
|
292 |
}
|
|
|
293 |
|
|
|
294 |
public void setOrderIdIsSet(boolean value) {
|
|
|
295 |
__isset_bit_vector.set(__ORDERID_ISSET_ID, value);
|
|
|
296 |
}
|
|
|
297 |
|
|
|
298 |
public String getHsOrderNo() {
|
|
|
299 |
return this.hsOrderNo;
|
|
|
300 |
}
|
|
|
301 |
|
|
|
302 |
public void setHsOrderNo(String hsOrderNo) {
|
|
|
303 |
this.hsOrderNo = hsOrderNo;
|
|
|
304 |
}
|
|
|
305 |
|
|
|
306 |
public void unsetHsOrderNo() {
|
|
|
307 |
this.hsOrderNo = null;
|
|
|
308 |
}
|
|
|
309 |
|
|
|
310 |
/** Returns true if field hsOrderNo is set (has been assigned a value) and false otherwise */
|
|
|
311 |
public boolean isSetHsOrderNo() {
|
|
|
312 |
return this.hsOrderNo != null;
|
|
|
313 |
}
|
|
|
314 |
|
|
|
315 |
public void setHsOrderNoIsSet(boolean value) {
|
|
|
316 |
if (!value) {
|
|
|
317 |
this.hsOrderNo = null;
|
|
|
318 |
}
|
|
|
319 |
}
|
|
|
320 |
|
|
|
321 |
public String getHsSubOrderNo() {
|
|
|
322 |
return this.hsSubOrderNo;
|
|
|
323 |
}
|
|
|
324 |
|
|
|
325 |
public void setHsSubOrderNo(String hsSubOrderNo) {
|
|
|
326 |
this.hsSubOrderNo = hsSubOrderNo;
|
|
|
327 |
}
|
|
|
328 |
|
|
|
329 |
public void unsetHsSubOrderNo() {
|
|
|
330 |
this.hsSubOrderNo = null;
|
|
|
331 |
}
|
|
|
332 |
|
|
|
333 |
/** Returns true if field hsSubOrderNo is set (has been assigned a value) and false otherwise */
|
|
|
334 |
public boolean isSetHsSubOrderNo() {
|
|
|
335 |
return this.hsSubOrderNo != null;
|
|
|
336 |
}
|
|
|
337 |
|
|
|
338 |
public void setHsSubOrderNoIsSet(boolean value) {
|
|
|
339 |
if (!value) {
|
|
|
340 |
this.hsSubOrderNo = null;
|
|
|
341 |
}
|
|
|
342 |
}
|
|
|
343 |
|
|
|
344 |
public String getCatalogueName() {
|
|
|
345 |
return this.catalogueName;
|
|
|
346 |
}
|
|
|
347 |
|
|
|
348 |
public void setCatalogueName(String catalogueName) {
|
|
|
349 |
this.catalogueName = catalogueName;
|
|
|
350 |
}
|
|
|
351 |
|
|
|
352 |
public void unsetCatalogueName() {
|
|
|
353 |
this.catalogueName = null;
|
|
|
354 |
}
|
|
|
355 |
|
|
|
356 |
/** Returns true if field catalogueName is set (has been assigned a value) and false otherwise */
|
|
|
357 |
public boolean isSetCatalogueName() {
|
|
|
358 |
return this.catalogueName != null;
|
|
|
359 |
}
|
|
|
360 |
|
|
|
361 |
public void setCatalogueNameIsSet(boolean value) {
|
|
|
362 |
if (!value) {
|
|
|
363 |
this.catalogueName = null;
|
|
|
364 |
}
|
|
|
365 |
}
|
|
|
366 |
|
|
|
367 |
public long getHsOrderDate() {
|
|
|
368 |
return this.hsOrderDate;
|
|
|
369 |
}
|
|
|
370 |
|
|
|
371 |
public void setHsOrderDate(long hsOrderDate) {
|
|
|
372 |
this.hsOrderDate = hsOrderDate;
|
|
|
373 |
setHsOrderDateIsSet(true);
|
|
|
374 |
}
|
|
|
375 |
|
|
|
376 |
public void unsetHsOrderDate() {
|
|
|
377 |
__isset_bit_vector.clear(__HSORDERDATE_ISSET_ID);
|
|
|
378 |
}
|
|
|
379 |
|
|
|
380 |
/** Returns true if field hsOrderDate is set (has been assigned a value) and false otherwise */
|
|
|
381 |
public boolean isSetHsOrderDate() {
|
|
|
382 |
return __isset_bit_vector.get(__HSORDERDATE_ISSET_ID);
|
|
|
383 |
}
|
|
|
384 |
|
|
|
385 |
public void setHsOrderDateIsSet(boolean value) {
|
|
|
386 |
__isset_bit_vector.set(__HSORDERDATE_ISSET_ID, value);
|
|
|
387 |
}
|
|
|
388 |
|
|
|
389 |
public String getHsProductId() {
|
|
|
390 |
return this.hsProductId;
|
|
|
391 |
}
|
|
|
392 |
|
|
|
393 |
public void setHsProductId(String hsProductId) {
|
|
|
394 |
this.hsProductId = hsProductId;
|
|
|
395 |
}
|
|
|
396 |
|
|
|
397 |
public void unsetHsProductId() {
|
|
|
398 |
this.hsProductId = null;
|
|
|
399 |
}
|
|
|
400 |
|
|
|
401 |
/** Returns true if field hsProductId is set (has been assigned a value) and false otherwise */
|
|
|
402 |
public boolean isSetHsProductId() {
|
|
|
403 |
return this.hsProductId != null;
|
|
|
404 |
}
|
|
|
405 |
|
|
|
406 |
public void setHsProductIdIsSet(boolean value) {
|
|
|
407 |
if (!value) {
|
|
|
408 |
this.hsProductId = null;
|
|
|
409 |
}
|
|
|
410 |
}
|
|
|
411 |
|
|
|
412 |
public String getHsItemId() {
|
|
|
413 |
return this.hsItemId;
|
|
|
414 |
}
|
|
|
415 |
|
|
|
416 |
public void setHsItemId(String hsItemId) {
|
|
|
417 |
this.hsItemId = hsItemId;
|
|
|
418 |
}
|
|
|
419 |
|
|
|
420 |
public void unsetHsItemId() {
|
|
|
421 |
this.hsItemId = null;
|
|
|
422 |
}
|
|
|
423 |
|
|
|
424 |
/** Returns true if field hsItemId is set (has been assigned a value) and false otherwise */
|
|
|
425 |
public boolean isSetHsItemId() {
|
|
|
426 |
return this.hsItemId != null;
|
|
|
427 |
}
|
|
|
428 |
|
|
|
429 |
public void setHsItemIdIsSet(boolean value) {
|
|
|
430 |
if (!value) {
|
|
|
431 |
this.hsItemId = null;
|
|
|
432 |
}
|
|
|
433 |
}
|
|
|
434 |
|
|
|
435 |
public String getSellerSku() {
|
|
|
436 |
return this.sellerSku;
|
|
|
437 |
}
|
|
|
438 |
|
|
|
439 |
public void setSellerSku(String sellerSku) {
|
|
|
440 |
this.sellerSku = sellerSku;
|
|
|
441 |
}
|
|
|
442 |
|
|
|
443 |
public void unsetSellerSku() {
|
|
|
444 |
this.sellerSku = null;
|
|
|
445 |
}
|
|
|
446 |
|
|
|
447 |
/** Returns true if field sellerSku is set (has been assigned a value) and false otherwise */
|
|
|
448 |
public boolean isSetSellerSku() {
|
|
|
449 |
return this.sellerSku != null;
|
|
|
450 |
}
|
|
|
451 |
|
|
|
452 |
public void setSellerSkuIsSet(boolean value) {
|
|
|
453 |
if (!value) {
|
|
|
454 |
this.sellerSku = null;
|
|
|
455 |
}
|
|
|
456 |
}
|
|
|
457 |
|
|
|
458 |
public String getPaymentMode() {
|
|
|
459 |
return this.paymentMode;
|
|
|
460 |
}
|
|
|
461 |
|
|
|
462 |
public void setPaymentMode(String paymentMode) {
|
|
|
463 |
this.paymentMode = paymentMode;
|
|
|
464 |
}
|
|
|
465 |
|
|
|
466 |
public void unsetPaymentMode() {
|
|
|
467 |
this.paymentMode = null;
|
|
|
468 |
}
|
|
|
469 |
|
|
|
470 |
/** Returns true if field paymentMode is set (has been assigned a value) and false otherwise */
|
|
|
471 |
public boolean isSetPaymentMode() {
|
|
|
472 |
return this.paymentMode != null;
|
|
|
473 |
}
|
|
|
474 |
|
|
|
475 |
public void setPaymentModeIsSet(boolean value) {
|
|
|
476 |
if (!value) {
|
|
|
477 |
this.paymentMode = null;
|
|
|
478 |
}
|
|
|
479 |
}
|
|
|
480 |
|
|
|
481 |
public String getCourierName() {
|
|
|
482 |
return this.courierName;
|
|
|
483 |
}
|
|
|
484 |
|
|
|
485 |
public void setCourierName(String courierName) {
|
|
|
486 |
this.courierName = courierName;
|
|
|
487 |
}
|
|
|
488 |
|
|
|
489 |
public void unsetCourierName() {
|
|
|
490 |
this.courierName = null;
|
|
|
491 |
}
|
|
|
492 |
|
|
|
493 |
/** Returns true if field courierName is set (has been assigned a value) and false otherwise */
|
|
|
494 |
public boolean isSetCourierName() {
|
|
|
495 |
return this.courierName != null;
|
|
|
496 |
}
|
|
|
497 |
|
|
|
498 |
public void setCourierNameIsSet(boolean value) {
|
|
|
499 |
if (!value) {
|
|
|
500 |
this.courierName = null;
|
|
|
501 |
}
|
|
|
502 |
}
|
|
|
503 |
|
|
|
504 |
public long getSlaDays() {
|
|
|
505 |
return this.slaDays;
|
|
|
506 |
}
|
|
|
507 |
|
|
|
508 |
public void setSlaDays(long slaDays) {
|
|
|
509 |
this.slaDays = slaDays;
|
|
|
510 |
setSlaDaysIsSet(true);
|
|
|
511 |
}
|
|
|
512 |
|
|
|
513 |
public void unsetSlaDays() {
|
|
|
514 |
__isset_bit_vector.clear(__SLADAYS_ISSET_ID);
|
|
|
515 |
}
|
|
|
516 |
|
|
|
517 |
/** Returns true if field slaDays is set (has been assigned a value) and false otherwise */
|
|
|
518 |
public boolean isSetSlaDays() {
|
|
|
519 |
return __isset_bit_vector.get(__SLADAYS_ISSET_ID);
|
|
|
520 |
}
|
|
|
521 |
|
|
|
522 |
public void setSlaDaysIsSet(boolean value) {
|
|
|
523 |
__isset_bit_vector.set(__SLADAYS_ISSET_ID, value);
|
|
|
524 |
}
|
|
|
525 |
|
| 13734 |
manish.sha |
526 |
public String getShippingName() {
|
|
|
527 |
return this.shippingName;
|
|
|
528 |
}
|
|
|
529 |
|
|
|
530 |
public void setShippingName(String shippingName) {
|
|
|
531 |
this.shippingName = shippingName;
|
|
|
532 |
}
|
|
|
533 |
|
|
|
534 |
public void unsetShippingName() {
|
|
|
535 |
this.shippingName = null;
|
|
|
536 |
}
|
|
|
537 |
|
|
|
538 |
/** Returns true if field shippingName is set (has been assigned a value) and false otherwise */
|
|
|
539 |
public boolean isSetShippingName() {
|
|
|
540 |
return this.shippingName != null;
|
|
|
541 |
}
|
|
|
542 |
|
|
|
543 |
public void setShippingNameIsSet(boolean value) {
|
|
|
544 |
if (!value) {
|
|
|
545 |
this.shippingName = null;
|
|
|
546 |
}
|
|
|
547 |
}
|
|
|
548 |
|
| 13691 |
manish.sha |
549 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
550 |
switch (field) {
|
|
|
551 |
case ORDER_ID:
|
|
|
552 |
if (value == null) {
|
|
|
553 |
unsetOrderId();
|
|
|
554 |
} else {
|
|
|
555 |
setOrderId((Long)value);
|
|
|
556 |
}
|
|
|
557 |
break;
|
|
|
558 |
|
|
|
559 |
case HS_ORDER_NO:
|
|
|
560 |
if (value == null) {
|
|
|
561 |
unsetHsOrderNo();
|
|
|
562 |
} else {
|
|
|
563 |
setHsOrderNo((String)value);
|
|
|
564 |
}
|
|
|
565 |
break;
|
|
|
566 |
|
|
|
567 |
case HS_SUB_ORDER_NO:
|
|
|
568 |
if (value == null) {
|
|
|
569 |
unsetHsSubOrderNo();
|
|
|
570 |
} else {
|
|
|
571 |
setHsSubOrderNo((String)value);
|
|
|
572 |
}
|
|
|
573 |
break;
|
|
|
574 |
|
|
|
575 |
case CATALOGUE_NAME:
|
|
|
576 |
if (value == null) {
|
|
|
577 |
unsetCatalogueName();
|
|
|
578 |
} else {
|
|
|
579 |
setCatalogueName((String)value);
|
|
|
580 |
}
|
|
|
581 |
break;
|
|
|
582 |
|
|
|
583 |
case HS_ORDER_DATE:
|
|
|
584 |
if (value == null) {
|
|
|
585 |
unsetHsOrderDate();
|
|
|
586 |
} else {
|
|
|
587 |
setHsOrderDate((Long)value);
|
|
|
588 |
}
|
|
|
589 |
break;
|
|
|
590 |
|
|
|
591 |
case HS_PRODUCT_ID:
|
|
|
592 |
if (value == null) {
|
|
|
593 |
unsetHsProductId();
|
|
|
594 |
} else {
|
|
|
595 |
setHsProductId((String)value);
|
|
|
596 |
}
|
|
|
597 |
break;
|
|
|
598 |
|
|
|
599 |
case HS_ITEM_ID:
|
|
|
600 |
if (value == null) {
|
|
|
601 |
unsetHsItemId();
|
|
|
602 |
} else {
|
|
|
603 |
setHsItemId((String)value);
|
|
|
604 |
}
|
|
|
605 |
break;
|
|
|
606 |
|
|
|
607 |
case SELLER_SKU:
|
|
|
608 |
if (value == null) {
|
|
|
609 |
unsetSellerSku();
|
|
|
610 |
} else {
|
|
|
611 |
setSellerSku((String)value);
|
|
|
612 |
}
|
|
|
613 |
break;
|
|
|
614 |
|
|
|
615 |
case PAYMENT_MODE:
|
|
|
616 |
if (value == null) {
|
|
|
617 |
unsetPaymentMode();
|
|
|
618 |
} else {
|
|
|
619 |
setPaymentMode((String)value);
|
|
|
620 |
}
|
|
|
621 |
break;
|
|
|
622 |
|
|
|
623 |
case COURIER_NAME:
|
|
|
624 |
if (value == null) {
|
|
|
625 |
unsetCourierName();
|
|
|
626 |
} else {
|
|
|
627 |
setCourierName((String)value);
|
|
|
628 |
}
|
|
|
629 |
break;
|
|
|
630 |
|
|
|
631 |
case SLA_DAYS:
|
|
|
632 |
if (value == null) {
|
|
|
633 |
unsetSlaDays();
|
|
|
634 |
} else {
|
|
|
635 |
setSlaDays((Long)value);
|
|
|
636 |
}
|
|
|
637 |
break;
|
|
|
638 |
|
| 13734 |
manish.sha |
639 |
case SHIPPING_NAME:
|
|
|
640 |
if (value == null) {
|
|
|
641 |
unsetShippingName();
|
|
|
642 |
} else {
|
|
|
643 |
setShippingName((String)value);
|
|
|
644 |
}
|
|
|
645 |
break;
|
|
|
646 |
|
| 13691 |
manish.sha |
647 |
}
|
|
|
648 |
}
|
|
|
649 |
|
|
|
650 |
public Object getFieldValue(_Fields field) {
|
|
|
651 |
switch (field) {
|
|
|
652 |
case ORDER_ID:
|
|
|
653 |
return Long.valueOf(getOrderId());
|
|
|
654 |
|
|
|
655 |
case HS_ORDER_NO:
|
|
|
656 |
return getHsOrderNo();
|
|
|
657 |
|
|
|
658 |
case HS_SUB_ORDER_NO:
|
|
|
659 |
return getHsSubOrderNo();
|
|
|
660 |
|
|
|
661 |
case CATALOGUE_NAME:
|
|
|
662 |
return getCatalogueName();
|
|
|
663 |
|
|
|
664 |
case HS_ORDER_DATE:
|
|
|
665 |
return Long.valueOf(getHsOrderDate());
|
|
|
666 |
|
|
|
667 |
case HS_PRODUCT_ID:
|
|
|
668 |
return getHsProductId();
|
|
|
669 |
|
|
|
670 |
case HS_ITEM_ID:
|
|
|
671 |
return getHsItemId();
|
|
|
672 |
|
|
|
673 |
case SELLER_SKU:
|
|
|
674 |
return getSellerSku();
|
|
|
675 |
|
|
|
676 |
case PAYMENT_MODE:
|
|
|
677 |
return getPaymentMode();
|
|
|
678 |
|
|
|
679 |
case COURIER_NAME:
|
|
|
680 |
return getCourierName();
|
|
|
681 |
|
|
|
682 |
case SLA_DAYS:
|
|
|
683 |
return Long.valueOf(getSlaDays());
|
|
|
684 |
|
| 13734 |
manish.sha |
685 |
case SHIPPING_NAME:
|
|
|
686 |
return getShippingName();
|
|
|
687 |
|
| 13691 |
manish.sha |
688 |
}
|
|
|
689 |
throw new IllegalStateException();
|
|
|
690 |
}
|
|
|
691 |
|
|
|
692 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
693 |
public boolean isSet(_Fields field) {
|
|
|
694 |
if (field == null) {
|
|
|
695 |
throw new IllegalArgumentException();
|
|
|
696 |
}
|
|
|
697 |
|
|
|
698 |
switch (field) {
|
|
|
699 |
case ORDER_ID:
|
|
|
700 |
return isSetOrderId();
|
|
|
701 |
case HS_ORDER_NO:
|
|
|
702 |
return isSetHsOrderNo();
|
|
|
703 |
case HS_SUB_ORDER_NO:
|
|
|
704 |
return isSetHsSubOrderNo();
|
|
|
705 |
case CATALOGUE_NAME:
|
|
|
706 |
return isSetCatalogueName();
|
|
|
707 |
case HS_ORDER_DATE:
|
|
|
708 |
return isSetHsOrderDate();
|
|
|
709 |
case HS_PRODUCT_ID:
|
|
|
710 |
return isSetHsProductId();
|
|
|
711 |
case HS_ITEM_ID:
|
|
|
712 |
return isSetHsItemId();
|
|
|
713 |
case SELLER_SKU:
|
|
|
714 |
return isSetSellerSku();
|
|
|
715 |
case PAYMENT_MODE:
|
|
|
716 |
return isSetPaymentMode();
|
|
|
717 |
case COURIER_NAME:
|
|
|
718 |
return isSetCourierName();
|
|
|
719 |
case SLA_DAYS:
|
|
|
720 |
return isSetSlaDays();
|
| 13734 |
manish.sha |
721 |
case SHIPPING_NAME:
|
|
|
722 |
return isSetShippingName();
|
| 13691 |
manish.sha |
723 |
}
|
|
|
724 |
throw new IllegalStateException();
|
|
|
725 |
}
|
|
|
726 |
|
|
|
727 |
@Override
|
|
|
728 |
public boolean equals(Object that) {
|
|
|
729 |
if (that == null)
|
|
|
730 |
return false;
|
|
|
731 |
if (that instanceof HsOrder)
|
|
|
732 |
return this.equals((HsOrder)that);
|
|
|
733 |
return false;
|
|
|
734 |
}
|
|
|
735 |
|
|
|
736 |
public boolean equals(HsOrder that) {
|
|
|
737 |
if (that == null)
|
|
|
738 |
return false;
|
|
|
739 |
|
|
|
740 |
boolean this_present_orderId = true;
|
|
|
741 |
boolean that_present_orderId = true;
|
|
|
742 |
if (this_present_orderId || that_present_orderId) {
|
|
|
743 |
if (!(this_present_orderId && that_present_orderId))
|
|
|
744 |
return false;
|
|
|
745 |
if (this.orderId != that.orderId)
|
|
|
746 |
return false;
|
|
|
747 |
}
|
|
|
748 |
|
|
|
749 |
boolean this_present_hsOrderNo = true && this.isSetHsOrderNo();
|
|
|
750 |
boolean that_present_hsOrderNo = true && that.isSetHsOrderNo();
|
|
|
751 |
if (this_present_hsOrderNo || that_present_hsOrderNo) {
|
|
|
752 |
if (!(this_present_hsOrderNo && that_present_hsOrderNo))
|
|
|
753 |
return false;
|
|
|
754 |
if (!this.hsOrderNo.equals(that.hsOrderNo))
|
|
|
755 |
return false;
|
|
|
756 |
}
|
|
|
757 |
|
|
|
758 |
boolean this_present_hsSubOrderNo = true && this.isSetHsSubOrderNo();
|
|
|
759 |
boolean that_present_hsSubOrderNo = true && that.isSetHsSubOrderNo();
|
|
|
760 |
if (this_present_hsSubOrderNo || that_present_hsSubOrderNo) {
|
|
|
761 |
if (!(this_present_hsSubOrderNo && that_present_hsSubOrderNo))
|
|
|
762 |
return false;
|
|
|
763 |
if (!this.hsSubOrderNo.equals(that.hsSubOrderNo))
|
|
|
764 |
return false;
|
|
|
765 |
}
|
|
|
766 |
|
|
|
767 |
boolean this_present_catalogueName = true && this.isSetCatalogueName();
|
|
|
768 |
boolean that_present_catalogueName = true && that.isSetCatalogueName();
|
|
|
769 |
if (this_present_catalogueName || that_present_catalogueName) {
|
|
|
770 |
if (!(this_present_catalogueName && that_present_catalogueName))
|
|
|
771 |
return false;
|
|
|
772 |
if (!this.catalogueName.equals(that.catalogueName))
|
|
|
773 |
return false;
|
|
|
774 |
}
|
|
|
775 |
|
|
|
776 |
boolean this_present_hsOrderDate = true;
|
|
|
777 |
boolean that_present_hsOrderDate = true;
|
|
|
778 |
if (this_present_hsOrderDate || that_present_hsOrderDate) {
|
|
|
779 |
if (!(this_present_hsOrderDate && that_present_hsOrderDate))
|
|
|
780 |
return false;
|
|
|
781 |
if (this.hsOrderDate != that.hsOrderDate)
|
|
|
782 |
return false;
|
|
|
783 |
}
|
|
|
784 |
|
|
|
785 |
boolean this_present_hsProductId = true && this.isSetHsProductId();
|
|
|
786 |
boolean that_present_hsProductId = true && that.isSetHsProductId();
|
|
|
787 |
if (this_present_hsProductId || that_present_hsProductId) {
|
|
|
788 |
if (!(this_present_hsProductId && that_present_hsProductId))
|
|
|
789 |
return false;
|
|
|
790 |
if (!this.hsProductId.equals(that.hsProductId))
|
|
|
791 |
return false;
|
|
|
792 |
}
|
|
|
793 |
|
|
|
794 |
boolean this_present_hsItemId = true && this.isSetHsItemId();
|
|
|
795 |
boolean that_present_hsItemId = true && that.isSetHsItemId();
|
|
|
796 |
if (this_present_hsItemId || that_present_hsItemId) {
|
|
|
797 |
if (!(this_present_hsItemId && that_present_hsItemId))
|
|
|
798 |
return false;
|
|
|
799 |
if (!this.hsItemId.equals(that.hsItemId))
|
|
|
800 |
return false;
|
|
|
801 |
}
|
|
|
802 |
|
|
|
803 |
boolean this_present_sellerSku = true && this.isSetSellerSku();
|
|
|
804 |
boolean that_present_sellerSku = true && that.isSetSellerSku();
|
|
|
805 |
if (this_present_sellerSku || that_present_sellerSku) {
|
|
|
806 |
if (!(this_present_sellerSku && that_present_sellerSku))
|
|
|
807 |
return false;
|
|
|
808 |
if (!this.sellerSku.equals(that.sellerSku))
|
|
|
809 |
return false;
|
|
|
810 |
}
|
|
|
811 |
|
|
|
812 |
boolean this_present_paymentMode = true && this.isSetPaymentMode();
|
|
|
813 |
boolean that_present_paymentMode = true && that.isSetPaymentMode();
|
|
|
814 |
if (this_present_paymentMode || that_present_paymentMode) {
|
|
|
815 |
if (!(this_present_paymentMode && that_present_paymentMode))
|
|
|
816 |
return false;
|
|
|
817 |
if (!this.paymentMode.equals(that.paymentMode))
|
|
|
818 |
return false;
|
|
|
819 |
}
|
|
|
820 |
|
|
|
821 |
boolean this_present_courierName = true && this.isSetCourierName();
|
|
|
822 |
boolean that_present_courierName = true && that.isSetCourierName();
|
|
|
823 |
if (this_present_courierName || that_present_courierName) {
|
|
|
824 |
if (!(this_present_courierName && that_present_courierName))
|
|
|
825 |
return false;
|
|
|
826 |
if (!this.courierName.equals(that.courierName))
|
|
|
827 |
return false;
|
|
|
828 |
}
|
|
|
829 |
|
|
|
830 |
boolean this_present_slaDays = true;
|
|
|
831 |
boolean that_present_slaDays = true;
|
|
|
832 |
if (this_present_slaDays || that_present_slaDays) {
|
|
|
833 |
if (!(this_present_slaDays && that_present_slaDays))
|
|
|
834 |
return false;
|
|
|
835 |
if (this.slaDays != that.slaDays)
|
|
|
836 |
return false;
|
|
|
837 |
}
|
|
|
838 |
|
| 13734 |
manish.sha |
839 |
boolean this_present_shippingName = true && this.isSetShippingName();
|
|
|
840 |
boolean that_present_shippingName = true && that.isSetShippingName();
|
|
|
841 |
if (this_present_shippingName || that_present_shippingName) {
|
|
|
842 |
if (!(this_present_shippingName && that_present_shippingName))
|
|
|
843 |
return false;
|
|
|
844 |
if (!this.shippingName.equals(that.shippingName))
|
|
|
845 |
return false;
|
|
|
846 |
}
|
|
|
847 |
|
| 13691 |
manish.sha |
848 |
return true;
|
|
|
849 |
}
|
|
|
850 |
|
|
|
851 |
@Override
|
|
|
852 |
public int hashCode() {
|
|
|
853 |
return 0;
|
|
|
854 |
}
|
|
|
855 |
|
|
|
856 |
public int compareTo(HsOrder other) {
|
|
|
857 |
if (!getClass().equals(other.getClass())) {
|
|
|
858 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
859 |
}
|
|
|
860 |
|
|
|
861 |
int lastComparison = 0;
|
|
|
862 |
HsOrder typedOther = (HsOrder)other;
|
|
|
863 |
|
|
|
864 |
lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
|
|
|
865 |
if (lastComparison != 0) {
|
|
|
866 |
return lastComparison;
|
|
|
867 |
}
|
|
|
868 |
if (isSetOrderId()) {
|
|
|
869 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
|
|
|
870 |
if (lastComparison != 0) {
|
|
|
871 |
return lastComparison;
|
|
|
872 |
}
|
|
|
873 |
}
|
|
|
874 |
lastComparison = Boolean.valueOf(isSetHsOrderNo()).compareTo(typedOther.isSetHsOrderNo());
|
|
|
875 |
if (lastComparison != 0) {
|
|
|
876 |
return lastComparison;
|
|
|
877 |
}
|
|
|
878 |
if (isSetHsOrderNo()) {
|
|
|
879 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hsOrderNo, typedOther.hsOrderNo);
|
|
|
880 |
if (lastComparison != 0) {
|
|
|
881 |
return lastComparison;
|
|
|
882 |
}
|
|
|
883 |
}
|
|
|
884 |
lastComparison = Boolean.valueOf(isSetHsSubOrderNo()).compareTo(typedOther.isSetHsSubOrderNo());
|
|
|
885 |
if (lastComparison != 0) {
|
|
|
886 |
return lastComparison;
|
|
|
887 |
}
|
|
|
888 |
if (isSetHsSubOrderNo()) {
|
|
|
889 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hsSubOrderNo, typedOther.hsSubOrderNo);
|
|
|
890 |
if (lastComparison != 0) {
|
|
|
891 |
return lastComparison;
|
|
|
892 |
}
|
|
|
893 |
}
|
|
|
894 |
lastComparison = Boolean.valueOf(isSetCatalogueName()).compareTo(typedOther.isSetCatalogueName());
|
|
|
895 |
if (lastComparison != 0) {
|
|
|
896 |
return lastComparison;
|
|
|
897 |
}
|
|
|
898 |
if (isSetCatalogueName()) {
|
|
|
899 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogueName, typedOther.catalogueName);
|
|
|
900 |
if (lastComparison != 0) {
|
|
|
901 |
return lastComparison;
|
|
|
902 |
}
|
|
|
903 |
}
|
|
|
904 |
lastComparison = Boolean.valueOf(isSetHsOrderDate()).compareTo(typedOther.isSetHsOrderDate());
|
|
|
905 |
if (lastComparison != 0) {
|
|
|
906 |
return lastComparison;
|
|
|
907 |
}
|
|
|
908 |
if (isSetHsOrderDate()) {
|
|
|
909 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hsOrderDate, typedOther.hsOrderDate);
|
|
|
910 |
if (lastComparison != 0) {
|
|
|
911 |
return lastComparison;
|
|
|
912 |
}
|
|
|
913 |
}
|
|
|
914 |
lastComparison = Boolean.valueOf(isSetHsProductId()).compareTo(typedOther.isSetHsProductId());
|
|
|
915 |
if (lastComparison != 0) {
|
|
|
916 |
return lastComparison;
|
|
|
917 |
}
|
|
|
918 |
if (isSetHsProductId()) {
|
|
|
919 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hsProductId, typedOther.hsProductId);
|
|
|
920 |
if (lastComparison != 0) {
|
|
|
921 |
return lastComparison;
|
|
|
922 |
}
|
|
|
923 |
}
|
|
|
924 |
lastComparison = Boolean.valueOf(isSetHsItemId()).compareTo(typedOther.isSetHsItemId());
|
|
|
925 |
if (lastComparison != 0) {
|
|
|
926 |
return lastComparison;
|
|
|
927 |
}
|
|
|
928 |
if (isSetHsItemId()) {
|
|
|
929 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hsItemId, typedOther.hsItemId);
|
|
|
930 |
if (lastComparison != 0) {
|
|
|
931 |
return lastComparison;
|
|
|
932 |
}
|
|
|
933 |
}
|
|
|
934 |
lastComparison = Boolean.valueOf(isSetSellerSku()).compareTo(typedOther.isSetSellerSku());
|
|
|
935 |
if (lastComparison != 0) {
|
|
|
936 |
return lastComparison;
|
|
|
937 |
}
|
|
|
938 |
if (isSetSellerSku()) {
|
|
|
939 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sellerSku, typedOther.sellerSku);
|
|
|
940 |
if (lastComparison != 0) {
|
|
|
941 |
return lastComparison;
|
|
|
942 |
}
|
|
|
943 |
}
|
|
|
944 |
lastComparison = Boolean.valueOf(isSetPaymentMode()).compareTo(typedOther.isSetPaymentMode());
|
|
|
945 |
if (lastComparison != 0) {
|
|
|
946 |
return lastComparison;
|
|
|
947 |
}
|
|
|
948 |
if (isSetPaymentMode()) {
|
|
|
949 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.paymentMode, typedOther.paymentMode);
|
|
|
950 |
if (lastComparison != 0) {
|
|
|
951 |
return lastComparison;
|
|
|
952 |
}
|
|
|
953 |
}
|
|
|
954 |
lastComparison = Boolean.valueOf(isSetCourierName()).compareTo(typedOther.isSetCourierName());
|
|
|
955 |
if (lastComparison != 0) {
|
|
|
956 |
return lastComparison;
|
|
|
957 |
}
|
|
|
958 |
if (isSetCourierName()) {
|
|
|
959 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.courierName, typedOther.courierName);
|
|
|
960 |
if (lastComparison != 0) {
|
|
|
961 |
return lastComparison;
|
|
|
962 |
}
|
|
|
963 |
}
|
|
|
964 |
lastComparison = Boolean.valueOf(isSetSlaDays()).compareTo(typedOther.isSetSlaDays());
|
|
|
965 |
if (lastComparison != 0) {
|
|
|
966 |
return lastComparison;
|
|
|
967 |
}
|
|
|
968 |
if (isSetSlaDays()) {
|
|
|
969 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.slaDays, typedOther.slaDays);
|
|
|
970 |
if (lastComparison != 0) {
|
|
|
971 |
return lastComparison;
|
|
|
972 |
}
|
|
|
973 |
}
|
| 13734 |
manish.sha |
974 |
lastComparison = Boolean.valueOf(isSetShippingName()).compareTo(typedOther.isSetShippingName());
|
|
|
975 |
if (lastComparison != 0) {
|
|
|
976 |
return lastComparison;
|
|
|
977 |
}
|
|
|
978 |
if (isSetShippingName()) {
|
|
|
979 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shippingName, typedOther.shippingName);
|
|
|
980 |
if (lastComparison != 0) {
|
|
|
981 |
return lastComparison;
|
|
|
982 |
}
|
|
|
983 |
}
|
| 13691 |
manish.sha |
984 |
return 0;
|
|
|
985 |
}
|
|
|
986 |
|
|
|
987 |
public _Fields fieldForId(int fieldId) {
|
|
|
988 |
return _Fields.findByThriftId(fieldId);
|
|
|
989 |
}
|
|
|
990 |
|
|
|
991 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
992 |
org.apache.thrift.protocol.TField field;
|
|
|
993 |
iprot.readStructBegin();
|
|
|
994 |
while (true)
|
|
|
995 |
{
|
|
|
996 |
field = iprot.readFieldBegin();
|
|
|
997 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
998 |
break;
|
|
|
999 |
}
|
|
|
1000 |
switch (field.id) {
|
|
|
1001 |
case 1: // ORDER_ID
|
|
|
1002 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1003 |
this.orderId = iprot.readI64();
|
|
|
1004 |
setOrderIdIsSet(true);
|
|
|
1005 |
} else {
|
|
|
1006 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1007 |
}
|
|
|
1008 |
break;
|
|
|
1009 |
case 2: // HS_ORDER_NO
|
|
|
1010 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1011 |
this.hsOrderNo = iprot.readString();
|
|
|
1012 |
} else {
|
|
|
1013 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1014 |
}
|
|
|
1015 |
break;
|
|
|
1016 |
case 3: // HS_SUB_ORDER_NO
|
|
|
1017 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1018 |
this.hsSubOrderNo = iprot.readString();
|
|
|
1019 |
} else {
|
|
|
1020 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1021 |
}
|
|
|
1022 |
break;
|
|
|
1023 |
case 4: // CATALOGUE_NAME
|
|
|
1024 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1025 |
this.catalogueName = iprot.readString();
|
|
|
1026 |
} else {
|
|
|
1027 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1028 |
}
|
|
|
1029 |
break;
|
|
|
1030 |
case 5: // HS_ORDER_DATE
|
|
|
1031 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1032 |
this.hsOrderDate = iprot.readI64();
|
|
|
1033 |
setHsOrderDateIsSet(true);
|
|
|
1034 |
} else {
|
|
|
1035 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1036 |
}
|
|
|
1037 |
break;
|
|
|
1038 |
case 6: // HS_PRODUCT_ID
|
|
|
1039 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1040 |
this.hsProductId = iprot.readString();
|
|
|
1041 |
} else {
|
|
|
1042 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1043 |
}
|
|
|
1044 |
break;
|
|
|
1045 |
case 7: // HS_ITEM_ID
|
|
|
1046 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1047 |
this.hsItemId = iprot.readString();
|
|
|
1048 |
} else {
|
|
|
1049 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1050 |
}
|
|
|
1051 |
break;
|
|
|
1052 |
case 8: // SELLER_SKU
|
|
|
1053 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1054 |
this.sellerSku = iprot.readString();
|
|
|
1055 |
} else {
|
|
|
1056 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1057 |
}
|
|
|
1058 |
break;
|
|
|
1059 |
case 9: // PAYMENT_MODE
|
|
|
1060 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1061 |
this.paymentMode = iprot.readString();
|
|
|
1062 |
} else {
|
|
|
1063 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1064 |
}
|
|
|
1065 |
break;
|
|
|
1066 |
case 10: // COURIER_NAME
|
|
|
1067 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1068 |
this.courierName = iprot.readString();
|
|
|
1069 |
} else {
|
|
|
1070 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1071 |
}
|
|
|
1072 |
break;
|
|
|
1073 |
case 11: // SLA_DAYS
|
|
|
1074 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1075 |
this.slaDays = iprot.readI64();
|
|
|
1076 |
setSlaDaysIsSet(true);
|
|
|
1077 |
} else {
|
|
|
1078 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1079 |
}
|
|
|
1080 |
break;
|
| 13734 |
manish.sha |
1081 |
case 12: // SHIPPING_NAME
|
|
|
1082 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1083 |
this.shippingName = iprot.readString();
|
|
|
1084 |
} else {
|
|
|
1085 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1086 |
}
|
|
|
1087 |
break;
|
| 13691 |
manish.sha |
1088 |
default:
|
|
|
1089 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1090 |
}
|
|
|
1091 |
iprot.readFieldEnd();
|
|
|
1092 |
}
|
|
|
1093 |
iprot.readStructEnd();
|
|
|
1094 |
validate();
|
|
|
1095 |
}
|
|
|
1096 |
|
|
|
1097 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
1098 |
validate();
|
|
|
1099 |
|
|
|
1100 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
1101 |
oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
|
|
|
1102 |
oprot.writeI64(this.orderId);
|
|
|
1103 |
oprot.writeFieldEnd();
|
|
|
1104 |
if (this.hsOrderNo != null) {
|
|
|
1105 |
oprot.writeFieldBegin(HS_ORDER_NO_FIELD_DESC);
|
|
|
1106 |
oprot.writeString(this.hsOrderNo);
|
|
|
1107 |
oprot.writeFieldEnd();
|
|
|
1108 |
}
|
|
|
1109 |
if (this.hsSubOrderNo != null) {
|
|
|
1110 |
oprot.writeFieldBegin(HS_SUB_ORDER_NO_FIELD_DESC);
|
|
|
1111 |
oprot.writeString(this.hsSubOrderNo);
|
|
|
1112 |
oprot.writeFieldEnd();
|
|
|
1113 |
}
|
|
|
1114 |
if (this.catalogueName != null) {
|
|
|
1115 |
oprot.writeFieldBegin(CATALOGUE_NAME_FIELD_DESC);
|
|
|
1116 |
oprot.writeString(this.catalogueName);
|
|
|
1117 |
oprot.writeFieldEnd();
|
|
|
1118 |
}
|
|
|
1119 |
oprot.writeFieldBegin(HS_ORDER_DATE_FIELD_DESC);
|
|
|
1120 |
oprot.writeI64(this.hsOrderDate);
|
|
|
1121 |
oprot.writeFieldEnd();
|
|
|
1122 |
if (this.hsProductId != null) {
|
|
|
1123 |
oprot.writeFieldBegin(HS_PRODUCT_ID_FIELD_DESC);
|
|
|
1124 |
oprot.writeString(this.hsProductId);
|
|
|
1125 |
oprot.writeFieldEnd();
|
|
|
1126 |
}
|
|
|
1127 |
if (this.hsItemId != null) {
|
|
|
1128 |
oprot.writeFieldBegin(HS_ITEM_ID_FIELD_DESC);
|
|
|
1129 |
oprot.writeString(this.hsItemId);
|
|
|
1130 |
oprot.writeFieldEnd();
|
|
|
1131 |
}
|
|
|
1132 |
if (this.sellerSku != null) {
|
|
|
1133 |
oprot.writeFieldBegin(SELLER_SKU_FIELD_DESC);
|
|
|
1134 |
oprot.writeString(this.sellerSku);
|
|
|
1135 |
oprot.writeFieldEnd();
|
|
|
1136 |
}
|
|
|
1137 |
if (this.paymentMode != null) {
|
|
|
1138 |
oprot.writeFieldBegin(PAYMENT_MODE_FIELD_DESC);
|
|
|
1139 |
oprot.writeString(this.paymentMode);
|
|
|
1140 |
oprot.writeFieldEnd();
|
|
|
1141 |
}
|
|
|
1142 |
if (this.courierName != null) {
|
|
|
1143 |
oprot.writeFieldBegin(COURIER_NAME_FIELD_DESC);
|
|
|
1144 |
oprot.writeString(this.courierName);
|
|
|
1145 |
oprot.writeFieldEnd();
|
|
|
1146 |
}
|
|
|
1147 |
oprot.writeFieldBegin(SLA_DAYS_FIELD_DESC);
|
|
|
1148 |
oprot.writeI64(this.slaDays);
|
|
|
1149 |
oprot.writeFieldEnd();
|
| 13734 |
manish.sha |
1150 |
if (this.shippingName != null) {
|
|
|
1151 |
oprot.writeFieldBegin(SHIPPING_NAME_FIELD_DESC);
|
|
|
1152 |
oprot.writeString(this.shippingName);
|
|
|
1153 |
oprot.writeFieldEnd();
|
|
|
1154 |
}
|
| 13691 |
manish.sha |
1155 |
oprot.writeFieldStop();
|
|
|
1156 |
oprot.writeStructEnd();
|
|
|
1157 |
}
|
|
|
1158 |
|
|
|
1159 |
@Override
|
|
|
1160 |
public String toString() {
|
|
|
1161 |
StringBuilder sb = new StringBuilder("HsOrder(");
|
|
|
1162 |
boolean first = true;
|
|
|
1163 |
|
|
|
1164 |
sb.append("orderId:");
|
|
|
1165 |
sb.append(this.orderId);
|
|
|
1166 |
first = false;
|
|
|
1167 |
if (!first) sb.append(", ");
|
|
|
1168 |
sb.append("hsOrderNo:");
|
|
|
1169 |
if (this.hsOrderNo == null) {
|
|
|
1170 |
sb.append("null");
|
|
|
1171 |
} else {
|
|
|
1172 |
sb.append(this.hsOrderNo);
|
|
|
1173 |
}
|
|
|
1174 |
first = false;
|
|
|
1175 |
if (!first) sb.append(", ");
|
|
|
1176 |
sb.append("hsSubOrderNo:");
|
|
|
1177 |
if (this.hsSubOrderNo == null) {
|
|
|
1178 |
sb.append("null");
|
|
|
1179 |
} else {
|
|
|
1180 |
sb.append(this.hsSubOrderNo);
|
|
|
1181 |
}
|
|
|
1182 |
first = false;
|
|
|
1183 |
if (!first) sb.append(", ");
|
|
|
1184 |
sb.append("catalogueName:");
|
|
|
1185 |
if (this.catalogueName == null) {
|
|
|
1186 |
sb.append("null");
|
|
|
1187 |
} else {
|
|
|
1188 |
sb.append(this.catalogueName);
|
|
|
1189 |
}
|
|
|
1190 |
first = false;
|
|
|
1191 |
if (!first) sb.append(", ");
|
|
|
1192 |
sb.append("hsOrderDate:");
|
|
|
1193 |
sb.append(this.hsOrderDate);
|
|
|
1194 |
first = false;
|
|
|
1195 |
if (!first) sb.append(", ");
|
|
|
1196 |
sb.append("hsProductId:");
|
|
|
1197 |
if (this.hsProductId == null) {
|
|
|
1198 |
sb.append("null");
|
|
|
1199 |
} else {
|
|
|
1200 |
sb.append(this.hsProductId);
|
|
|
1201 |
}
|
|
|
1202 |
first = false;
|
|
|
1203 |
if (!first) sb.append(", ");
|
|
|
1204 |
sb.append("hsItemId:");
|
|
|
1205 |
if (this.hsItemId == null) {
|
|
|
1206 |
sb.append("null");
|
|
|
1207 |
} else {
|
|
|
1208 |
sb.append(this.hsItemId);
|
|
|
1209 |
}
|
|
|
1210 |
first = false;
|
|
|
1211 |
if (!first) sb.append(", ");
|
|
|
1212 |
sb.append("sellerSku:");
|
|
|
1213 |
if (this.sellerSku == null) {
|
|
|
1214 |
sb.append("null");
|
|
|
1215 |
} else {
|
|
|
1216 |
sb.append(this.sellerSku);
|
|
|
1217 |
}
|
|
|
1218 |
first = false;
|
|
|
1219 |
if (!first) sb.append(", ");
|
|
|
1220 |
sb.append("paymentMode:");
|
|
|
1221 |
if (this.paymentMode == null) {
|
|
|
1222 |
sb.append("null");
|
|
|
1223 |
} else {
|
|
|
1224 |
sb.append(this.paymentMode);
|
|
|
1225 |
}
|
|
|
1226 |
first = false;
|
|
|
1227 |
if (!first) sb.append(", ");
|
|
|
1228 |
sb.append("courierName:");
|
|
|
1229 |
if (this.courierName == null) {
|
|
|
1230 |
sb.append("null");
|
|
|
1231 |
} else {
|
|
|
1232 |
sb.append(this.courierName);
|
|
|
1233 |
}
|
|
|
1234 |
first = false;
|
|
|
1235 |
if (!first) sb.append(", ");
|
|
|
1236 |
sb.append("slaDays:");
|
|
|
1237 |
sb.append(this.slaDays);
|
|
|
1238 |
first = false;
|
| 13734 |
manish.sha |
1239 |
if (!first) sb.append(", ");
|
|
|
1240 |
sb.append("shippingName:");
|
|
|
1241 |
if (this.shippingName == null) {
|
|
|
1242 |
sb.append("null");
|
|
|
1243 |
} else {
|
|
|
1244 |
sb.append(this.shippingName);
|
|
|
1245 |
}
|
|
|
1246 |
first = false;
|
| 13691 |
manish.sha |
1247 |
sb.append(")");
|
|
|
1248 |
return sb.toString();
|
|
|
1249 |
}
|
|
|
1250 |
|
|
|
1251 |
public void validate() throws org.apache.thrift.TException {
|
|
|
1252 |
// check for required fields
|
|
|
1253 |
}
|
|
|
1254 |
|
|
|
1255 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
1256 |
try {
|
|
|
1257 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
1258 |
} catch (org.apache.thrift.TException te) {
|
|
|
1259 |
throw new java.io.IOException(te);
|
|
|
1260 |
}
|
|
|
1261 |
}
|
|
|
1262 |
|
|
|
1263 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
1264 |
try {
|
|
|
1265 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
1266 |
__isset_bit_vector = new BitSet(1);
|
|
|
1267 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
1268 |
} catch (org.apache.thrift.TException te) {
|
|
|
1269 |
throw new java.io.IOException(te);
|
|
|
1270 |
}
|
|
|
1271 |
}
|
|
|
1272 |
|
|
|
1273 |
}
|
|
|
1274 |
|