| Line 33... |
Line 33... |
| 33 |
private static final org.apache.thrift.protocol.TField MIN_MFN_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("minMfnPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)8);
|
33 |
private static final org.apache.thrift.protocol.TField MIN_MFN_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("minMfnPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)8);
|
| 34 |
private static final org.apache.thrift.protocol.TField TOTAL_SALE_FIELD_DESC = new org.apache.thrift.protocol.TField("totalSale", org.apache.thrift.protocol.TType.DOUBLE, (short)9);
|
34 |
private static final org.apache.thrift.protocol.TField TOTAL_SALE_FIELD_DESC = new org.apache.thrift.protocol.TField("totalSale", org.apache.thrift.protocol.TType.DOUBLE, (short)9);
|
| 35 |
private static final org.apache.thrift.protocol.TField PROMOTION_SALE_FIELD_DESC = new org.apache.thrift.protocol.TField("promotionSale", org.apache.thrift.protocol.TType.DOUBLE, (short)10);
|
35 |
private static final org.apache.thrift.protocol.TField PROMOTION_SALE_FIELD_DESC = new org.apache.thrift.protocol.TField("promotionSale", org.apache.thrift.protocol.TType.DOUBLE, (short)10);
|
| 36 |
private static final org.apache.thrift.protocol.TField PROMOTION_ORDER_COUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("promotionOrderCount", org.apache.thrift.protocol.TType.I32, (short)11);
|
36 |
private static final org.apache.thrift.protocol.TField PROMOTION_ORDER_COUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("promotionOrderCount", org.apache.thrift.protocol.TType.I32, (short)11);
|
| 37 |
private static final org.apache.thrift.protocol.TField OUR_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("ourPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)12);
|
37 |
private static final org.apache.thrift.protocol.TField OUR_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("ourPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)12);
|
| - |
|
38 |
private static final org.apache.thrift.protocol.TField MIN_FBA_PRICE_SNAPSHOT_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("minFbaPriceSnapshotDate", org.apache.thrift.protocol.TType.I64, (short)13);
|
| - |
|
39 |
private static final org.apache.thrift.protocol.TField MIN_MFN_PRICE_SNAPSHOT_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("minMfnPriceSnapshotDate", org.apache.thrift.protocol.TType.I64, (short)14);
|
| - |
|
40 |
private static final org.apache.thrift.protocol.TField OUR_PRICE_SNAPSHOT_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("ourPriceSnapshotDate", org.apache.thrift.protocol.TType.I64, (short)15);
|
| - |
|
41 |
private static final org.apache.thrift.protocol.TField SALE_PRICE_SNAPSHOT_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("salePriceSnapshotDate", org.apache.thrift.protocol.TType.I64, (short)16);
|
| 38 |
|
42 |
|
| 39 |
private long dateOfSale; // required
|
43 |
private long dateOfSale; // required
|
| 40 |
private long item_id; // required
|
44 |
private long item_id; // required
|
| 41 |
private int totalOrderCount; // required
|
45 |
private int totalOrderCount; // required
|
| 42 |
private long amazonFbaInventory; // required
|
46 |
private long amazonFbaInventory; // required
|
| Line 46... |
Line 50... |
| 46 |
private double minMfnPrice; // required
|
50 |
private double minMfnPrice; // required
|
| 47 |
private double totalSale; // required
|
51 |
private double totalSale; // required
|
| 48 |
private double promotionSale; // required
|
52 |
private double promotionSale; // required
|
| 49 |
private int promotionOrderCount; // required
|
53 |
private int promotionOrderCount; // required
|
| 50 |
private double ourPrice; // required
|
54 |
private double ourPrice; // required
|
| - |
|
55 |
private long minFbaPriceSnapshotDate; // required
|
| - |
|
56 |
private long minMfnPriceSnapshotDate; // required
|
| - |
|
57 |
private long ourPriceSnapshotDate; // required
|
| - |
|
58 |
private long salePriceSnapshotDate; // required
|
| 51 |
|
59 |
|
| 52 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
60 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 53 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
61 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 54 |
DATE_OF_SALE((short)1, "dateOfSale"),
|
62 |
DATE_OF_SALE((short)1, "dateOfSale"),
|
| 55 |
ITEM_ID((short)2, "item_id"),
|
63 |
ITEM_ID((short)2, "item_id"),
|
| Line 60... |
Line 68... |
| 60 |
MIN_FBA_PRICE((short)7, "minFbaPrice"),
|
68 |
MIN_FBA_PRICE((short)7, "minFbaPrice"),
|
| 61 |
MIN_MFN_PRICE((short)8, "minMfnPrice"),
|
69 |
MIN_MFN_PRICE((short)8, "minMfnPrice"),
|
| 62 |
TOTAL_SALE((short)9, "totalSale"),
|
70 |
TOTAL_SALE((short)9, "totalSale"),
|
| 63 |
PROMOTION_SALE((short)10, "promotionSale"),
|
71 |
PROMOTION_SALE((short)10, "promotionSale"),
|
| 64 |
PROMOTION_ORDER_COUNT((short)11, "promotionOrderCount"),
|
72 |
PROMOTION_ORDER_COUNT((short)11, "promotionOrderCount"),
|
| 65 |
OUR_PRICE((short)12, "ourPrice");
|
73 |
OUR_PRICE((short)12, "ourPrice"),
|
| - |
|
74 |
MIN_FBA_PRICE_SNAPSHOT_DATE((short)13, "minFbaPriceSnapshotDate"),
|
| - |
|
75 |
MIN_MFN_PRICE_SNAPSHOT_DATE((short)14, "minMfnPriceSnapshotDate"),
|
| - |
|
76 |
OUR_PRICE_SNAPSHOT_DATE((short)15, "ourPriceSnapshotDate"),
|
| - |
|
77 |
SALE_PRICE_SNAPSHOT_DATE((short)16, "salePriceSnapshotDate");
|
| 66 |
|
78 |
|
| 67 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
79 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| 68 |
|
80 |
|
| 69 |
static {
|
81 |
static {
|
| 70 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
82 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| Line 99... |
Line 111... |
| 99 |
return PROMOTION_SALE;
|
111 |
return PROMOTION_SALE;
|
| 100 |
case 11: // PROMOTION_ORDER_COUNT
|
112 |
case 11: // PROMOTION_ORDER_COUNT
|
| 101 |
return PROMOTION_ORDER_COUNT;
|
113 |
return PROMOTION_ORDER_COUNT;
|
| 102 |
case 12: // OUR_PRICE
|
114 |
case 12: // OUR_PRICE
|
| 103 |
return OUR_PRICE;
|
115 |
return OUR_PRICE;
|
| - |
|
116 |
case 13: // MIN_FBA_PRICE_SNAPSHOT_DATE
|
| - |
|
117 |
return MIN_FBA_PRICE_SNAPSHOT_DATE;
|
| - |
|
118 |
case 14: // MIN_MFN_PRICE_SNAPSHOT_DATE
|
| - |
|
119 |
return MIN_MFN_PRICE_SNAPSHOT_DATE;
|
| - |
|
120 |
case 15: // OUR_PRICE_SNAPSHOT_DATE
|
| - |
|
121 |
return OUR_PRICE_SNAPSHOT_DATE;
|
| - |
|
122 |
case 16: // SALE_PRICE_SNAPSHOT_DATE
|
| - |
|
123 |
return SALE_PRICE_SNAPSHOT_DATE;
|
| 104 |
default:
|
124 |
default:
|
| 105 |
return null;
|
125 |
return null;
|
| 106 |
}
|
126 |
}
|
| 107 |
}
|
127 |
}
|
| 108 |
|
128 |
|
| Line 151... |
Line 171... |
| 151 |
private static final int __MINMFNPRICE_ISSET_ID = 7;
|
171 |
private static final int __MINMFNPRICE_ISSET_ID = 7;
|
| 152 |
private static final int __TOTALSALE_ISSET_ID = 8;
|
172 |
private static final int __TOTALSALE_ISSET_ID = 8;
|
| 153 |
private static final int __PROMOTIONSALE_ISSET_ID = 9;
|
173 |
private static final int __PROMOTIONSALE_ISSET_ID = 9;
|
| 154 |
private static final int __PROMOTIONORDERCOUNT_ISSET_ID = 10;
|
174 |
private static final int __PROMOTIONORDERCOUNT_ISSET_ID = 10;
|
| 155 |
private static final int __OURPRICE_ISSET_ID = 11;
|
175 |
private static final int __OURPRICE_ISSET_ID = 11;
|
| - |
|
176 |
private static final int __MINFBAPRICESNAPSHOTDATE_ISSET_ID = 12;
|
| - |
|
177 |
private static final int __MINMFNPRICESNAPSHOTDATE_ISSET_ID = 13;
|
| - |
|
178 |
private static final int __OURPRICESNAPSHOTDATE_ISSET_ID = 14;
|
| - |
|
179 |
private static final int __SALEPRICESNAPSHOTDATE_ISSET_ID = 15;
|
| 156 |
private BitSet __isset_bit_vector = new BitSet(12);
|
180 |
private BitSet __isset_bit_vector = new BitSet(16);
|
| 157 |
|
181 |
|
| 158 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
182 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 159 |
static {
|
183 |
static {
|
| 160 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
184 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 161 |
tmpMap.put(_Fields.DATE_OF_SALE, new org.apache.thrift.meta_data.FieldMetaData("dateOfSale", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
185 |
tmpMap.put(_Fields.DATE_OF_SALE, new org.apache.thrift.meta_data.FieldMetaData("dateOfSale", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| Line 180... |
Line 204... |
| 180 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
204 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
| 181 |
tmpMap.put(_Fields.PROMOTION_ORDER_COUNT, new org.apache.thrift.meta_data.FieldMetaData("promotionOrderCount", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
205 |
tmpMap.put(_Fields.PROMOTION_ORDER_COUNT, new org.apache.thrift.meta_data.FieldMetaData("promotionOrderCount", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 182 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
|
206 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
|
| 183 |
tmpMap.put(_Fields.OUR_PRICE, new org.apache.thrift.meta_data.FieldMetaData("ourPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
207 |
tmpMap.put(_Fields.OUR_PRICE, new org.apache.thrift.meta_data.FieldMetaData("ourPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 184 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
208 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
| - |
|
209 |
tmpMap.put(_Fields.MIN_FBA_PRICE_SNAPSHOT_DATE, new org.apache.thrift.meta_data.FieldMetaData("minFbaPriceSnapshotDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
210 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| - |
|
211 |
tmpMap.put(_Fields.MIN_MFN_PRICE_SNAPSHOT_DATE, new org.apache.thrift.meta_data.FieldMetaData("minMfnPriceSnapshotDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
212 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| - |
|
213 |
tmpMap.put(_Fields.OUR_PRICE_SNAPSHOT_DATE, new org.apache.thrift.meta_data.FieldMetaData("ourPriceSnapshotDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
214 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| - |
|
215 |
tmpMap.put(_Fields.SALE_PRICE_SNAPSHOT_DATE, new org.apache.thrift.meta_data.FieldMetaData("salePriceSnapshotDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
216 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 185 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
217 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 186 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(AmazonFbaSalesSnapshot.class, metaDataMap);
|
218 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(AmazonFbaSalesSnapshot.class, metaDataMap);
|
| 187 |
}
|
219 |
}
|
| 188 |
|
220 |
|
| 189 |
public AmazonFbaSalesSnapshot() {
|
221 |
public AmazonFbaSalesSnapshot() {
|
| Line 199... |
Line 231... |
| 199 |
double minFbaPrice,
|
231 |
double minFbaPrice,
|
| 200 |
double minMfnPrice,
|
232 |
double minMfnPrice,
|
| 201 |
double totalSale,
|
233 |
double totalSale,
|
| 202 |
double promotionSale,
|
234 |
double promotionSale,
|
| 203 |
int promotionOrderCount,
|
235 |
int promotionOrderCount,
|
| 204 |
double ourPrice)
|
236 |
double ourPrice,
|
| - |
|
237 |
long minFbaPriceSnapshotDate,
|
| - |
|
238 |
long minMfnPriceSnapshotDate,
|
| - |
|
239 |
long ourPriceSnapshotDate,
|
| - |
|
240 |
long salePriceSnapshotDate)
|
| 205 |
{
|
241 |
{
|
| 206 |
this();
|
242 |
this();
|
| 207 |
this.dateOfSale = dateOfSale;
|
243 |
this.dateOfSale = dateOfSale;
|
| 208 |
setDateOfSaleIsSet(true);
|
244 |
setDateOfSaleIsSet(true);
|
| 209 |
this.item_id = item_id;
|
245 |
this.item_id = item_id;
|
| Line 226... |
Line 262... |
| 226 |
setPromotionSaleIsSet(true);
|
262 |
setPromotionSaleIsSet(true);
|
| 227 |
this.promotionOrderCount = promotionOrderCount;
|
263 |
this.promotionOrderCount = promotionOrderCount;
|
| 228 |
setPromotionOrderCountIsSet(true);
|
264 |
setPromotionOrderCountIsSet(true);
|
| 229 |
this.ourPrice = ourPrice;
|
265 |
this.ourPrice = ourPrice;
|
| 230 |
setOurPriceIsSet(true);
|
266 |
setOurPriceIsSet(true);
|
| - |
|
267 |
this.minFbaPriceSnapshotDate = minFbaPriceSnapshotDate;
|
| - |
|
268 |
setMinFbaPriceSnapshotDateIsSet(true);
|
| - |
|
269 |
this.minMfnPriceSnapshotDate = minMfnPriceSnapshotDate;
|
| - |
|
270 |
setMinMfnPriceSnapshotDateIsSet(true);
|
| - |
|
271 |
this.ourPriceSnapshotDate = ourPriceSnapshotDate;
|
| - |
|
272 |
setOurPriceSnapshotDateIsSet(true);
|
| - |
|
273 |
this.salePriceSnapshotDate = salePriceSnapshotDate;
|
| - |
|
274 |
setSalePriceSnapshotDateIsSet(true);
|
| 231 |
}
|
275 |
}
|
| 232 |
|
276 |
|
| 233 |
/**
|
277 |
/**
|
| 234 |
* Performs a deep copy on <i>other</i>.
|
278 |
* Performs a deep copy on <i>other</i>.
|
| 235 |
*/
|
279 |
*/
|
| Line 246... |
Line 290... |
| 246 |
this.minMfnPrice = other.minMfnPrice;
|
290 |
this.minMfnPrice = other.minMfnPrice;
|
| 247 |
this.totalSale = other.totalSale;
|
291 |
this.totalSale = other.totalSale;
|
| 248 |
this.promotionSale = other.promotionSale;
|
292 |
this.promotionSale = other.promotionSale;
|
| 249 |
this.promotionOrderCount = other.promotionOrderCount;
|
293 |
this.promotionOrderCount = other.promotionOrderCount;
|
| 250 |
this.ourPrice = other.ourPrice;
|
294 |
this.ourPrice = other.ourPrice;
|
| - |
|
295 |
this.minFbaPriceSnapshotDate = other.minFbaPriceSnapshotDate;
|
| - |
|
296 |
this.minMfnPriceSnapshotDate = other.minMfnPriceSnapshotDate;
|
| - |
|
297 |
this.ourPriceSnapshotDate = other.ourPriceSnapshotDate;
|
| - |
|
298 |
this.salePriceSnapshotDate = other.salePriceSnapshotDate;
|
| 251 |
}
|
299 |
}
|
| 252 |
|
300 |
|
| 253 |
public AmazonFbaSalesSnapshot deepCopy() {
|
301 |
public AmazonFbaSalesSnapshot deepCopy() {
|
| 254 |
return new AmazonFbaSalesSnapshot(this);
|
302 |
return new AmazonFbaSalesSnapshot(this);
|
| 255 |
}
|
303 |
}
|
| Line 278... |
Line 326... |
| 278 |
this.promotionSale = 0.0;
|
326 |
this.promotionSale = 0.0;
|
| 279 |
setPromotionOrderCountIsSet(false);
|
327 |
setPromotionOrderCountIsSet(false);
|
| 280 |
this.promotionOrderCount = 0;
|
328 |
this.promotionOrderCount = 0;
|
| 281 |
setOurPriceIsSet(false);
|
329 |
setOurPriceIsSet(false);
|
| 282 |
this.ourPrice = 0.0;
|
330 |
this.ourPrice = 0.0;
|
| - |
|
331 |
setMinFbaPriceSnapshotDateIsSet(false);
|
| - |
|
332 |
this.minFbaPriceSnapshotDate = 0;
|
| - |
|
333 |
setMinMfnPriceSnapshotDateIsSet(false);
|
| - |
|
334 |
this.minMfnPriceSnapshotDate = 0;
|
| - |
|
335 |
setOurPriceSnapshotDateIsSet(false);
|
| - |
|
336 |
this.ourPriceSnapshotDate = 0;
|
| - |
|
337 |
setSalePriceSnapshotDateIsSet(false);
|
| - |
|
338 |
this.salePriceSnapshotDate = 0;
|
| 283 |
}
|
339 |
}
|
| 284 |
|
340 |
|
| 285 |
public long getDateOfSale() {
|
341 |
public long getDateOfSale() {
|
| 286 |
return this.dateOfSale;
|
342 |
return this.dateOfSale;
|
| 287 |
}
|
343 |
}
|
| Line 544... |
Line 600... |
| 544 |
|
600 |
|
| 545 |
public void setOurPriceIsSet(boolean value) {
|
601 |
public void setOurPriceIsSet(boolean value) {
|
| 546 |
__isset_bit_vector.set(__OURPRICE_ISSET_ID, value);
|
602 |
__isset_bit_vector.set(__OURPRICE_ISSET_ID, value);
|
| 547 |
}
|
603 |
}
|
| 548 |
|
604 |
|
| - |
|
605 |
public long getMinFbaPriceSnapshotDate() {
|
| - |
|
606 |
return this.minFbaPriceSnapshotDate;
|
| - |
|
607 |
}
|
| - |
|
608 |
|
| - |
|
609 |
public void setMinFbaPriceSnapshotDate(long minFbaPriceSnapshotDate) {
|
| - |
|
610 |
this.minFbaPriceSnapshotDate = minFbaPriceSnapshotDate;
|
| - |
|
611 |
setMinFbaPriceSnapshotDateIsSet(true);
|
| - |
|
612 |
}
|
| - |
|
613 |
|
| - |
|
614 |
public void unsetMinFbaPriceSnapshotDate() {
|
| - |
|
615 |
__isset_bit_vector.clear(__MINFBAPRICESNAPSHOTDATE_ISSET_ID);
|
| - |
|
616 |
}
|
| - |
|
617 |
|
| - |
|
618 |
/** Returns true if field minFbaPriceSnapshotDate is set (has been assigned a value) and false otherwise */
|
| - |
|
619 |
public boolean isSetMinFbaPriceSnapshotDate() {
|
| - |
|
620 |
return __isset_bit_vector.get(__MINFBAPRICESNAPSHOTDATE_ISSET_ID);
|
| - |
|
621 |
}
|
| - |
|
622 |
|
| - |
|
623 |
public void setMinFbaPriceSnapshotDateIsSet(boolean value) {
|
| - |
|
624 |
__isset_bit_vector.set(__MINFBAPRICESNAPSHOTDATE_ISSET_ID, value);
|
| - |
|
625 |
}
|
| - |
|
626 |
|
| - |
|
627 |
public long getMinMfnPriceSnapshotDate() {
|
| - |
|
628 |
return this.minMfnPriceSnapshotDate;
|
| - |
|
629 |
}
|
| - |
|
630 |
|
| - |
|
631 |
public void setMinMfnPriceSnapshotDate(long minMfnPriceSnapshotDate) {
|
| - |
|
632 |
this.minMfnPriceSnapshotDate = minMfnPriceSnapshotDate;
|
| - |
|
633 |
setMinMfnPriceSnapshotDateIsSet(true);
|
| - |
|
634 |
}
|
| - |
|
635 |
|
| - |
|
636 |
public void unsetMinMfnPriceSnapshotDate() {
|
| - |
|
637 |
__isset_bit_vector.clear(__MINMFNPRICESNAPSHOTDATE_ISSET_ID);
|
| - |
|
638 |
}
|
| - |
|
639 |
|
| - |
|
640 |
/** Returns true if field minMfnPriceSnapshotDate is set (has been assigned a value) and false otherwise */
|
| - |
|
641 |
public boolean isSetMinMfnPriceSnapshotDate() {
|
| - |
|
642 |
return __isset_bit_vector.get(__MINMFNPRICESNAPSHOTDATE_ISSET_ID);
|
| - |
|
643 |
}
|
| - |
|
644 |
|
| - |
|
645 |
public void setMinMfnPriceSnapshotDateIsSet(boolean value) {
|
| - |
|
646 |
__isset_bit_vector.set(__MINMFNPRICESNAPSHOTDATE_ISSET_ID, value);
|
| - |
|
647 |
}
|
| - |
|
648 |
|
| - |
|
649 |
public long getOurPriceSnapshotDate() {
|
| - |
|
650 |
return this.ourPriceSnapshotDate;
|
| - |
|
651 |
}
|
| - |
|
652 |
|
| - |
|
653 |
public void setOurPriceSnapshotDate(long ourPriceSnapshotDate) {
|
| - |
|
654 |
this.ourPriceSnapshotDate = ourPriceSnapshotDate;
|
| - |
|
655 |
setOurPriceSnapshotDateIsSet(true);
|
| - |
|
656 |
}
|
| - |
|
657 |
|
| - |
|
658 |
public void unsetOurPriceSnapshotDate() {
|
| - |
|
659 |
__isset_bit_vector.clear(__OURPRICESNAPSHOTDATE_ISSET_ID);
|
| - |
|
660 |
}
|
| - |
|
661 |
|
| - |
|
662 |
/** Returns true if field ourPriceSnapshotDate is set (has been assigned a value) and false otherwise */
|
| - |
|
663 |
public boolean isSetOurPriceSnapshotDate() {
|
| - |
|
664 |
return __isset_bit_vector.get(__OURPRICESNAPSHOTDATE_ISSET_ID);
|
| - |
|
665 |
}
|
| - |
|
666 |
|
| - |
|
667 |
public void setOurPriceSnapshotDateIsSet(boolean value) {
|
| - |
|
668 |
__isset_bit_vector.set(__OURPRICESNAPSHOTDATE_ISSET_ID, value);
|
| - |
|
669 |
}
|
| - |
|
670 |
|
| - |
|
671 |
public long getSalePriceSnapshotDate() {
|
| - |
|
672 |
return this.salePriceSnapshotDate;
|
| - |
|
673 |
}
|
| - |
|
674 |
|
| - |
|
675 |
public void setSalePriceSnapshotDate(long salePriceSnapshotDate) {
|
| - |
|
676 |
this.salePriceSnapshotDate = salePriceSnapshotDate;
|
| - |
|
677 |
setSalePriceSnapshotDateIsSet(true);
|
| - |
|
678 |
}
|
| - |
|
679 |
|
| - |
|
680 |
public void unsetSalePriceSnapshotDate() {
|
| - |
|
681 |
__isset_bit_vector.clear(__SALEPRICESNAPSHOTDATE_ISSET_ID);
|
| - |
|
682 |
}
|
| - |
|
683 |
|
| - |
|
684 |
/** Returns true if field salePriceSnapshotDate is set (has been assigned a value) and false otherwise */
|
| - |
|
685 |
public boolean isSetSalePriceSnapshotDate() {
|
| - |
|
686 |
return __isset_bit_vector.get(__SALEPRICESNAPSHOTDATE_ISSET_ID);
|
| - |
|
687 |
}
|
| - |
|
688 |
|
| - |
|
689 |
public void setSalePriceSnapshotDateIsSet(boolean value) {
|
| - |
|
690 |
__isset_bit_vector.set(__SALEPRICESNAPSHOTDATE_ISSET_ID, value);
|
| - |
|
691 |
}
|
| - |
|
692 |
|
| 549 |
public void setFieldValue(_Fields field, Object value) {
|
693 |
public void setFieldValue(_Fields field, Object value) {
|
| 550 |
switch (field) {
|
694 |
switch (field) {
|
| 551 |
case DATE_OF_SALE:
|
695 |
case DATE_OF_SALE:
|
| 552 |
if (value == null) {
|
696 |
if (value == null) {
|
| 553 |
unsetDateOfSale();
|
697 |
unsetDateOfSale();
|
| Line 642... |
Line 786... |
| 642 |
} else {
|
786 |
} else {
|
| 643 |
setOurPrice((Double)value);
|
787 |
setOurPrice((Double)value);
|
| 644 |
}
|
788 |
}
|
| 645 |
break;
|
789 |
break;
|
| 646 |
|
790 |
|
| - |
|
791 |
case MIN_FBA_PRICE_SNAPSHOT_DATE:
|
| - |
|
792 |
if (value == null) {
|
| - |
|
793 |
unsetMinFbaPriceSnapshotDate();
|
| - |
|
794 |
} else {
|
| - |
|
795 |
setMinFbaPriceSnapshotDate((Long)value);
|
| - |
|
796 |
}
|
| - |
|
797 |
break;
|
| - |
|
798 |
|
| - |
|
799 |
case MIN_MFN_PRICE_SNAPSHOT_DATE:
|
| - |
|
800 |
if (value == null) {
|
| - |
|
801 |
unsetMinMfnPriceSnapshotDate();
|
| - |
|
802 |
} else {
|
| - |
|
803 |
setMinMfnPriceSnapshotDate((Long)value);
|
| - |
|
804 |
}
|
| - |
|
805 |
break;
|
| - |
|
806 |
|
| - |
|
807 |
case OUR_PRICE_SNAPSHOT_DATE:
|
| - |
|
808 |
if (value == null) {
|
| - |
|
809 |
unsetOurPriceSnapshotDate();
|
| - |
|
810 |
} else {
|
| - |
|
811 |
setOurPriceSnapshotDate((Long)value);
|
| - |
|
812 |
}
|
| - |
|
813 |
break;
|
| - |
|
814 |
|
| - |
|
815 |
case SALE_PRICE_SNAPSHOT_DATE:
|
| - |
|
816 |
if (value == null) {
|
| - |
|
817 |
unsetSalePriceSnapshotDate();
|
| - |
|
818 |
} else {
|
| - |
|
819 |
setSalePriceSnapshotDate((Long)value);
|
| - |
|
820 |
}
|
| - |
|
821 |
break;
|
| - |
|
822 |
|
| 647 |
}
|
823 |
}
|
| 648 |
}
|
824 |
}
|
| 649 |
|
825 |
|
| 650 |
public Object getFieldValue(_Fields field) {
|
826 |
public Object getFieldValue(_Fields field) {
|
| 651 |
switch (field) {
|
827 |
switch (field) {
|
| Line 683... |
Line 859... |
| 683 |
return Integer.valueOf(getPromotionOrderCount());
|
859 |
return Integer.valueOf(getPromotionOrderCount());
|
| 684 |
|
860 |
|
| 685 |
case OUR_PRICE:
|
861 |
case OUR_PRICE:
|
| 686 |
return Double.valueOf(getOurPrice());
|
862 |
return Double.valueOf(getOurPrice());
|
| 687 |
|
863 |
|
| - |
|
864 |
case MIN_FBA_PRICE_SNAPSHOT_DATE:
|
| - |
|
865 |
return Long.valueOf(getMinFbaPriceSnapshotDate());
|
| - |
|
866 |
|
| - |
|
867 |
case MIN_MFN_PRICE_SNAPSHOT_DATE:
|
| - |
|
868 |
return Long.valueOf(getMinMfnPriceSnapshotDate());
|
| - |
|
869 |
|
| - |
|
870 |
case OUR_PRICE_SNAPSHOT_DATE:
|
| - |
|
871 |
return Long.valueOf(getOurPriceSnapshotDate());
|
| - |
|
872 |
|
| - |
|
873 |
case SALE_PRICE_SNAPSHOT_DATE:
|
| - |
|
874 |
return Long.valueOf(getSalePriceSnapshotDate());
|
| - |
|
875 |
|
| 688 |
}
|
876 |
}
|
| 689 |
throw new IllegalStateException();
|
877 |
throw new IllegalStateException();
|
| 690 |
}
|
878 |
}
|
| 691 |
|
879 |
|
| 692 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
880 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| Line 718... |
Line 906... |
| 718 |
return isSetPromotionSale();
|
906 |
return isSetPromotionSale();
|
| 719 |
case PROMOTION_ORDER_COUNT:
|
907 |
case PROMOTION_ORDER_COUNT:
|
| 720 |
return isSetPromotionOrderCount();
|
908 |
return isSetPromotionOrderCount();
|
| 721 |
case OUR_PRICE:
|
909 |
case OUR_PRICE:
|
| 722 |
return isSetOurPrice();
|
910 |
return isSetOurPrice();
|
| - |
|
911 |
case MIN_FBA_PRICE_SNAPSHOT_DATE:
|
| - |
|
912 |
return isSetMinFbaPriceSnapshotDate();
|
| - |
|
913 |
case MIN_MFN_PRICE_SNAPSHOT_DATE:
|
| - |
|
914 |
return isSetMinMfnPriceSnapshotDate();
|
| - |
|
915 |
case OUR_PRICE_SNAPSHOT_DATE:
|
| - |
|
916 |
return isSetOurPriceSnapshotDate();
|
| - |
|
917 |
case SALE_PRICE_SNAPSHOT_DATE:
|
| - |
|
918 |
return isSetSalePriceSnapshotDate();
|
| 723 |
}
|
919 |
}
|
| 724 |
throw new IllegalStateException();
|
920 |
throw new IllegalStateException();
|
| 725 |
}
|
921 |
}
|
| 726 |
|
922 |
|
| 727 |
@Override
|
923 |
@Override
|
| Line 843... |
Line 1039... |
| 843 |
return false;
|
1039 |
return false;
|
| 844 |
if (this.ourPrice != that.ourPrice)
|
1040 |
if (this.ourPrice != that.ourPrice)
|
| 845 |
return false;
|
1041 |
return false;
|
| 846 |
}
|
1042 |
}
|
| 847 |
|
1043 |
|
| - |
|
1044 |
boolean this_present_minFbaPriceSnapshotDate = true;
|
| - |
|
1045 |
boolean that_present_minFbaPriceSnapshotDate = true;
|
| - |
|
1046 |
if (this_present_minFbaPriceSnapshotDate || that_present_minFbaPriceSnapshotDate) {
|
| - |
|
1047 |
if (!(this_present_minFbaPriceSnapshotDate && that_present_minFbaPriceSnapshotDate))
|
| - |
|
1048 |
return false;
|
| - |
|
1049 |
if (this.minFbaPriceSnapshotDate != that.minFbaPriceSnapshotDate)
|
| - |
|
1050 |
return false;
|
| - |
|
1051 |
}
|
| - |
|
1052 |
|
| - |
|
1053 |
boolean this_present_minMfnPriceSnapshotDate = true;
|
| - |
|
1054 |
boolean that_present_minMfnPriceSnapshotDate = true;
|
| - |
|
1055 |
if (this_present_minMfnPriceSnapshotDate || that_present_minMfnPriceSnapshotDate) {
|
| - |
|
1056 |
if (!(this_present_minMfnPriceSnapshotDate && that_present_minMfnPriceSnapshotDate))
|
| - |
|
1057 |
return false;
|
| - |
|
1058 |
if (this.minMfnPriceSnapshotDate != that.minMfnPriceSnapshotDate)
|
| - |
|
1059 |
return false;
|
| - |
|
1060 |
}
|
| - |
|
1061 |
|
| - |
|
1062 |
boolean this_present_ourPriceSnapshotDate = true;
|
| - |
|
1063 |
boolean that_present_ourPriceSnapshotDate = true;
|
| - |
|
1064 |
if (this_present_ourPriceSnapshotDate || that_present_ourPriceSnapshotDate) {
|
| - |
|
1065 |
if (!(this_present_ourPriceSnapshotDate && that_present_ourPriceSnapshotDate))
|
| - |
|
1066 |
return false;
|
| - |
|
1067 |
if (this.ourPriceSnapshotDate != that.ourPriceSnapshotDate)
|
| - |
|
1068 |
return false;
|
| - |
|
1069 |
}
|
| - |
|
1070 |
|
| - |
|
1071 |
boolean this_present_salePriceSnapshotDate = true;
|
| - |
|
1072 |
boolean that_present_salePriceSnapshotDate = true;
|
| - |
|
1073 |
if (this_present_salePriceSnapshotDate || that_present_salePriceSnapshotDate) {
|
| - |
|
1074 |
if (!(this_present_salePriceSnapshotDate && that_present_salePriceSnapshotDate))
|
| - |
|
1075 |
return false;
|
| - |
|
1076 |
if (this.salePriceSnapshotDate != that.salePriceSnapshotDate)
|
| - |
|
1077 |
return false;
|
| - |
|
1078 |
}
|
| - |
|
1079 |
|
| 848 |
return true;
|
1080 |
return true;
|
| 849 |
}
|
1081 |
}
|
| 850 |
|
1082 |
|
| 851 |
@Override
|
1083 |
@Override
|
| 852 |
public int hashCode() {
|
1084 |
public int hashCode() {
|
| Line 979... |
Line 1211... |
| 979 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ourPrice, typedOther.ourPrice);
|
1211 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ourPrice, typedOther.ourPrice);
|
| 980 |
if (lastComparison != 0) {
|
1212 |
if (lastComparison != 0) {
|
| 981 |
return lastComparison;
|
1213 |
return lastComparison;
|
| 982 |
}
|
1214 |
}
|
| 983 |
}
|
1215 |
}
|
| - |
|
1216 |
lastComparison = Boolean.valueOf(isSetMinFbaPriceSnapshotDate()).compareTo(typedOther.isSetMinFbaPriceSnapshotDate());
|
| - |
|
1217 |
if (lastComparison != 0) {
|
| - |
|
1218 |
return lastComparison;
|
| - |
|
1219 |
}
|
| - |
|
1220 |
if (isSetMinFbaPriceSnapshotDate()) {
|
| - |
|
1221 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.minFbaPriceSnapshotDate, typedOther.minFbaPriceSnapshotDate);
|
| - |
|
1222 |
if (lastComparison != 0) {
|
| - |
|
1223 |
return lastComparison;
|
| - |
|
1224 |
}
|
| - |
|
1225 |
}
|
| - |
|
1226 |
lastComparison = Boolean.valueOf(isSetMinMfnPriceSnapshotDate()).compareTo(typedOther.isSetMinMfnPriceSnapshotDate());
|
| - |
|
1227 |
if (lastComparison != 0) {
|
| - |
|
1228 |
return lastComparison;
|
| - |
|
1229 |
}
|
| - |
|
1230 |
if (isSetMinMfnPriceSnapshotDate()) {
|
| - |
|
1231 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.minMfnPriceSnapshotDate, typedOther.minMfnPriceSnapshotDate);
|
| - |
|
1232 |
if (lastComparison != 0) {
|
| - |
|
1233 |
return lastComparison;
|
| - |
|
1234 |
}
|
| - |
|
1235 |
}
|
| - |
|
1236 |
lastComparison = Boolean.valueOf(isSetOurPriceSnapshotDate()).compareTo(typedOther.isSetOurPriceSnapshotDate());
|
| - |
|
1237 |
if (lastComparison != 0) {
|
| - |
|
1238 |
return lastComparison;
|
| - |
|
1239 |
}
|
| - |
|
1240 |
if (isSetOurPriceSnapshotDate()) {
|
| - |
|
1241 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ourPriceSnapshotDate, typedOther.ourPriceSnapshotDate);
|
| - |
|
1242 |
if (lastComparison != 0) {
|
| - |
|
1243 |
return lastComparison;
|
| - |
|
1244 |
}
|
| - |
|
1245 |
}
|
| - |
|
1246 |
lastComparison = Boolean.valueOf(isSetSalePriceSnapshotDate()).compareTo(typedOther.isSetSalePriceSnapshotDate());
|
| - |
|
1247 |
if (lastComparison != 0) {
|
| - |
|
1248 |
return lastComparison;
|
| - |
|
1249 |
}
|
| - |
|
1250 |
if (isSetSalePriceSnapshotDate()) {
|
| - |
|
1251 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.salePriceSnapshotDate, typedOther.salePriceSnapshotDate);
|
| - |
|
1252 |
if (lastComparison != 0) {
|
| - |
|
1253 |
return lastComparison;
|
| - |
|
1254 |
}
|
| - |
|
1255 |
}
|
| 984 |
return 0;
|
1256 |
return 0;
|
| 985 |
}
|
1257 |
}
|
| 986 |
|
1258 |
|
| 987 |
public _Fields fieldForId(int fieldId) {
|
1259 |
public _Fields fieldForId(int fieldId) {
|
| 988 |
return _Fields.findByThriftId(fieldId);
|
1260 |
return _Fields.findByThriftId(fieldId);
|
| Line 1092... |
Line 1364... |
| 1092 |
setOurPriceIsSet(true);
|
1364 |
setOurPriceIsSet(true);
|
| 1093 |
} else {
|
1365 |
} else {
|
| 1094 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
1366 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 1095 |
}
|
1367 |
}
|
| 1096 |
break;
|
1368 |
break;
|
| - |
|
1369 |
case 13: // MIN_FBA_PRICE_SNAPSHOT_DATE
|
| - |
|
1370 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| - |
|
1371 |
this.minFbaPriceSnapshotDate = iprot.readI64();
|
| - |
|
1372 |
setMinFbaPriceSnapshotDateIsSet(true);
|
| - |
|
1373 |
} else {
|
| - |
|
1374 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
1375 |
}
|
| - |
|
1376 |
break;
|
| - |
|
1377 |
case 14: // MIN_MFN_PRICE_SNAPSHOT_DATE
|
| - |
|
1378 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| - |
|
1379 |
this.minMfnPriceSnapshotDate = iprot.readI64();
|
| - |
|
1380 |
setMinMfnPriceSnapshotDateIsSet(true);
|
| - |
|
1381 |
} else {
|
| - |
|
1382 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
1383 |
}
|
| - |
|
1384 |
break;
|
| - |
|
1385 |
case 15: // OUR_PRICE_SNAPSHOT_DATE
|
| - |
|
1386 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| - |
|
1387 |
this.ourPriceSnapshotDate = iprot.readI64();
|
| - |
|
1388 |
setOurPriceSnapshotDateIsSet(true);
|
| - |
|
1389 |
} else {
|
| - |
|
1390 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
1391 |
}
|
| - |
|
1392 |
break;
|
| - |
|
1393 |
case 16: // SALE_PRICE_SNAPSHOT_DATE
|
| - |
|
1394 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| - |
|
1395 |
this.salePriceSnapshotDate = iprot.readI64();
|
| - |
|
1396 |
setSalePriceSnapshotDateIsSet(true);
|
| - |
|
1397 |
} else {
|
| - |
|
1398 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
1399 |
}
|
| - |
|
1400 |
break;
|
| 1097 |
default:
|
1401 |
default:
|
| 1098 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
1402 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 1099 |
}
|
1403 |
}
|
| 1100 |
iprot.readFieldEnd();
|
1404 |
iprot.readFieldEnd();
|
| 1101 |
}
|
1405 |
}
|
| Line 1141... |
Line 1445... |
| 1141 |
oprot.writeI32(this.promotionOrderCount);
|
1445 |
oprot.writeI32(this.promotionOrderCount);
|
| 1142 |
oprot.writeFieldEnd();
|
1446 |
oprot.writeFieldEnd();
|
| 1143 |
oprot.writeFieldBegin(OUR_PRICE_FIELD_DESC);
|
1447 |
oprot.writeFieldBegin(OUR_PRICE_FIELD_DESC);
|
| 1144 |
oprot.writeDouble(this.ourPrice);
|
1448 |
oprot.writeDouble(this.ourPrice);
|
| 1145 |
oprot.writeFieldEnd();
|
1449 |
oprot.writeFieldEnd();
|
| - |
|
1450 |
oprot.writeFieldBegin(MIN_FBA_PRICE_SNAPSHOT_DATE_FIELD_DESC);
|
| - |
|
1451 |
oprot.writeI64(this.minFbaPriceSnapshotDate);
|
| - |
|
1452 |
oprot.writeFieldEnd();
|
| - |
|
1453 |
oprot.writeFieldBegin(MIN_MFN_PRICE_SNAPSHOT_DATE_FIELD_DESC);
|
| - |
|
1454 |
oprot.writeI64(this.minMfnPriceSnapshotDate);
|
| - |
|
1455 |
oprot.writeFieldEnd();
|
| - |
|
1456 |
oprot.writeFieldBegin(OUR_PRICE_SNAPSHOT_DATE_FIELD_DESC);
|
| - |
|
1457 |
oprot.writeI64(this.ourPriceSnapshotDate);
|
| - |
|
1458 |
oprot.writeFieldEnd();
|
| - |
|
1459 |
oprot.writeFieldBegin(SALE_PRICE_SNAPSHOT_DATE_FIELD_DESC);
|
| - |
|
1460 |
oprot.writeI64(this.salePriceSnapshotDate);
|
| - |
|
1461 |
oprot.writeFieldEnd();
|
| 1146 |
oprot.writeFieldStop();
|
1462 |
oprot.writeFieldStop();
|
| 1147 |
oprot.writeStructEnd();
|
1463 |
oprot.writeStructEnd();
|
| 1148 |
}
|
1464 |
}
|
| 1149 |
|
1465 |
|
| 1150 |
@Override
|
1466 |
@Override
|
| Line 1197... |
Line 1513... |
| 1197 |
first = false;
|
1513 |
first = false;
|
| 1198 |
if (!first) sb.append(", ");
|
1514 |
if (!first) sb.append(", ");
|
| 1199 |
sb.append("ourPrice:");
|
1515 |
sb.append("ourPrice:");
|
| 1200 |
sb.append(this.ourPrice);
|
1516 |
sb.append(this.ourPrice);
|
| 1201 |
first = false;
|
1517 |
first = false;
|
| - |
|
1518 |
if (!first) sb.append(", ");
|
| - |
|
1519 |
sb.append("minFbaPriceSnapshotDate:");
|
| - |
|
1520 |
sb.append(this.minFbaPriceSnapshotDate);
|
| - |
|
1521 |
first = false;
|
| - |
|
1522 |
if (!first) sb.append(", ");
|
| - |
|
1523 |
sb.append("minMfnPriceSnapshotDate:");
|
| - |
|
1524 |
sb.append(this.minMfnPriceSnapshotDate);
|
| - |
|
1525 |
first = false;
|
| - |
|
1526 |
if (!first) sb.append(", ");
|
| - |
|
1527 |
sb.append("ourPriceSnapshotDate:");
|
| - |
|
1528 |
sb.append(this.ourPriceSnapshotDate);
|
| - |
|
1529 |
first = false;
|
| - |
|
1530 |
if (!first) sb.append(", ");
|
| - |
|
1531 |
sb.append("salePriceSnapshotDate:");
|
| - |
|
1532 |
sb.append(this.salePriceSnapshotDate);
|
| - |
|
1533 |
first = false;
|
| 1202 |
sb.append(")");
|
1534 |
sb.append(")");
|
| 1203 |
return sb.toString();
|
1535 |
return sb.toString();
|
| 1204 |
}
|
1536 |
}
|
| 1205 |
|
1537 |
|
| 1206 |
public void validate() throws org.apache.thrift.TException {
|
1538 |
public void validate() throws org.apache.thrift.TException {
|