Subversion Repositories SmartDukaan

Rev

Rev 2779 | Rev 4172 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2779 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 LineItem implements TBase<LineItem._Fields>, java.io.Serializable, Cloneable, Comparable<LineItem> {
23
public class LineItem implements org.apache.thrift.TBase<LineItem, LineItem._Fields>, java.io.Serializable, Cloneable {
27
  private static final TStruct STRUCT_DESC = new TStruct("LineItem");
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("LineItem");
28
 
25
 
29
  private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
26
  private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
30
  private static final TField ITEM_ID_FIELD_DESC = new TField("item_id", TType.I64, (short)2);
27
  private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)2);
31
  private static final TField PRODUCT_GROUP_FIELD_DESC = new TField("productGroup", TType.STRING, (short)3);
28
  private static final org.apache.thrift.protocol.TField PRODUCT_GROUP_FIELD_DESC = new org.apache.thrift.protocol.TField("productGroup", org.apache.thrift.protocol.TType.STRING, (short)3);
32
  private static final TField BRAND_FIELD_DESC = new TField("brand", TType.STRING, (short)4);
29
  private static final org.apache.thrift.protocol.TField BRAND_FIELD_DESC = new org.apache.thrift.protocol.TField("brand", org.apache.thrift.protocol.TType.STRING, (short)4);
33
  private static final TField MODEL_NUMBER_FIELD_DESC = new TField("model_number", TType.STRING, (short)5);
30
  private static final org.apache.thrift.protocol.TField MODEL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("model_number", org.apache.thrift.protocol.TType.STRING, (short)5);
34
  private static final TField COLOR_FIELD_DESC = new TField("color", TType.STRING, (short)6);
31
  private static final org.apache.thrift.protocol.TField COLOR_FIELD_DESC = new org.apache.thrift.protocol.TField("color", org.apache.thrift.protocol.TType.STRING, (short)6);
35
  private static final TField MODEL_NAME_FIELD_DESC = new TField("model_name", TType.STRING, (short)7);
32
  private static final org.apache.thrift.protocol.TField MODEL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("model_name", org.apache.thrift.protocol.TType.STRING, (short)7);
36
  private static final TField EXTRA_INFO_FIELD_DESC = new TField("extra_info", TType.STRING, (short)8);
33
  private static final org.apache.thrift.protocol.TField EXTRA_INFO_FIELD_DESC = new org.apache.thrift.protocol.TField("extra_info", org.apache.thrift.protocol.TType.STRING, (short)8);
37
  private static final TField QUANTITY_FIELD_DESC = new TField("quantity", TType.DOUBLE, (short)9);
34
  private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.DOUBLE, (short)9);
38
  private static final TField UNIT_PRICE_FIELD_DESC = new TField("unit_price", TType.DOUBLE, (short)10);
35
  private static final org.apache.thrift.protocol.TField UNIT_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("unit_price", org.apache.thrift.protocol.TType.DOUBLE, (short)10);
39
  private static final TField UNIT_WEIGHT_FIELD_DESC = new TField("unit_weight", TType.DOUBLE, (short)11);
36
  private static final org.apache.thrift.protocol.TField UNIT_WEIGHT_FIELD_DESC = new org.apache.thrift.protocol.TField("unit_weight", org.apache.thrift.protocol.TType.DOUBLE, (short)11);
40
  private static final TField TOTAL_PRICE_FIELD_DESC = new TField("total_price", TType.DOUBLE, (short)12);
37
  private static final org.apache.thrift.protocol.TField TOTAL_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("total_price", org.apache.thrift.protocol.TType.DOUBLE, (short)12);
41
  private static final TField TRANSFER_PRICE_FIELD_DESC = new TField("transfer_price", TType.DOUBLE, (short)13);
38
  private static final org.apache.thrift.protocol.TField TRANSFER_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("transfer_price", org.apache.thrift.protocol.TType.DOUBLE, (short)13);
42
  private static final TField TOTAL_WEIGHT_FIELD_DESC = new TField("total_weight", TType.DOUBLE, (short)14);
39
  private static final org.apache.thrift.protocol.TField TOTAL_WEIGHT_FIELD_DESC = new org.apache.thrift.protocol.TField("total_weight", org.apache.thrift.protocol.TType.DOUBLE, (short)14);
43
  private static final TField IMEI_NUMBER_FIELD_DESC = new TField("imei_number", TType.I64, (short)15);
40
  private static final org.apache.thrift.protocol.TField IMEI_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("imei_number", org.apache.thrift.protocol.TType.I64, (short)15);
44
  private static final TField ITEM_NUMBER_FIELD_DESC = new TField("item_number", TType.STRING, (short)16);
41
  private static final org.apache.thrift.protocol.TField ITEM_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("item_number", org.apache.thrift.protocol.TType.STRING, (short)16);
45
 
42
 
46
  private long id;
43
  private long id; // required
47
  private long item_id;
44
  private long item_id; // required
48
  private String productGroup;
45
  private String productGroup; // required
49
  private String brand;
46
  private String brand; // required
50
  private String model_number;
47
  private String model_number; // required
51
  private String color;
48
  private String color; // required
52
  private String model_name;
49
  private String model_name; // required
53
  private String extra_info;
50
  private String extra_info; // required
54
  private double quantity;
51
  private double quantity; // required
55
  private double unit_price;
52
  private double unit_price; // required
56
  private double unit_weight;
53
  private double unit_weight; // required
57
  private double total_price;
54
  private double total_price; // required
58
  private double transfer_price;
55
  private double transfer_price; // required
59
  private double total_weight;
56
  private double total_weight; // required
60
  private long imei_number;
57
  private long imei_number; // required
61
  private String item_number;
58
  private String item_number; // required
62
 
59
 
63
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
60
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
64
  public enum _Fields implements TFieldIdEnum {
61
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
65
    ID((short)1, "id"),
62
    ID((short)1, "id"),
66
    ITEM_ID((short)2, "item_id"),
63
    ITEM_ID((short)2, "item_id"),
67
    PRODUCT_GROUP((short)3, "productGroup"),
64
    PRODUCT_GROUP((short)3, "productGroup"),
68
    BRAND((short)4, "brand"),
65
    BRAND((short)4, "brand"),
69
    MODEL_NUMBER((short)5, "model_number"),
66
    MODEL_NUMBER((short)5, "model_number"),
Line 77... Line 74...
77
    TRANSFER_PRICE((short)13, "transfer_price"),
74
    TRANSFER_PRICE((short)13, "transfer_price"),
78
    TOTAL_WEIGHT((short)14, "total_weight"),
75
    TOTAL_WEIGHT((short)14, "total_weight"),
79
    IMEI_NUMBER((short)15, "imei_number"),
76
    IMEI_NUMBER((short)15, "imei_number"),
80
    ITEM_NUMBER((short)16, "item_number");
77
    ITEM_NUMBER((short)16, "item_number");
81
 
78
 
82
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
83
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
79
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
84
 
80
 
85
    static {
81
    static {
86
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
82
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
87
        byId.put((int)field._thriftId, field);
-
 
88
        byName.put(field.getFieldName(), field);
83
        byName.put(field.getFieldName(), field);
89
      }
84
      }
90
    }
85
    }
91
 
86
 
92
    /**
87
    /**
93
     * Find the _Fields constant that matches fieldId, or null if its not found.
88
     * Find the _Fields constant that matches fieldId, or null if its not found.
94
     */
89
     */
