| 2690 |
chandransh |
1 |
/**
|
| 3430 |
rajveer |
2 |
* Autogenerated by Thrift Compiler (0.7.0)
|
| 2690 |
chandransh |
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;
|
| 2690 |
chandransh |
19 |
import java.util.Arrays;
|
|
|
20 |
import org.slf4j.Logger;
|
|
|
21 |
import org.slf4j.LoggerFactory;
|
|
|
22 |
|
| 3430 |
rajveer |
23 |
public class ReturnOrder implements org.apache.thrift.TBase<ReturnOrder, ReturnOrder._Fields>, java.io.Serializable, Cloneable {
|
|
|
24 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ReturnOrder");
|
| 2690 |
chandransh |
25 |
|
| 3430 |
rajveer |
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 WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)2);
|
|
|
28 |
private static final org.apache.thrift.protocol.TField JACKET_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("jacketNumber", org.apache.thrift.protocol.TType.I64, (short)3);
|
|
|
29 |
private static final org.apache.thrift.protocol.TField INVOICE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("invoiceNumber", org.apache.thrift.protocol.TType.STRING, (short)4);
|
|
|
30 |
private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)5);
|
|
|
31 |
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)6);
|
|
|
32 |
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)7);
|
|
|
33 |
private static final org.apache.thrift.protocol.TField MODEL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("modelNumber", org.apache.thrift.protocol.TType.STRING, (short)8);
|
|
|
34 |
private static final org.apache.thrift.protocol.TField MODEL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("modelName", org.apache.thrift.protocol.TType.STRING, (short)9);
|
|
|
35 |
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)10);
|
|
|
36 |
private static final org.apache.thrift.protocol.TField TOTAL_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("totalPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)11);
|
|
|
37 |
private static final org.apache.thrift.protocol.TField TRANSFER_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("transferPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)12);
|
|
|
38 |
private static final org.apache.thrift.protocol.TField PROCESSED_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("processedStatus", org.apache.thrift.protocol.TType.BOOL, (short)13);
|
|
|
39 |
private static final org.apache.thrift.protocol.TField CREATED_AT_FIELD_DESC = new org.apache.thrift.protocol.TField("createdAt", org.apache.thrift.protocol.TType.I64, (short)14);
|
|
|
40 |
private static final org.apache.thrift.protocol.TField PROCESSED_AT_FIELD_DESC = new org.apache.thrift.protocol.TField("processedAt", org.apache.thrift.protocol.TType.I64, (short)15);
|
| 2690 |
chandransh |
41 |
|
| 3430 |
rajveer |
42 |
private long orderId; // required
|
|
|
43 |
private long warehouseId; // required
|
|
|
44 |
private long jacketNumber; // required
|
|
|
45 |
private String invoiceNumber; // required
|
|
|
46 |
private long itemId; // required
|
|
|
47 |
private String productGroup; // required
|
|
|
48 |
private String brand; // required
|
|
|
49 |
private String modelNumber; // required
|
|
|
50 |
private String modelName; // required
|
|
|
51 |
private String color; // required
|
|
|
52 |
private double totalPrice; // required
|
|
|
53 |
private double transferPrice; // required
|
|
|
54 |
private boolean processedStatus; // required
|
|
|
55 |
private long createdAt; // required
|
|
|
56 |
private long processedAt; // required
|
| 2690 |
chandransh |
57 |
|
|
|
58 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
59 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 2690 |
chandransh |
60 |
ORDER_ID((short)1, "orderId"),
|
| 2697 |
chandransh |
61 |
WAREHOUSE_ID((short)2, "warehouseId"),
|
|
|
62 |
JACKET_NUMBER((short)3, "jacketNumber"),
|
|
|
63 |
INVOICE_NUMBER((short)4, "invoiceNumber"),
|
|
|
64 |
ITEM_ID((short)5, "itemId"),
|
|
|
65 |
PRODUCT_GROUP((short)6, "productGroup"),
|
|
|
66 |
BRAND((short)7, "brand"),
|
|
|
67 |
MODEL_NUMBER((short)8, "modelNumber"),
|
|
|
68 |
MODEL_NAME((short)9, "modelName"),
|
|
|
69 |
COLOR((short)10, "color"),
|
|
|
70 |
TOTAL_PRICE((short)11, "totalPrice"),
|
|
|
71 |
TRANSFER_PRICE((short)12, "transferPrice"),
|
|
|
72 |
PROCESSED_STATUS((short)13, "processedStatus"),
|
|
|
73 |
CREATED_AT((short)14, "createdAt"),
|
|
|
74 |
PROCESSED_AT((short)15, "processedAt");
|
| 2690 |
chandransh |
75 |
|
|
|
76 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
77 |
|
|
|
78 |
static {
|
|
|
79 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
80 |
byName.put(field.getFieldName(), field);
|
|
|
81 |
}
|
|
|
82 |
}
|
|
|
83 |
|
|
|
84 |
/**
|
|
|
85 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
86 |
*/
|
|
|
87 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
88 |
switch(fieldId) {
|
|
|
89 |
case 1: // ORDER_ID
|
|
|
90 |
return ORDER_ID;
|
|
|
91 |
case 2: // WAREHOUSE_ID
|
|
|
92 |
return WAREHOUSE_ID;
|
|
|
93 |
case 3: // JACKET_NUMBER
|
|
|
94 |
return JACKET_NUMBER;
|
|
|
95 |
case 4: // INVOICE_NUMBER
|
|
|
96 |
return INVOICE_NUMBER;
|
|
|
97 |
case 5: // ITEM_ID
|
|
|
98 |
return ITEM_ID;
|
|
|
99 |
case 6: // PRODUCT_GROUP
|
|
|
100 |
return PRODUCT_GROUP;
|
|
|
101 |
case 7: // BRAND
|
|
|
102 |
return BRAND;
|
|
|
103 |
case 8: // MODEL_NUMBER
|
|
|
104 |
return MODEL_NUMBER;
|
|
|
105 |
case 9: // MODEL_NAME
|
|
|
106 |
return MODEL_NAME;
|
|
|
107 |
case 10: // COLOR
|
|
|
108 |
return COLOR;
|
|
|
109 |
case 11: // TOTAL_PRICE
|
|
|
110 |
return TOTAL_PRICE;
|
|
|
111 |
case 12: // TRANSFER_PRICE
|
|
|
112 |
return TRANSFER_PRICE;
|
|
|
113 |
case 13: // PROCESSED_STATUS
|
|
|
114 |
return PROCESSED_STATUS;
|
|
|
115 |
case 14: // CREATED_AT
|
|
|
116 |
return CREATED_AT;
|
|
|
117 |
case 15: // PROCESSED_AT
|
|
|
118 |
return PROCESSED_AT;
|
|
|
119 |
default:
|
|
|
120 |
return null;
|
|
|
121 |
}
|
| 2690 |
chandransh |
122 |
}
|
|
|
123 |
|
|
|
124 |
/**
|
|
|
125 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
126 |
* if it is not found.
|
|
|
127 |
*/
|
|
|
128 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
129 |
_Fields fields = findByThriftId(fieldId);
|
|
|
130 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
131 |
return fields;
|
|
|
132 |
}
|
|
|
133 |
|
|
|
134 |
/**
|
|
|
135 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
136 |
*/
|
|
|
137 |
public static _Fields findByName(String name) {
|
|
|
138 |
return byName.get(name);
|
|
|
139 |
}
|
|
|
140 |
|
|
|
141 |
private final short _thriftId;
|
|
|
142 |
private final String _fieldName;
|
|
|
143 |
|
|
|
144 |
_Fields(short thriftId, String fieldName) {
|
|
|
145 |
_thriftId = thriftId;
|
|
|
146 |
_fieldName = fieldName;
|
|
|
147 |
}
|
|
|
148 |
|
|
|
149 |
public short getThriftFieldId() {
|
|
|
150 |
return _thriftId;
|
|
|
151 |
}
|
|
|
152 |
|
|
|
153 |
public String getFieldName() {
|
|
|
154 |
return _fieldName;
|
|
|
155 |
}
|
|
|
156 |
}
|
|
|
157 |
|
|
|
158 |
// isset id assignments
|
|
|
159 |
private static final int __ORDERID_ISSET_ID = 0;
|
| 2697 |
chandransh |
160 |
private static final int __WAREHOUSEID_ISSET_ID = 1;
|
|
|
161 |
private static final int __JACKETNUMBER_ISSET_ID = 2;
|
|
|
162 |
private static final int __ITEMID_ISSET_ID = 3;
|
|
|
163 |
private static final int __TOTALPRICE_ISSET_ID = 4;
|
|
|
164 |
private static final int __TRANSFERPRICE_ISSET_ID = 5;
|
|
|
165 |
private static final int __PROCESSEDSTATUS_ISSET_ID = 6;
|
|
|
166 |
private static final int __CREATEDAT_ISSET_ID = 7;
|
|
|
167 |
private static final int __PROCESSEDAT_ISSET_ID = 8;
|
|
|
168 |
private BitSet __isset_bit_vector = new BitSet(9);
|
| 2690 |
chandransh |
169 |
|
| 3430 |
rajveer |
170 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 2690 |
chandransh |
171 |
static {
|
| 3430 |
rajveer |
172 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
173 |
tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
174 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
175 |
tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
176 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
177 |
tmpMap.put(_Fields.JACKET_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("jacketNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
178 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
179 |
tmpMap.put(_Fields.INVOICE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("invoiceNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
180 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
181 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
182 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
183 |
tmpMap.put(_Fields.PRODUCT_GROUP, new org.apache.thrift.meta_data.FieldMetaData("productGroup", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
184 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
185 |
tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
186 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
187 |
tmpMap.put(_Fields.MODEL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("modelNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
188 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
189 |
tmpMap.put(_Fields.MODEL_NAME, new org.apache.thrift.meta_data.FieldMetaData("modelName", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
190 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
191 |
tmpMap.put(_Fields.COLOR, new org.apache.thrift.meta_data.FieldMetaData("color", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
192 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
193 |
tmpMap.put(_Fields.TOTAL_PRICE, new org.apache.thrift.meta_data.FieldMetaData("totalPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
194 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
195 |
tmpMap.put(_Fields.TRANSFER_PRICE, new org.apache.thrift.meta_data.FieldMetaData("transferPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
196 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
197 |
tmpMap.put(_Fields.PROCESSED_STATUS, new org.apache.thrift.meta_data.FieldMetaData("processedStatus", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
198 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
|
|
199 |
tmpMap.put(_Fields.CREATED_AT, new org.apache.thrift.meta_data.FieldMetaData("createdAt", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
200 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
201 |
tmpMap.put(_Fields.PROCESSED_AT, new org.apache.thrift.meta_data.FieldMetaData("processedAt", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
202 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
203 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
204 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ReturnOrder.class, metaDataMap);
|
| 2690 |
chandransh |
205 |
}
|
|
|
206 |
|
|
|
207 |
public ReturnOrder() {
|
|
|
208 |
}
|
|
|
209 |
|
|
|
210 |
public ReturnOrder(
|
|
|
211 |
long orderId,
|
| 2697 |
chandransh |
212 |
long warehouseId,
|
| 2690 |
chandransh |
213 |
long jacketNumber,
|
|
|
214 |
String invoiceNumber,
|
|
|
215 |
long itemId,
|
|
|
216 |
String productGroup,
|
|
|
217 |
String brand,
|
|
|
218 |
String modelNumber,
|
|
|
219 |
String modelName,
|
|
|
220 |
String color,
|
|
|
221 |
double totalPrice,
|
|
|
222 |
double transferPrice,
|
|
|
223 |
boolean processedStatus,
|
|
|
224 |
long createdAt,
|
|
|
225 |
long processedAt)
|
|
|
226 |
{
|
|
|
227 |
this();
|
|
|
228 |
this.orderId = orderId;
|
|
|
229 |
setOrderIdIsSet(true);
|
| 2697 |
chandransh |
230 |
this.warehouseId = warehouseId;
|
|
|
231 |
setWarehouseIdIsSet(true);
|
| 2690 |
chandransh |
232 |
this.jacketNumber = jacketNumber;
|
|
|
233 |
setJacketNumberIsSet(true);
|
|
|
234 |
this.invoiceNumber = invoiceNumber;
|
|
|
235 |
this.itemId = itemId;
|
|
|
236 |
setItemIdIsSet(true);
|
|
|
237 |
this.productGroup = productGroup;
|
|
|
238 |
this.brand = brand;
|
|
|
239 |
this.modelNumber = modelNumber;
|
|
|
240 |
this.modelName = modelName;
|
|
|
241 |
this.color = color;
|
|
|
242 |
this.totalPrice = totalPrice;
|
|
|
243 |
setTotalPriceIsSet(true);
|
|
|
244 |
this.transferPrice = transferPrice;
|
|
|
245 |
setTransferPriceIsSet(true);
|
|
|
246 |
this.processedStatus = processedStatus;
|
|
|
247 |
setProcessedStatusIsSet(true);
|
|
|
248 |
this.createdAt = createdAt;
|
|
|
249 |
setCreatedAtIsSet(true);
|
|
|
250 |
this.processedAt = processedAt;
|
|
|
251 |
setProcessedAtIsSet(true);
|
|
|
252 |
}
|
|
|
253 |
|
|
|
254 |
/**
|
|
|
255 |
* Performs a deep copy on <i>other</i>.
|
|
|
256 |
*/
|
|
|
257 |
public ReturnOrder(ReturnOrder other) {
|
|
|
258 |
__isset_bit_vector.clear();
|
|
|
259 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
260 |
this.orderId = other.orderId;
|
| 2697 |
chandransh |
261 |
this.warehouseId = other.warehouseId;
|
| 2690 |
chandransh |
262 |
this.jacketNumber = other.jacketNumber;
|
|
|
263 |
if (other.isSetInvoiceNumber()) {
|
|
|
264 |
this.invoiceNumber = other.invoiceNumber;
|
|
|
265 |
}
|
|
|
266 |
this.itemId = other.itemId;
|
|
|
267 |
if (other.isSetProductGroup()) {
|
|
|
268 |
this.productGroup = other.productGroup;
|
|
|
269 |
}
|
|
|
270 |
if (other.isSetBrand()) {
|
|
|
271 |
this.brand = other.brand;
|
|
|
272 |
}
|
|
|
273 |
if (other.isSetModelNumber()) {
|
|
|
274 |
this.modelNumber = other.modelNumber;
|
|
|
275 |
}
|
|
|
276 |
if (other.isSetModelName()) {
|
|
|
277 |
this.modelName = other.modelName;
|
|
|
278 |
}
|
|
|
279 |
if (other.isSetColor()) {
|
|
|
280 |
this.color = other.color;
|
|
|
281 |
}
|
|
|
282 |
this.totalPrice = other.totalPrice;
|
|
|
283 |
this.transferPrice = other.transferPrice;
|
|
|
284 |
this.processedStatus = other.processedStatus;
|
|
|
285 |
this.createdAt = other.createdAt;
|
|
|
286 |
this.processedAt = other.processedAt;
|
|
|
287 |
}
|
|
|
288 |
|
|
|
289 |
public ReturnOrder deepCopy() {
|
|
|
290 |
return new ReturnOrder(this);
|
|
|
291 |
}
|
|
|
292 |
|
| 3430 |
rajveer |
293 |
@Override
|
|
|
294 |
public void clear() {
|
|
|
295 |
setOrderIdIsSet(false);
|
|
|
296 |
this.orderId = 0;
|
|
|
297 |
setWarehouseIdIsSet(false);
|
|
|
298 |
this.warehouseId = 0;
|
|
|
299 |
setJacketNumberIsSet(false);
|
|
|
300 |
this.jacketNumber = 0;
|
|
|
301 |
this.invoiceNumber = null;
|
|
|
302 |
setItemIdIsSet(false);
|
|
|
303 |
this.itemId = 0;
|
|
|
304 |
this.productGroup = null;
|
|
|
305 |
this.brand = null;
|
|
|
306 |
this.modelNumber = null;
|
|
|
307 |
this.modelName = null;
|
|
|
308 |
this.color = null;
|
|
|
309 |
setTotalPriceIsSet(false);
|
|
|
310 |
this.totalPrice = 0.0;
|
|
|
311 |
setTransferPriceIsSet(false);
|
|
|
312 |
this.transferPrice = 0.0;
|
|
|
313 |
setProcessedStatusIsSet(false);
|
|
|
314 |
this.processedStatus = false;
|
|
|
315 |
setCreatedAtIsSet(false);
|
|
|
316 |
this.createdAt = 0;
|
|
|
317 |
setProcessedAtIsSet(false);
|
|
|
318 |
this.processedAt = 0;
|
| 2690 |
chandransh |
319 |
}
|
|
|
320 |
|
|
|
321 |
public long getOrderId() {
|
|
|
322 |
return this.orderId;
|
|
|
323 |
}
|
|
|
324 |
|
| 3430 |
rajveer |
325 |
public void setOrderId(long orderId) {
|
| 2690 |
chandransh |
326 |
this.orderId = orderId;
|
|
|
327 |
setOrderIdIsSet(true);
|
|
|
328 |
}
|
|
|
329 |
|
|
|
330 |
public void unsetOrderId() {
|
|
|
331 |
__isset_bit_vector.clear(__ORDERID_ISSET_ID);
|
|
|
332 |
}
|
|
|
333 |
|
| 3430 |
rajveer |
334 |
/** Returns true if field orderId is set (has been assigned a value) and false otherwise */
|
| 2690 |
chandransh |
335 |
public boolean isSetOrderId() {
|
|
|
336 |
return __isset_bit_vector.get(__ORDERID_ISSET_ID);
|
|
|
337 |
}
|
|
|
338 |
|
|
|
339 |
public void setOrderIdIsSet(boolean value) {
|
|
|
340 |
__isset_bit_vector.set(__ORDERID_ISSET_ID, value);
|
|
|
341 |
}
|
|
|
342 |
|
| 2697 |
chandransh |
343 |
public long getWarehouseId() {
|
|
|
344 |
return this.warehouseId;
|
|
|
345 |
}
|
|
|
346 |
|
| 3430 |
rajveer |
347 |
public void setWarehouseId(long warehouseId) {
|
| 2697 |
chandransh |
348 |
this.warehouseId = warehouseId;
|
|
|
349 |
setWarehouseIdIsSet(true);
|
|
|
350 |
}
|
|
|
351 |
|
|
|
352 |
public void unsetWarehouseId() {
|
|
|
353 |
__isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
|
|
|
354 |
}
|
|
|
355 |
|
| 3430 |
rajveer |
356 |
/** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
|
| 2697 |
chandransh |
357 |
public boolean isSetWarehouseId() {
|
|
|
358 |
return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
|
|
|
359 |
}
|
|
|
360 |
|
|
|
361 |
public void setWarehouseIdIsSet(boolean value) {
|
|
|
362 |
__isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
|
|
|
363 |
}
|
|
|
364 |
|
| 2690 |
chandransh |
365 |
public long getJacketNumber() {
|
|
|
366 |
return this.jacketNumber;
|
|
|
367 |
}
|
|
|
368 |
|
| 3430 |
rajveer |
369 |
public void setJacketNumber(long jacketNumber) {
|
| 2690 |
chandransh |
370 |
this.jacketNumber = jacketNumber;
|
|
|
371 |
setJacketNumberIsSet(true);
|
|
|
372 |
}
|
|
|
373 |
|
|
|
374 |
public void unsetJacketNumber() {
|
|
|
375 |
__isset_bit_vector.clear(__JACKETNUMBER_ISSET_ID);
|
|
|
376 |
}
|
|
|
377 |
|
| 3430 |
rajveer |
378 |
/** Returns true if field jacketNumber is set (has been assigned a value) and false otherwise */
|
| 2690 |
chandransh |
379 |
public boolean isSetJacketNumber() {
|
|
|
380 |
return __isset_bit_vector.get(__JACKETNUMBER_ISSET_ID);
|
|
|
381 |
}
|
|
|
382 |
|
|
|
383 |
public void setJacketNumberIsSet(boolean value) {
|
|
|
384 |
__isset_bit_vector.set(__JACKETNUMBER_ISSET_ID, value);
|
|
|
385 |
}
|
|
|
386 |
|
|
|
387 |
public String getInvoiceNumber() {
|
|
|
388 |
return this.invoiceNumber;
|
|
|
389 |
}
|
|
|
390 |
|
| 3430 |
rajveer |
391 |
public void setInvoiceNumber(String invoiceNumber) {
|
| 2690 |
chandransh |
392 |
this.invoiceNumber = invoiceNumber;
|
|
|
393 |
}
|
|
|
394 |
|
|
|
395 |
public void unsetInvoiceNumber() {
|
|
|
396 |
this.invoiceNumber = null;
|
|
|
397 |
}
|
|
|
398 |
|
| 3430 |
rajveer |
399 |
/** Returns true if field invoiceNumber is set (has been assigned a value) and false otherwise */
|
| 2690 |
chandransh |
400 |
public boolean isSetInvoiceNumber() {
|
|
|
401 |
return this.invoiceNumber != null;
|
|
|
402 |
}
|
|
|
403 |
|
|
|
404 |
public void setInvoiceNumberIsSet(boolean value) {
|
|
|
405 |
if (!value) {
|
|
|
406 |
this.invoiceNumber = null;
|
|
|
407 |
}
|
|
|
408 |
}
|
|
|
409 |
|
|
|
410 |
public long getItemId() {
|
|
|
411 |
return this.itemId;
|
|
|
412 |
}
|
|
|
413 |
|
| 3430 |
rajveer |
414 |
public void setItemId(long itemId) {
|
| 2690 |
chandransh |
415 |
this.itemId = itemId;
|
|
|
416 |
setItemIdIsSet(true);
|
|
|
417 |
}
|
|
|
418 |
|
|
|
419 |
public void unsetItemId() {
|
|
|
420 |
__isset_bit_vector.clear(__ITEMID_ISSET_ID);
|
|
|
421 |
}
|
|
|
422 |
|
| 3430 |
rajveer |
423 |
/** Returns true if field itemId is set (has been assigned a value) and false otherwise */
|
| 2690 |
chandransh |
424 |
public boolean isSetItemId() {
|
|
|
425 |
return __isset_bit_vector.get(__ITEMID_ISSET_ID);
|
|
|
426 |
}
|
|
|
427 |
|
|
|
428 |
public void setItemIdIsSet(boolean value) {
|
|
|
429 |
__isset_bit_vector.set(__ITEMID_ISSET_ID, value);
|
|
|
430 |
}
|
|
|
431 |
|
|
|
432 |
public String getProductGroup() {
|
|
|
433 |
return this.productGroup;
|
|
|
434 |
}
|
|
|
435 |
|
| 3430 |
rajveer |
436 |
public void setProductGroup(String productGroup) {
|
| 2690 |
chandransh |
437 |
this.productGroup = productGroup;
|
|
|
438 |
}
|
|
|
439 |
|
|
|
440 |
public void unsetProductGroup() {
|
|
|
441 |
this.productGroup = null;
|
|
|
442 |
}
|
|
|
443 |
|
| 3430 |
rajveer |
444 |
/** Returns true if field productGroup is set (has been assigned a value) and false otherwise */
|
| 2690 |
chandransh |
445 |
public boolean isSetProductGroup() {
|
|
|
446 |
return this.productGroup != null;
|
|
|
447 |
}
|
|
|
448 |
|
|
|
449 |
public void setProductGroupIsSet(boolean value) {
|
|
|
450 |
if (!value) {
|
|
|
451 |
this.productGroup = null;
|
|
|
452 |
}
|
|
|
453 |
}
|
|
|
454 |
|
|
|
455 |
public String getBrand() {
|
|
|
456 |
return this.brand;
|
|
|
457 |
}
|
|
|
458 |
|
| 3430 |
rajveer |
459 |
public void setBrand(String brand) {
|
| 2690 |
chandransh |
460 |
this.brand = brand;
|
|
|
461 |
}
|
|
|
462 |
|
|
|
463 |
public void unsetBrand() {
|
|
|
464 |
this.brand = null;
|
|
|
465 |
}
|
|
|
466 |
|
| 3430 |
rajveer |
467 |
/** Returns true if field brand is set (has been assigned a value) and false otherwise */
|
| 2690 |
chandransh |
468 |
public boolean isSetBrand() {
|
|
|
469 |
return this.brand != null;
|
|
|
470 |
}
|
|
|
471 |
|
|
|
472 |
public void setBrandIsSet(boolean value) {
|
|
|
473 |
if (!value) {
|
|
|
474 |
this.brand = null;
|
|
|
475 |
}
|
|
|
476 |
}
|
|
|
477 |
|
|
|
478 |
public String getModelNumber() {
|
|
|
479 |
return this.modelNumber;
|
|
|
480 |
}
|
|
|
481 |
|
| 3430 |
rajveer |
482 |
public void setModelNumber(String modelNumber) {
|
| 2690 |
chandransh |
483 |
this.modelNumber = modelNumber;
|
|
|
484 |
}
|
|
|
485 |
|
|
|
486 |
public void unsetModelNumber() {
|
|
|
487 |
this.modelNumber = null;
|
|
|
488 |
}
|
|
|
489 |
|
| 3430 |
rajveer |
490 |
/** Returns true if field modelNumber is set (has been assigned a value) and false otherwise */
|
| 2690 |
chandransh |
491 |
public boolean isSetModelNumber() {
|
|
|
492 |
return this.modelNumber != null;
|
|
|
493 |
}
|
|
|
494 |
|
|
|
495 |
public void setModelNumberIsSet(boolean value) {
|
|
|
496 |
if (!value) {
|
|
|
497 |
this.modelNumber = null;
|
|
|
498 |
}
|
|
|
499 |
}
|
|
|
500 |
|
|
|
501 |
public String getModelName() {
|
|
|
502 |
return this.modelName;
|
|
|
503 |
}
|
|
|
504 |
|
| 3430 |
rajveer |
505 |
public void setModelName(String modelName) {
|
| 2690 |
chandransh |
506 |
this.modelName = modelName;
|
|
|
507 |
}
|
|
|
508 |
|
|
|
509 |
public void unsetModelName() {
|
|
|
510 |
this.modelName = null;
|
|
|
511 |
}
|
|
|
512 |
|
| 3430 |
rajveer |
513 |
/** Returns true if field modelName is set (has been assigned a value) and false otherwise */
|
| 2690 |
chandransh |
514 |
public boolean isSetModelName() {
|
|
|
515 |
return this.modelName != null;
|
|
|
516 |
}
|
|
|
517 |
|
|
|
518 |
public void setModelNameIsSet(boolean value) {
|
|
|
519 |
if (!value) {
|
|
|
520 |
this.modelName = null;
|
|
|
521 |
}
|
|
|
522 |
}
|
|
|
523 |
|
|
|
524 |
public String getColor() {
|
|
|
525 |
return this.color;
|
|
|
526 |
}
|
|
|
527 |
|
| 3430 |
rajveer |
528 |
public void setColor(String color) {
|
| 2690 |
chandransh |
529 |
this.color = color;
|
|
|
530 |
}
|
|
|
531 |
|
|
|
532 |
public void unsetColor() {
|
|
|
533 |
this.color = null;
|
|
|
534 |
}
|
|
|
535 |
|
| 3430 |
rajveer |
536 |
/** Returns true if field color is set (has been assigned a value) and false otherwise */
|
| 2690 |
chandransh |
537 |
public boolean isSetColor() {
|
|
|
538 |
return this.color != null;
|
|
|
539 |
}
|
|
|
540 |
|
|
|
541 |
public void setColorIsSet(boolean value) {
|
|
|
542 |
if (!value) {
|
|
|
543 |
this.color = null;
|
|
|
544 |
}
|
|
|
545 |
}
|
|
|
546 |
|
|
|
547 |
public double getTotalPrice() {
|
|
|
548 |
return this.totalPrice;
|
|
|
549 |
}
|
|
|
550 |
|
| 3430 |
rajveer |
551 |
public void setTotalPrice(double totalPrice) {
|
| 2690 |
chandransh |
552 |
this.totalPrice = totalPrice;
|
|
|
553 |
setTotalPriceIsSet(true);
|
|
|
554 |
}
|
|
|
555 |
|
|
|
556 |
public void unsetTotalPrice() {
|
|
|
557 |
__isset_bit_vector.clear(__TOTALPRICE_ISSET_ID);
|
|
|
558 |
}
|
|
|
559 |
|
| 3430 |
rajveer |
560 |
/** Returns true if field totalPrice is set (has been assigned a value) and false otherwise */
|
| 2690 |
chandransh |
561 |
public boolean isSetTotalPrice() {
|
|
|
562 |
return __isset_bit_vector.get(__TOTALPRICE_ISSET_ID);
|
|
|
563 |
}
|
|
|
564 |
|
|
|
565 |
public void setTotalPriceIsSet(boolean value) {
|
|
|
566 |
__isset_bit_vector.set(__TOTALPRICE_ISSET_ID, value);
|
|
|
567 |
}
|
|
|
568 |
|
|
|
569 |
public double getTransferPrice() {
|
|
|
570 |
return this.transferPrice;
|
|
|
571 |
}
|
|
|
572 |
|
| 3430 |
rajveer |
573 |
public void setTransferPrice(double transferPrice) {
|
| 2690 |
chandransh |
574 |
this.transferPrice = transferPrice;
|
|
|
575 |
setTransferPriceIsSet(true);
|
|
|
576 |
}
|
|
|
577 |
|
|
|
578 |
public void unsetTransferPrice() {
|
|
|
579 |
__isset_bit_vector.clear(__TRANSFERPRICE_ISSET_ID);
|
|
|
580 |
}
|
|
|
581 |
|
| 3430 |
rajveer |
582 |
/** Returns true if field transferPrice is set (has been assigned a value) and false otherwise */
|
| 2690 |
chandransh |
583 |
public boolean isSetTransferPrice() {
|
|
|
584 |
return __isset_bit_vector.get(__TRANSFERPRICE_ISSET_ID);
|
|
|
585 |
}
|
|
|
586 |
|
|
|
587 |
public void setTransferPriceIsSet(boolean value) {
|
|
|
588 |
__isset_bit_vector.set(__TRANSFERPRICE_ISSET_ID, value);
|
|
|
589 |
}
|
|
|
590 |
|
|
|
591 |
public boolean isProcessedStatus() {
|
|
|
592 |
return this.processedStatus;
|
|
|
593 |
}
|
|
|
594 |
|
| 3430 |
rajveer |
595 |
public void setProcessedStatus(boolean processedStatus) {
|
| 2690 |
chandransh |
596 |
this.processedStatus = processedStatus;
|
|
|
597 |
setProcessedStatusIsSet(true);
|
|
|
598 |
}
|
|
|
599 |
|
|
|
600 |
public void unsetProcessedStatus() {
|
|
|
601 |
__isset_bit_vector.clear(__PROCESSEDSTATUS_ISSET_ID);
|
|
|
602 |
}
|
|
|
603 |
|
| 3430 |
rajveer |
604 |
/** Returns true if field processedStatus is set (has been assigned a value) and false otherwise */
|
| 2690 |
chandransh |
605 |
public boolean isSetProcessedStatus() {
|
|
|
606 |
return __isset_bit_vector.get(__PROCESSEDSTATUS_ISSET_ID);
|
|
|
607 |
}
|
|
|
608 |
|
|
|
609 |
public void setProcessedStatusIsSet(boolean value) {
|
|
|
610 |
__isset_bit_vector.set(__PROCESSEDSTATUS_ISSET_ID, value);
|
|
|
611 |
}
|
|
|
612 |
|
|
|
613 |
public long getCreatedAt() {
|
|
|
614 |
return this.createdAt;
|
|
|
615 |
}
|
|
|
616 |
|
| 3430 |
rajveer |
617 |
public void setCreatedAt(long createdAt) {
|
| 2690 |
chandransh |
618 |
this.createdAt = createdAt;
|
|
|
619 |
setCreatedAtIsSet(true);
|
|
|
620 |
}
|
|
|
621 |
|
|
|
622 |
public void unsetCreatedAt() {
|
|
|
623 |
__isset_bit_vector.clear(__CREATEDAT_ISSET_ID);
|
|
|
624 |
}
|
|
|
625 |
|
| 3430 |
rajveer |
626 |
/** Returns true if field createdAt is set (has been assigned a value) and false otherwise */
|
| 2690 |
chandransh |
627 |
public boolean isSetCreatedAt() {
|
|
|
628 |
return __isset_bit_vector.get(__CREATEDAT_ISSET_ID);
|
|
|
629 |
}
|
|
|
630 |
|
|
|
631 |
public void setCreatedAtIsSet(boolean value) {
|
|
|
632 |
__isset_bit_vector.set(__CREATEDAT_ISSET_ID, value);
|
|
|
633 |
}
|
|
|
634 |
|
|
|
635 |
public long getProcessedAt() {
|
|
|
636 |
return this.processedAt;
|
|
|
637 |
}
|
|
|
638 |
|
| 3430 |
rajveer |
639 |
public void setProcessedAt(long processedAt) {
|
| 2690 |
chandransh |
640 |
this.processedAt = processedAt;
|
|
|
641 |
setProcessedAtIsSet(true);
|
|
|
642 |
}
|
|
|
643 |
|
|
|
644 |
public void unsetProcessedAt() {
|
|
|
645 |
__isset_bit_vector.clear(__PROCESSEDAT_ISSET_ID);
|
|
|
646 |
}
|
|
|
647 |
|
| 3430 |
rajveer |
648 |
/** Returns true if field processedAt is set (has been assigned a value) and false otherwise */
|
| 2690 |
chandransh |
649 |
public boolean isSetProcessedAt() {
|
|
|
650 |
return __isset_bit_vector.get(__PROCESSEDAT_ISSET_ID);
|
|
|
651 |
}
|
|
|
652 |
|
|
|
653 |
public void setProcessedAtIsSet(boolean value) {
|
|
|
654 |
__isset_bit_vector.set(__PROCESSEDAT_ISSET_ID, value);
|
|
|
655 |
}
|
|
|
656 |
|
|
|
657 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
658 |
switch (field) {
|
|
|
659 |
case ORDER_ID:
|
|
|
660 |
if (value == null) {
|
|
|
661 |
unsetOrderId();
|
|
|
662 |
} else {
|
|
|
663 |
setOrderId((Long)value);
|
|
|
664 |
}
|
|
|
665 |
break;
|
|
|
666 |
|
| 2697 |
chandransh |
667 |
case WAREHOUSE_ID:
|
|
|
668 |
if (value == null) {
|
|
|
669 |
unsetWarehouseId();
|
|
|
670 |
} else {
|
|
|
671 |
setWarehouseId((Long)value);
|
|
|
672 |
}
|
|
|
673 |
break;
|
|
|
674 |
|
| 2690 |
chandransh |
675 |
case JACKET_NUMBER:
|
|
|
676 |
if (value == null) {
|
|
|
677 |
unsetJacketNumber();
|
|
|
678 |
} else {
|
|
|
679 |
setJacketNumber((Long)value);
|
|
|
680 |
}
|
|
|
681 |
break;
|
|
|
682 |
|
|
|
683 |
case INVOICE_NUMBER:
|
|
|
684 |
if (value == null) {
|
|
|
685 |
unsetInvoiceNumber();
|
|
|
686 |
} else {
|
|
|
687 |
setInvoiceNumber((String)value);
|
|
|
688 |
}
|
|
|
689 |
break;
|
|
|
690 |
|
|
|
691 |
case ITEM_ID:
|
|
|
692 |
if (value == null) {
|
|
|
693 |
unsetItemId();
|
|
|
694 |
} else {
|
|
|
695 |
setItemId((Long)value);
|
|
|
696 |
}
|
|
|
697 |
break;
|
|
|
698 |
|
|
|
699 |
case PRODUCT_GROUP:
|
|
|
700 |
if (value == null) {
|
|
|
701 |
unsetProductGroup();
|
|
|
702 |
} else {
|
|
|
703 |
setProductGroup((String)value);
|
|
|
704 |
}
|
|
|
705 |
break;
|
|
|
706 |
|
|
|
707 |
case BRAND:
|
|
|
708 |
if (value == null) {
|
|
|
709 |
unsetBrand();
|
|
|
710 |
} else {
|
|
|
711 |
setBrand((String)value);
|
|
|
712 |
}
|
|
|
713 |
break;
|
|
|
714 |
|
|
|
715 |
case MODEL_NUMBER:
|
|
|
716 |
if (value == null) {
|
|
|
717 |
unsetModelNumber();
|
|
|
718 |
} else {
|
|
|
719 |
setModelNumber((String)value);
|
|
|
720 |
}
|
|
|
721 |
break;
|
|
|
722 |
|
|
|
723 |
case MODEL_NAME:
|
|
|
724 |
if (value == null) {
|
|
|
725 |
unsetModelName();
|
|
|
726 |
} else {
|
|
|
727 |
setModelName((String)value);
|
|
|
728 |
}
|
|
|
729 |
break;
|
|
|
730 |
|
|
|
731 |
case COLOR:
|
|
|
732 |
if (value == null) {
|
|
|
733 |
unsetColor();
|
|
|
734 |
} else {
|
|
|
735 |
setColor((String)value);
|
|
|
736 |
}
|
|
|
737 |
break;
|
|
|
738 |
|
|
|
739 |
case TOTAL_PRICE:
|
|
|
740 |
if (value == null) {
|
|
|
741 |
unsetTotalPrice();
|
|
|
742 |
} else {
|
|
|
743 |
setTotalPrice((Double)value);
|
|
|
744 |
}
|
|
|
745 |
break;
|
|
|
746 |
|
|
|
747 |
case TRANSFER_PRICE:
|
|
|
748 |
if (value == null) {
|
|
|
749 |
unsetTransferPrice();
|
|
|
750 |
} else {
|
|
|
751 |
setTransferPrice((Double)value);
|
|
|
752 |
}
|
|
|
753 |
break;
|
|
|
754 |
|
|
|
755 |
case PROCESSED_STATUS:
|
|
|
756 |
if (value == null) {
|
|
|
757 |
unsetProcessedStatus();
|
|
|
758 |
} else {
|
|
|
759 |
setProcessedStatus((Boolean)value);
|
|
|
760 |
}
|
|
|
761 |
break;
|
|
|
762 |
|
|
|
763 |
case CREATED_AT:
|
|
|
764 |
if (value == null) {
|
|
|
765 |
unsetCreatedAt();
|
|
|
766 |
} else {
|
|
|
767 |
setCreatedAt((Long)value);
|
|
|
768 |
}
|
|
|
769 |
break;
|
|
|
770 |
|
|
|
771 |
case PROCESSED_AT:
|
|
|
772 |
if (value == null) {
|
|
|
773 |
unsetProcessedAt();
|
|
|
774 |
} else {
|
|
|
775 |
setProcessedAt((Long)value);
|
|
|
776 |
}
|
|
|
777 |
break;
|
|
|
778 |
|
|
|
779 |
}
|
|
|
780 |
}
|
|
|
781 |
|
|
|
782 |
public Object getFieldValue(_Fields field) {
|
|
|
783 |
switch (field) {
|
|
|
784 |
case ORDER_ID:
|
| 3430 |
rajveer |
785 |
return Long.valueOf(getOrderId());
|
| 2690 |
chandransh |
786 |
|
| 2697 |
chandransh |
787 |
case WAREHOUSE_ID:
|
| 3430 |
rajveer |
788 |
return Long.valueOf(getWarehouseId());
|
| 2697 |
chandransh |
789 |
|
| 2690 |
chandransh |
790 |
case JACKET_NUMBER:
|
| 3430 |
rajveer |
791 |
return Long.valueOf(getJacketNumber());
|
| 2690 |
chandransh |
792 |
|
|
|
793 |
case INVOICE_NUMBER:
|
|
|
794 |
return getInvoiceNumber();
|
|
|
795 |
|
|
|
796 |
case ITEM_ID:
|
| 3430 |
rajveer |
797 |
return Long.valueOf(getItemId());
|
| 2690 |
chandransh |
798 |
|
|
|
799 |
case PRODUCT_GROUP:
|
|
|
800 |
return getProductGroup();
|
|
|
801 |
|
|
|
802 |
case BRAND:
|
|
|
803 |
return getBrand();
|
|
|
804 |
|
|
|
805 |
case MODEL_NUMBER:
|
|
|
806 |
return getModelNumber();
|
|
|
807 |
|
|
|
808 |
case MODEL_NAME:
|
|
|
809 |
return getModelName();
|
|
|
810 |
|
|
|
811 |
case COLOR:
|
|
|
812 |
return getColor();
|
|
|
813 |
|
|
|
814 |
case TOTAL_PRICE:
|
| 3430 |
rajveer |
815 |
return Double.valueOf(getTotalPrice());
|
| 2690 |
chandransh |
816 |
|
|
|
817 |
case TRANSFER_PRICE:
|
| 3430 |
rajveer |
818 |
return Double.valueOf(getTransferPrice());
|
| 2690 |
chandransh |
819 |
|
|
|
820 |
case PROCESSED_STATUS:
|
| 3430 |
rajveer |
821 |
return Boolean.valueOf(isProcessedStatus());
|
| 2690 |
chandransh |
822 |
|
|
|
823 |
case CREATED_AT:
|
| 3430 |
rajveer |
824 |
return Long.valueOf(getCreatedAt());
|
| 2690 |
chandransh |
825 |
|
|
|
826 |
case PROCESSED_AT:
|
| 3430 |
rajveer |
827 |
return Long.valueOf(getProcessedAt());
|
| 2690 |
chandransh |
828 |
|
|
|
829 |
}
|
|
|
830 |
throw new IllegalStateException();
|
|
|
831 |
}
|
|
|
832 |
|
| 3430 |
rajveer |
833 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
834 |
public boolean isSet(_Fields field) {
|
|
|
835 |
if (field == null) {
|
|
|
836 |
throw new IllegalArgumentException();
|
|
|
837 |
}
|
| 2690 |
chandransh |
838 |
|
|
|
839 |
switch (field) {
|
|
|
840 |
case ORDER_ID:
|
|
|
841 |
return isSetOrderId();
|
| 2697 |
chandransh |
842 |
case WAREHOUSE_ID:
|
|
|
843 |
return isSetWarehouseId();
|
| 2690 |
chandransh |
844 |
case JACKET_NUMBER:
|
|
|
845 |
return isSetJacketNumber();
|
|
|
846 |
case INVOICE_NUMBER:
|
|
|
847 |
return isSetInvoiceNumber();
|
|
|
848 |
case ITEM_ID:
|
|
|
849 |
return isSetItemId();
|
|
|
850 |
case PRODUCT_GROUP:
|
|
|
851 |
return isSetProductGroup();
|
|
|
852 |
case BRAND:
|
|
|
853 |
return isSetBrand();
|
|
|
854 |
case MODEL_NUMBER:
|
|
|
855 |
return isSetModelNumber();
|
|
|
856 |
case MODEL_NAME:
|
|
|
857 |
return isSetModelName();
|
|
|
858 |
case COLOR:
|
|
|
859 |
return isSetColor();
|
|
|
860 |
case TOTAL_PRICE:
|
|
|
861 |
return isSetTotalPrice();
|
|
|
862 |
case TRANSFER_PRICE:
|
|
|
863 |
return isSetTransferPrice();
|
|
|
864 |
case PROCESSED_STATUS:
|
|
|
865 |
return isSetProcessedStatus();
|
|
|
866 |
case CREATED_AT:
|
|
|
867 |
return isSetCreatedAt();
|
|
|
868 |
case PROCESSED_AT:
|
|
|
869 |
return isSetProcessedAt();
|
|
|
870 |
}
|
|
|
871 |
throw new IllegalStateException();
|
|
|
872 |
}
|
|
|
873 |
|
|
|
874 |
@Override
|
|
|
875 |
public boolean equals(Object that) {
|
|
|
876 |
if (that == null)
|
|
|
877 |
return false;
|
|
|
878 |
if (that instanceof ReturnOrder)
|
|
|
879 |
return this.equals((ReturnOrder)that);
|
|
|
880 |
return false;
|
|
|
881 |
}
|
|
|
882 |
|
|
|
883 |
public boolean equals(ReturnOrder that) {
|
|
|
884 |
if (that == null)
|
|
|
885 |
return false;
|
|
|
886 |
|
|
|
887 |
boolean this_present_orderId = true;
|
|
|
888 |
boolean that_present_orderId = true;
|
|
|
889 |
if (this_present_orderId || that_present_orderId) {
|
|
|
890 |
if (!(this_present_orderId && that_present_orderId))
|
|
|
891 |
return false;
|
|
|
892 |
if (this.orderId != that.orderId)
|
|
|
893 |
return false;
|
|
|
894 |
}
|
|
|
895 |
|
| 2697 |
chandransh |
896 |
boolean this_present_warehouseId = true;
|
|
|
897 |
boolean that_present_warehouseId = true;
|
|
|
898 |
if (this_present_warehouseId || that_present_warehouseId) {
|
|
|
899 |
if (!(this_present_warehouseId && that_present_warehouseId))
|
|
|
900 |
return false;
|
|
|
901 |
if (this.warehouseId != that.warehouseId)
|
|
|
902 |
return false;
|
|
|
903 |
}
|
|
|
904 |
|
| 2690 |
chandransh |
905 |
boolean this_present_jacketNumber = true;
|
|
|
906 |
boolean that_present_jacketNumber = true;
|
|
|
907 |
if (this_present_jacketNumber || that_present_jacketNumber) {
|
|
|
908 |
if (!(this_present_jacketNumber && that_present_jacketNumber))
|
|
|
909 |
return false;
|
|
|
910 |
if (this.jacketNumber != that.jacketNumber)
|
|
|
911 |
return false;
|
|
|
912 |
}
|
|
|
913 |
|
|
|
914 |
boolean this_present_invoiceNumber = true && this.isSetInvoiceNumber();
|
|
|
915 |
boolean that_present_invoiceNumber = true && that.isSetInvoiceNumber();
|
|
|
916 |
if (this_present_invoiceNumber || that_present_invoiceNumber) {
|
|
|
917 |
if (!(this_present_invoiceNumber && that_present_invoiceNumber))
|
|
|
918 |
return false;
|
|
|
919 |
if (!this.invoiceNumber.equals(that.invoiceNumber))
|
|
|
920 |
return false;
|
|
|
921 |
}
|
|
|
922 |
|
|
|
923 |
boolean this_present_itemId = true;
|
|
|
924 |
boolean that_present_itemId = true;
|
|
|
925 |
if (this_present_itemId || that_present_itemId) {
|
|
|
926 |
if (!(this_present_itemId && that_present_itemId))
|
|
|
927 |
return false;
|
|
|
928 |
if (this.itemId != that.itemId)
|
|
|
929 |
return false;
|
|
|
930 |
}
|
|
|
931 |
|
|
|
932 |
boolean this_present_productGroup = true && this.isSetProductGroup();
|
|
|
933 |
boolean that_present_productGroup = true && that.isSetProductGroup();
|
|
|
934 |
if (this_present_productGroup || that_present_productGroup) {
|
|
|
935 |
if (!(this_present_productGroup && that_present_productGroup))
|
|
|
936 |
return false;
|
|
|
937 |
if (!this.productGroup.equals(that.productGroup))
|
|
|
938 |
return false;
|
|
|
939 |
}
|
|
|
940 |
|
|
|
941 |
boolean this_present_brand = true && this.isSetBrand();
|
|
|
942 |
boolean that_present_brand = true && that.isSetBrand();
|
|
|
943 |
if (this_present_brand || that_present_brand) {
|
|
|
944 |
if (!(this_present_brand && that_present_brand))
|
|
|
945 |
return false;
|
|
|
946 |
if (!this.brand.equals(that.brand))
|
|
|
947 |
return false;
|
|
|
948 |
}
|
|
|
949 |
|
|
|
950 |
boolean this_present_modelNumber = true && this.isSetModelNumber();
|
|
|
951 |
boolean that_present_modelNumber = true && that.isSetModelNumber();
|
|
|
952 |
if (this_present_modelNumber || that_present_modelNumber) {
|
|
|
953 |
if (!(this_present_modelNumber && that_present_modelNumber))
|
|
|
954 |
return false;
|
|
|
955 |
if (!this.modelNumber.equals(that.modelNumber))
|
|
|
956 |
return false;
|
|
|
957 |
}
|
|
|
958 |
|
|
|
959 |
boolean this_present_modelName = true && this.isSetModelName();
|
|
|
960 |
boolean that_present_modelName = true && that.isSetModelName();
|
|
|
961 |
if (this_present_modelName || that_present_modelName) {
|
|
|
962 |
if (!(this_present_modelName && that_present_modelName))
|
|
|
963 |
return false;
|
|
|
964 |
if (!this.modelName.equals(that.modelName))
|
|
|
965 |
return false;
|
|
|
966 |
}
|
|
|
967 |
|
|
|
968 |
boolean this_present_color = true && this.isSetColor();
|
|
|
969 |
boolean that_present_color = true && that.isSetColor();
|
|
|
970 |
if (this_present_color || that_present_color) {
|
|
|
971 |
if (!(this_present_color && that_present_color))
|
|
|
972 |
return false;
|
|
|
973 |
if (!this.color.equals(that.color))
|
|
|
974 |
return false;
|
|
|
975 |
}
|
|
|
976 |
|
|
|
977 |
boolean this_present_totalPrice = true;
|
|
|
978 |
boolean that_present_totalPrice = true;
|
|
|
979 |
if (this_present_totalPrice || that_present_totalPrice) {
|
|
|
980 |
if (!(this_present_totalPrice && that_present_totalPrice))
|
|
|
981 |
return false;
|
|
|
982 |
if (this.totalPrice != that.totalPrice)
|
|
|
983 |
return false;
|
|
|
984 |
}
|
|
|
985 |
|
|
|
986 |
boolean this_present_transferPrice = true;
|
|
|
987 |
boolean that_present_transferPrice = true;
|
|
|
988 |
if (this_present_transferPrice || that_present_transferPrice) {
|
|
|
989 |
if (!(this_present_transferPrice && that_present_transferPrice))
|
|
|
990 |
return false;
|
|
|
991 |
if (this.transferPrice != that.transferPrice)
|
|
|
992 |
return false;
|
|
|
993 |
}
|
|
|
994 |
|
|
|
995 |
boolean this_present_processedStatus = true;
|
|
|
996 |
boolean that_present_processedStatus = true;
|
|
|
997 |
if (this_present_processedStatus || that_present_processedStatus) {
|
|
|
998 |
if (!(this_present_processedStatus && that_present_processedStatus))
|
|
|
999 |
return false;
|
|
|
1000 |
if (this.processedStatus != that.processedStatus)
|
|
|
1001 |
return false;
|
|
|
1002 |
}
|
|
|
1003 |
|
|
|
1004 |
boolean this_present_createdAt = true;
|
|
|
1005 |
boolean that_present_createdAt = true;
|
|
|
1006 |
if (this_present_createdAt || that_present_createdAt) {
|
|
|
1007 |
if (!(this_present_createdAt && that_present_createdAt))
|
|
|
1008 |
return false;
|
|
|
1009 |
if (this.createdAt != that.createdAt)
|
|
|
1010 |
return false;
|
|
|
1011 |
}
|
|
|
1012 |
|
|
|
1013 |
boolean this_present_processedAt = true;
|
|
|
1014 |
boolean that_present_processedAt = true;
|
|
|
1015 |
if (this_present_processedAt || that_present_processedAt) {
|
|
|
1016 |
if (!(this_present_processedAt && that_present_processedAt))
|
|
|
1017 |
return false;
|
|
|
1018 |
if (this.processedAt != that.processedAt)
|
|
|
1019 |
return false;
|
|
|
1020 |
}
|
|
|
1021 |
|
|
|
1022 |
return true;
|
|
|
1023 |
}
|
|
|
1024 |
|
|
|
1025 |
@Override
|
|
|
1026 |
public int hashCode() {
|
|
|
1027 |
return 0;
|
|
|
1028 |
}
|
|
|
1029 |
|
|
|
1030 |
public int compareTo(ReturnOrder other) {
|
|
|
1031 |
if (!getClass().equals(other.getClass())) {
|
|
|
1032 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
1033 |
}
|
|
|
1034 |
|
|
|
1035 |
int lastComparison = 0;
|
|
|
1036 |
ReturnOrder typedOther = (ReturnOrder)other;
|
|
|
1037 |
|
| 3430 |
rajveer |
1038 |
lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
|
| 2690 |
chandransh |
1039 |
if (lastComparison != 0) {
|
|
|
1040 |
return lastComparison;
|
|
|
1041 |
}
|
| 3430 |
rajveer |
1042 |
if (isSetOrderId()) {
|
|
|
1043 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
|
|
|
1044 |
if (lastComparison != 0) {
|
|
|
1045 |
return lastComparison;
|
|
|
1046 |
}
|
| 2690 |
chandransh |
1047 |
}
|
| 3430 |
rajveer |
1048 |
lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
|
| 2697 |
chandransh |
1049 |
if (lastComparison != 0) {
|
|
|
1050 |
return lastComparison;
|
|
|
1051 |
}
|
| 3430 |
rajveer |
1052 |
if (isSetWarehouseId()) {
|
|
|
1053 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
|
|
|
1054 |
if (lastComparison != 0) {
|
|
|
1055 |
return lastComparison;
|
|
|
1056 |
}
|
| 2697 |
chandransh |
1057 |
}
|
| 3430 |
rajveer |
1058 |
lastComparison = Boolean.valueOf(isSetJacketNumber()).compareTo(typedOther.isSetJacketNumber());
|
| 2690 |
chandransh |
1059 |
if (lastComparison != 0) {
|
|
|
1060 |
return lastComparison;
|
|
|
1061 |
}
|
| 3430 |
rajveer |
1062 |
if (isSetJacketNumber()) {
|
|
|
1063 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.jacketNumber, typedOther.jacketNumber);
|
|
|
1064 |
if (lastComparison != 0) {
|
|
|
1065 |
return lastComparison;
|
|
|
1066 |
}
|
| 2690 |
chandransh |
1067 |
}
|
| 3430 |
rajveer |
1068 |
lastComparison = Boolean.valueOf(isSetInvoiceNumber()).compareTo(typedOther.isSetInvoiceNumber());
|
| 2690 |
chandransh |
1069 |
if (lastComparison != 0) {
|
|
|
1070 |
return lastComparison;
|
|
|
1071 |
}
|
| 3430 |
rajveer |
1072 |
if (isSetInvoiceNumber()) {
|
|
|
1073 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.invoiceNumber, typedOther.invoiceNumber);
|
|
|
1074 |
if (lastComparison != 0) {
|
|
|
1075 |
return lastComparison;
|
|
|
1076 |
}
|
| 2690 |
chandransh |
1077 |
}
|
| 3430 |
rajveer |
1078 |
lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
|
| 2690 |
chandransh |
1079 |
if (lastComparison != 0) {
|
|
|
1080 |
return lastComparison;
|
|
|
1081 |
}
|
| 3430 |
rajveer |
1082 |
if (isSetItemId()) {
|
|
|
1083 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
|
|
|
1084 |
if (lastComparison != 0) {
|
|
|
1085 |
return lastComparison;
|
|
|
1086 |
}
|
| 2690 |
chandransh |
1087 |
}
|
| 3430 |
rajveer |
1088 |
lastComparison = Boolean.valueOf(isSetProductGroup()).compareTo(typedOther.isSetProductGroup());
|
| 2690 |
chandransh |
1089 |
if (lastComparison != 0) {
|
|
|
1090 |
return lastComparison;
|
|
|
1091 |
}
|
| 3430 |
rajveer |
1092 |
if (isSetProductGroup()) {
|
|
|
1093 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.productGroup, typedOther.productGroup);
|
|
|
1094 |
if (lastComparison != 0) {
|
|
|
1095 |
return lastComparison;
|
|
|
1096 |
}
|
| 2690 |
chandransh |
1097 |
}
|
| 3430 |
rajveer |
1098 |
lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());
|
| 2690 |
chandransh |
1099 |
if (lastComparison != 0) {
|
|
|
1100 |
return lastComparison;
|
|
|
1101 |
}
|
| 3430 |
rajveer |
1102 |
if (isSetBrand()) {
|
|
|
1103 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brand, typedOther.brand);
|
|
|
1104 |
if (lastComparison != 0) {
|
|
|
1105 |
return lastComparison;
|
|
|
1106 |
}
|
| 2690 |
chandransh |
1107 |
}
|
| 3430 |
rajveer |
1108 |
lastComparison = Boolean.valueOf(isSetModelNumber()).compareTo(typedOther.isSetModelNumber());
|
| 2690 |
chandransh |
1109 |
if (lastComparison != 0) {
|
|
|
1110 |
return lastComparison;
|
|
|
1111 |
}
|
| 3430 |
rajveer |
1112 |
if (isSetModelNumber()) {
|
|
|
1113 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modelNumber, typedOther.modelNumber);
|
|
|
1114 |
if (lastComparison != 0) {
|
|
|
1115 |
return lastComparison;
|
|
|
1116 |
}
|
| 2690 |
chandransh |
1117 |
}
|
| 3430 |
rajveer |
1118 |
lastComparison = Boolean.valueOf(isSetModelName()).compareTo(typedOther.isSetModelName());
|
| 2690 |
chandransh |
1119 |
if (lastComparison != 0) {
|
|
|
1120 |
return lastComparison;
|
|
|
1121 |
}
|
| 3430 |
rajveer |
1122 |
if (isSetModelName()) {
|
|
|
1123 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modelName, typedOther.modelName);
|
|
|
1124 |
if (lastComparison != 0) {
|
|
|
1125 |
return lastComparison;
|
|
|
1126 |
}
|
| 2690 |
chandransh |
1127 |
}
|
| 3430 |
rajveer |
1128 |
lastComparison = Boolean.valueOf(isSetColor()).compareTo(typedOther.isSetColor());
|
| 2690 |
chandransh |
1129 |
if (lastComparison != 0) {
|
|
|
1130 |
return lastComparison;
|
|
|
1131 |
}
|
| 3430 |
rajveer |
1132 |
if (isSetColor()) {
|
|
|
1133 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.color, typedOther.color);
|
|
|
1134 |
if (lastComparison != 0) {
|
|
|
1135 |
return lastComparison;
|
|
|
1136 |
}
|
| 2690 |
chandransh |
1137 |
}
|
| 3430 |
rajveer |
1138 |
lastComparison = Boolean.valueOf(isSetTotalPrice()).compareTo(typedOther.isSetTotalPrice());
|
| 2690 |
chandransh |
1139 |
if (lastComparison != 0) {
|
|
|
1140 |
return lastComparison;
|
|
|
1141 |
}
|
| 3430 |
rajveer |
1142 |
if (isSetTotalPrice()) {
|
|
|
1143 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalPrice, typedOther.totalPrice);
|
|
|
1144 |
if (lastComparison != 0) {
|
|
|
1145 |
return lastComparison;
|
|
|
1146 |
}
|
| 2690 |
chandransh |
1147 |
}
|
| 3430 |
rajveer |
1148 |
lastComparison = Boolean.valueOf(isSetTransferPrice()).compareTo(typedOther.isSetTransferPrice());
|
| 2690 |
chandransh |
1149 |
if (lastComparison != 0) {
|
|
|
1150 |
return lastComparison;
|
|
|
1151 |
}
|
| 3430 |
rajveer |
1152 |
if (isSetTransferPrice()) {
|
|
|
1153 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferPrice, typedOther.transferPrice);
|
|
|
1154 |
if (lastComparison != 0) {
|
|
|
1155 |
return lastComparison;
|
|
|
1156 |
}
|
| 2690 |
chandransh |
1157 |
}
|
| 3430 |
rajveer |
1158 |
lastComparison = Boolean.valueOf(isSetProcessedStatus()).compareTo(typedOther.isSetProcessedStatus());
|
| 2690 |
chandransh |
1159 |
if (lastComparison != 0) {
|
|
|
1160 |
return lastComparison;
|
|
|
1161 |
}
|
| 3430 |
rajveer |
1162 |
if (isSetProcessedStatus()) {
|
|
|
1163 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.processedStatus, typedOther.processedStatus);
|
|
|
1164 |
if (lastComparison != 0) {
|
|
|
1165 |
return lastComparison;
|
|
|
1166 |
}
|
| 2690 |
chandransh |
1167 |
}
|
| 3430 |
rajveer |
1168 |
lastComparison = Boolean.valueOf(isSetCreatedAt()).compareTo(typedOther.isSetCreatedAt());
|
| 2690 |
chandransh |
1169 |
if (lastComparison != 0) {
|
|
|
1170 |
return lastComparison;
|
|
|
1171 |
}
|
| 3430 |
rajveer |
1172 |
if (isSetCreatedAt()) {
|
|
|
1173 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createdAt, typedOther.createdAt);
|
|
|
1174 |
if (lastComparison != 0) {
|
|
|
1175 |
return lastComparison;
|
|
|
1176 |
}
|
| 2690 |
chandransh |
1177 |
}
|
| 3430 |
rajveer |
1178 |
lastComparison = Boolean.valueOf(isSetProcessedAt()).compareTo(typedOther.isSetProcessedAt());
|
| 2690 |
chandransh |
1179 |
if (lastComparison != 0) {
|
|
|
1180 |
return lastComparison;
|
|
|
1181 |
}
|
| 3430 |
rajveer |
1182 |
if (isSetProcessedAt()) {
|
|
|
1183 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.processedAt, typedOther.processedAt);
|
|
|
1184 |
if (lastComparison != 0) {
|
|
|
1185 |
return lastComparison;
|
|
|
1186 |
}
|
| 2690 |
chandransh |
1187 |
}
|
|
|
1188 |
return 0;
|
|
|
1189 |
}
|
|
|
1190 |
|
| 3430 |
rajveer |
1191 |
public _Fields fieldForId(int fieldId) {
|
|
|
1192 |
return _Fields.findByThriftId(fieldId);
|
|
|
1193 |
}
|
|
|
1194 |
|
|
|
1195 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
1196 |
org.apache.thrift.protocol.TField field;
|
| 2690 |
chandransh |
1197 |
iprot.readStructBegin();
|
|
|
1198 |
while (true)
|
|
|
1199 |
{
|
|
|
1200 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
1201 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 2690 |
chandransh |
1202 |
break;
|
|
|
1203 |
}
|
| 3430 |
rajveer |
1204 |
switch (field.id) {
|
|
|
1205 |
case 1: // ORDER_ID
|
|
|
1206 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1207 |
this.orderId = iprot.readI64();
|
|
|
1208 |
setOrderIdIsSet(true);
|
|
|
1209 |
} else {
|
|
|
1210 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1211 |
}
|
|
|
1212 |
break;
|
|
|
1213 |
case 2: // WAREHOUSE_ID
|
|
|
1214 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1215 |
this.warehouseId = iprot.readI64();
|
|
|
1216 |
setWarehouseIdIsSet(true);
|
|
|
1217 |
} else {
|
|
|
1218 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1219 |
}
|
|
|
1220 |
break;
|
|
|
1221 |
case 3: // JACKET_NUMBER
|
|
|
1222 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1223 |
this.jacketNumber = iprot.readI64();
|
|
|
1224 |
setJacketNumberIsSet(true);
|
|
|
1225 |
} else {
|
|
|
1226 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1227 |
}
|
|
|
1228 |
break;
|
|
|
1229 |
case 4: // INVOICE_NUMBER
|
|
|
1230 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1231 |
this.invoiceNumber = iprot.readString();
|
|
|
1232 |
} else {
|
|
|
1233 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1234 |
}
|
|
|
1235 |
break;
|
|
|
1236 |
case 5: // ITEM_ID
|
|
|
1237 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1238 |
this.itemId = iprot.readI64();
|
|
|
1239 |
setItemIdIsSet(true);
|
|
|
1240 |
} else {
|
|
|
1241 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1242 |
}
|
|
|
1243 |
break;
|
|
|
1244 |
case 6: // PRODUCT_GROUP
|
|
|
1245 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1246 |
this.productGroup = iprot.readString();
|
|
|
1247 |
} else {
|
|
|
1248 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1249 |
}
|
|
|
1250 |
break;
|
|
|
1251 |
case 7: // BRAND
|
|
|
1252 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1253 |
this.brand = iprot.readString();
|
|
|
1254 |
} else {
|
|
|
1255 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1256 |
}
|
|
|
1257 |
break;
|
|
|
1258 |
case 8: // MODEL_NUMBER
|
|
|
1259 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1260 |
this.modelNumber = iprot.readString();
|
|
|
1261 |
} else {
|
|
|
1262 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1263 |
}
|
|
|
1264 |
break;
|
|
|
1265 |
case 9: // MODEL_NAME
|
|
|
1266 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1267 |
this.modelName = iprot.readString();
|
|
|
1268 |
} else {
|
|
|
1269 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1270 |
}
|
|
|
1271 |
break;
|
|
|
1272 |
case 10: // COLOR
|
|
|
1273 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1274 |
this.color = iprot.readString();
|
|
|
1275 |
} else {
|
|
|
1276 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1277 |
}
|
|
|
1278 |
break;
|
|
|
1279 |
case 11: // TOTAL_PRICE
|
|
|
1280 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
1281 |
this.totalPrice = iprot.readDouble();
|
|
|
1282 |
setTotalPriceIsSet(true);
|
|
|
1283 |
} else {
|
|
|
1284 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1285 |
}
|
|
|
1286 |
break;
|
|
|
1287 |
case 12: // TRANSFER_PRICE
|
|
|
1288 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
1289 |
this.transferPrice = iprot.readDouble();
|
|
|
1290 |
setTransferPriceIsSet(true);
|
|
|
1291 |
} else {
|
|
|
1292 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1293 |
}
|
|
|
1294 |
break;
|
|
|
1295 |
case 13: // PROCESSED_STATUS
|
|
|
1296 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
1297 |
this.processedStatus = iprot.readBool();
|
|
|
1298 |
setProcessedStatusIsSet(true);
|
|
|
1299 |
} else {
|
|
|
1300 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1301 |
}
|
|
|
1302 |
break;
|
|
|
1303 |
case 14: // CREATED_AT
|
|
|
1304 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1305 |
this.createdAt = iprot.readI64();
|
|
|
1306 |
setCreatedAtIsSet(true);
|
|
|
1307 |
} else {
|
|
|
1308 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1309 |
}
|
|
|
1310 |
break;
|
|
|
1311 |
case 15: // PROCESSED_AT
|
|
|
1312 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1313 |
this.processedAt = iprot.readI64();
|
|
|
1314 |
setProcessedAtIsSet(true);
|
|
|
1315 |
} else {
|
|
|
1316 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1317 |
}
|
|
|
1318 |
break;
|
|
|
1319 |
default:
|
|
|
1320 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2690 |
chandransh |
1321 |
}
|
| 3430 |
rajveer |
1322 |
iprot.readFieldEnd();
|
| 2690 |
chandransh |
1323 |
}
|
|
|
1324 |
iprot.readStructEnd();
|
|
|
1325 |
validate();
|
|
|
1326 |
}
|
|
|
1327 |
|
| 3430 |
rajveer |
1328 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 2690 |
chandransh |
1329 |
validate();
|
|
|
1330 |
|
|
|
1331 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
1332 |
oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
|
|
|
1333 |
oprot.writeI64(this.orderId);
|
|
|
1334 |
oprot.writeFieldEnd();
|
| 2697 |
chandransh |
1335 |
oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
|
|
|
1336 |
oprot.writeI64(this.warehouseId);
|
|
|
1337 |
oprot.writeFieldEnd();
|
| 2690 |
chandransh |
1338 |
oprot.writeFieldBegin(JACKET_NUMBER_FIELD_DESC);
|
|
|
1339 |
oprot.writeI64(this.jacketNumber);
|
|
|
1340 |
oprot.writeFieldEnd();
|
|
|
1341 |
if (this.invoiceNumber != null) {
|
|
|
1342 |
oprot.writeFieldBegin(INVOICE_NUMBER_FIELD_DESC);
|
|
|
1343 |
oprot.writeString(this.invoiceNumber);
|
|
|
1344 |
oprot.writeFieldEnd();
|
|
|
1345 |
}
|
|
|
1346 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
|
|
1347 |
oprot.writeI64(this.itemId);
|
|
|
1348 |
oprot.writeFieldEnd();
|
|
|
1349 |
if (this.productGroup != null) {
|
|
|
1350 |
oprot.writeFieldBegin(PRODUCT_GROUP_FIELD_DESC);
|
|
|
1351 |
oprot.writeString(this.productGroup);
|
|
|
1352 |
oprot.writeFieldEnd();
|
|
|
1353 |
}
|
|
|
1354 |
if (this.brand != null) {
|
|
|
1355 |
oprot.writeFieldBegin(BRAND_FIELD_DESC);
|
|
|
1356 |
oprot.writeString(this.brand);
|
|
|
1357 |
oprot.writeFieldEnd();
|
|
|
1358 |
}
|
|
|
1359 |
if (this.modelNumber != null) {
|
|
|
1360 |
oprot.writeFieldBegin(MODEL_NUMBER_FIELD_DESC);
|
|
|
1361 |
oprot.writeString(this.modelNumber);
|
|
|
1362 |
oprot.writeFieldEnd();
|
|
|
1363 |
}
|
|
|
1364 |
if (this.modelName != null) {
|
|
|
1365 |
oprot.writeFieldBegin(MODEL_NAME_FIELD_DESC);
|
|
|
1366 |
oprot.writeString(this.modelName);
|
|
|
1367 |
oprot.writeFieldEnd();
|
|
|
1368 |
}
|
|
|
1369 |
if (this.color != null) {
|
|
|
1370 |
oprot.writeFieldBegin(COLOR_FIELD_DESC);
|
|
|
1371 |
oprot.writeString(this.color);
|
|
|
1372 |
oprot.writeFieldEnd();
|
|
|
1373 |
}
|
|
|
1374 |
oprot.writeFieldBegin(TOTAL_PRICE_FIELD_DESC);
|
|
|
1375 |
oprot.writeDouble(this.totalPrice);
|
|
|
1376 |
oprot.writeFieldEnd();
|
|
|
1377 |
oprot.writeFieldBegin(TRANSFER_PRICE_FIELD_DESC);
|
|
|
1378 |
oprot.writeDouble(this.transferPrice);
|
|
|
1379 |
oprot.writeFieldEnd();
|
|
|
1380 |
oprot.writeFieldBegin(PROCESSED_STATUS_FIELD_DESC);
|
|
|
1381 |
oprot.writeBool(this.processedStatus);
|
|
|
1382 |
oprot.writeFieldEnd();
|
|
|
1383 |
oprot.writeFieldBegin(CREATED_AT_FIELD_DESC);
|
|
|
1384 |
oprot.writeI64(this.createdAt);
|
|
|
1385 |
oprot.writeFieldEnd();
|
|
|
1386 |
oprot.writeFieldBegin(PROCESSED_AT_FIELD_DESC);
|
|
|
1387 |
oprot.writeI64(this.processedAt);
|
|
|
1388 |
oprot.writeFieldEnd();
|
|
|
1389 |
oprot.writeFieldStop();
|
|
|
1390 |
oprot.writeStructEnd();
|
|
|
1391 |
}
|
|
|
1392 |
|
|
|
1393 |
@Override
|
|
|
1394 |
public String toString() {
|
|
|
1395 |
StringBuilder sb = new StringBuilder("ReturnOrder(");
|
|
|
1396 |
boolean first = true;
|
|
|
1397 |
|
|
|
1398 |
sb.append("orderId:");
|
|
|
1399 |
sb.append(this.orderId);
|
|
|
1400 |
first = false;
|
|
|
1401 |
if (!first) sb.append(", ");
|
| 2697 |
chandransh |
1402 |
sb.append("warehouseId:");
|
|
|
1403 |
sb.append(this.warehouseId);
|
|
|
1404 |
first = false;
|
|
|
1405 |
if (!first) sb.append(", ");
|
| 2690 |
chandransh |
1406 |
sb.append("jacketNumber:");
|
|
|
1407 |
sb.append(this.jacketNumber);
|
|
|
1408 |
first = false;
|
|
|
1409 |
if (!first) sb.append(", ");
|
|
|
1410 |
sb.append("invoiceNumber:");
|
|
|
1411 |
if (this.invoiceNumber == null) {
|
|
|
1412 |
sb.append("null");
|
|
|
1413 |
} else {
|
|
|
1414 |
sb.append(this.invoiceNumber);
|
|
|
1415 |
}
|
|
|
1416 |
first = false;
|
|
|
1417 |
if (!first) sb.append(", ");
|
|
|
1418 |
sb.append("itemId:");
|
|
|
1419 |
sb.append(this.itemId);
|
|
|
1420 |
first = false;
|
|
|
1421 |
if (!first) sb.append(", ");
|
|
|
1422 |
sb.append("productGroup:");
|
|
|
1423 |
if (this.productGroup == null) {
|
|
|
1424 |
sb.append("null");
|
|
|
1425 |
} else {
|
|
|
1426 |
sb.append(this.productGroup);
|
|
|
1427 |
}
|
|
|
1428 |
first = false;
|
|
|
1429 |
if (!first) sb.append(", ");
|
|
|
1430 |
sb.append("brand:");
|
|
|
1431 |
if (this.brand == null) {
|
|
|
1432 |
sb.append("null");
|
|
|
1433 |
} else {
|
|
|
1434 |
sb.append(this.brand);
|
|
|
1435 |
}
|
|
|
1436 |
first = false;
|
|
|
1437 |
if (!first) sb.append(", ");
|
|
|
1438 |
sb.append("modelNumber:");
|
|
|
1439 |
if (this.modelNumber == null) {
|
|
|
1440 |
sb.append("null");
|
|
|
1441 |
} else {
|
|
|
1442 |
sb.append(this.modelNumber);
|
|
|
1443 |
}
|
|
|
1444 |
first = false;
|
|
|
1445 |
if (!first) sb.append(", ");
|
|
|
1446 |
sb.append("modelName:");
|
|
|
1447 |
if (this.modelName == null) {
|
|
|
1448 |
sb.append("null");
|
|
|
1449 |
} else {
|
|
|
1450 |
sb.append(this.modelName);
|
|
|
1451 |
}
|
|
|
1452 |
first = false;
|
|
|
1453 |
if (!first) sb.append(", ");
|
|
|
1454 |
sb.append("color:");
|
|
|
1455 |
if (this.color == null) {
|
|
|
1456 |
sb.append("null");
|
|
|
1457 |
} else {
|
|
|
1458 |
sb.append(this.color);
|
|
|
1459 |
}
|
|
|
1460 |
first = false;
|
|
|
1461 |
if (!first) sb.append(", ");
|
|
|
1462 |
sb.append("totalPrice:");
|
|
|
1463 |
sb.append(this.totalPrice);
|
|
|
1464 |
first = false;
|
|
|
1465 |
if (!first) sb.append(", ");
|
|
|
1466 |
sb.append("transferPrice:");
|
|
|
1467 |
sb.append(this.transferPrice);
|
|
|
1468 |
first = false;
|
|
|
1469 |
if (!first) sb.append(", ");
|
|
|
1470 |
sb.append("processedStatus:");
|
|
|
1471 |
sb.append(this.processedStatus);
|
|
|
1472 |
first = false;
|
|
|
1473 |
if (!first) sb.append(", ");
|
|
|
1474 |
sb.append("createdAt:");
|
|
|
1475 |
sb.append(this.createdAt);
|
|
|
1476 |
first = false;
|
|
|
1477 |
if (!first) sb.append(", ");
|
|
|
1478 |
sb.append("processedAt:");
|
|
|
1479 |
sb.append(this.processedAt);
|
|
|
1480 |
first = false;
|
|
|
1481 |
sb.append(")");
|
|
|
1482 |
return sb.toString();
|
|
|
1483 |
}
|
|
|
1484 |
|
| 3430 |
rajveer |
1485 |
public void validate() throws org.apache.thrift.TException {
|
| 2690 |
chandransh |
1486 |
// check for required fields
|
|
|
1487 |
}
|
|
|
1488 |
|
| 3430 |
rajveer |
1489 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
1490 |
try {
|
|
|
1491 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
1492 |
} catch (org.apache.thrift.TException te) {
|
|
|
1493 |
throw new java.io.IOException(te);
|
|
|
1494 |
}
|
|
|
1495 |
}
|
|
|
1496 |
|
|
|
1497 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
1498 |
try {
|
|
|
1499 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
1500 |
__isset_bit_vector = new BitSet(1);
|
|
|
1501 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
1502 |
} catch (org.apache.thrift.TException te) {
|
|
|
1503 |
throw new java.io.IOException(te);
|
|
|
1504 |
}
|
|
|
1505 |
}
|
|
|
1506 |
|
| 2690 |
chandransh |
1507 |
}
|
|
|
1508 |
|