| Line 23... |
Line 23... |
| 23 |
public class AmazonFbaSalesSnapshot implements org.apache.thrift.TBase<AmazonFbaSalesSnapshot, AmazonFbaSalesSnapshot._Fields>, java.io.Serializable, Cloneable {
|
23 |
public class AmazonFbaSalesSnapshot implements org.apache.thrift.TBase<AmazonFbaSalesSnapshot, AmazonFbaSalesSnapshot._Fields>, java.io.Serializable, Cloneable {
|
| 24 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AmazonFbaSalesSnapshot");
|
24 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AmazonFbaSalesSnapshot");
|
| 25 |
|
25 |
|
| 26 |
private static final org.apache.thrift.protocol.TField DATE_OF_SALE_FIELD_DESC = new org.apache.thrift.protocol.TField("dateOfSale", org.apache.thrift.protocol.TType.I64, (short)1);
|
26 |
private static final org.apache.thrift.protocol.TField DATE_OF_SALE_FIELD_DESC = new org.apache.thrift.protocol.TField("dateOfSale", org.apache.thrift.protocol.TType.I64, (short)1);
|
| 27 |
private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)2);
|
27 |
private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)2);
|
| 28 |
private static final org.apache.thrift.protocol.TField ORDER_COUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("orderCount", org.apache.thrift.protocol.TType.I32, (short)3);
|
28 |
private static final org.apache.thrift.protocol.TField TOTAL_ORDER_COUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("totalOrderCount", org.apache.thrift.protocol.TType.I32, (short)3);
|
| 29 |
private static final org.apache.thrift.protocol.TField AMAZON_FBA_INVENTORY_FIELD_DESC = new org.apache.thrift.protocol.TField("amazonFbaInventory", org.apache.thrift.protocol.TType.I64, (short)4);
|
29 |
private static final org.apache.thrift.protocol.TField AMAZON_FBA_INVENTORY_FIELD_DESC = new org.apache.thrift.protocol.TField("amazonFbaInventory", org.apache.thrift.protocol.TType.I64, (short)4);
|
| 30 |
private static final org.apache.thrift.protocol.TField IS_OUT_OF_STOCK_FIELD_DESC = new org.apache.thrift.protocol.TField("isOutOfStock", org.apache.thrift.protocol.TType.BOOL, (short)5);
|
30 |
private static final org.apache.thrift.protocol.TField IS_OUT_OF_STOCK_FIELD_DESC = new org.apache.thrift.protocol.TField("isOutOfStock", org.apache.thrift.protocol.TType.BOOL, (short)5);
|
| 31 |
private static final org.apache.thrift.protocol.TField SALE_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("salePrice", org.apache.thrift.protocol.TType.DOUBLE, (short)6);
|
31 |
private static final org.apache.thrift.protocol.TField SALE_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("salePrice", org.apache.thrift.protocol.TType.DOUBLE, (short)6);
|
| 32 |
private static final org.apache.thrift.protocol.TField MIN_FBA_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("minFbaPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)7);
|
32 |
private static final org.apache.thrift.protocol.TField MIN_FBA_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("minFbaPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)7);
|
| 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);
|
| - |
|
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);
|
| 34 |
|
37 |
|
| 35 |
private long dateOfSale; // required
|
38 |
private long dateOfSale; // required
|
| 36 |
private long item_id; // required
|
39 |
private long item_id; // required
|
| 37 |
private int orderCount; // required
|
40 |
private int totalOrderCount; // required
|
| 38 |
private long amazonFbaInventory; // required
|
41 |
private long amazonFbaInventory; // required
|
| 39 |
private boolean isOutOfStock; // required
|
42 |
private boolean isOutOfStock; // required
|
| 40 |
private double salePrice; // required
|
43 |
private double salePrice; // required
|
| 41 |
private double minFbaPrice; // required
|
44 |
private double minFbaPrice; // required
|
| 42 |
private double minMfnPrice; // required
|
45 |
private double minMfnPrice; // required
|
| - |
|
46 |
private double totalSale; // required
|
| - |
|
47 |
private double promotionSale; // required
|
| - |
|
48 |
private int promotionOrderCount; // required
|
| 43 |
|
49 |
|
| 44 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
50 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 45 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
51 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 46 |
DATE_OF_SALE((short)1, "dateOfSale"),
|
52 |
DATE_OF_SALE((short)1, "dateOfSale"),
|
| 47 |
ITEM_ID((short)2, "item_id"),
|
53 |
ITEM_ID((short)2, "item_id"),
|
| 48 |
ORDER_COUNT((short)3, "orderCount"),
|
54 |
TOTAL_ORDER_COUNT((short)3, "totalOrderCount"),
|
| 49 |
AMAZON_FBA_INVENTORY((short)4, "amazonFbaInventory"),
|
55 |
AMAZON_FBA_INVENTORY((short)4, "amazonFbaInventory"),
|
| 50 |
IS_OUT_OF_STOCK((short)5, "isOutOfStock"),
|
56 |
IS_OUT_OF_STOCK((short)5, "isOutOfStock"),
|
| 51 |
SALE_PRICE((short)6, "salePrice"),
|
57 |
SALE_PRICE((short)6, "salePrice"),
|
| 52 |
MIN_FBA_PRICE((short)7, "minFbaPrice"),
|
58 |
MIN_FBA_PRICE((short)7, "minFbaPrice"),
|
| 53 |
MIN_MFN_PRICE((short)8, "minMfnPrice");
|
59 |
MIN_MFN_PRICE((short)8, "minMfnPrice"),
|
| - |
|
60 |
TOTAL_SALE((short)9, "totalSale"),
|
| - |
|
61 |
PROMOTION_SALE((short)10, "promotionSale"),
|
| - |
|
62 |
PROMOTION_ORDER_COUNT((short)11, "promotionOrderCount");
|
| 54 |
|
63 |
|
| 55 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
64 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| 56 |
|
65 |
|
| 57 |
static {
|
66 |
static {
|
| 58 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
67 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| Line 67... |
Line 76... |
| 67 |
switch(fieldId) {
|
76 |
switch(fieldId) {
|
| 68 |
case 1: // DATE_OF_SALE
|
77 |
case 1: // DATE_OF_SALE
|
| 69 |
return DATE_OF_SALE;
|
78 |
return DATE_OF_SALE;
|
| 70 |
case 2: // ITEM_ID
|
79 |
case 2: // ITEM_ID
|
| 71 |
return ITEM_ID;
|
80 |
return ITEM_ID;
|
| 72 |
case 3: // ORDER_COUNT
|
81 |
case 3: // TOTAL_ORDER_COUNT
|
| 73 |
return ORDER_COUNT;
|
82 |
return TOTAL_ORDER_COUNT;
|
| 74 |
case 4: // AMAZON_FBA_INVENTORY
|
83 |
case 4: // AMAZON_FBA_INVENTORY
|
| 75 |
return AMAZON_FBA_INVENTORY;
|
84 |
return AMAZON_FBA_INVENTORY;
|
| 76 |
case 5: // IS_OUT_OF_STOCK
|
85 |
case 5: // IS_OUT_OF_STOCK
|
| 77 |
return IS_OUT_OF_STOCK;
|
86 |
return IS_OUT_OF_STOCK;
|
| 78 |
case 6: // SALE_PRICE
|
87 |
case 6: // SALE_PRICE
|
| 79 |
return SALE_PRICE;
|
88 |
return SALE_PRICE;
|
| 80 |
case 7: // MIN_FBA_PRICE
|
89 |
case 7: // MIN_FBA_PRICE
|
| 81 |
return MIN_FBA_PRICE;
|
90 |
return MIN_FBA_PRICE;
|
| 82 |
case 8: // MIN_MFN_PRICE
|
91 |
case 8: // MIN_MFN_PRICE
|
| 83 |
return MIN_MFN_PRICE;
|
92 |
return MIN_MFN_PRICE;
|
| - |
|
93 |
case 9: // TOTAL_SALE
|
| - |
|
94 |
return TOTAL_SALE;
|
| - |
|
95 |
case 10: // PROMOTION_SALE
|
| - |
|
96 |
return PROMOTION_SALE;
|
| - |
|
97 |
case 11: // PROMOTION_ORDER_COUNT
|
| - |
|
98 |
return PROMOTION_ORDER_COUNT;
|
| 84 |
default:
|
99 |
default:
|
| 85 |
return null;
|
100 |
return null;
|
| 86 |
}
|
101 |
}
|
| 87 |
}
|
102 |
}
|
| 88 |
|
103 |
|
| Line 121... |
Line 136... |
| 121 |
}
|
136 |
}
|
| 122 |
|
137 |
|
| 123 |
// isset id assignments
|
138 |
// isset id assignments
|
| 124 |
private static final int __DATEOFSALE_ISSET_ID = 0;
|
139 |
private static final int __DATEOFSALE_ISSET_ID = 0;
|
| 125 |
private static final int __ITEM_ID_ISSET_ID = 1;
|
140 |
private static final int __ITEM_ID_ISSET_ID = 1;
|
| 126 |
private static final int __ORDERCOUNT_ISSET_ID = 2;
|
141 |
private static final int __TOTALORDERCOUNT_ISSET_ID = 2;
|
| 127 |
private static final int __AMAZONFBAINVENTORY_ISSET_ID = 3;
|
142 |
private static final int __AMAZONFBAINVENTORY_ISSET_ID = 3;
|
| 128 |
private static final int __ISOUTOFSTOCK_ISSET_ID = 4;
|
143 |
private static final int __ISOUTOFSTOCK_ISSET_ID = 4;
|
| 129 |
private static final int __SALEPRICE_ISSET_ID = 5;
|
144 |
private static final int __SALEPRICE_ISSET_ID = 5;
|
| 130 |
private static final int __MINFBAPRICE_ISSET_ID = 6;
|
145 |
private static final int __MINFBAPRICE_ISSET_ID = 6;
|
| 131 |
private static final int __MINMFNPRICE_ISSET_ID = 7;
|
146 |
private static final int __MINMFNPRICE_ISSET_ID = 7;
|
| - |
|
147 |
private static final int __TOTALSALE_ISSET_ID = 8;
|
| - |
|
148 |
private static final int __PROMOTIONSALE_ISSET_ID = 9;
|
| - |
|
149 |
private static final int __PROMOTIONORDERCOUNT_ISSET_ID = 10;
|
| 132 |
private BitSet __isset_bit_vector = new BitSet(8);
|
150 |
private BitSet __isset_bit_vector = new BitSet(11);
|
| 133 |
|
151 |
|
| 134 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
152 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 135 |
static {
|
153 |
static {
|
| 136 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
154 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 137 |
tmpMap.put(_Fields.DATE_OF_SALE, new org.apache.thrift.meta_data.FieldMetaData("dateOfSale", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
155 |
tmpMap.put(_Fields.DATE_OF_SALE, new org.apache.thrift.meta_data.FieldMetaData("dateOfSale", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 138 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
156 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 139 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
157 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 140 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
158 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 141 |
tmpMap.put(_Fields.ORDER_COUNT, new org.apache.thrift.meta_data.FieldMetaData("orderCount", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
159 |
tmpMap.put(_Fields.TOTAL_ORDER_COUNT, new org.apache.thrift.meta_data.FieldMetaData("totalOrderCount", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 142 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
|
160 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
|
| 143 |
tmpMap.put(_Fields.AMAZON_FBA_INVENTORY, new org.apache.thrift.meta_data.FieldMetaData("amazonFbaInventory", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
161 |
tmpMap.put(_Fields.AMAZON_FBA_INVENTORY, new org.apache.thrift.meta_data.FieldMetaData("amazonFbaInventory", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 144 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
162 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 145 |
tmpMap.put(_Fields.IS_OUT_OF_STOCK, new org.apache.thrift.meta_data.FieldMetaData("isOutOfStock", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
163 |
tmpMap.put(_Fields.IS_OUT_OF_STOCK, new org.apache.thrift.meta_data.FieldMetaData("isOutOfStock", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 146 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
164 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
| Line 148... |
Line 166... |
| 148 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
166 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
| 149 |
tmpMap.put(_Fields.MIN_FBA_PRICE, new org.apache.thrift.meta_data.FieldMetaData("minFbaPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
167 |
tmpMap.put(_Fields.MIN_FBA_PRICE, new org.apache.thrift.meta_data.FieldMetaData("minFbaPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 150 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
168 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
| 151 |
tmpMap.put(_Fields.MIN_MFN_PRICE, new org.apache.thrift.meta_data.FieldMetaData("minMfnPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
169 |
tmpMap.put(_Fields.MIN_MFN_PRICE, new org.apache.thrift.meta_data.FieldMetaData("minMfnPrice", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 152 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
170 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
| - |
|
171 |
tmpMap.put(_Fields.TOTAL_SALE, new org.apache.thrift.meta_data.FieldMetaData("totalSale", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
172 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
| - |
|
173 |
tmpMap.put(_Fields.PROMOTION_SALE, new org.apache.thrift.meta_data.FieldMetaData("promotionSale", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
174 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
| - |
|
175 |
tmpMap.put(_Fields.PROMOTION_ORDER_COUNT, new org.apache.thrift.meta_data.FieldMetaData("promotionOrderCount", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
176 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
|
| 153 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
177 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 154 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(AmazonFbaSalesSnapshot.class, metaDataMap);
|
178 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(AmazonFbaSalesSnapshot.class, metaDataMap);
|
| 155 |
}
|
179 |
}
|
| 156 |
|
180 |
|
| 157 |
public AmazonFbaSalesSnapshot() {
|
181 |
public AmazonFbaSalesSnapshot() {
|
| 158 |
}
|
182 |
}
|
| 159 |
|
183 |
|
| 160 |
public AmazonFbaSalesSnapshot(
|
184 |
public AmazonFbaSalesSnapshot(
|
| 161 |
long dateOfSale,
|
185 |
long dateOfSale,
|
| 162 |
long item_id,
|
186 |
long item_id,
|
| 163 |
int orderCount,
|
187 |
int totalOrderCount,
|
| 164 |
long amazonFbaInventory,
|
188 |
long amazonFbaInventory,
|
| 165 |
boolean isOutOfStock,
|
189 |
boolean isOutOfStock,
|
| 166 |
double salePrice,
|
190 |
double salePrice,
|
| 167 |
double minFbaPrice,
|
191 |
double minFbaPrice,
|
| 168 |
double minMfnPrice)
|
192 |
double minMfnPrice,
|
| - |
|
193 |
double totalSale,
|
| - |
|
194 |
double promotionSale,
|
| - |
|
195 |
int promotionOrderCount)
|
| 169 |
{
|
196 |
{
|
| 170 |
this();
|
197 |
this();
|
| 171 |
this.dateOfSale = dateOfSale;
|
198 |
this.dateOfSale = dateOfSale;
|
| 172 |
setDateOfSaleIsSet(true);
|
199 |
setDateOfSaleIsSet(true);
|
| 173 |
this.item_id = item_id;
|
200 |
this.item_id = item_id;
|
| 174 |
setItem_idIsSet(true);
|
201 |
setItem_idIsSet(true);
|
| 175 |
this.orderCount = orderCount;
|
202 |
this.totalOrderCount = totalOrderCount;
|
| 176 |
setOrderCountIsSet(true);
|
203 |
setTotalOrderCountIsSet(true);
|
| 177 |
this.amazonFbaInventory = amazonFbaInventory;
|
204 |
this.amazonFbaInventory = amazonFbaInventory;
|
| 178 |
setAmazonFbaInventoryIsSet(true);
|
205 |
setAmazonFbaInventoryIsSet(true);
|
| 179 |
this.isOutOfStock = isOutOfStock;
|
206 |
this.isOutOfStock = isOutOfStock;
|
| 180 |
setIsOutOfStockIsSet(true);
|
207 |
setIsOutOfStockIsSet(true);
|
| 181 |
this.salePrice = salePrice;
|
208 |
this.salePrice = salePrice;
|
| 182 |
setSalePriceIsSet(true);
|
209 |
setSalePriceIsSet(true);
|
| 183 |
this.minFbaPrice = minFbaPrice;
|
210 |
this.minFbaPrice = minFbaPrice;
|
| 184 |
setMinFbaPriceIsSet(true);
|
211 |
setMinFbaPriceIsSet(true);
|
| 185 |
this.minMfnPrice = minMfnPrice;
|
212 |
this.minMfnPrice = minMfnPrice;
|
| 186 |
setMinMfnPriceIsSet(true);
|
213 |
setMinMfnPriceIsSet(true);
|
| - |
|
214 |
this.totalSale = totalSale;
|
| - |
|
215 |
setTotalSaleIsSet(true);
|
| - |
|
216 |
this.promotionSale = promotionSale;
|
| - |
|
217 |
setPromotionSaleIsSet(true);
|
| - |
|
218 |
this.promotionOrderCount = promotionOrderCount;
|
| - |
|
219 |
setPromotionOrderCountIsSet(true);
|
| 187 |
}
|
220 |
}
|
| 188 |
|
221 |
|
| 189 |
/**
|
222 |
/**
|
| 190 |
* Performs a deep copy on <i>other</i>.
|
223 |
* Performs a deep copy on <i>other</i>.
|
| 191 |
*/
|
224 |
*/
|
| 192 |
public AmazonFbaSalesSnapshot(AmazonFbaSalesSnapshot other) {
|
225 |
public AmazonFbaSalesSnapshot(AmazonFbaSalesSnapshot other) {
|
| 193 |
__isset_bit_vector.clear();
|
226 |
__isset_bit_vector.clear();
|
| 194 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
227 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 195 |
this.dateOfSale = other.dateOfSale;
|
228 |
this.dateOfSale = other.dateOfSale;
|
| 196 |
this.item_id = other.item_id;
|
229 |
this.item_id = other.item_id;
|
| 197 |
this.orderCount = other.orderCount;
|
230 |
this.totalOrderCount = other.totalOrderCount;
|
| 198 |
this.amazonFbaInventory = other.amazonFbaInventory;
|
231 |
this.amazonFbaInventory = other.amazonFbaInventory;
|
| 199 |
this.isOutOfStock = other.isOutOfStock;
|
232 |
this.isOutOfStock = other.isOutOfStock;
|
| 200 |
this.salePrice = other.salePrice;
|
233 |
this.salePrice = other.salePrice;
|
| 201 |
this.minFbaPrice = other.minFbaPrice;
|
234 |
this.minFbaPrice = other.minFbaPrice;
|
| 202 |
this.minMfnPrice = other.minMfnPrice;
|
235 |
this.minMfnPrice = other.minMfnPrice;
|
| - |
|
236 |
this.totalSale = other.totalSale;
|
| - |
|
237 |
this.promotionSale = other.promotionSale;
|
| - |
|
238 |
this.promotionOrderCount = other.promotionOrderCount;
|
| 203 |
}
|
239 |
}
|
| 204 |
|
240 |
|
| 205 |
public AmazonFbaSalesSnapshot deepCopy() {
|
241 |
public AmazonFbaSalesSnapshot deepCopy() {
|
| 206 |
return new AmazonFbaSalesSnapshot(this);
|
242 |
return new AmazonFbaSalesSnapshot(this);
|
| 207 |
}
|
243 |
}
|
| Line 210... |
Line 246... |
| 210 |
public void clear() {
|
246 |
public void clear() {
|
| 211 |
setDateOfSaleIsSet(false);
|
247 |
setDateOfSaleIsSet(false);
|
| 212 |
this.dateOfSale = 0;
|
248 |
this.dateOfSale = 0;
|
| 213 |
setItem_idIsSet(false);
|
249 |
setItem_idIsSet(false);
|
| 214 |
this.item_id = 0;
|
250 |
this.item_id = 0;
|
| 215 |
setOrderCountIsSet(false);
|
251 |
setTotalOrderCountIsSet(false);
|
| 216 |
this.orderCount = 0;
|
252 |
this.totalOrderCount = 0;
|
| 217 |
setAmazonFbaInventoryIsSet(false);
|
253 |
setAmazonFbaInventoryIsSet(false);
|
| 218 |
this.amazonFbaInventory = 0;
|
254 |
this.amazonFbaInventory = 0;
|
| 219 |
setIsOutOfStockIsSet(false);
|
255 |
setIsOutOfStockIsSet(false);
|
| 220 |
this.isOutOfStock = false;
|
256 |
this.isOutOfStock = false;
|
| 221 |
setSalePriceIsSet(false);
|
257 |
setSalePriceIsSet(false);
|
| 222 |
this.salePrice = 0.0;
|
258 |
this.salePrice = 0.0;
|
| 223 |
setMinFbaPriceIsSet(false);
|
259 |
setMinFbaPriceIsSet(false);
|
| 224 |
this.minFbaPrice = 0.0;
|
260 |
this.minFbaPrice = 0.0;
|
| 225 |
setMinMfnPriceIsSet(false);
|
261 |
setMinMfnPriceIsSet(false);
|
| 226 |
this.minMfnPrice = 0.0;
|
262 |
this.minMfnPrice = 0.0;
|
| - |
|
263 |
setTotalSaleIsSet(false);
|
| - |
|
264 |
this.totalSale = 0.0;
|
| - |
|
265 |
setPromotionSaleIsSet(false);
|
| - |
|
266 |
this.promotionSale = 0.0;
|
| - |
|
267 |
setPromotionOrderCountIsSet(false);
|
| - |
|
268 |
this.promotionOrderCount = 0;
|
| 227 |
}
|
269 |
}
|
| 228 |
|
270 |
|
| 229 |
public long getDateOfSale() {
|
271 |
public long getDateOfSale() {
|
| 230 |
return this.dateOfSale;
|
272 |
return this.dateOfSale;
|
| 231 |
}
|
273 |
}
|
| Line 268... |
Line 310... |
| 268 |
|
310 |
|
| 269 |
public void setItem_idIsSet(boolean value) {
|
311 |
public void setItem_idIsSet(boolean value) {
|
| 270 |
__isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
|
312 |
__isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
|
| 271 |
}
|
313 |
}
|
| 272 |
|
314 |
|
| 273 |
public int getOrderCount() {
|
315 |
public int getTotalOrderCount() {
|
| 274 |
return this.orderCount;
|
316 |
return this.totalOrderCount;
|
| 275 |
}
|
317 |
}
|
| 276 |
|
318 |
|
| 277 |
public void setOrderCount(int orderCount) {
|
319 |
public void setTotalOrderCount(int totalOrderCount) {
|
| 278 |
this.orderCount = orderCount;
|
320 |
this.totalOrderCount = totalOrderCount;
|
| 279 |
setOrderCountIsSet(true);
|
321 |
setTotalOrderCountIsSet(true);
|
| 280 |
}
|
322 |
}
|
| 281 |
|
323 |
|
| 282 |
public void unsetOrderCount() {
|
324 |
public void unsetTotalOrderCount() {
|
| 283 |
__isset_bit_vector.clear(__ORDERCOUNT_ISSET_ID);
|
325 |
__isset_bit_vector.clear(__TOTALORDERCOUNT_ISSET_ID);
|
| 284 |
}
|
326 |
}
|
| 285 |
|
327 |
|
| 286 |
/** Returns true if field orderCount is set (has been assigned a value) and false otherwise */
|
328 |
/** Returns true if field totalOrderCount is set (has been assigned a value) and false otherwise */
|
| 287 |
public boolean isSetOrderCount() {
|
329 |
public boolean isSetTotalOrderCount() {
|
| 288 |
return __isset_bit_vector.get(__ORDERCOUNT_ISSET_ID);
|
330 |
return __isset_bit_vector.get(__TOTALORDERCOUNT_ISSET_ID);
|
| 289 |
}
|
331 |
}
|
| 290 |
|
332 |
|
| 291 |
public void setOrderCountIsSet(boolean value) {
|
333 |
public void setTotalOrderCountIsSet(boolean value) {
|
| 292 |
__isset_bit_vector.set(__ORDERCOUNT_ISSET_ID, value);
|
334 |
__isset_bit_vector.set(__TOTALORDERCOUNT_ISSET_ID, value);
|
| 293 |
}
|
335 |
}
|
| 294 |
|
336 |
|
| 295 |
public long getAmazonFbaInventory() {
|
337 |
public long getAmazonFbaInventory() {
|
| 296 |
return this.amazonFbaInventory;
|
338 |
return this.amazonFbaInventory;
|
| 297 |
}
|
339 |
}
|
| Line 400... |
Line 442... |
| 400 |
|
442 |
|
| 401 |
public void setMinMfnPriceIsSet(boolean value) {
|
443 |
public void setMinMfnPriceIsSet(boolean value) {
|
| 402 |
__isset_bit_vector.set(__MINMFNPRICE_ISSET_ID, value);
|
444 |
__isset_bit_vector.set(__MINMFNPRICE_ISSET_ID, value);
|
| 403 |
}
|
445 |
}
|
| 404 |
|
446 |
|
| - |
|
447 |
public double getTotalSale() {
|
| - |
|
448 |
return this.totalSale;
|
| - |
|
449 |
}
|
| - |
|
450 |
|
| - |
|
451 |
public void setTotalSale(double totalSale) {
|
| - |
|
452 |
this.totalSale = totalSale;
|
| - |
|
453 |
setTotalSaleIsSet(true);
|
| - |
|
454 |
}
|
| - |
|
455 |
|
| - |
|
456 |
public void unsetTotalSale() {
|
| - |
|
457 |
__isset_bit_vector.clear(__TOTALSALE_ISSET_ID);
|
| - |
|
458 |
}
|
| - |
|
459 |
|
| - |
|
460 |
/** Returns true if field totalSale is set (has been assigned a value) and false otherwise */
|
| - |
|
461 |
public boolean isSetTotalSale() {
|
| - |
|
462 |
return __isset_bit_vector.get(__TOTALSALE_ISSET_ID);
|
| - |
|
463 |
}
|
| - |
|
464 |
|
| - |
|
465 |
public void setTotalSaleIsSet(boolean value) {
|
| - |
|
466 |
__isset_bit_vector.set(__TOTALSALE_ISSET_ID, value);
|
| - |
|
467 |
}
|
| - |
|
468 |
|
| - |
|
469 |
public double getPromotionSale() {
|
| - |
|
470 |
return this.promotionSale;
|
| - |
|
471 |
}
|
| - |
|
472 |
|
| - |
|
473 |
public void setPromotionSale(double promotionSale) {
|
| - |
|
474 |
this.promotionSale = promotionSale;
|
| - |
|
475 |
setPromotionSaleIsSet(true);
|
| - |
|
476 |
}
|
| - |
|
477 |
|
| - |
|
478 |
public void unsetPromotionSale() {
|
| - |
|
479 |
__isset_bit_vector.clear(__PROMOTIONSALE_ISSET_ID);
|
| - |
|
480 |
}
|
| - |
|
481 |
|
| - |
|
482 |
/** Returns true if field promotionSale is set (has been assigned a value) and false otherwise */
|
| - |
|
483 |
public boolean isSetPromotionSale() {
|
| - |
|
484 |
return __isset_bit_vector.get(__PROMOTIONSALE_ISSET_ID);
|
| - |
|
485 |
}
|
| - |
|
486 |
|
| - |
|
487 |
public void setPromotionSaleIsSet(boolean value) {
|
| - |
|
488 |
__isset_bit_vector.set(__PROMOTIONSALE_ISSET_ID, value);
|
| - |
|
489 |
}
|
| - |
|
490 |
|
| - |
|
491 |
public int getPromotionOrderCount() {
|
| - |
|
492 |
return this.promotionOrderCount;
|
| - |
|
493 |
}
|
| - |
|
494 |
|
| - |
|
495 |
public void setPromotionOrderCount(int promotionOrderCount) {
|
| - |
|
496 |
this.promotionOrderCount = promotionOrderCount;
|
| - |
|
497 |
setPromotionOrderCountIsSet(true);
|
| - |
|
498 |
}
|
| - |
|
499 |
|
| - |
|
500 |
public void unsetPromotionOrderCount() {
|
| - |
|
501 |
__isset_bit_vector.clear(__PROMOTIONORDERCOUNT_ISSET_ID);
|
| - |
|
502 |
}
|
| - |
|
503 |
|
| - |
|
504 |
/** Returns true if field promotionOrderCount is set (has been assigned a value) and false otherwise */
|
| - |
|
505 |
public boolean isSetPromotionOrderCount() {
|
| - |
|
506 |
return __isset_bit_vector.get(__PROMOTIONORDERCOUNT_ISSET_ID);
|
| - |
|
507 |
}
|
| - |
|
508 |
|
| - |
|
509 |
public void setPromotionOrderCountIsSet(boolean value) {
|
| - |
|
510 |
__isset_bit_vector.set(__PROMOTIONORDERCOUNT_ISSET_ID, value);
|
| - |
|
511 |
}
|
| - |
|
512 |
|
| 405 |
public void setFieldValue(_Fields field, Object value) {
|
513 |
public void setFieldValue(_Fields field, Object value) {
|
| 406 |
switch (field) {
|
514 |
switch (field) {
|
| 407 |
case DATE_OF_SALE:
|
515 |
case DATE_OF_SALE:
|
| 408 |
if (value == null) {
|
516 |
if (value == null) {
|
| 409 |
unsetDateOfSale();
|
517 |
unsetDateOfSale();
|
| Line 418... |
Line 526... |
| 418 |
} else {
|
526 |
} else {
|
| 419 |
setItem_id((Long)value);
|
527 |
setItem_id((Long)value);
|
| 420 |
}
|
528 |
}
|
| 421 |
break;
|
529 |
break;
|
| 422 |
|
530 |
|
| 423 |
case ORDER_COUNT:
|
531 |
case TOTAL_ORDER_COUNT:
|
| 424 |
if (value == null) {
|
532 |
if (value == null) {
|
| 425 |
unsetOrderCount();
|
533 |
unsetTotalOrderCount();
|
| 426 |
} else {
|
534 |
} else {
|
| 427 |
setOrderCount((Integer)value);
|
535 |
setTotalOrderCount((Integer)value);
|
| 428 |
}
|
536 |
}
|
| 429 |
break;
|
537 |
break;
|
| 430 |
|
538 |
|
| 431 |
case AMAZON_FBA_INVENTORY:
|
539 |
case AMAZON_FBA_INVENTORY:
|
| 432 |
if (value == null) {
|
540 |
if (value == null) {
|
| Line 466... |
Line 574... |
| 466 |
} else {
|
574 |
} else {
|
| 467 |
setMinMfnPrice((Double)value);
|
575 |
setMinMfnPrice((Double)value);
|
| 468 |
}
|
576 |
}
|
| 469 |
break;
|
577 |
break;
|
| 470 |
|
578 |
|
| - |
|
579 |
case TOTAL_SALE:
|
| - |
|
580 |
if (value == null) {
|
| - |
|
581 |
unsetTotalSale();
|
| - |
|
582 |
} else {
|
| - |
|
583 |
setTotalSale((Double)value);
|
| - |
|
584 |
}
|
| - |
|
585 |
break;
|
| - |
|
586 |
|
| - |
|
587 |
case PROMOTION_SALE:
|
| - |
|
588 |
if (value == null) {
|
| - |
|
589 |
unsetPromotionSale();
|
| - |
|
590 |
} else {
|
| - |
|
591 |
setPromotionSale((Double)value);
|
| - |
|
592 |
}
|
| - |
|
593 |
break;
|
| - |
|
594 |
|
| - |
|
595 |
case PROMOTION_ORDER_COUNT:
|
| - |
|
596 |
if (value == null) {
|
| - |
|
597 |
unsetPromotionOrderCount();
|
| - |
|
598 |
} else {
|
| - |
|
599 |
setPromotionOrderCount((Integer)value);
|
| - |
|
600 |
}
|
| - |
|
601 |
break;
|
| - |
|
602 |
|
| 471 |
}
|
603 |
}
|
| 472 |
}
|
604 |
}
|
| 473 |
|
605 |
|
| 474 |
public Object getFieldValue(_Fields field) {
|
606 |
public Object getFieldValue(_Fields field) {
|
| 475 |
switch (field) {
|
607 |
switch (field) {
|
| Line 477... |
Line 609... |
| 477 |
return Long.valueOf(getDateOfSale());
|
609 |
return Long.valueOf(getDateOfSale());
|
| 478 |
|
610 |
|
| 479 |
case ITEM_ID:
|
611 |
case ITEM_ID:
|
| 480 |
return Long.valueOf(getItem_id());
|
612 |
return Long.valueOf(getItem_id());
|
| 481 |
|
613 |
|
| 482 |
case ORDER_COUNT:
|
614 |
case TOTAL_ORDER_COUNT:
|
| 483 |
return Integer.valueOf(getOrderCount());
|
615 |
return Integer.valueOf(getTotalOrderCount());
|
| 484 |
|
616 |
|
| 485 |
case AMAZON_FBA_INVENTORY:
|
617 |
case AMAZON_FBA_INVENTORY:
|
| 486 |
return Long.valueOf(getAmazonFbaInventory());
|
618 |
return Long.valueOf(getAmazonFbaInventory());
|
| 487 |
|
619 |
|
| 488 |
case IS_OUT_OF_STOCK:
|
620 |
case IS_OUT_OF_STOCK:
|
| Line 495... |
Line 627... |
| 495 |
return Double.valueOf(getMinFbaPrice());
|
627 |
return Double.valueOf(getMinFbaPrice());
|
| 496 |
|
628 |
|
| 497 |
case MIN_MFN_PRICE:
|
629 |
case MIN_MFN_PRICE:
|
| 498 |
return Double.valueOf(getMinMfnPrice());
|
630 |
return Double.valueOf(getMinMfnPrice());
|
| 499 |
|
631 |
|
| - |
|
632 |
case TOTAL_SALE:
|
| - |
|
633 |
return Double.valueOf(getTotalSale());
|
| - |
|
634 |
|
| - |
|
635 |
case PROMOTION_SALE:
|
| - |
|
636 |
return Double.valueOf(getPromotionSale());
|
| - |
|
637 |
|
| - |
|
638 |
case PROMOTION_ORDER_COUNT:
|
| - |
|
639 |
return Integer.valueOf(getPromotionOrderCount());
|
| - |
|
640 |
|
| 500 |
}
|
641 |
}
|
| 501 |
throw new IllegalStateException();
|
642 |
throw new IllegalStateException();
|
| 502 |
}
|
643 |
}
|
| 503 |
|
644 |
|
| 504 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
645 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| Line 510... |
Line 651... |
| 510 |
switch (field) {
|
651 |
switch (field) {
|
| 511 |
case DATE_OF_SALE:
|
652 |
case DATE_OF_SALE:
|
| 512 |
return isSetDateOfSale();
|
653 |
return isSetDateOfSale();
|
| 513 |
case ITEM_ID:
|
654 |
case ITEM_ID:
|
| 514 |
return isSetItem_id();
|
655 |
return isSetItem_id();
|
| 515 |
case ORDER_COUNT:
|
656 |
case TOTAL_ORDER_COUNT:
|
| 516 |
return isSetOrderCount();
|
657 |
return isSetTotalOrderCount();
|
| 517 |
case AMAZON_FBA_INVENTORY:
|
658 |
case AMAZON_FBA_INVENTORY:
|
| 518 |
return isSetAmazonFbaInventory();
|
659 |
return isSetAmazonFbaInventory();
|
| 519 |
case IS_OUT_OF_STOCK:
|
660 |
case IS_OUT_OF_STOCK:
|
| 520 |
return isSetIsOutOfStock();
|
661 |
return isSetIsOutOfStock();
|
| 521 |
case SALE_PRICE:
|
662 |
case SALE_PRICE:
|
| 522 |
return isSetSalePrice();
|
663 |
return isSetSalePrice();
|
| 523 |
case MIN_FBA_PRICE:
|
664 |
case MIN_FBA_PRICE:
|
| 524 |
return isSetMinFbaPrice();
|
665 |
return isSetMinFbaPrice();
|
| 525 |
case MIN_MFN_PRICE:
|
666 |
case MIN_MFN_PRICE:
|
| 526 |
return isSetMinMfnPrice();
|
667 |
return isSetMinMfnPrice();
|
| - |
|
668 |
case TOTAL_SALE:
|
| - |
|
669 |
return isSetTotalSale();
|
| - |
|
670 |
case PROMOTION_SALE:
|
| - |
|
671 |
return isSetPromotionSale();
|
| - |
|
672 |
case PROMOTION_ORDER_COUNT:
|
| - |
|
673 |
return isSetPromotionOrderCount();
|
| 527 |
}
|
674 |
}
|
| 528 |
throw new IllegalStateException();
|
675 |
throw new IllegalStateException();
|
| 529 |
}
|
676 |
}
|
| 530 |
|
677 |
|
| 531 |
@Override
|
678 |
@Override
|
| Line 557... |
Line 704... |
| 557 |
return false;
|
704 |
return false;
|
| 558 |
if (this.item_id != that.item_id)
|
705 |
if (this.item_id != that.item_id)
|
| 559 |
return false;
|
706 |
return false;
|
| 560 |
}
|
707 |
}
|
| 561 |
|
708 |
|
| 562 |
boolean this_present_orderCount = true;
|
709 |
boolean this_present_totalOrderCount = true;
|
| 563 |
boolean that_present_orderCount = true;
|
710 |
boolean that_present_totalOrderCount = true;
|
| 564 |
if (this_present_orderCount || that_present_orderCount) {
|
711 |
if (this_present_totalOrderCount || that_present_totalOrderCount) {
|
| 565 |
if (!(this_present_orderCount && that_present_orderCount))
|
712 |
if (!(this_present_totalOrderCount && that_present_totalOrderCount))
|
| 566 |
return false;
|
713 |
return false;
|
| 567 |
if (this.orderCount != that.orderCount)
|
714 |
if (this.totalOrderCount != that.totalOrderCount)
|
| 568 |
return false;
|
715 |
return false;
|
| 569 |
}
|
716 |
}
|
| 570 |
|
717 |
|
| 571 |
boolean this_present_amazonFbaInventory = true;
|
718 |
boolean this_present_amazonFbaInventory = true;
|
| 572 |
boolean that_present_amazonFbaInventory = true;
|
719 |
boolean that_present_amazonFbaInventory = true;
|
| Line 611... |
Line 758... |
| 611 |
return false;
|
758 |
return false;
|
| 612 |
if (this.minMfnPrice != that.minMfnPrice)
|
759 |
if (this.minMfnPrice != that.minMfnPrice)
|
| 613 |
return false;
|
760 |
return false;
|
| 614 |
}
|
761 |
}
|
| 615 |
|
762 |
|
| - |
|
763 |
boolean this_present_totalSale = true;
|
| - |
|
764 |
boolean that_present_totalSale = true;
|
| - |
|
765 |
if (this_present_totalSale || that_present_totalSale) {
|
| - |
|
766 |
if (!(this_present_totalSale && that_present_totalSale))
|
| - |
|
767 |
return false;
|
| - |
|
768 |
if (this.totalSale != that.totalSale)
|
| - |
|
769 |
return false;
|
| - |
|
770 |
}
|
| - |
|
771 |
|
| - |
|
772 |
boolean this_present_promotionSale = true;
|
| - |
|
773 |
boolean that_present_promotionSale = true;
|
| - |
|
774 |
if (this_present_promotionSale || that_present_promotionSale) {
|
| - |
|
775 |
if (!(this_present_promotionSale && that_present_promotionSale))
|
| - |
|
776 |
return false;
|
| - |
|
777 |
if (this.promotionSale != that.promotionSale)
|
| - |
|
778 |
return false;
|
| - |
|
779 |
}
|
| - |
|
780 |
|
| - |
|
781 |
boolean this_present_promotionOrderCount = true;
|
| - |
|
782 |
boolean that_present_promotionOrderCount = true;
|
| - |
|
783 |
if (this_present_promotionOrderCount || that_present_promotionOrderCount) {
|
| - |
|
784 |
if (!(this_present_promotionOrderCount && that_present_promotionOrderCount))
|
| - |
|
785 |
return false;
|
| - |
|
786 |
if (this.promotionOrderCount != that.promotionOrderCount)
|
| - |
|
787 |
return false;
|
| - |
|
788 |
}
|
| - |
|
789 |
|
| 616 |
return true;
|
790 |
return true;
|
| 617 |
}
|
791 |
}
|
| 618 |
|
792 |
|
| 619 |
@Override
|
793 |
@Override
|
| 620 |
public int hashCode() {
|
794 |
public int hashCode() {
|
| Line 647... |
Line 821... |
| 647 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
|
821 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
|
| 648 |
if (lastComparison != 0) {
|
822 |
if (lastComparison != 0) {
|
| 649 |
return lastComparison;
|
823 |
return lastComparison;
|
| 650 |
}
|
824 |
}
|
| 651 |
}
|
825 |
}
|
| 652 |
lastComparison = Boolean.valueOf(isSetOrderCount()).compareTo(typedOther.isSetOrderCount());
|
826 |
lastComparison = Boolean.valueOf(isSetTotalOrderCount()).compareTo(typedOther.isSetTotalOrderCount());
|
| 653 |
if (lastComparison != 0) {
|
827 |
if (lastComparison != 0) {
|
| 654 |
return lastComparison;
|
828 |
return lastComparison;
|
| 655 |
}
|
829 |
}
|
| 656 |
if (isSetOrderCount()) {
|
830 |
if (isSetTotalOrderCount()) {
|
| 657 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderCount, typedOther.orderCount);
|
831 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalOrderCount, typedOther.totalOrderCount);
|
| 658 |
if (lastComparison != 0) {
|
832 |
if (lastComparison != 0) {
|
| 659 |
return lastComparison;
|
833 |
return lastComparison;
|
| 660 |
}
|
834 |
}
|
| 661 |
}
|
835 |
}
|
| 662 |
lastComparison = Boolean.valueOf(isSetAmazonFbaInventory()).compareTo(typedOther.isSetAmazonFbaInventory());
|
836 |
lastComparison = Boolean.valueOf(isSetAmazonFbaInventory()).compareTo(typedOther.isSetAmazonFbaInventory());
|
| Line 707... |
Line 881... |
| 707 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.minMfnPrice, typedOther.minMfnPrice);
|
881 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.minMfnPrice, typedOther.minMfnPrice);
|
| 708 |
if (lastComparison != 0) {
|
882 |
if (lastComparison != 0) {
|
| 709 |
return lastComparison;
|
883 |
return lastComparison;
|
| 710 |
}
|
884 |
}
|
| 711 |
}
|
885 |
}
|
| - |
|
886 |
lastComparison = Boolean.valueOf(isSetTotalSale()).compareTo(typedOther.isSetTotalSale());
|
| - |
|
887 |
if (lastComparison != 0) {
|
| - |
|
888 |
return lastComparison;
|
| - |
|
889 |
}
|
| - |
|
890 |
if (isSetTotalSale()) {
|
| - |
|
891 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.totalSale, typedOther.totalSale);
|
| - |
|
892 |
if (lastComparison != 0) {
|
| - |
|
893 |
return lastComparison;
|
| - |
|
894 |
}
|
| - |
|
895 |
}
|
| - |
|
896 |
lastComparison = Boolean.valueOf(isSetPromotionSale()).compareTo(typedOther.isSetPromotionSale());
|
| - |
|
897 |
if (lastComparison != 0) {
|
| - |
|
898 |
return lastComparison;
|
| - |
|
899 |
}
|
| - |
|
900 |
if (isSetPromotionSale()) {
|
| - |
|
901 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.promotionSale, typedOther.promotionSale);
|
| - |
|
902 |
if (lastComparison != 0) {
|
| - |
|
903 |
return lastComparison;
|
| - |
|
904 |
}
|
| - |
|
905 |
}
|
| - |
|
906 |
lastComparison = Boolean.valueOf(isSetPromotionOrderCount()).compareTo(typedOther.isSetPromotionOrderCount());
|
| - |
|
907 |
if (lastComparison != 0) {
|
| - |
|
908 |
return lastComparison;
|
| - |
|
909 |
}
|
| - |
|
910 |
if (isSetPromotionOrderCount()) {
|
| - |
|
911 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.promotionOrderCount, typedOther.promotionOrderCount);
|
| - |
|
912 |
if (lastComparison != 0) {
|
| - |
|
913 |
return lastComparison;
|
| - |
|
914 |
}
|
| - |
|
915 |
}
|
| 712 |
return 0;
|
916 |
return 0;
|
| 713 |
}
|
917 |
}
|
| 714 |
|
918 |
|
| 715 |
public _Fields fieldForId(int fieldId) {
|
919 |
public _Fields fieldForId(int fieldId) {
|
| 716 |
return _Fields.findByThriftId(fieldId);
|
920 |
return _Fields.findByThriftId(fieldId);
|
| Line 740... |
Line 944... |
| 740 |
setItem_idIsSet(true);
|
944 |
setItem_idIsSet(true);
|
| 741 |
} else {
|
945 |
} else {
|
| 742 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
946 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 743 |
}
|
947 |
}
|
| 744 |
break;
|
948 |
break;
|
| 745 |
case 3: // ORDER_COUNT
|
949 |
case 3: // TOTAL_ORDER_COUNT
|
| 746 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
950 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
| 747 |
this.orderCount = iprot.readI32();
|
951 |
this.totalOrderCount = iprot.readI32();
|
| 748 |
setOrderCountIsSet(true);
|
952 |
setTotalOrderCountIsSet(true);
|
| 749 |
} else {
|
953 |
} else {
|
| 750 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
954 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 751 |
}
|
955 |
}
|
| 752 |
break;
|
956 |
break;
|
| 753 |
case 4: // AMAZON_FBA_INVENTORY
|
957 |
case 4: // AMAZON_FBA_INVENTORY
|
| Line 788... |
Line 992... |
| 788 |
setMinMfnPriceIsSet(true);
|
992 |
setMinMfnPriceIsSet(true);
|
| 789 |
} else {
|
993 |
} else {
|
| 790 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
994 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 791 |
}
|
995 |
}
|
| 792 |
break;
|
996 |
break;
|
| - |
|
997 |
case 9: // TOTAL_SALE
|
| - |
|
998 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
| - |
|
999 |
this.totalSale = iprot.readDouble();
|
| - |
|
1000 |
setTotalSaleIsSet(true);
|
| - |
|
1001 |
} else {
|
| - |
|
1002 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
1003 |
}
|
| - |
|
1004 |
break;
|
| - |
|
1005 |
case 10: // PROMOTION_SALE
|
| - |
|
1006 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
| - |
|
1007 |
this.promotionSale = iprot.readDouble();
|
| - |
|
1008 |
setPromotionSaleIsSet(true);
|
| - |
|
1009 |
} else {
|
| - |
|
1010 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
1011 |
}
|
| - |
|
1012 |
break;
|
| - |
|
1013 |
case 11: // PROMOTION_ORDER_COUNT
|
| - |
|
1014 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
| - |
|
1015 |
this.promotionOrderCount = iprot.readI32();
|
| - |
|
1016 |
setPromotionOrderCountIsSet(true);
|
| - |
|
1017 |
} else {
|
| - |
|
1018 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
1019 |
}
|
| - |
|
1020 |
break;
|
| 793 |
default:
|
1021 |
default:
|
| 794 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
1022 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 795 |
}
|
1023 |
}
|
| 796 |
iprot.readFieldEnd();
|
1024 |
iprot.readFieldEnd();
|
| 797 |
}
|
1025 |
}
|
| Line 807... |
Line 1035... |
| 807 |
oprot.writeI64(this.dateOfSale);
|
1035 |
oprot.writeI64(this.dateOfSale);
|
| 808 |
oprot.writeFieldEnd();
|
1036 |
oprot.writeFieldEnd();
|
| 809 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
1037 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
| 810 |
oprot.writeI64(this.item_id);
|
1038 |
oprot.writeI64(this.item_id);
|
| 811 |
oprot.writeFieldEnd();
|
1039 |
oprot.writeFieldEnd();
|
| 812 |
oprot.writeFieldBegin(ORDER_COUNT_FIELD_DESC);
|
1040 |
oprot.writeFieldBegin(TOTAL_ORDER_COUNT_FIELD_DESC);
|
| 813 |
oprot.writeI32(this.orderCount);
|
1041 |
oprot.writeI32(this.totalOrderCount);
|
| 814 |
oprot.writeFieldEnd();
|
1042 |
oprot.writeFieldEnd();
|
| 815 |
oprot.writeFieldBegin(AMAZON_FBA_INVENTORY_FIELD_DESC);
|
1043 |
oprot.writeFieldBegin(AMAZON_FBA_INVENTORY_FIELD_DESC);
|
| 816 |
oprot.writeI64(this.amazonFbaInventory);
|
1044 |
oprot.writeI64(this.amazonFbaInventory);
|
| 817 |
oprot.writeFieldEnd();
|
1045 |
oprot.writeFieldEnd();
|
| 818 |
oprot.writeFieldBegin(IS_OUT_OF_STOCK_FIELD_DESC);
|
1046 |
oprot.writeFieldBegin(IS_OUT_OF_STOCK_FIELD_DESC);
|
| Line 825... |
Line 1053... |
| 825 |
oprot.writeDouble(this.minFbaPrice);
|
1053 |
oprot.writeDouble(this.minFbaPrice);
|
| 826 |
oprot.writeFieldEnd();
|
1054 |
oprot.writeFieldEnd();
|
| 827 |
oprot.writeFieldBegin(MIN_MFN_PRICE_FIELD_DESC);
|
1055 |
oprot.writeFieldBegin(MIN_MFN_PRICE_FIELD_DESC);
|
| 828 |
oprot.writeDouble(this.minMfnPrice);
|
1056 |
oprot.writeDouble(this.minMfnPrice);
|
| 829 |
oprot.writeFieldEnd();
|
1057 |
oprot.writeFieldEnd();
|
| - |
|
1058 |
oprot.writeFieldBegin(TOTAL_SALE_FIELD_DESC);
|
| - |
|
1059 |
oprot.writeDouble(this.totalSale);
|
| - |
|
1060 |
oprot.writeFieldEnd();
|
| - |
|
1061 |
oprot.writeFieldBegin(PROMOTION_SALE_FIELD_DESC);
|
| - |
|
1062 |
oprot.writeDouble(this.promotionSale);
|
| - |
|
1063 |
oprot.writeFieldEnd();
|
| - |
|
1064 |
oprot.writeFieldBegin(PROMOTION_ORDER_COUNT_FIELD_DESC);
|
| - |
|
1065 |
oprot.writeI32(this.promotionOrderCount);
|
| - |
|
1066 |
oprot.writeFieldEnd();
|
| 830 |
oprot.writeFieldStop();
|
1067 |
oprot.writeFieldStop();
|
| 831 |
oprot.writeStructEnd();
|
1068 |
oprot.writeStructEnd();
|
| 832 |
}
|
1069 |
}
|
| 833 |
|
1070 |
|
| 834 |
@Override
|
1071 |
@Override
|
| Line 842... |
Line 1079... |
| 842 |
if (!first) sb.append(", ");
|
1079 |
if (!first) sb.append(", ");
|
| 843 |
sb.append("item_id:");
|
1080 |
sb.append("item_id:");
|
| 844 |
sb.append(this.item_id);
|
1081 |
sb.append(this.item_id);
|
| 845 |
first = false;
|
1082 |
first = false;
|
| 846 |
if (!first) sb.append(", ");
|
1083 |
if (!first) sb.append(", ");
|
| 847 |
sb.append("orderCount:");
|
1084 |
sb.append("totalOrderCount:");
|
| 848 |
sb.append(this.orderCount);
|
1085 |
sb.append(this.totalOrderCount);
|
| 849 |
first = false;
|
1086 |
first = false;
|
| 850 |
if (!first) sb.append(", ");
|
1087 |
if (!first) sb.append(", ");
|
| 851 |
sb.append("amazonFbaInventory:");
|
1088 |
sb.append("amazonFbaInventory:");
|
| 852 |
sb.append(this.amazonFbaInventory);
|
1089 |
sb.append(this.amazonFbaInventory);
|
| 853 |
first = false;
|
1090 |
first = false;
|
| Line 865... |
Line 1102... |
| 865 |
first = false;
|
1102 |
first = false;
|
| 866 |
if (!first) sb.append(", ");
|
1103 |
if (!first) sb.append(", ");
|
| 867 |
sb.append("minMfnPrice:");
|
1104 |
sb.append("minMfnPrice:");
|
| 868 |
sb.append(this.minMfnPrice);
|
1105 |
sb.append(this.minMfnPrice);
|
| 869 |
first = false;
|
1106 |
first = false;
|
| - |
|
1107 |
if (!first) sb.append(", ");
|
| - |
|
1108 |
sb.append("totalSale:");
|
| - |
|
1109 |
sb.append(this.totalSale);
|
| - |
|
1110 |
first = false;
|
| - |
|
1111 |
if (!first) sb.append(", ");
|
| - |
|
1112 |
sb.append("promotionSale:");
|
| - |
|
1113 |
sb.append(this.promotionSale);
|
| - |
|
1114 |
first = false;
|
| - |
|
1115 |
if (!first) sb.append(", ");
|
| - |
|
1116 |
sb.append("promotionOrderCount:");
|
| - |
|
1117 |
sb.append(this.promotionOrderCount);
|
| - |
|
1118 |
first = false;
|
| 870 |
sb.append(")");
|
1119 |
sb.append(")");
|
| 871 |
return sb.toString();
|
1120 |
return sb.toString();
|
| 872 |
}
|
1121 |
}
|
| 873 |
|
1122 |
|
| 874 |
public void validate() throws org.apache.thrift.TException {
|
1123 |
public void validate() throws org.apache.thrift.TException {
|