95
    public static _Fields findByThriftId(int fieldId) {
90
    public static _Fields findByThriftId(int fieldId) {
96
      return byId.get(fieldId);
91
      switch(fieldId) {
-
 
92
        case 1: // ID
-
 
93
          return ID;
-
 
94
        case 2: // ITEM_ID
-
 
95
          return ITEM_ID;
-
 
96
        case 3: // PRODUCT_GROUP
-
 
97
          return PRODUCT_GROUP;
-
 
98
        case 4: // BRAND
-
 
99
          return BRAND;
-
 
100
        case 5: // MODEL_NUMBER
-
 
101
          return MODEL_NUMBER;
-
 
102
        case 6: // COLOR
-
 
103
          return COLOR;
-
 
104
        case 7: // MODEL_NAME
-
 
105
          return MODEL_NAME;
-
 
106
        case 8: // EXTRA_INFO
-
 
107
          return EXTRA_INFO;
-
 
108
        case 9: // QUANTITY
-
 
109
          return QUANTITY;
-
 
110
        case 10: // UNIT_PRICE
-
 
111
          return UNIT_PRICE;
-
 
112
        case 11: // UNIT_WEIGHT
-
 
113
          return UNIT_WEIGHT;
-
 
114
        case 12: // TOTAL_PRICE
-
 
115
          return TOTAL_PRICE;
-
 
116
        case 13: // TRANSFER_PRICE
-
 
117
          return TRANSFER_PRICE;
-
 
118
        case 14: // TOTAL_WEIGHT
-
 
119
          return TOTAL_WEIGHT;
-
 
120
        case 15: // IMEI_NUMBER
-
 
121
          return IMEI_NUMBER;
-
 
122
        case 16: // ITEM_NUMBER
-
 
123
          return ITEM_NUMBER;
-
 
124
        default:
-
 
125
          return null;
-
 
126
      }
97
    }
127
    }
98
 
128
 
99
    /**
129
    /**
100
     * Find the _Fields constant that matches fieldId, throwing an exception
130
     * Find the _Fields constant that matches fieldId, throwing an exception
101
     * if it is not found.
131
     * if it is not found.
Line 140... Line 170...
140
  private static final int __TRANSFER_PRICE_ISSET_ID = 6;
170
  private static final int __TRANSFER_PRICE_ISSET_ID = 6;
141
  private static final int __TOTAL_WEIGHT_ISSET_ID = 7;
171
  private static final int __TOTAL_WEIGHT_ISSET_ID = 7;
142
  private static final int __IMEI_NUMBER_ISSET_ID = 8;
172
  private static final int __IMEI_NUMBER_ISSET_ID = 8;
143
  private BitSet __isset_bit_vector = new BitSet(9);
173
  private BitSet __isset_bit_vector = new BitSet(9);
144
 
174
 
145
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
175
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
146
    put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
-
 
147
        new FieldValueMetaData(TType.I64)));
-
 
148
    put(_Fields.ITEM_ID, new FieldMetaData("item_id", TFieldRequirementType.DEFAULT, 
-
 
149
        new FieldValueMetaData(TType.I64)));
-
 
150
    put(_Fields.PRODUCT_GROUP, new FieldMetaData("productGroup", TFieldRequirementType.DEFAULT, 
-
 
151
        new FieldValueMetaData(TType.STRING)));
-
 
152
    put(_Fields.BRAND, new FieldMetaData("brand", TFieldRequirementType.DEFAULT, 
-
 
153
        new FieldValueMetaData(TType.STRING)));
-
 
154
    put(_Fields.MODEL_NUMBER, new FieldMetaData("model_number", TFieldRequirementType.DEFAULT, 
-
 
155
        new FieldValueMetaData(TType.STRING)));
-
 
156
    put(_Fields.COLOR, new FieldMetaData("color", TFieldRequirementType.DEFAULT, 
-
 
157
        new FieldValueMetaData(TType.STRING)));
-
 
158
    put(_Fields.MODEL_NAME, new FieldMetaData("model_name", TFieldRequirementType.DEFAULT, 
-
 
159
        new FieldValueMetaData(TType.STRING)));
-
 
160
    put(_Fields.EXTRA_INFO, new FieldMetaData("extra_info", TFieldRequirementType.DEFAULT, 
-
 
161
        new FieldValueMetaData(TType.STRING)));
-
 
162
    put(_Fields.QUANTITY, new FieldMetaData("quantity", TFieldRequirementType.DEFAULT, 
-
 
163
        new FieldValueMetaData(TType.DOUBLE)));
-
 
164
    put(_Fields.UNIT_PRICE, new FieldMetaData("unit_price", TFieldRequirementType.DEFAULT, 
-
 
165
        new FieldValueMetaData(TType.DOUBLE)));
-
 
166
    put(_Fields.UNIT_WEIGHT, new FieldMetaData("unit_weight", TFieldRequirementType.DEFAULT, 
-
 
167
        new FieldValueMetaData(TType.DOUBLE)));
-
 
168
    put(_Fields.TOTAL_PRICE, new FieldMetaData("total_price", TFieldRequirementType.DEFAULT, 
-
 
169
        new FieldValueMetaData(TType.DOUBLE)));
-
 
170
    put(_Fields.TRANSFER_PRICE, new FieldMetaData("transfer_price", TFieldRequirementType.DEFAULT, 
-
 
171
        new FieldValueMetaData(TType.DOUBLE)));
-
 
172
    put(_Fields.TOTAL_WEIGHT, new FieldMetaData("total_weight", TFieldRequirementType.DEFAULT, 
-
 
173
        new FieldValueMetaData(TType.DOUBLE)));
-
 
174
    put(_Fields.IMEI_NUMBER, new FieldMetaData("imei_number", TFieldRequirementType.OPTIONAL, 
-
 
175
        new FieldValueMetaData(TType.I64)));
-
 
176
    put(_Fields.ITEM_NUMBER, new FieldMetaData("item_number", TFieldRequirementType.OPTIONAL, 
-
 
177
        new FieldValueMetaData(TType.STRING)));
-
 
178
  }});
-
 
179
 
-
 
180
  static {
176
  static {
-
 
177
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
178
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
179
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
180
    tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
181
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
182
    tmpMap.put(_Fields.PRODUCT_GROUP, new org.apache.thrift.meta_data.FieldMetaData("productGroup", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
183
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
184
    tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
185
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
186
    tmpMap.put(_Fields.MODEL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("model_number", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
187
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
188
    tmpMap.put(_Fields.COLOR, new org.apache.thrift.meta_data.FieldMetaData("color", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
189
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
190
    tmpMap.put(_Fields.MODEL_NAME, new org.apache.thrift.meta_data.FieldMetaData("model_name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
191
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
192
    tmpMap.put(_Fields.EXTRA_INFO, new org.apache.thrift.meta_data.FieldMetaData("extra_info", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
193
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
194
    tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
195
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
196
    tmpMap.put(_Fields.UNIT_PRICE, new org.apache.thrift.meta_data.FieldMetaData("unit_price", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
197
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
198
    tmpMap.put(_Fields.UNIT_WEIGHT, new org.apache.thrift.meta_data.FieldMetaData("unit_weight", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
199
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
200
    tmpMap.put(_Fields.TOTAL_PRICE, new org.apache.thrift.meta_data.FieldMetaData("total_price", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
201
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
202
    tmpMap.put(_Fields.TRANSFER_PRICE, new org.apache.thrift.meta_data.FieldMetaData("transfer_price", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
203
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
204
    tmpMap.put(_Fields.TOTAL_WEIGHT, new org.apache.thrift.meta_data.FieldMetaData("total_weight", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
205
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
206
    tmpMap.put(_Fields.IMEI_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("imei_number", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-
 
207
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
208
    tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("item_number", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-
 
209
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
210
    metaDataMap = Collections.unmodifiableMap(tmpMap);
181
    FieldMetaData.addStructMetaDataMap(LineItem.class, metaDataMap);
211
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(LineItem.class, metaDataMap);
182
  }
212
  }
183
 
213
 
184
  public LineItem() {
214
  public LineItem() {
185
  }
215
  }
186
 
216
 
Line 265... Line 295...
265
 
295
 
266
  public LineItem deepCopy() {
296
  public LineItem deepCopy() {
267
    return new LineItem(this);
297
    return new LineItem(this);
268
  }
298
  }
269
 
299
 
270
  @Deprecated
300
  @Override
271
  public LineItem clone() {
301
  public void clear() {
-
 
302
    setIdIsSet(false);
-
 
303
    this.id = 0;
-
 
304
    setItem_idIsSet(false);
-
 
305
    this.item_id = 0;
-
 
306
    this.productGroup = null;
-
 
307
    this.brand = null;
-
 
308
    this.model_number = null;
-
 
309
    this.color = null;
-
 
310
    this.model_name = null;
-
 
311
    this.extra_info = null;
-
 
312
    setQuantityIsSet(false);
-
 
313
    this.quantity = 0.0;
-
 
314
    setUnit_priceIsSet(false);
-
 
315
    this.unit_price = 0.0;
-
 
316
    setUnit_weightIsSet(false);
-
 
317
    this.unit_weight = 0.0;
-
 
318
    setTotal_priceIsSet(false);
-
 
319
    this.total_price = 0.0;
272
    return new LineItem(this);
320
    setTransfer_priceIsSet(false);
-
 
321
    this.transfer_price = 0.0;
-
 
322
    setTotal_weightIsSet(false);
-
 
323
    this.total_weight = 0.0;
-
 
324
    setImei_numberIsSet(false);
-
 
325
    this.imei_number = 0;
-
 
326
    this.item_number = null;
273
  }
327
  }
274
 
328
 
275
  public long getId() {
329
  public long getId() {
276
    return this.id;
330
    return this.id;
277
  }
331
  }
278
 
332
 
279
  public LineItem setId(long id) {
333
  public void setId(long id) {
280
    this.id = id;
334
    this.id = id;
281
    setIdIsSet(true);
335
    setIdIsSet(true);
282
    return this;
-
 
283
  }
336
  }
284
 
337
 
285
  public void unsetId() {
338
  public void unsetId() {
286
    __isset_bit_vector.clear(__ID_ISSET_ID);
339
    __isset_bit_vector.clear(__ID_ISSET_ID);
287
  }
340
  }
288
 
341
 
289
  /** Returns true if field id is set (has been asigned a value) and false otherwise */
