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