Subversion Repositories SmartDukaan

Rev

Rev 2697 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2697 Rev 3430
Line 1... Line 1...
1
/**
1
/**
2
 * Autogenerated by Thrift
2
 * Autogenerated by Thrift Compiler (0.7.0)
3
 *
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
5
 */
6
package in.shop2020.model.v1.order;
6
package in.shop2020.model.v1.order;
7
 
7
 
Line 13... Line 13...
13
import java.util.Set;
13
import java.util.Set;
14
import java.util.HashSet;
14
import java.util.HashSet;
15
import java.util.EnumSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
16
import java.util.Collections;
17
import java.util.BitSet;
17
import java.util.BitSet;
-
 
18
import java.nio.ByteBuffer;
18
import java.util.Arrays;
19
import java.util.Arrays;
19
import org.slf4j.Logger;
20
import org.slf4j.Logger;
20
import org.slf4j.LoggerFactory;
21
import org.slf4j.LoggerFactory;
21
 
22
 
22
import org.apache.thrift.*;
-
 
23
import org.apache.thrift.meta_data.*;
-
 
24
import org.apache.thrift.protocol.*;
-
 
25
 
-
 
26
public class ReturnOrder implements TBase<ReturnOrder._Fields>, java.io.Serializable, Cloneable, Comparable<ReturnOrder> {
23
public class ReturnOrder implements org.apache.thrift.TBase<ReturnOrder, ReturnOrder._Fields>, java.io.Serializable, Cloneable {
27
  private static final TStruct STRUCT_DESC = new TStruct("ReturnOrder");
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ReturnOrder");
28
 
25
 
29
  private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)1);
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);
30
  private static final TField WAREHOUSE_ID_FIELD_DESC = new TField("warehouseId", TType.I64, (short)2);
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);
31
  private static final TField JACKET_NUMBER_FIELD_DESC = new TField("jacketNumber", TType.I64, (short)3);
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);
32
  private static final TField INVOICE_NUMBER_FIELD_DESC = new TField("invoiceNumber", TType.STRING, (short)4);
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);
33
  private static final TField ITEM_ID_FIELD_DESC = new TField("itemId", TType.I64, (short)5);
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);
34
  private static final TField PRODUCT_GROUP_FIELD_DESC = new TField("productGroup", TType.STRING, (short)6);
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);
35
  private static final TField BRAND_FIELD_DESC = new TField("brand", TType.STRING, (short)7);
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);
36
  private static final TField MODEL_NUMBER_FIELD_DESC = new TField("modelNumber", TType.STRING, (short)8);
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);
37
  private static final TField MODEL_NAME_FIELD_DESC = new TField("modelName", TType.STRING, (short)9);
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);
38
  private static final TField COLOR_FIELD_DESC = new TField("color", TType.STRING, (short)10);
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);
39
  private static final TField TOTAL_PRICE_FIELD_DESC = new TField("totalPrice", TType.DOUBLE, (short)11);
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);
40
  private static final TField TRANSFER_PRICE_FIELD_DESC = new TField("transferPrice", TType.DOUBLE, (short)12);
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);
41
  private static final TField PROCESSED_STATUS_FIELD_DESC = new TField("processedStatus", TType.BOOL, (short)13);
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);
42
  private static final TField CREATED_AT_FIELD_DESC = new TField("createdAt", TType.I64, (short)14);
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);
43
  private static final TField PROCESSED_AT_FIELD_DESC = new TField("processedAt", TType.I64, (short)15);
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);
44
 
41
 
45
  private long orderId;
42
  private long orderId; // required
46
  private long warehouseId;
43
  private long warehouseId; // required
47
  private long jacketNumber;
44
  private long jacketNumber; // required
48
  private String invoiceNumber;
45
  private String invoiceNumber; // required
49
  private long itemId;
46
  private long itemId; // required
50
  private String productGroup;
47
  private String productGroup; // required
51
  private String brand;
48
  private String brand; // required
52
  private String modelNumber;
49
  private String modelNumber; // required
53
  private String modelName;
50
  private String modelName; // required
54
  private String color;
51
  private String color; // required
55
  private double totalPrice;
52
  private double totalPrice; // required
56
  private double transferPrice;
53
  private double transferPrice; // required
57
  private boolean processedStatus;
54
  private boolean processedStatus; // required
58
  private long createdAt;
55
  private long createdAt; // required
59
  private long processedAt;
56
  private long processedAt; // required
60
 
57
 
61
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
58
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
62
  public enum _Fields implements TFieldIdEnum {
59
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
63
    ORDER_ID((short)1, "orderId"),
60
    ORDER_ID((short)1, "orderId"),
64
    WAREHOUSE_ID((short)2, "warehouseId"),
61
    WAREHOUSE_ID((short)2, "warehouseId"),
65
    JACKET_NUMBER((short)3, "jacketNumber"),
62
    JACKET_NUMBER((short)3, "jacketNumber"),
66
    INVOICE_NUMBER((short)4, "invoiceNumber"),
63
    INVOICE_NUMBER((short)4, "invoiceNumber"),
67
    ITEM_ID((short)5, "itemId"),
64
    ITEM_ID((short)5, "itemId"),
Line 74... Line 71...
74
    TRANSFER_PRICE((short)12, "transferPrice"),
71
    TRANSFER_PRICE((short)12, "transferPrice"),
75
    PROCESSED_STATUS((short)13, "processedStatus"),
72
    PROCESSED_STATUS((short)13, "processedStatus"),
76
    CREATED_AT((short)14, "createdAt"),
73
    CREATED_AT((short)14, "createdAt"),
77
    PROCESSED_AT((short)15, "processedAt");
74
    PROCESSED_AT((short)15, "processedAt");
78
 
75
 
79
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
80
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
76
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
81
 
77
 
82
    static {
78
    static {
83
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
79
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
84
        byId.put((int)field._thriftId, field);
-
 
85
        byName.put(field.getFieldName(), field);
80
        byName.put(field.getFieldName(), field);
86
      }
81
      }
87
    }
82
    }
88
 
83
 
89
    /**
84
    /**
90
     * Find the _Fields constant that matches fieldId, or null if its not found.
85
     * Find the _Fields constant that matches fieldId, or null if its not found.
91
     */
86
     */
92
    public static _Fields findByThriftId(int fieldId) {
87
    public static _Fields findByThriftId(int fieldId) {
93
      return byId.get(fieldId);
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
      }
94
    }
122
    }
95
 
123
 