342
  /** Returns true if field id is set (has been assigned a value) and false otherwise */
290
  public boolean isSetId() {
343
  public boolean isSetId() {
291
    return __isset_bit_vector.get(__ID_ISSET_ID);
344
    return __isset_bit_vector.get(__ID_ISSET_ID);
292
  }
345
  }
293
 
346
 
294
  public void setIdIsSet(boolean value) {
347
  public void setIdIsSet(boolean value) {
Line 297... Line 350...
297
 
350
 
298
  public long getItem_id() {
351
  public long getItem_id() {
299
    return this.item_id;
352
    return this.item_id;
300
  }
353
  }
301
 
354
 
302
  public LineItem setItem_id(long item_id) {
355
  public void setItem_id(long item_id) {
303
    this.item_id = item_id;
356
    this.item_id = item_id;
304
    setItem_idIsSet(true);
357
    setItem_idIsSet(true);
305
    return this;
-
 
306
  }
358
  }
307
 
359
 
308
  public void unsetItem_id() {
360
  public void unsetItem_id() {
309
    __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
361
    __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
310
  }
362
  }
311
 
363
 
312
  /** Returns true if field item_id is set (has been asigned a value) and false otherwise */
364
  /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
313
  public boolean isSetItem_id() {
365
  public boolean isSetItem_id() {
314
    return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
366
    return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
315
  }
367
  }
316
 
368
 
317
  public void setItem_idIsSet(boolean value) {
369
  public void setItem_idIsSet(boolean value) {
Line 320... Line 372...
320
 
372
 
321
  public String getProductGroup() {
373
  public String getProductGroup() {
322
    return this.productGroup;
374
    return this.productGroup;
323
  }
375
  }
324
 
376
 
325
  public LineItem setProductGroup(String productGroup) {
377
  public void setProductGroup(String productGroup) {
326
    this.productGroup = productGroup;
378
    this.productGroup = productGroup;
327
    return this;
-
 
328
  }
379
  }
329
 
380
 
330
  public void unsetProductGroup() {
381
  public void unsetProductGroup() {
331
    this.productGroup = null;
382
    this.productGroup = null;
332
  }
383
  }
333
 
384
 
334
  /** Returns true if field productGroup is set (has been asigned a value) and false otherwise */
385
  /** Returns true if field productGroup is set (has been assigned a value) and false otherwise */
335
  public boolean isSetProductGroup() {
386
  public boolean isSetProductGroup() {
336
    return this.productGroup != null;
387
    return this.productGroup != null;
337
  }
388
  }
338
 
389
 
339
  public void setProductGroupIsSet(boolean value) {
390
  public void setProductGroupIsSet(boolean value) {
Line 344... Line 395...
344
 
395
 
345
  public String getBrand() {
396
  public String getBrand() {
346
    return this.brand;
397
    return this.brand;
347
  }
398
  }
348
 
399
 
349
  public LineItem setBrand(String brand) {
400
  public void setBrand(String brand) {
350
    this.brand = brand;
401
    this.brand = brand;
351
    return this;
-
 
352
  }
402
  }
353
 
403
 
354
  public void unsetBrand() {
404
  public void unsetBrand() {
355
    this.brand = null;
405
    this.brand = null;
356
  }
406
  }
357
 
407
 
358
  /** Returns true if field brand is set (has been asigned a value) and false otherwise */
408
  /** Returns true if field brand is set (has been assigned a value) and false otherwise */
359
  public boolean isSetBrand() {
409
  public boolean isSetBrand() {
360
    return this.brand != null;
410
    return this.brand != null;
361
  }
411
  }
362
 
412
 
363
  public void setBrandIsSet(boolean value) {
413
  public void setBrandIsSet(boolean value) {
Line 368... Line 418...
368
 
418
 
369
  public String getModel_number() {
419
  public String getModel_number() {
370
    return this.model_number;
420
    return this.model_number;
371
  }
421
  }
372
 
422
 
373
  public LineItem setModel_number(String model_number) {
423
  public void setModel_number(String model_number) {
374
    this.model_number = model_number;
424
    this.model_number = model_number;
375
    return this;
-
 
376
  }
425
  }
377
 
426
 
378
  public void unsetModel_number() {
427
  public void unsetModel_number() {
379
    this.model_number = null;
428
    this.model_number = null;
380
  }
429
  }
381
 
430
 
382
  /** Returns true if field model_number is set (has been asigned a value) and false otherwise */
431
  /** Returns true if field model_number is set (has been assigned a value) and false otherwise */
383
  public boolean isSetModel_number() {
432
  public boolean isSetModel_number() {
384
    return this.model_number != null;
433
    return this.model_number != null;
385
  }
434
  }
386
 
435
 
387
  public void setModel_numberIsSet(boolean value) {
436
  public void setModel_numberIsSet(boolean value) {
Line 392... Line 441...
392
 
441
 
393
  public String getColor() {
442
  public String getColor() {
394
    return this.color;
443
    return this.color;
395
  }
444
  }
396
 
445
 
397
  public LineItem setColor(String color) {
446
  public void setColor(String color) {
398
    this.color = color;
447
    this.color = color;
399
    return this;
-
 
400
  }
448
  }
401
 
449
 
402
  public void unsetColor() {
450
  public void unsetColor() {
403
    this.color = null;
451
    this.color = null;
404
  }
452
  }
405
 
453
 
406
  /** Returns true if field color is set (has been asigned a value) and false otherwise */
454
  /** Returns true if field color is set (has been assigned a value) and false otherwise */
407
  public boolean isSetColor() {
455
  public boolean isSetColor() {
408
    return this.color != null;
456
    return this.color != null;
409
  }
457
  }
410
 
458
 
411
  public void setColorIsSet(boolean value) {
459
  public void setColorIsSet(boolean value) {
Line 416... Line 464...
416
 
464
 
417
  public String getModel_name() {
465
  public String getModel_name() {
418
    return this.model_name;
466
    return this.model_name;
419
  }
467
  }
420
 
468
 
421
  public LineItem setModel_name(String model_name) {
469
  public void setModel_name(String model_name) {
422
    this.model_name = model_name;
470
    this.model_name = model_name;
423
    return this;
-
 
424
  }
471
  }
425
 
472
 
426
  public void unsetModel_name() {
473
  public void unsetModel_name() {
427
    this.model_name = null;
474
    this.model_name = null;
428
  }
475
  }
429
 
476
 
430
  /** Returns true if field model_name is set (has been asigned a value) and false otherwise */
477
  /** Returns true if field model_name is set (has been assigned a value) and false otherwise */
431
  public boolean isSetModel_name() {
478
  public boolean isSetModel_name() {
432
    return this.model_name != null;
479
    return this.model_name != null;
433
  }
480
  }
434
 
481
 
435
  public void setModel_nameIsSet(boolean value) {
482
  public void setModel_nameIsSet(boolean value) {
Line 440... Line 487...
440
 
487
 
441
  public String getExtra_info() {
488
  public String getExtra_info() {
442
    return this.extra_info;
489
    return this.extra_info;
443
  }
490
  }
444
 
491
 
445
  public LineItem setExtra_info(String extra_info) {
492
  public void setExtra_info(String extra_info) {
446
    this.extra_info = extra_info;
493
    this.extra_info = extra_info;
447
    return this;
-
 
448
  }
494
  }
449
 
495
 
450
  public void unsetExtra_info() {
496
  public void unsetExtra_info() {
451
    this.extra_info = null;
497
    this.extra_info = null;
452
  }
498
  }
453
 
499
 
454
  /** Returns true if field extra_info is set (has been asigned a value) and false otherwise */
500
  /** Returns true if field extra_info is set (has been assigned a value) and false otherwise */
455
  public boolean isSetExtra_info() {
501
  public boolean isSetExtra_info() {
456
    return this.extra_info != null;
502
    return this.extra_info != null;
457
  }
503
  }
458
 
504
 
459
  public void setExtra_infoIsSet(boolean value) {
505
  public void setExtra_infoIsSet(boolean value) {
Line 464... Line 510...
464
 
510
 
465
  public double getQuantity() {
511
  public double getQuantity() {
466
    return this.quantity;
512
    return this.quantity;
467
  }
513
  }
468
 
514
 
469
  public LineItem setQuantity(double quantity) {
515
  public void setQuantity(double quantity) {
470
    this.quantity = quantity;
516
    this.quantity = quantity;
471
    setQuantityIsSet(true);
517
    setQuantityIsSet(true);
472
    return this;
-
 
473
  }
518
  }
474
 
519
 
475
  public void unsetQuantity() {
520
  public void unsetQuantity() {
476
    __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
521
    __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
477
  }
522
  }
478
 
523
 
479
  /** Returns true if field quantity is set (has been asigned a value) and false otherwise */
524
  /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
480
  public boolean isSetQuantity() {
525
  public boolean isSetQuantity() {
481
    return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
526
    return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
482
  }
527
  }
483
 
528
 
484
  public void setQuantityIsSet(boolean value) {
529
  public void setQuantityIsSet(boolean value) {
Line 487... Line 532...
487
 
532
 
488
  public double getUnit_price() {
533
  public double getUnit_price() {
489
    return this.unit_price;
534
    return this.unit_price;
490
  }
535
  }
491
 
536
 
492
  public LineItem setUnit_price(double unit_price) {
537
  public void setUnit_price(double unit_price) {
493
    this.unit_price = unit_price;
538
    this.unit_price = unit_price;
494
    setUnit_priceIsSet(true);
539
    setUnit_priceIsSet(true);
495
    return this;
-
 
496
  }
540
  }
497
 
541
 
498
  public void unsetUnit_price() {
542
  public void unsetUnit_price() {
499
    __isset_bit_vector.clear(__UNIT_PRICE_ISSET_ID);
543
    __isset_bit_vector.clear(__UNIT_PRICE_ISSET_ID);
500
  }
544
  }
501
 
545
 
502
  /** Returns true if field unit_price is set (has been asigned a value) and false otherwise */
546
  /** Returns true if field unit_price is set (has been assigned a value) and false otherwise */
503
  public boolean isSetUnit_price() {
547
  public boolean isSetUnit_price() {
504
    return __isset_bit_vector.get(__UNIT_PRICE_ISSET_ID);
548
    return __isset_bit_vector.get(__UNIT_PRICE_ISSET_ID);
505
  }
549
  }
506
 
550
 
507
  public void setUnit_priceIsSet(boolean value) {
551
  public void setUnit_priceIsSet(boolean value) {
Line 510... Line 554...
510
 
554
 
511
  public double getUnit_weight() {
555
  public double getUnit_weight() {
512
    return this.unit_weight;
556
    return this.unit_weight;
513
  }
557
  }
514
 
558
 
515
  public LineItem setUnit_weight(double unit_weight) {
559
  public void setUnit_weight(double unit_weight) {
516
    this.unit_weight = unit_weight;
560
    this.unit_weight = unit_weight;
517
    setUnit_weightIsSet(true);
561
    setUnit_weightIsSet(true);
518
    return this;
-
 
519
  }
562
  }
520
 
563
 
521
  public void unsetUnit_weight() {
564
  public void unsetUnit_weight() {
522
    __isset_bit_vector.clear(__UNIT_WEIGHT_ISSET_ID);
565
    __isset_bit_vector.clear(__UNIT_WEIGHT_ISSET_ID);
523
  }
566
  }
524
 
567
 
525
  /** Returns true if field unit_weight is set (has been asigned a value) and false otherwise */
568
  /** Returns true if field unit_weight is set (has been assigned a value) and false otherwise */
526
  public boolean isSetUnit_weight() {
569
  public boolean isSetUnit_weight() {
527
    return __isset_bit_vector.get(__UNIT_WEIGHT_ISSET_ID);
570
    return __isset_bit_vector.get(__UNIT_WEIGHT_ISSET_ID);
528
  }
571
  }
529
 
572
 
530
  public void setUnit_weightIsSet(boolean value) {
573
  public void setUnit_weightIsSet(boolean value) {
Line 533... Line 576...
533
 
576
 
534
  public double getTotal_price() {
577
  public double getTotal_price() {
535
    return this.total_price;
578
    return this.total_price;
536
  }
579
  }
537
 
580
 
538
  public LineItem setTotal_price(double total_price) {
581
  public void setTotal_price(double total_price) {
539
    this.total_price = total_price;
582
    this.total_price = total_price;
540
    setTotal_priceIsSet(true);
583
    setTotal_priceIsSet(true);
541
    return this;
-
 
542
  }
584
  }
543
 
585
 
544
  public void unsetTotal_price() {
586
  public void unsetTotal_price() {
545
    __isset_bit_vector.clear(__TOTAL_PRICE_ISSET_ID);
587
    __isset_bit_vector.clear(__TOTAL_PRICE_ISSET_ID);
546
  }
588
  }
547
 
589
 
548
  /** Returns true if field total_price is set (has been asigned a value) and false otherwise */
590
  /** Returns true if field total_price is set (has been assigned a value) and false otherwise */
549
  public boolean isSetTotal_price() {
591
  public boolean isSetTotal_price() {
550
    return __isset_bit_vector.get(__TOTAL_PRICE_ISSET_ID);
592
    return __isset_bit_vector.get(__TOTAL_PRICE_ISSET_ID);
551
  }
593
  }
552
 
594
 
553
  public void setTotal_priceIsSet(boolean value) {
595
  public void setTotal_priceIsSet(boolean value) {
Line 556... Line 598...
556
 
598
 
557
  public double getTransfer_price() {
599
  public double getTransfer_price() {
558
    return this.transfer_price;
600
    return this.transfer_price;
559
  }
601
  }
560
 
602
 
561
  public LineItem setTransfer_price(double transfer_price) {
603
  public void setTransfer_price(double transfer_price) {
562
    this.transfer_price = transfer_price;
604
    this.transfer_price = transfer_price;
563
    setTransfer_priceIsSet(true);
605
    setTransfer_priceIsSet(true);
564
    return this;
-
 
565
  }
606
  }
566
 
607
 
567
  public void unsetTransfer_price() {
608
  public void unsetTransfer_price() {
568
    __isset_bit_vector.clear(__TRANSFER_PRICE_ISSET_ID);
609
    __isset_bit_vector.clear(__TRANSFER_PRICE_ISSET_ID);
569
  }
610
  }
570
 
611
 
571
  /** Returns true if field transfer_price is set (has been asigned a value) and false otherwise */
612
  /** Returns true if field transfer_price is set (has been assigned a value) and false otherwise */
572
  public boolean isSetTransfer_price() {
613
  public boolean isSetTransfer_price() {
573
    return __isset_bit_vector.get(__TRANSFER_PRICE_ISSET_ID);
614
    return __isset_bit_vector.get(__TRANSFER_PRICE_ISSET_ID);
574
  }
615
  }
575
 
616
 
576
  public void setTransfer_priceIsSet(boolean value) {
617
  public void setTransfer_priceIsSet(boolean value) {
Line 579... Line 620...
579
 
620
 
580
  public double getTotal_weight() {
621
  public double getTotal_weight() {
581
    return this.total_weight;
622
    return this.total_weight;
582
  }
623
  }
583
 
624
 
584
  public LineItem setTotal_weight(double total_weight) {
625
  public void setTotal_weight(double total_weight) {
585
    this.total_weight = total_weight;
626
    this.total_weight = total_weight;
586
    setTotal_weightIsSet(true);
627
    setTotal_weightIsSet(true);
587
    return this;
-
 
588
  }
628
  }
589
 
629
 
590
  public void unsetTotal_weight() {
630
  public void unsetTotal_weight() {
591
    __isset_bit_vector.clear(__TOTAL_WEIGHT_ISSET_ID);
631
    __isset_bit_vector.clear(__TOTAL_WEIGHT_ISSET_ID);
592
  }
632
  }
593
 
633
 
594
  /** Returns true if field total_weight is set (has been asigned a value) and false otherwise */
634
  /** Returns true if field total_weight is set (has been assigned a value) and false otherwise */
595
  public boolean isSetTotal_weight() {
635
  public boolean isSetTotal_weight() {
596
    return __isset_bit_vector.get(__TOTAL_WEIGHT_ISSET_ID);
636
    return __isset_bit_vector.get(__TOTAL_WEIGHT_ISSET_ID);
597
  }
637
  }
598
 
638
 
599
  public void setTotal_weightIsSet(boolean value) {
639
  public void setTotal_weightIsSet(boolean value) {
Line 602... Line 642...
602
 
642
 
603
  public long getImei_number() {
643
  public long getImei_number() {
604
    return this.imei_number;
644
    return this.imei_number;
605
  }
645
  }
606
 
646
 
607
  public LineItem setImei_number(long imei_number) {
647
  public void setImei_number(long imei_number) {
608
    this.imei_number = imei_number;
648
    this.imei_number = imei_number;
609
    setImei_numberIsSet(true);
649
    setImei_numberIsSet(true);
610
    return this;
-
 
611
  }
650
  }
612
 
651
 
613
  public void unsetImei_number() {
652
  public void unsetImei_number() {
614
    __isset_bit_vector.clear(__IMEI_NUMBER_ISSET_ID);
653
    __isset_bit_vector.clear(__IMEI_NUMBER_ISSET_ID);
615
  }
654
  }
616
 
655
 
617
  /** Returns true if field imei_number is set (has been asigned a value) and false otherwise */
656
  /** Returns true if field imei_number is set (has been assigned a value) and false otherwise */
618
  public boolean isSetImei_number() {
657
  public boolean isSetImei_number() {
619
    return __isset_bit_vector.get(__IMEI_NUMBER_ISSET_ID);
658
    return __isset_bit_vector.get(__IMEI_NUMBER_ISSET_ID);
620
  }
659
  }
621
 
660
 
622
  public void setImei_numberIsSet(boolean value) {
661
  public void setImei_numberIsSet(boolean value) {
Line 625... Line 664...
625
 
664
 
626
  public String getItem_number() {
665
  public String getItem_number() {
627
    return this.item_number;
666
    return this.item_number;
628
  }
667
  }
629
 
668
 
630
  public LineItem setItem_number(String item_number) {
669
  public void setItem_number(String item_number) {
631
    this.item_number = item_number;
670
    this.item_number = item_number;
632
    return this;
-
 
633
  }
671
  }
634
 
672
 
635
  public void unsetItem_number() {
673
  public void unsetItem_number() {
636
    this.item_number = null;
674
    this.item_number = null;
637
  }
675
  }
638
 
676
 
639
  /** Returns true if field item_number is set (has been asigned a value) and false otherwise */
677
  /** Returns true if field item_number is set (has been assigned a value) and false otherwise */
640
  public boolean isSetItem_number() {
678
  public boolean isSetItem_number() {
641
    return this.item_number != null;
679
    return this.item_number != null;
642
  }
680
  }
643
 
681
 
644
  public void setItem_numberIsSet(boolean value) {
682
  public void setItem_numberIsSet(boolean value) {
Line 778... Line 816...
778
      break;
816
      break;
779
 
817
 
780
    }
818
    }
781
  }
819
  }
782
 
820
 
783
  public void setFieldValue(int fieldID, Object value) {
-
 
784
    setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
785
  }
-
 
786
 
-
 
787
  public Object getFieldValue(_Fields field) {
821
  public Object getFieldValue(_Fields field) {
788
    switch (field) {
822
    switch (field) {
789
    case ID:
823
    case ID:
790
      return new Long(getId());
824
      return Long.valueOf(getId());
791
 
825
 
792
    case ITEM_ID:
826
    case ITEM_ID:
793
      return new Long(getItem_id());
827
      return Long.valueOf(getItem_id());
794
 
828
 
795
    case PRODUCT_GROUP:
829
    case PRODUCT_GROUP:
796
      return getProductGroup();
830
      return getProductGroup();
797
 
831
 
798
    case BRAND:
832
    case BRAND:
Line 809... Line 843...
809
 
843
 
810
    case EXTRA_INFO:
844
    case EXTRA_INFO:
811
      return getExtra_info();
845
      return getExtra_info();
812
 
846
 
813
    case QUANTITY:
847
    case QUANTITY:
814
      return new Double(getQuantity());
848
      return Double.valueOf(getQuantity());
815
 
849
 
816
    case UNIT_PRICE:
850
    case UNIT_PRICE:
817
      return new Double(getUnit_price());
851
      return Double.valueOf(getUnit_price());
818
 
852
 
819
    case UNIT_WEIGHT:
853
    case UNIT_WEIGHT:
820
      return new Double(getUnit_weight());
854
      return Double.valueOf(getUnit_weight());
821
 
855
 
822
    case TOTAL_PRICE:
856
    case TOTAL_PRICE:
823
      return new Double(getTotal_price());
857
      return Double.valueOf(getTotal_price());
824
 
858
 
825
    case TRANSFER_PRICE:
859
    case TRANSFER_PRICE:
826
      return new Double(getTransfer_price());
860
      return Double.valueOf(getTransfer_price());
827
 
861
 
828
    case TOTAL_WEIGHT:
862
    case TOTAL_WEIGHT:
829
      return new Double(getTotal_weight());
863
      return Double.valueOf(getTotal_weight());
830
 
864
 
831
    case IMEI_NUMBER:
865
    case IMEI_NUMBER:
832
      return new Long(getImei_number());
866
      return Long.valueOf(getImei_number());
833
 
867
 
834
    case ITEM_NUMBER:
868
    case ITEM_NUMBER:
835
      return getItem_number();
869
      return getItem_number();
836
 
870
 
837
    }
871
    }
838
    throw new IllegalStateException();
872
    throw new IllegalStateException();
839
  }
873
  }
840
 
874
 
841
  public Object getFieldValue(int fieldId) {
-
 
842
    return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
843
  }
-
 
844
 
-
 
845
  /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
875
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
846
  public boolean isSet(_Fields field) {
876
  public boolean isSet(_Fields field) {
-
 
877
    if (field == null) {
-
 
878
      throw new IllegalArgumentException();
-
 
879
    }
-
 
880
 
847
    switch (field) {
881
    switch (field) {
848
    case ID:
882
    case ID:
849
      return isSetId();
883
      return isSetId();
850
    case ITEM_ID:
884
    case ITEM_ID:
851
      return isSetItem_id();
885
      return isSetItem_id();
Line 879... Line 913...
879
      return isSetItem_number();
913
      return isSetItem_number();
880
    }
914
    }
881
    throw new IllegalStateException();
915
    throw new IllegalStateException();
882
  }
916
  }
883
 
917
 
884
  public boolean isSet(int fieldID) {
-
 
885
    return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
886
  }
-
 
887
 
-
 
888
  @Override
918
  @Override
889
  public boolean equals(Object that) {
919
  public boolean equals(Object that) {
890
    if (that == null)
920
    if (that == null)
891
      return false;
921
      return false;
892
    if (that instanceof LineItem)
922
    if (that instanceof LineItem)
Line 1056... Line 1086...
1056
    }
1086
    }
1057
 
1087
 
1058
    int lastComparison = 0;
1088
    int lastComparison = 0;
1059
    LineItem typedOther = (LineItem)other;
1089
    LineItem typedOther = (LineItem)other;
1060
 
1090
 
1061
    lastComparison = Boolean.valueOf(isSetId()).compareTo(isSetId());
1091
    lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
1062
    if (lastComparison != 0) {
1092
    if (lastComparison != 0) {
1063
      return lastComparison;
1093
      return lastComparison;
1064
    }
1094
    }
-
 
1095
    if (isSetId()) {
1065
    lastComparison = TBaseHelper.compareTo(id, typedOther.id);
1096
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
1066
    if (lastComparison != 0) {
1097
      if (lastComparison != 0) {
1067
      return lastComparison;
1098
        return lastComparison;
-
 
1099
      }
1068
    }
1100
    }
1069
    lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(isSetItem_id());
1101
    lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
1070
    if (lastComparison != 0) {
1102
    if (lastComparison != 0) {
1071
      return lastComparison;
1103
      return lastComparison;
1072
    }
1104
    }
-
 
1105
    if (isSetItem_id()) {
1073
    lastComparison = TBaseHelper.compareTo(item_id, typedOther.item_id);
1106
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
1074
    if (lastComparison != 0) {
1107
      if (lastComparison != 0) {
1075
      return lastComparison;
1108
        return lastComparison;
-
 
1109
      }
1076
    }
1110
    }
1077
    lastComparison = Boolean.valueOf(isSetProductGroup()).compareTo(isSetProductGroup());
1111
    lastComparison = Boolean.valueOf(isSetProductGroup()).compareTo(typedOther.isSetProductGroup());
1078
    if (lastComparison != 0) {
1112
    if (lastComparison != 0) {
1079
      return lastComparison;
1113
      return lastComparison;
1080
    }
1114
    }
-
 
1115
    if (isSetProductGroup()) {
1081
    lastComparison = TBaseHelper.compareTo(productGroup, typedOther.productGroup);
1116
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.productGroup, typedOther.productGroup);
1082
    if (lastComparison != 0) {
1117
      if (lastComparison != 0) {
1083
      return lastComparison;
1118
        return lastComparison;
-
 
1119
      }
1084
    }
1120
    }
1085
    lastComparison = Boolean.valueOf(isSetBrand()).compareTo(isSetBrand());
1121
    lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());
1086
    if (lastComparison != 0) {
1122
    if (lastComparison != 0) {
1087
      return lastComparison;
1123
      return lastComparison;
1088
    }
1124
    }
-
 
1125
    if (isSetBrand()) {
1089
    lastComparison = TBaseHelper.compareTo(brand, typedOther.brand);
1126
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brand, typedOther.brand);
1090
    if (lastComparison != 0) {
1127
      if (lastComparison != 0) {
1091
      return lastComparison;
1128
        return lastComparison;
-
 
1129
      }
1092
    }
1130
    }
1093
    lastComparison = Boolean.valueOf(isSetModel_number()).compareTo(isSetModel_number());
1131
    lastComparison = Boolean.valueOf(isSetModel_number()).compareTo(typedOther.isSetModel_number());
1094
    if (lastComparison != 0) {
1132
    if (lastComparison != 0) {
1095
      return lastComparison;
1133
      return lastComparison;
1096
    }
1134
    }
-
 
1135
    if (isSetModel_number()) {
1097
    lastComparison = TBaseHelper.compareTo(model_number, typedOther.model_number);
1136
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.model_number, typedOther.model_number);
1098
    if (lastComparison != 0) {
1137
      if (lastComparison != 0) {
1099
      return lastComparison;
1138
        return lastComparison;
-
 
1139
      }
1100
    }
1140
    }
1101
    lastComparison = Boolean.valueOf(isSetColor()).compareTo(isSetColor());
1141
    lastComparison = Boolean.valueOf(isSetColor()).compareTo(typedOther.isSetColor());
1102
    if (lastComparison != 0) {
1142
    if (lastComparison != 0) {
1103
      return lastComparison;
1143
      return lastComparison;
1104
    }
1144
    }
-
 
1145
    if (isSetColor()) {
1105
    lastComparison = TBaseHelper.compareTo(color, typedOther.color);
1146
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.color, typedOther.color);
1106
    if (lastComparison != 0) {
1147
      if (lastComparison != 0) {
1107
      return lastComparison;
1148
        return lastComparison;
-
 
1149
      }
1108
    }
1150
    }
1109
    lastComparison = Boolean.valueOf(isSetModel_name()).compareTo(isSetModel_name());
1151
    lastComparison = Boolean.valueOf(isSetModel_name()).compareTo(typedOther.isSetModel_name());
1110
    if (lastComparison != 0) {
1152
    if (lastComparison != 0) {
1111
      return lastComparison;
1153
      return lastComparison;
1112
    }
1154
    }
-
 
1155
    if (isSetModel_name()) {
1113
    lastComparison = TBaseHelper.compareTo(model_name, typedOther.model_name);
1156
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.model_name, typedOther.model_name);
1114
    if (lastComparison != 0) {
1157
      if (lastComparison != 0) {
1115
      return lastComparison;
1158
        return lastComparison;
-
 
1159
      }
1116
    }
1160
    }
1117
    lastComparison = Boolean.valueOf(isSetExtra_info()).compareTo(isSetExtra_info());
1161
    lastComparison = Boolean.valueOf(isSetExtra_info()).compareTo(typedOther.isSetExtra_info());
1118
    if (lastComparison != 0) {
1162
    if (lastComparison != 0) {
1119
      return lastComparison;
1163
      return lastComparison;
1120
    }
1164
    }
-
 
1165
    if (isSetExtra_info()) {
1121
    lastComparison = TBaseHelper.compareTo(extra_info, typedOther.extra_info);
1166
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.extra_info, typedOther.extra_info);
1122
    if (lastComparison != 0) {
1167
      if (lastComparison != 0) {
1123
      return lastComparison;
1168
        return lastComparison;
-
 
1169
      }
1124
    }
1170
    }
1125
    lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(isSetQuantity());
1171
    lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
1126
    if (lastComparison != 0) {
1172
    if (lastComparison != 0) {
1127
      return lastComparison;
1173
      return lastComparison;
1128
    }
1174
    }
-
 
1175
    if (isSetQuantity()) {
1129
    lastComparison = TBaseHelper.compareTo(quantity, typedOther.quantity);
1176
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
1130
    if (lastComparison != 0) {
1177
      if (lastComparison != 0) {
1131
      return lastComparison;
1178
        return lastComparison;
-
 
1179
      }
1132
    }
1180
    }
1133
    lastComparison = Boolean.valueOf(isSetUnit_price()).compareTo(isSetUnit_price());
1181
    lastComparison = Boolean.valueOf(isSetUnit_price()).compareTo(typedOther.isSetUnit_price());
1134
    if (lastComparison != 0) {
1182
    if (lastComparison != 0) {
1135
      return lastComparison;
1183
      return lastComparison;
1136
    }
1184
    }
-
 
1185
    if (isSetUnit_price()) {
1137
    lastComparison = TBaseHelper.compareTo(unit_price, typedOther.unit_price);
1186
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unit_price, typedOther.unit_price);
1138
    if (lastComparison != 0) {
1187
      if (lastComparison != 0) {
1139
      return lastComparison;
1188
        return lastComparison;
-
 
1189
      }
1140
    }
1190
    }
1141
    lastComparison = Boolean.valueOf(isSetUnit_weight()).compareTo(isSetUnit_weight());
1191
    lastComparison = Boolean.valueOf(isSetUnit_weight()).compareTo(typedOther.isSetUnit_weight());
1142
    if (lastComparison != 0) {
1192
    if (lastComparison != 0) {
1143
      return lastComparison;
1193
      return lastComparison;
1144
    }
1194
    }
-
 
1195
    if (isSetUnit_weight()) {
1145
    lastComparison = TBaseHelper.compareTo(unit_weight, typedOther.unit_weight);
1196
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unit_weight, typedOther.unit_weight);
1146
    if (lastComparison != 0) {
1197
      if (lastComparison != 0) {
1147
      return lastComparison;
1198
        return lastComparison;
-
 
1199
      }
1148
    }
1200
    }
1149
    lastComparison = Boolean.valueOf(isSetTotal_price()).compareTo(isSetTotal_price());
1201
    lastComparison = Boolean.valueOf(isSetTotal_price()).compareTo(typedOther.isSetTotal_price());
1150
    if (lastComparison != 0) {
1202
    if (lastComparison != 0) {
1151
      return lastComparison;
1203
      return lastComparison;
1152
    }
1204
    }
-
 
1205
    if (isSetTotal_price()) {
1153
    lastComparison = TBaseHelper.compareTo(total_price, typedOther.total_price);
1206
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.total_price, typedOther.total_price);
1154
    if (lastComparison != 0) {
1207
      if (lastComparison != 0) {
1155
      return lastComparison;
1208
        return lastComparison;
-
 
1209
      }
1156
    }
1210
    }
1157
    lastComparison = Boolean.valueOf(isSetTransfer_price()).compareTo(isSetTransfer_price());
1211
    lastComparison = Boolean.valueOf(isSetTransfer_price()).compareTo(typedOther.isSetTransfer_price());
1158
    if (lastComparison != 0) {
1212
    if (lastComparison != 0) {
1159
      return lastComparison;
1213
      return lastComparison;
1160
    }
1214
    }
-
 
1215
    if (isSetTransfer_price()) {
1161
    lastComparison = TBaseHelper.compareTo(transfer_price, typedOther.transfer_price);
1216
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transfer_price, typedOther.transfer_price);
1162
    if (lastComparison != 0) {
1217
      if (lastComparison != 0) {
1163
      return lastComparison;
1218
        return lastComparison;
-
 
1219
      }
1164
    }
1220
    }
1165
    lastComparison = Boolean.valueOf(isSetTotal_weight()).compareTo(isSetTotal_weight());
1221
    lastComparison = Boolean.valueOf(isSetTotal_weight()).compareTo(typedOther.isSetTotal_weight());
1166
    if (lastComparison != 0) {
1222
    if (lastComparison != 0) {
1167
      return lastComparison;
1223
      return lastComparison;
1168
    }
1224
    }
-
 
1225
    if (isSetTotal_weight()) {
1169
    lastComparison = TBaseHelper.compareTo(total_weight, typedOther.total_weight);
1226
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.total_weight, typedOther.total_weight);
1170
    if (lastComparison != 0) {
1227
      if (lastComparison != 0) {
1171
      return lastComparison;
1228
        return lastComparison;
-
 
1229
      }
1172
    }
1230
    }
1173
    lastComparison = Boolean.valueOf(isSetImei_number()).compareTo(isSetImei_number());
1231
    lastComparison = Boolean.valueOf(isSetImei_number()).compareTo(typedOther.isSetImei_number());
1174
    if (lastComparison != 0) {
1232
    if (lastComparison != 0) {
1175
      return lastComparison;
1233
      return lastComparison;
1176
    }
1234
    }
-
 
1235
    if (isSetImei_number()) {
1177
    lastComparison = TBaseHelper.compareTo(imei_number, typedOther.imei_number);
1236
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imei_number, typedOther.imei_number);
1178
    if (lastComparison != 0) {
1237
      if (lastComparison != 0) {
1179
      return lastComparison;
1238
        return lastComparison;
-
 
1239
      }
1180
    }
1240
    }
1181
    lastComparison = Boolean.valueOf(isSetItem_number()).compareTo(isSetItem_number());
1241
    lastComparison = Boolean.valueOf(isSetItem_number()).compareTo(typedOther.isSetItem_number());
1182
    if (lastComparison != 0) {
1242
    if (lastComparison != 0) {
1183
      return lastComparison;
1243
      return lastComparison;
1184
    }
1244
    }
-
 
1245
    if (isSetItem_number()) {
1185
    lastComparison = TBaseHelper.compareTo(item_number, typedOther.item_number);
1246
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_number, typedOther.item_number);
1186
    if (lastComparison != 0) {
1247
      if (lastComparison != 0) {
1187
      return lastComparison;
1248
        return lastComparison;
-
 
1249
      }
1188
    }
1250
    }
1189
    return 0;
1251
    return 0;
1190
  }
1252
  }
1191
 
1253
 
-
 
1254
  public _Fields fieldForId(int fieldId) {
-
 
1255
    return _Fields.findByThriftId(fieldId);
-
 
1256
  }
-
 
1257
 
1192
  public void read(TProtocol iprot) throws TException {
1258
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1193
    TField field;
1259
    org.apache.thrift.protocol.TField field;
1194
    iprot.readStructBegin();
1260
    iprot.readStructBegin();
1195
    while (true)
1261
    while (true)
1196
    {
1262
    {
1197
      field = iprot.readFieldBegin();
1263
      field = iprot.readFieldBegin();
1198
      if (field.type == TType.STOP) { 
1264
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1199
        break;
1265
        break;
1200
      }
1266
      }
1201
      _Fields fieldId = _Fields.findByThriftId(field.id);
1267
      switch (field.id) {
1202
      if (fieldId == null) {
1268
        case 1: // ID
1203
        TProtocolUtil.skip(iprot, field.type);
1269
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1204
      } else {
1270
            this.id = iprot.readI64();
1205
        switch (fieldId) {
1271
            setIdIsSet(true);
1206
          case ID:
1272
          } else { 
1207
            if (field.type == TType.I64) {
1273
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1208
              this.id = iprot.readI64();
1274
          }
1209
              setIdIsSet(true);
1275
          break;
1210
            } else { 
1276
        case 2: // ITEM_ID
1211
              TProtocolUtil.skip(iprot, field.type);
1277
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1212
            }
1278
            this.item_id = iprot.readI64();
1213
            break;
1279
            setItem_idIsSet(true);
1214
          case ITEM_ID:
1280
          } else { 
1215
            if (field.type == TType.I64) {
1281
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1216
              this.item_id = iprot.readI64();
1282
          }
1217
              setItem_idIsSet(true);
1283
          break;
1218
            } else { 
1284
        case 3: // PRODUCT_GROUP
1219
              TProtocolUtil.skip(iprot, field.type);
1285
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1220
            }
1286
            this.productGroup = iprot.readString();
1221
            break;
1287
          } else { 
1222
          case PRODUCT_GROUP:
1288
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1223
            if (field.type == TType.STRING) {
1289
          }
1224
              this.productGroup = iprot.readString();
1290
          break;
1225
            } else { 
1291
        case 4: // BRAND
1226
              TProtocolUtil.skip(iprot, field.type);
1292
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1227
            }
1293
            this.brand = iprot.readString();
1228
            break;
1294
          } else { 
1229
          case BRAND:
1295
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1230
            if (field.type == TType.STRING) {
1296
          }
1231
              this.brand = iprot.readString();
1297
          break;
1232
            } else { 
1298
        case 5: // MODEL_NUMBER
1233
              TProtocolUtil.skip(iprot, field.type);
1299
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1234
            }
1300
            this.model_number = iprot.readString();
1235
            break;
1301
          } else { 
1236
          case MODEL_NUMBER:
1302
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1237
            if (field.type == TType.STRING) {
1303
          }
1238
              this.model_number = iprot.readString();
1304
          break;
1239
            } else { 
1305
        case 6: // COLOR
1240
              TProtocolUtil.skip(iprot, field.type);
1306
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1241
            }
1307
            this.color = iprot.readString();
1242
            break;
1308
          } else { 
1243
          case COLOR:
1309
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1244
            if (field.type == TType.STRING) {
1310
          }
1245
              this.color = iprot.readString();
1311
          break;
1246
            } else { 
1312
        case 7: // MODEL_NAME
1247
              TProtocolUtil.skip(iprot, field.type);
1313
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1248
            }
1314
            this.model_name = iprot.readString();
1249
            break;
1315
          } else { 
1250
          case MODEL_NAME:
1316
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1251
            if (field.type == TType.STRING) {
1317
          }
1252
              this.model_name = iprot.readString();
1318
          break;
1253
            } else { 
1319
        case 8: // EXTRA_INFO
1254
              TProtocolUtil.skip(iprot, field.type);
1320
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1255
            }
1321
            this.extra_info = iprot.readString();
1256
            break;
1322
          } else { 
1257
          case EXTRA_INFO:
1323
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1258
            if (field.type == TType.STRING) {
1324
          }
1259
              this.extra_info = iprot.readString();
1325
          break;
1260
            } else { 
1326
        case 9: // QUANTITY
1261
              TProtocolUtil.skip(iprot, field.type);
1327
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1262
            }
1328
            this.quantity = iprot.readDouble();
1263
            break;
1329
            setQuantityIsSet(true);
1264
          case QUANTITY:
1330
          } else { 
1265
            if (field.type == TType.DOUBLE) {
1331
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1266
              this.quantity = iprot.readDouble();
1332
          }
1267
              setQuantityIsSet(true);
1333
          break;
1268
            } else { 
1334
        case 10: // UNIT_PRICE
1269
              TProtocolUtil.skip(iprot, field.type);
1335
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1270
            }
1336
            this.unit_price = iprot.readDouble();
1271
            break;
1337
            setUnit_priceIsSet(true);
1272
          case UNIT_PRICE:
1338
          } else { 
1273
            if (field.type == TType.DOUBLE) {
1339
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1274
              this.unit_price = iprot.readDouble();
1340
          }
1275
              setUnit_priceIsSet(true);
1341
          break;
1276
            } else { 
1342
        case 11: // UNIT_WEIGHT
1277
              TProtocolUtil.skip(iprot, field.type);
1343
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1278
            }
1344
            this.unit_weight = iprot.readDouble();
1279
            break;
1345
            setUnit_weightIsSet(true);
1280
          case UNIT_WEIGHT:
1346
          } else { 
1281
            if (field.type == TType.DOUBLE) {
1347
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1282
              this.unit_weight = iprot.readDouble();
1348
          }
1283
              setUnit_weightIsSet(true);
1349
          break;
1284
            } else { 
1350
        case 12: // TOTAL_PRICE
1285
              TProtocolUtil.skip(iprot, field.type);
1351
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1286
            }
1352
            this.total_price = iprot.readDouble();
1287
            break;
1353
            setTotal_priceIsSet(true);
1288
          case TOTAL_PRICE:
1354
          } else { 
1289
            if (field.type == TType.DOUBLE) {
1355
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1290
              this.total_price = iprot.readDouble();
1356
          }
1291
              setTotal_priceIsSet(true);
1357
          break;
1292
            } else { 
1358
        case 13: // TRANSFER_PRICE
1293
              TProtocolUtil.skip(iprot, field.type);
1359
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1294
            }
1360
            this.transfer_price = iprot.readDouble();
1295
            break;
1361
            setTransfer_priceIsSet(true);
1296
          case TRANSFER_PRICE:
1362
          } else { 
1297
            if (field.type == TType.DOUBLE) {
1363
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1298
              this.transfer_price = iprot.readDouble();
1364
          }
1299
              setTransfer_priceIsSet(true);
1365
          break;
1300
            } else { 
1366
        case 14: // TOTAL_WEIGHT
1301
              TProtocolUtil.skip(iprot, field.type);
1367
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1302
            }
1368
            this.total_weight = iprot.readDouble();
1303
            break;
1369
            setTotal_weightIsSet(true);
1304
          case TOTAL_WEIGHT:
1370
          } else { 
1305
            if (field.type == TType.DOUBLE) {
1371
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1306
              this.total_weight = iprot.readDouble();
1372
          }
1307
              setTotal_weightIsSet(true);
1373
          break;
1308
            } else { 
1374
        case 15: // IMEI_NUMBER
1309
              TProtocolUtil.skip(iprot, field.type);
1375
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1310
            }
1376
            this.imei_number = iprot.readI64();
1311
            break;
1377
            setImei_numberIsSet(true);
1312
          case IMEI_NUMBER:
1378
          } else { 
1313
            if (field.type == TType.I64) {
1379
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1314
              this.imei_number = iprot.readI64();
1380
          }
1315
              setImei_numberIsSet(true);
1381
          break;
1316
            } else { 
1382
        case 16: // ITEM_NUMBER
1317
              TProtocolUtil.skip(iprot, field.type);
1383
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1318
            }
1384
            this.item_number = iprot.readString();
1319
            break;
1385
          } else { 
1320
          case ITEM_NUMBER:
1386
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1321
            if (field.type == TType.STRING) {
1387
          }
1322
              this.item_number = iprot.readString();
1388
          break;
1323
            } else { 
1389
        default:
1324
              TProtocolUtil.skip(iprot, field.type);
1390
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1325
            }
-
 
1326
            break;
-
 
1327
        }
