Subversion Repositories SmartDukaan

Rev

Rev 8626 | Details | Compare with Previous | Last modification | View Log | RSS feed

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