96
    /**
124
    /**
97
     * Find the _Fields constant that matches fieldId, throwing an exception
125
     * Find the _Fields constant that matches fieldId, throwing an exception
98
     * if it is not found.
126
     * if it is not found.
Line 137... Line 165...
137
  private static final int __PROCESSEDSTATUS_ISSET_ID = 6;
165
  private static final int __PROCESSEDSTATUS_ISSET_ID = 6;
138
  private static final int __CREATEDAT_ISSET_ID = 7;
166
  private static final int __CREATEDAT_ISSET_ID = 7;
139
  private static final int __PROCESSEDAT_ISSET_ID = 8;
167
  private static final int __PROCESSEDAT_ISSET_ID = 8;
140
  private BitSet __isset_bit_vector = new BitSet(9);
168
  private BitSet __isset_bit_vector = new BitSet(9);
141
 
169
 
142
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
170
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
143
    put(_Fields.ORDER_ID, new FieldMetaData("orderId", TFieldRequirementType.DEFAULT, 
-
 
144
        new FieldValueMetaData(TType.I64)));
-
 
145
    put(_Fields.WAREHOUSE_ID, new FieldMetaData("warehouseId", TFieldRequirementType.DEFAULT, 
-
 
146
        new FieldValueMetaData(TType.I64)));
-
 
147
    put(_Fields.JACKET_NUMBER, new FieldMetaData("jacketNumber", TFieldRequirementType.DEFAULT, 
-
 
148
        new FieldValueMetaData(TType.I64)));
-
 
149
    put(_Fields.INVOICE_NUMBER, new FieldMetaData("invoiceNumber", TFieldRequirementType.DEFAULT, 
-
 
150
        new FieldValueMetaData(TType.STRING)));
-
 
151
    put(_Fields.ITEM_ID, new FieldMetaData("itemId", TFieldRequirementType.DEFAULT, 
-
 
152
        new FieldValueMetaData(TType.I64)));
-
 
153
    put(_Fields.PRODUCT_GROUP, new FieldMetaData("productGroup", TFieldRequirementType.DEFAULT, 
-
 
154
        new FieldValueMetaData(TType.STRING)));
-
 
155
    put(_Fields.BRAND, new FieldMetaData("brand", TFieldRequirementType.DEFAULT, 
-
 
156
        new FieldValueMetaData(TType.STRING)));
-
 
157
    put(_Fields.MODEL_NUMBER, new FieldMetaData("modelNumber", TFieldRequirementType.DEFAULT, 
-
 
158
        new FieldValueMetaData(TType.STRING)));
-
 
159
    put(_Fields.MODEL_NAME, new FieldMetaData("modelName", TFieldRequirementType.DEFAULT, 
-
 
160
        new FieldValueMetaData(TType.STRING)));
-
 
161
    put(_Fields.COLOR, new FieldMetaData("color", TFieldRequirementType.DEFAULT, 
-
 
162
        new FieldValueMetaData(TType.STRING)));
-
 
163
    put(_Fields.TOTAL_PRICE, new FieldMetaData("totalPrice", TFieldRequirementType.DEFAULT, 
-
 
164
        new FieldValueMetaData(TType.DOUBLE)));
-
 
165
    put(_Fields.TRANSFER_PRICE, new FieldMetaData("transferPrice", TFieldRequirementType.DEFAULT, 
-
 
166
        new FieldValueMetaData(TType.DOUBLE)));
-
 
167
    put(_Fields.PROCESSED_STATUS, new FieldMetaData("processedStatus", TFieldRequirementType.DEFAULT, 
-
 
168
        new FieldValueMetaData(TType.BOOL)));
-
 
169
    put(_Fields.CREATED_AT, new FieldMetaData("createdAt", TFieldRequirementType.DEFAULT, 
-
 
170
        new FieldValueMetaData(TType.I64)));
-
 
171
    put(_Fields.PROCESSED_AT, new FieldMetaData("processedAt", TFieldRequirementType.DEFAULT, 
-
 
172
        new FieldValueMetaData(TType.I64)));
-
 
173
  }});
-
 
174
 
-
 
175
  static {
171
  static {
-
 
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);
176
    FieldMetaData.addStructMetaDataMap(ReturnOrder.class, metaDataMap);
204
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ReturnOrder.class, metaDataMap);
177
  }
205
  }
178
 
206
 
179
  public ReturnOrder() {
207
  public ReturnOrder() {
180
  }
208
  }
181
 
209
 
Line 260... Line 288...
260
 
288
 
261
  public ReturnOrder deepCopy() {
289
  public ReturnOrder deepCopy() {
262
    return new ReturnOrder(this);
290
    return new ReturnOrder(this);
263
  }
291
  }
264
 
292
 
265
  @Deprecated
293
  @Override
266
  public ReturnOrder clone() {
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;
267
    return new ReturnOrder(this);
313
    setProcessedStatusIsSet(false);
-
 
314
    this.processedStatus = false;
-
 
315
    setCreatedAtIsSet(false);
-
 
316
    this.createdAt = 0;
-
 
317
    setProcessedAtIsSet(false);
-
 
318
    this.processedAt = 0;
268
  }
319
  }
269
 
320
 
270
  public long getOrderId() {
321
  public long getOrderId() {
271
    return this.orderId;
322
    return this.orderId;
272
  }
323
  }
273
 
324
 
274
  public ReturnOrder setOrderId(long orderId) {
325
  public void setOrderId(long orderId) {
275
    this.orderId = orderId;
326
    this.orderId = orderId;
276
    setOrderIdIsSet(true);
327
    setOrderIdIsSet(true);
277
    return this;
-
 
278
  }
328
  }
279
 
329
 
280
  public void unsetOrderId() {
330
  public void unsetOrderId() {
281
    __isset_bit_vector.clear(__ORDERID_ISSET_ID);
331
    __isset_bit_vector.clear(__ORDERID_ISSET_ID);
282
  }
332
  }
283
 
333
 
284
  /** Returns true if field orderId is set (has been asigned a value) and false otherwise */
334
  /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
285
  public boolean isSetOrderId() {
335
  public boolean isSetOrderId() {
286
    return __isset_bit_vector.get(__ORDERID_ISSET_ID);
336
    return __isset_bit_vector.get(__ORDERID_ISSET_ID);
287
  }
337
  }
288
 
338
 