-
 
1328
        iprot.readFieldEnd();
-
 
1329
      }
1391
      }
-
 
1392
      iprot.readFieldEnd();
1330
    }
1393
    }
1331
    iprot.readStructEnd();
1394
    iprot.readStructEnd();
1332
    validate();
1395
    validate();
1333
  }
1396
  }
1334
 
1397
 
1335
  public void write(TProtocol oprot) throws TException {
1398
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1336
    validate();
1399
    validate();
1337
 
1400
 
1338
    oprot.writeStructBegin(STRUCT_DESC);
1401
    oprot.writeStructBegin(STRUCT_DESC);
1339
    oprot.writeFieldBegin(ID_FIELD_DESC);
1402
    oprot.writeFieldBegin(ID_FIELD_DESC);
1340
    oprot.writeI64(this.id);
1403
    oprot.writeI64(this.id);
Line 1508... Line 1571...
1508
    }
1571
    }
1509
    sb.append(")");
1572
    sb.append(")");
1510
    return sb.toString();
1573
    return sb.toString();
1511
  }
1574
  }
1512
 
1575
 
1513
  public void validate() throws TException {
1576
  public void validate() throws org.apache.thrift.TException {
1514
    // check for required fields
1577
    // check for required fields
1515
  }
1578
  }
1516
 
1579
 
-
 
1580
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
1581
    try {
-
 
1582
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
1583
    } catch (org.apache.thrift.TException te) {
-
 
1584
      throw new java.io.IOException(te);
-
 
1585
    }
-
 
1586
  }
-
 
1587
 
-
 
1588
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
1589
    try {
-
 
1590
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
1591
      __isset_bit_vector = new BitSet(1);
-
 
1592
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
1593
    } catch (org.apache.thrift.TException te) {
-
 
1594
      throw new java.io.IOException(te);
-
 
1595
    }
-
 
1596
  }
-
 
1597
 
1517
}
1598
}
1518
 
1599