289
  public void setOrderIdIsSet(boolean value) {
339
  public void setOrderIdIsSet(boolean value) {
Line 292... Line 342...
292
 
342
 
293
  public long getWarehouseId() {
343
  public long getWarehouseId() {
294
    return this.warehouseId;
344
    return this.warehouseId;
295
  }
345
  }
296
 
346
 
297
  public ReturnOrder setWarehouseId(long warehouseId) {
347
  public void setWarehouseId(long warehouseId) {
298
    this.warehouseId = warehouseId;
348
    this.warehouseId = warehouseId;
299
    setWarehouseIdIsSet(true);
349
    setWarehouseIdIsSet(true);
300
    return this;
-
 
301
  }
350
  }
302
 
351
 
303
  public void unsetWarehouseId() {
352
  public void unsetWarehouseId() {
304
    __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
353
    __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
305
  }
354
  }
306
 
355
 
307
  /** Returns true if field warehouseId is set (has been asigned a value) and false otherwise */
356
  /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
308
  public boolean isSetWarehouseId() {
357
  public boolean isSetWarehouseId() {
309
    return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
358
    return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
310
  }
359
  }
311
 
360
 
312
  public void setWarehouseIdIsSet(boolean value) {
361
  public void setWarehouseIdIsSet(boolean value) {
Line 315... Line 364...
315
 
364
 
316
  public long getJacketNumber() {
365
  public long getJacketNumber() {
317
    return this.jacketNumber;
366
    return this.jacketNumber;
318
  }
367
  }
319
 
368
 
320
  public ReturnOrder setJacketNumber(long jacketNumber) {
369
  public void setJacketNumber(long jacketNumber) {
321
    this.jacketNumber = jacketNumber;
370
    this.jacketNumber = jacketNumber;
322
    setJacketNumberIsSet(true);
371
    setJacketNumberIsSet(true);
323
    return this;
-
 
324
  }
372
  }
325
 
373
 
326
  public void unsetJacketNumber() {
374
  public void unsetJacketNumber() {
327
    __isset_bit_vector.clear(__JACKETNUMBER_ISSET_ID);
375
    __isset_bit_vector.clear(__JACKETNUMBER_ISSET_ID);
328
  }
376
  }
329
 
377
 
330
  /** Returns true if field jacketNumber is set (has been asigned a value) and false otherwise */
378
  /** Returns true if field jacketNumber is set (has been assigned a value) and false otherwise */
331
  public boolean isSetJacketNumber() {
379
  public boolean isSetJacketNumber() {
332
    return __isset_bit_vector.get(__JACKETNUMBER_ISSET_ID);
380
    return __isset_bit_vector.get(__JACKETNUMBER_ISSET_ID);
333
  }
381
  }
334
 
382
 
335
  public void setJacketNumberIsSet(boolean value) {
383
  public void setJacketNumberIsSet(boolean value) {
Line 338... Line 386...
338
 
386
 
339
  public String getInvoiceNumber() {
387
  public String getInvoiceNumber() {
340
    return this.invoiceNumber;
388
    return this.invoiceNumber;
341
  }
389
  }
342
 
390
 
343
  public ReturnOrder setInvoiceNumber(String invoiceNumber) {
391
  public void setInvoiceNumber(String invoiceNumber) {
344
    this.invoiceNumber = invoiceNumber;
392
    this.invoiceNumber = invoiceNumber;
345
    return this;
-
 
346
  }
393
  }
347
 
394
 
348
  public void unsetInvoiceNumber() {
395
  public void unsetInvoiceNumber() {
349
    this.invoiceNumber = null;
396
    this.invoiceNumber = null;
350
  }
397
  }
351
 
398
 
352
  /** Returns true if field invoiceNumber is set (has been asigned a value) and false otherwise */
399
  /** Returns true if field invoiceNumber is set (has been assigned a value) and false otherwise */
353
  public boolean isSetInvoiceNumber() {
400
  public boolean isSetInvoiceNumber() {
354
    return this.invoiceNumber != null;
401
    return this.invoiceNumber != null;
355
  }
402
  }
356
 
403
 
357
  public void setInvoiceNumberIsSet(boolean value) {
404
  public void setInvoiceNumberIsSet(boolean value) {
Line 362... Line 409...
362
 
409
 
363
  public long getItemId() {
410
  public long getItemId() {
364
    return this.itemId;
411
    return this.itemId;
365
  }
412
  }
366
 
413
 
367
  public ReturnOrder setItemId(long itemId) {
414
  public void setItemId(long itemId) {
368
    this.itemId = itemId;
415
    this.itemId = itemId;
369
    setItemIdIsSet(true);
416
    setItemIdIsSet(true);
370
    return this;
-
 
371
  }
417
  }
372
 
418
 
373
  public void unsetItemId() {
419
  public void unsetItemId() {
374
    __isset_bit_vector.clear(__ITEMID_ISSET_ID);
420
    __isset_bit_vector.clear(__ITEMID_ISSET_ID);
375
  }
421
  }
376
 
422
 
377
  /** Returns true if field itemId is set (has been asigned a value) and false otherwise */
423
  /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
378
  public boolean isSetItemId() {
424
  public boolean isSetItemId() {
379
    return __isset_bit_vector.get(__ITEMID_ISSET_ID);
425
    return __isset_bit_vector.get(__ITEMID_ISSET_ID);
380
  }
426
  }
381
 
427
 
382
  public void setItemIdIsSet(boolean value) {
428
  public void setItemIdIsSet(boolean value) {
Line 385... Line 431...
385
 
431
 
386
  public String getProductGroup() {
432
  public String getProductGroup() {
387
    return this.productGroup;
433
    return this.productGroup;
388
  }
434
  }
389
 
435
 
390
  public ReturnOrder setProductGroup(String productGroup) {
436
  public void setProductGroup(String productGroup) {
391
    this.productGroup = productGroup;
437
    this.productGroup = productGroup;
392
    return this;
-
 
393
  }
438
  }
394
 
439
 
395
  public void unsetProductGroup() {
440
  public void unsetProductGroup() {
396
    this.productGroup = null;
441
    this.productGroup = null;
397
  }
442
  }
398
 
443
 
399
  /** Returns true if field productGroup is set (has been asigned a value) and false otherwise */
444
  /** Returns true if field productGroup is set (has been assigned a value) and false otherwise */
400
  public boolean isSetProductGroup() {
445
  public boolean isSetProductGroup() {
401
    return this.productGroup != null;
446
    return this.productGroup != null;
402
  }
447
  }
403
 
448
 
404
  public void setProductGroupIsSet(boolean value) {
449
  public void setProductGroupIsSet(boolean value) {
Line 409... Line 454...
409
 
454
 
410
  public String getBrand() {
455
  public String getBrand() {
411
    return this.brand;
456
    return this.brand;
412
  }
457
  }
413
 
458
 
414
  public ReturnOrder setBrand(String brand) {
459
  public void setBrand(String brand) {
415
    this.brand = brand;
460
    this.brand = brand;
416
    return this;
-
 
417
  }
461
  }
418
 
462
 
419
  public void unsetBrand() {
463
  public void unsetBrand() {
420
    this.brand = null;
464
    this.brand = null;
421
  }
465
  }
422
 
466
 
423
  /** Returns true if field brand is set (has been asigned a value) and false otherwise */
467
  /** Returns true if field brand is set (has been assigned a value) and false otherwise */
424
  public boolean isSetBrand() {
468
  public boolean isSetBrand() {
425
    return this.brand != null;
469
    return this.brand != null;
426
  }
470
  }
427
 
471
 
428
  public void setBrandIsSet(boolean value) {
472
  public void setBrandIsSet(boolean value) {
Line 433... Line 477...
433
 
477
 
434
  public String getModelNumber() {
478
  public String getModelNumber() {
435
    return this.modelNumber;
479
    return this.modelNumber;
436
  }
480
  }
437
 
481
 
438
  public ReturnOrder setModelNumber(String modelNumber) {
482
  public void setModelNumber(String modelNumber) {
439
    this.modelNumber = modelNumber;
483
    this.modelNumber = modelNumber;
440
    return this;
-
 
441
  }
484
  }
442
 
485
 
443
  public void unsetModelNumber() {
486
  public void unsetModelNumber() {
444
    this.modelNumber = null;
487
    this.modelNumber = null;
445
  }
488
  }
446
 
489
 
447
  /** Returns true if field modelNumber is set (has been asigned a value) and false otherwise */
490
  /** Returns true if field modelNumber is set (has been assigned a value) and false otherwise */
448
  public boolean isSetModelNumber() {
491
  public boolean isSetModelNumber() {
449
    return this.modelNumber != null;
492
    return this.modelNumber != null;
450
  }
493
  }
451
 
494
 
452
  public void setModelNumberIsSet(boolean value) {
495
  public void setModelNumberIsSet(boolean value) {
Line 457... Line 500...
457
 
500
 
458
  public String getModelName() {
501
  public String getModelName() {
459
    return this.modelName;
502
    return this.modelName;
460
  }
503
  }
461
 
504
 
462
  public ReturnOrder setModelName(String modelName) {
505
  public void setModelName(String modelName) {
463
    this.modelName = modelName;
506
    this.modelName = modelName;
464
    return this;
-
 
465
  }
507
  }
466
 
508
 
467
  public void unsetModelName() {
509
  public void unsetModelName() {
468
    this.modelName = null;
510
    this.modelName = null;
469
  }
511
  }
470
 
512
 
471
  /** Returns true if field modelName is set (has been asigned a value) and false otherwise */
513
  /** Returns true if field modelName is set (has been assigned a value) and false otherwise */
472
  public boolean isSetModelName() {
514
  public boolean isSetModelName() {
473
    return this.modelName != null;
515
    return this.modelName != null;
474
  }
516
  }
475
 
517
 
476
  public void setModelNameIsSet(boolean value) {
518
  public void setModelNameIsSet(boolean value) {
Line 481... Line 523...
481
 
523
 
482
  public String getColor() {
524
  public String getColor() {
483
    return this.color;
525
    return this.color;
484
  }
526
  }
485
 
527
 
486
  public ReturnOrder setColor(String color) {
528
  public void setColor(String color) {
487
    this.color = color;
529
    this.color = color;
488
    return this;
-
 
489
  }
530
  }
490
 
531
 
491
  public void unsetColor() {
532
  public void unsetColor() {
492
    this.color = null;
533
    this.color = null;
493
  }
534
  }
494
 
535
 
495
  /** Returns true if field color is set (has been asigned a value) and false otherwise */
536
  /** Returns true if field color is set (has been assigned a value) and false otherwise */
496
  public boolean isSetColor() {
537
  public boolean isSetColor() {
497
    return this.color != null;
538
    return this.color != null;
498
  }
539
  }
499
 
540
 
500
  public void setColorIsSet(boolean value) {
541
  public void setColorIsSet(boolean value) {
Line 505... Line 546...
505
 
546
 
506
  public double getTotalPrice() {
547
  public double getTotalPrice() {
507
    return this.totalPrice;
548
    return this.totalPrice;
508
  }
549
  }
509
 
550
 
510
  public ReturnOrder setTotalPrice(double totalPrice) {
551
  public void setTotalPrice(double totalPrice) {
511
    this.totalPrice = totalPrice;
552
    this.totalPrice = totalPrice;
512
    setTotalPriceIsSet(true);
553
    setTotalPriceIsSet(true);
513
    return this;
-
 
514
  }
554
  }
515
 
555
 
516
  public void unsetTotalPrice() {
556
  public void unsetTotalPrice() {
517
    __isset_bit_vector.clear(__TOTALPRICE_ISSET_ID);
557
    __isset_bit_vector.clear(__TOTALPRICE_ISSET_ID);
518
  }
558
  }
519
 
559
 
520
  /** Returns true if field totalPrice is set (has been asigned a value) and false otherwise */
560
  /** Returns true if field totalPrice is set (has been assigned a value) and false otherwise */
521
  public boolean isSetTotalPrice() {
561
  public boolean isSetTotalPrice() {
522
    return __isset_bit_vector.get(__TOTALPRICE_ISSET_ID);
562
    return __isset_bit_vector.get(__TOTALPRICE_ISSET_ID);
523
  }
563
  }
524
 
564
 
525
  public void setTotalPriceIsSet(boolean value) {
565
  public void setTotalPriceIsSet(boolean value) {
Line 528... Line 568...
528
 
568
 
529
  public double getTransferPrice() {
569
  public double getTransferPrice() {
530
    return this.transferPrice;
570
    return this.transferPrice;
531
  }
571
  }
532
 
572
 
533
  public ReturnOrder setTransferPrice(double transferPrice) {
573
  public void setTransferPrice(double transferPrice) {
534
    this.transferPrice = transferPrice;
574
    this.transferPrice = transferPrice;
535
    setTransferPriceIsSet(true);
575
    setTransferPriceIsSet(true);
536
    return this;
-
 
537
  }
576
  }
538
 
577
 
539
  public void unsetTransferPrice() {
578
  public void unsetTransferPrice() {
540
    __isset_bit_vector.clear(__TRANSFERPRICE_ISSET_ID);
579
    __isset_bit_vector.clear(__TRANSFERPRICE_ISSET_ID);
541
  }
580
  }
542
 
581
 
543
  /** Returns true if field transferPrice is set (has been asigned a value) and false otherwise */
582
  /** Returns true if field transferPrice is set (has been assigned a value) and false otherwise */
544
  public boolean isSetTransferPrice() {
583
  public boolean isSetTransferPrice() {
545
    return __isset_bit_vector.get(__TRANSFERPRICE_ISSET_ID);
584
    return __isset_bit_vector.get(__TRANSFERPRICE_ISSET_ID);
546
  }
585
  }
547
 
586
 
548
  public void setTransferPriceIsSet(boolean value) {
587
  public void setTransferPriceIsSet(boolean value) {
Line 551... Line 590...
551
 
590
 
552
  public boolean isProcessedStatus() {
591
  public boolean isProcessedStatus() {
553
    return this.processedStatus;
592
    return this.processedStatus;
554
  }
593
  }
555
 
594
 
556
  public ReturnOrder setProcessedStatus(boolean processedStatus) {
595
  public void setProcessedStatus(boolean processedStatus) {
557
    this.processedStatus = processedStatus;
596
    this.processedStatus = processedStatus;
558
    setProcessedStatusIsSet(true);
597
    setProcessedStatusIsSet(true);
559
    return this;
-
 
560
  }
598
  }
561
 
599
 
562
  public void unsetProcessedStatus() {
600
  public void unsetProcessedStatus() {
563
    __isset_bit_vector.clear(__PROCESSEDSTATUS_ISSET_ID);
601
    __isset_bit_vector.clear(__PROCESSEDSTATUS_ISSET_ID);
564
  }
602
  }
565
 
603
 
566
  /** Returns true if field processedStatus is set (has been asigned a value) and false otherwise */
604
  /** Returns true if field processedStatus is set (has been assigned a value) and false otherwise */
567
  public boolean isSetProcessedStatus() {
605
  public boolean isSetProcessedStatus() {
568
    return __isset_bit_vector.get(__PROCESSEDSTATUS_ISSET_ID);
606
    return __isset_bit_vector.get(__PROCESSEDSTATUS_ISSET_ID);
569
  }
607
  }
570
 
608
 
571
  public void setProcessedStatusIsSet(boolean value) {
609
  public void setProcessedStatusIsSet(boolean value) {
Line 574... Line 612...
574
 
612
 
575
  public long getCreatedAt() {
613
  public long getCreatedAt() {
576
    return this.createdAt;
614
    return this.createdAt;
577
  }
615
  }
578
 
616
 
579
  public ReturnOrder setCreatedAt(long createdAt) {
617
  public void setCreatedAt(long createdAt) {
580
    this.createdAt = createdAt;
618
    this.createdAt = createdAt;
581
    setCreatedAtIsSet(true);
619
    setCreatedAtIsSet(true);
582
    return this;
-
 
583
  }
620
  }
584
 
621
 
585
  public void unsetCreatedAt() {
622
  public void unsetCreatedAt() {
586
    __isset_bit_vector.clear(__CREATEDAT_ISSET_ID);
623
    __isset_bit_vector.clear(__CREATEDAT_ISSET_ID);
587
  }
624
  }
588
 
625
 
589
  /** Returns true if field createdAt is set (has been asigned a value) and false otherwise */
626
  /** Returns true if field createdAt is set (has been assigned a value) and false otherwise */
590
  public boolean isSetCreatedAt() {
627
  public boolean isSetCreatedAt() {
591
    return __isset_bit_vector.get(__CREATEDAT_ISSET_ID);
628
    return __isset_bit_vector.get(__CREATEDAT_ISSET_ID);
592
  }
629
  }
593
 
630
 
594
  public void setCreatedAtIsSet(boolean value) {
631
  public void setCreatedAtIsSet(boolean value) {
Line 597... Line 634...
597
 
634
 
598
  public long getProcessedAt() {
635
  public long getProcessedAt() {
599
    return this.processedAt;
636
    return this.processedAt;
600
  }
637
  }
601
 
638
 
602
  public ReturnOrder setProcessedAt(long processedAt) {
639
  public void setProcessedAt(long processedAt) {
603
    this.processedAt = processedAt;
640
    this.processedAt = processedAt;
604
    setProcessedAtIsSet(true);
641
    setProcessedAtIsSet(true);
605
    return this;
-
 
606
  }
642
  }
607
 
643
 
608
  public void unsetProcessedAt() {
644
  public void unsetProcessedAt() {
609
    __isset_bit_vector.clear(__PROCESSEDAT_ISSET_ID);
645
    __isset_bit_vector.clear(__PROCESSEDAT_ISSET_ID);
610
  }
646
  }
611
 
647
 
612
  /** Returns true if field processedAt is set (has been asigned a value) and false otherwise */
648
  /** Returns true if field processedAt is set (has been assigned a value) and false otherwise */
613
  public boolean isSetProcessedAt() {
649
  public boolean isSetProcessedAt() {
614
    return __isset_bit_vector.get(__PROCESSEDAT_ISSET_ID);
650
    return __isset_bit_vector.get(__PROCESSEDAT_ISSET_ID);
615
  }
651
  }
616
 
652
 
617
  public void setProcessedAtIsSet(boolean value) {
653
  public void setProcessedAtIsSet(boolean value) {
Line 741... Line 777...
741
      break;
777
      break;
742
 
778
 
743
    }
779
    }
744
  }
780
  }
745
 
781
 
746
  public void setFieldValue(int fieldID, Object value) {
-
 
747
    setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
748
  }
-
 
749
 
-
 
750
  public Object getFieldValue(_Fields field) {
782
  public Object getFieldValue(_Fields field) {
751
    switch (field) {
783
    switch (field) {
752
    case ORDER_ID:
784
    case ORDER_ID:
753
      return new Long(getOrderId());
785
      return Long.valueOf(getOrderId());
754
 
786
 
755
    case WAREHOUSE_ID:
787
    case WAREHOUSE_ID:
756
      return new Long(getWarehouseId());
788
      return Long.valueOf(getWarehouseId());
757
 
789
 
758
    case JACKET_NUMBER:
790
    case JACKET_NUMBER:
759
      return new Long(getJacketNumber());
791
      return Long.valueOf(getJacketNumber());
760
 
792
 
761
    case INVOICE_NUMBER:
793
    case INVOICE_NUMBER:
762
      return getInvoiceNumber();
794
      return getInvoiceNumber();
763
 
795
 
764
    case ITEM_ID:
796
    case ITEM_ID:
765
      return new Long(getItemId());
797
      return Long.valueOf(getItemId());
766
 
798
 
767
    case PRODUCT_GROUP:
799
    case PRODUCT_GROUP:
768
      return getProductGroup();
800
      return getProductGroup();
769
 
801
 
770
    case BRAND:
802
    case BRAND:
Line 778... Line 810...
778
 
810
 
779
    case COLOR:
811
    case COLOR:
780
      return getColor();
812
      return getColor();
781
 
813
 
782
    case TOTAL_PRICE:
814
    case TOTAL_PRICE:
783
      return new Double(getTotalPrice());
815
      return Double.valueOf(getTotalPrice());
784
 
816
 
785
    case TRANSFER_PRICE:
817
    case TRANSFER_PRICE:
786
      return new Double(getTransferPrice());
818
      return Double.valueOf(getTransferPrice());
787
 
819
 
788
    case PROCESSED_STATUS:
820
    case PROCESSED_STATUS:
789
      return new Boolean(isProcessedStatus());
821
      return Boolean.valueOf(isProcessedStatus());
790
 
822
 
791
    case CREATED_AT:
823
    case CREATED_AT:
792
      return new Long(getCreatedAt());
824
      return Long.valueOf(getCreatedAt());
793
 
825
 
794
    case PROCESSED_AT:
826
    case PROCESSED_AT:
795
      return new Long(getProcessedAt());
827
      return Long.valueOf(getProcessedAt());
796
 
828
 
797
    }
829
    }
798
    throw new IllegalStateException();
830
    throw new IllegalStateException();
799
  }
831
  }
800
 
832
 
801
  public Object getFieldValue(int fieldId) {
-
 
802
    return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
803
  }
-
 
804
 
-
 
805
  /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
833
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
806
  public boolean isSet(_Fields field) {
834
  public boolean isSet(_Fields field) {
-
 
835
    if (field == null) {
-
 
836
      throw new IllegalArgumentException();
-
 
837
    }
-
 
838
 
807
    switch (field) {
839
    switch (field) {
808
    case ORDER_ID:
840
    case ORDER_ID:
809
      return isSetOrderId();
841
      return isSetOrderId();
810
    case WAREHOUSE_ID:
842
    case WAREHOUSE_ID:
811
      return isSetWarehouseId();
843
      return isSetWarehouseId();
Line 837... Line 869...
837
      return isSetProcessedAt();
869
      return isSetProcessedAt();
838
    }
870
    }
839
    throw new IllegalStateException();
871
    throw new IllegalStateException();
840
  }
872
  }
841
 
873
 
842
  public boolean isSet(int fieldID) {
-
 
843
    return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
844
  }
-
 
845
 
-
 
846
  @Override
874
  @Override
847
  public boolean equals(Object that) {
875
  public boolean equals(Object that) {
848
    if (that == null)
876
    if (that == null)
849
      return false;
877
      return false;
850
    if (that instanceof ReturnOrder)
878
    if (that instanceof ReturnOrder)
Line 1005... Line 1033...
1005
    }
1033
    }
1006
 
1034
 
1007
    int lastComparison = 0;
1035
    int lastComparison = 0;
1008
    ReturnOrder typedOther = (ReturnOrder)other;
1036
    ReturnOrder typedOther = (ReturnOrder)other;
1009
 
1037
 
1010
    lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(isSetOrderId());
1038
    lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
1011
    if (lastComparison != 0) {
1039
    if (lastComparison != 0) {
1012
      return lastComparison;
1040
      return lastComparison;
1013
    }
1041
    }
-
 
1042
    if (isSetOrderId()) {
1014
    lastComparison = TBaseHelper.compareTo(orderId, typedOther.orderId);
1043
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
1015
    if (lastComparison != 0) {
1044
      if (lastComparison != 0) {
1016
      return lastComparison;
1045
        return lastComparison;
-
 
1046
      }
1017
    }
1047
    }
1018
    lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(isSetWarehouseId());
1048
    lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
1019
    if (lastComparison != 0) {
1049
    if (lastComparison != 0) {
1020
      return lastComparison;
1050
      return lastComparison;
1021
    }
1051
    }
-
 
1052
    if (isSetWarehouseId()) {
1022
    lastComparison = TBaseHelper.compareTo(warehouseId, typedOther.warehouseId);
1053
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
1023
    if (lastComparison != 0) {
1054
      if (lastComparison != 0) {
1024
      return lastComparison;
1055
        return lastComparison;
-
 
1056
      }
1025
    }
1057
    }
1026
    lastComparison = Boolean.valueOf(isSetJacketNumber()).compareTo(isSetJacketNumber());
1058
    lastComparison = Boolean.valueOf(isSetJacketNumber()).compareTo(typedOther.isSetJacketNumber());
1027
    if (lastComparison != 0) {
1059
    if (lastComparison != 0) {
1028
      return lastComparison;
1060
      return lastComparison;
1029
    }
1061
    }
-
 
1062
    if (isSetJacketNumber()) {
1030
    lastComparison = TBaseHelper.compareTo(jacketNumber, typedOther.jacketNumber);
1063
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.jacketNumber, typedOther.jacketNumber);
1031
    if (lastComparison != 0) {
1064
      if (lastComparison != 0) {
1032
      return lastComparison;
1065
        return lastComparison;
-
 
1066
      }
1033
    }
1067
    }
1034
    lastComparison = Boolean.valueOf(isSetInvoiceNumber()).compareTo(isSetInvoiceNumber());
1068
    lastComparison = Boolean.valueOf(isSetInvoiceNumber()).compareTo(typedOther.isSetInvoiceNumber());
1035
    if (lastComparison != 0) {
1069
    if (lastComparison != 0) {
1036
      return lastComparison;
1070
      return lastComparison;
1037
    }
1071
    }
-
 
1072
    if (isSetInvoiceNumber()) {
1038
    lastComparison = TBaseHelper.compareTo(invoiceNumber, typedOther.invoiceNumber);
1073
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.invoiceNumber, typedOther.invoiceNumber);
1039
    if (lastComparison != 0) {
1074
      if (lastComparison != 0) {
1040
      return lastComparison;
1075
        return lastComparison;
-
 
1076
      }
1041
    }
1077
    }
1042
    lastComparison = Boolean.valueOf(isSetItemId()).compareTo(isSetItemId());
1078
    lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
1043
    if (lastComparison != 0) {
1079
    if (lastComparison != 0) {
1044
      return lastComparison;
1080
      return lastComparison;
1045
    }
1081
    }
-
 
1082
    if (isSetItemId()) {
1046
    lastComparison = TBaseHelper.compareTo(itemId, typedOther.itemId);
1083
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
1047
    if (lastComparison != 0) {
1084
      if (lastComparison != 0) {
1048
      return lastComparison;
1085
        return lastComparison;
-
 
1086
      }
1049
    }
1087
    }
1050
    lastComparison = Boolean.valueOf(isSetProductGroup()).compareTo(isSetProductGroup());
1088
    lastComparison = Boolean.valueOf(isSetProductGroup()).compareTo(typedOther.isSetProductGroup());
1051
    if (lastComparison != 0) {
1089
    if (lastComparison != 0) {
1052
      return lastComparison;
1090
      return lastComparison;
1053
    }
1091
    }
-
 
1092
    if (isSetProductGroup()) {
1054
    lastComparison = TBaseHelper.compareTo(productGroup, typedOther.productGroup);
1093
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.productGroup, typedOther.productGroup);
1055
    if (lastComparison != 0) {
1094
      if (lastComparison != 0) {
1056
      return lastComparison;
1095
        return lastComparison;
-
 
1096
      }
1057
    }
1097
    }
1058
    lastComparison = Boolean.valueOf(isSetBrand()).compareTo(isSetBrand());
1098
    lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());
1059
    if (lastComparison != 0) {
1099
    if (lastComparison != 0) {
1060
      return lastComparison;
1100
      return lastComparison;
1061
    }
1101
    }
-
 
1102
    if (isSetBrand()) {
1062
    lastComparison = TBaseHelper.compareTo(brand, typedOther.brand);
1103
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brand, typedOther.brand);
1063
    if (lastComparison != 0) {
1104
      if (lastComparison != 0) {
1064
      return lastComparison;
1105
        return lastComparison;
-
 
1106
      }
1065
    }
1107
    }
1066
    lastComparison = Boolean.valueOf(isSetModelNumber()).compareTo(isSetModelNumber());
1108
    lastComparison = Boolean.valueOf(isSetModelNumber()).compareTo(typedOther.isSetModelNumber());
1067
    if (lastComparison != 0) {
1109
    if (lastComparison != 0) {
1068
      return lastComparison;
1110
      return lastComparison;
1069
    }
1111
    }
-
 
1112
    if (isSetModelNumber()) {
1070
    lastComparison = TBaseHelper.compareTo(modelNumber, typedOther.modelNumber);
1113
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modelNumber, typedOther.modelNumber);
1071
    if (lastComparison != 0) {
1114
      if (lastComparison != 0) {
1072
      return lastComparison;
1115
        return lastComparison;
-
 
1116
      }
1073
    }
1117
    }
1074
    lastComparison = Boolean.valueOf(isSetModelName()).compareTo(isSetModelName());
1118
    lastComparison = Boolean.valueOf(isSetModelName()).compareTo(typedOther.isSetModelName());
1075
    if (lastComparison != 0) {
1119
    if (lastComparison != 0) {
1076
      return lastComparison;
1120
      return lastComparison;
1077
    }
1121
    }
-
 
1122
    if (isSetModelName()) {
1078
    lastComparison = TBaseHelper.compareTo(modelName, typedOther.modelName);
1123
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modelName, typedOther.modelName);
1079
    if (lastComparison != 0) {
1124
      if (lastComparison != 0) {
1080
      return lastComparison;
1125
        return lastComparison;
-
 
1126
      }
1081
    }
1127
    }
1082
    lastComparison = Boolean.valueOf(isSetColor()).compareTo(isSetColor());
1128
    lastComparison = Boolean.valueOf(isSetColor()).compareTo(typedOther.isSetColor());
1083
    if (lastComparison != 0) {
1129
    if (lastComparison != 0) {
1084
      return lastComparison;
1130
      return lastComparison;
1085
    }
1131
    }
-
 
1132
    if (isSetColor()) {
1086
    lastComparison = TBaseHelper.compareTo(color, typedOther.color);
1133
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.color, typedOther.color);
1087
    if (lastComparison != 0) {
1134
      if (lastComparison != 0) {
1088
      return lastComparison;
1135
        return lastComparison;
-
 
1136
      }
1089
    }
1137
    }
1090
    lastComparison = Boolean.valueOf(isSetTotalPrice()).compareTo(isSetTotalPrice());
1138
    lastComparison = Boolean.valueOf(isSetTotalPrice()).compareTo(typedOther.isSetTotalPrice());
1091
    if (lastComparison != 0) {
1139
    if (lastComparison != 0) {
1092
      return lastComparison;
1140
      return lastComparison;
1093
    }
1141
    }
-
 
1142
    if (isSetTotalPrice()) {
1094
    lastComparison = TBaseHelper.compareTo(totalPrice, typedOther.totalPrice);
1143
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalPrice, typedOther.totalPrice);
1095
    if (lastComparison != 0) {
1144
      if (lastComparison != 0) {
1096
      return lastComparison;
1145
        return lastComparison;
-
 
1146
      }
1097
    }
1147
    }
1098
    lastComparison = Boolean.valueOf(isSetTransferPrice()).compareTo(isSetTransferPrice());
1148
    lastComparison = Boolean.valueOf(isSetTransferPrice()).compareTo(typedOther.isSetTransferPrice());
1099
    if (lastComparison != 0) {
1149
    if (lastComparison != 0) {
1100
      return lastComparison;
1150
      return lastComparison;
1101
    }
1151
    }
-
 
1152
    if (isSetTransferPrice()) {
1102
    lastComparison = TBaseHelper.compareTo(transferPrice, typedOther.transferPrice);
1153
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferPrice, typedOther.transferPrice);
1103
    if (lastComparison != 0) {
1154
      if (lastComparison != 0) {
1104
      return lastComparison;
1155
        return lastComparison;
-
 
1156
      }
1105
    }
1157
    }
1106
    lastComparison = Boolean.valueOf(isSetProcessedStatus()).compareTo(isSetProcessedStatus());
1158
    lastComparison = Boolean.valueOf(isSetProcessedStatus()).compareTo(typedOther.isSetProcessedStatus());
1107
    if (lastComparison != 0) {
1159
    if (lastComparison != 0) {
1108
      return lastComparison;
1160
      return lastComparison;
1109
    }
1161
    }
-
 
1162
    if (isSetProcessedStatus()) {
1110
    lastComparison = TBaseHelper.compareTo(processedStatus, typedOther.processedStatus);
1163
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.processedStatus, typedOther.processedStatus);
1111
    if (lastComparison != 0) {
1164
      if (lastComparison != 0) {
1112
      return lastComparison;
1165
        return lastComparison;
-
 
1166
      }
1113
    }
1167
    }
1114
    lastComparison = Boolean.valueOf(isSetCreatedAt()).compareTo(isSetCreatedAt());
1168
    lastComparison = Boolean.valueOf(isSetCreatedAt()).compareTo(typedOther.isSetCreatedAt());
1115
    if (lastComparison != 0) {
1169
    if (lastComparison != 0) {
1116
      return lastComparison;
1170
      return lastComparison;
1117
    }
1171
    }
-
 
1172
    if (isSetCreatedAt()) {
1118
    lastComparison = TBaseHelper.compareTo(createdAt, typedOther.createdAt);
1173
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createdAt, typedOther.createdAt);
1119
    if (lastComparison != 0) {
1174
      if (lastComparison != 0) {
1120
      return lastComparison;
1175
        return lastComparison;
-
 
1176
      }
1121
    }
1177
    }
1122
    lastComparison = Boolean.valueOf(isSetProcessedAt()).compareTo(isSetProcessedAt());
1178
    lastComparison = Boolean.valueOf(isSetProcessedAt()).compareTo(typedOther.isSetProcessedAt());
1123
    if (lastComparison != 0) {
1179
    if (lastComparison != 0) {
1124
      return lastComparison;
1180
      return lastComparison;
1125
    }
1181
    }
-
 
1182
    if (isSetProcessedAt()) {
1126
    lastComparison = TBaseHelper.compareTo(processedAt, typedOther.processedAt);
1183
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.processedAt, typedOther.processedAt);
1127
    if (lastComparison != 0) {
1184
      if (lastComparison != 0) {
1128
      return lastComparison;
1185
        return lastComparison;
-
 
1186
      }
1129
    }
1187
    }
1130
    return 0;
1188
    return 0;
1131
  }
1189
  }
1132
 
1190
 
-
 
1191
  public _Fields fieldForId(int fieldId) {
-
 
1192
    return _Fields.findByThriftId(fieldId);
-
 
1193
  }
-
 
1194
 
1133
  public void read(TProtocol iprot) throws TException {
1195
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1134
    TField field;
1196
    org.apache.thrift.protocol.TField field;
1135
    iprot.readStructBegin();
1197
    iprot.readStructBegin();
1136
    while (true)
1198
    while (true)
1137
    {
1199
    {
1138
      field = iprot.readFieldBegin();
1200
      field = iprot.readFieldBegin();
1139
      if (field.type == TType.STOP) { 
1201
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1140
        break;
1202
        break;
1141
      }
1203
      }
1142
      _Fields fieldId = _Fields.findByThriftId(field.id);
1204
      switch (field.id) {
1143
      if (fieldId == null) {
1205
        case 1: // ORDER_ID
1144
        TProtocolUtil.skip(iprot, field.type);
1206
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1145
      } else {
1207
            this.orderId = iprot.readI64();
1146
        switch (fieldId) {
1208
            setOrderIdIsSet(true);
1147
          case ORDER_ID:
1209
          } else { 
1148
            if (field.type == TType.I64) {
1210
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1149
              this.orderId = iprot.readI64();
1211
          }
1150
              setOrderIdIsSet(true);
1212
          break;
1151
            } else { 
1213
        case 2: // WAREHOUSE_ID
1152
              TProtocolUtil.skip(iprot, field.type);
1214
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1153
            }
1215
            this.warehouseId = iprot.readI64();
1154
            break;
1216
            setWarehouseIdIsSet(true);
1155
          case WAREHOUSE_ID:
1217
          } else { 
1156
            if (field.type == TType.I64) {
1218
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1157
              this.warehouseId = iprot.readI64();
1219
          }
1158
              setWarehouseIdIsSet(true);
1220
          break;
1159
            } else { 
1221
        case 3: // JACKET_NUMBER
1160
              TProtocolUtil.skip(iprot, field.type);
1222
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1161
            }
1223
            this.jacketNumber = iprot.readI64();
1162
            break;
1224
            setJacketNumberIsSet(true);
1163
          case JACKET_NUMBER:
1225
          } else { 
1164
            if (field.type == TType.I64) {
1226
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1165
              this.jacketNumber = iprot.readI64();
1227
          }
1166
              setJacketNumberIsSet(true);
1228
          break;
1167
            } else { 
1229
        case 4: // INVOICE_NUMBER
1168
              TProtocolUtil.skip(iprot, field.type);
1230
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1169
            }
1231
            this.invoiceNumber = iprot.readString();
1170
            break;
1232
          } else { 
1171
          case INVOICE_NUMBER:
1233
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1172
            if (field.type == TType.STRING) {
1234
          }
1173
              this.invoiceNumber = iprot.readString();
1235
          break;
1174
            } else { 
1236
        case 5: // ITEM_ID
1175
              TProtocolUtil.skip(iprot, field.type);
1237
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1176
            }
1238
            this.itemId = iprot.readI64();
1177
            break;
1239
            setItemIdIsSet(true);
1178
          case ITEM_ID:
1240
          } else { 
1179
            if (field.type == TType.I64) {
1241
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1180
              this.itemId = iprot.readI64();
1242
          }
1181
              setItemIdIsSet(true);
1243
          break;
1182
            } else { 
1244
        case 6: // PRODUCT_GROUP
1183
              TProtocolUtil.skip(iprot, field.type);
1245
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1184
            }
1246
            this.productGroup = iprot.readString();
1185
            break;
1247
          } else { 
1186
          case PRODUCT_GROUP:
1248
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1187
            if (field.type == TType.STRING) {
1249
          }
1188
              this.productGroup = iprot.readString();
1250
          break;
1189
            } else { 
1251
        case 7: // BRAND
1190
              TProtocolUtil.skip(iprot, field.type);
1252
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1191
            }
1253
            this.brand = iprot.readString();
1192
            break;
1254
          } else { 
1193
          case BRAND:
1255
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1194
            if (field.type == TType.STRING) {
1256
          }
1195
              this.brand = iprot.readString();
1257
          break;
1196
            } else { 
1258
        case 8: // MODEL_NUMBER
1197
              TProtocolUtil.skip(iprot, field.type);
1259
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1198
            }
1260
            this.modelNumber = iprot.readString();
1199
            break;
1261
          } else { 
1200
          case MODEL_NUMBER:
1262
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1201
            if (field.type == TType.STRING) {
1263
          }
1202
              this.modelNumber = iprot.readString();
1264
          break;
1203
            } else { 
1265
        case 9: // MODEL_NAME
1204
              TProtocolUtil.skip(iprot, field.type);
1266
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1205
            }
1267
            this.modelName = iprot.readString();
1206
            break;
1268
          } else { 
1207
          case MODEL_NAME:
1269
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1208
            if (field.type == TType.STRING) {
1270
          }
1209
              this.modelName = iprot.readString();
1271
          break;
1210
            } else { 
1272
        case 10: // COLOR
1211
              TProtocolUtil.skip(iprot, field.type);
1273
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1212
            }
1274
            this.color = iprot.readString();
1213
            break;
1275
          } else { 
1214
          case COLOR:
1276
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1215
            if (field.type == TType.STRING) {
1277
          }
1216
              this.color = iprot.readString();
1278
          break;
1217
            } else { 
1279
        case 11: // TOTAL_PRICE
1218
              TProtocolUtil.skip(iprot, field.type);
1280
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1219
            }
1281
            this.totalPrice = iprot.readDouble();
1220
            break;
1282
            setTotalPriceIsSet(true);
1221
          case TOTAL_PRICE:
1283
          } else { 
1222
            if (field.type == TType.DOUBLE) {
1284
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1223
              this.totalPrice = iprot.readDouble();
1285
          }
1224
              setTotalPriceIsSet(true);
1286
          break;
1225
            } else { 
1287
        case 12: // TRANSFER_PRICE
1226
              TProtocolUtil.skip(iprot, field.type);
1288
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1227
            }
1289
            this.transferPrice = iprot.readDouble();
1228
            break;
1290
            setTransferPriceIsSet(true);
1229
          case TRANSFER_PRICE:
1291
          } else { 
1230
            if (field.type == TType.DOUBLE) {
1292
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1231
              this.transferPrice = iprot.readDouble();
1293
          }
1232
              setTransferPriceIsSet(true);
1294
          break;
1233
            } else { 
1295
        case 13: // PROCESSED_STATUS
1234
              TProtocolUtil.skip(iprot, field.type);
1296
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1235
            }
1297
            this.processedStatus = iprot.readBool();
1236
            break;
1298
            setProcessedStatusIsSet(true);
1237
          case PROCESSED_STATUS:
1299
          } else { 
1238
            if (field.type == TType.BOOL) {
1300
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1239
              this.processedStatus = iprot.readBool();
1301
          }
1240
              setProcessedStatusIsSet(true);
1302
          break;
1241
            } else { 
1303
        case 14: // CREATED_AT
1242
              TProtocolUtil.skip(iprot, field.type);
1304
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1243
            }
1305
            this.createdAt = iprot.readI64();
1244
            break;
1306
            setCreatedAtIsSet(true);
1245
          case CREATED_AT:
1307
          } else { 
1246
            if (field.type == TType.I64) {
1308
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1247
              this.createdAt = iprot.readI64();
1309
          }
1248
              setCreatedAtIsSet(true);
1310
          break;
1249
            } else { 
1311
        case 15: // PROCESSED_AT
1250
              TProtocolUtil.skip(iprot, field.type);
1312
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1251
            }
1313
            this.processedAt = iprot.readI64();
1252
            break;
1314
            setProcessedAtIsSet(true);
1253
          case PROCESSED_AT:
1315
          } else { 
1254
            if (field.type == TType.I64) {
1316
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1255
              this.processedAt = iprot.readI64();
1317
          }
1256
              setProcessedAtIsSet(true);
1318
          break;
1257
            } else { 
1319
        default:
1258
              TProtocolUtil.skip(iprot, field.type);
1320
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1259
            }
-
 
1260
            break;
-
 
1261
        }
-
 
1262
        iprot.readFieldEnd();
-
 
1263
      }
1321
      }
-
 
1322
      iprot.readFieldEnd();
1264
    }
1323
    }
1265
    iprot.readStructEnd();
1324
    iprot.readStructEnd();
1266
    validate();
1325
    validate();
1267
  }
1326
  }
1268
 
1327
 
1269
  public void write(TProtocol oprot) throws TException {
1328
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1270
    validate();
1329
    validate();
1271
 
1330
 
1272
    oprot.writeStructBegin(STRUCT_DESC);
1331
    oprot.writeStructBegin(STRUCT_DESC);
1273
    oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
1332
    oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
1274
    oprot.writeI64(this.orderId);
1333
    oprot.writeI64(this.orderId);
Line 1421... Line 1480...
1421
    first = false;
1480
    first = false;
1422
    sb.append(")");
1481
    sb.append(")");
1423
    return sb.toString();
1482
    return sb.toString();
1424
  }
1483
  }
1425
 
1484
 
1426
  public void validate() throws TException {
1485
  public void validate() throws org.apache.thrift.TException {
1427
    // check for required fields
1486
    // check for required fields
1428
  }
1487
  }
1429
 
1488
 
-
 
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
 
1430
}
1507
}
1431
 
1508