| Line 65... |
Line 65... |
| 65 |
private static final org.apache.thrift.protocol.TField ASIN_FIELD_DESC = new org.apache.thrift.protocol.TField("asin", org.apache.thrift.protocol.TType.STRING, (short)42);
|
65 |
private static final org.apache.thrift.protocol.TField ASIN_FIELD_DESC = new org.apache.thrift.protocol.TField("asin", org.apache.thrift.protocol.TType.STRING, (short)42);
|
| 66 |
private static final org.apache.thrift.protocol.TField DEFAULT_INVENTORY_FIELD_DESC = new org.apache.thrift.protocol.TField("defaultInventory", org.apache.thrift.protocol.TType.I64, (short)43);
|
66 |
private static final org.apache.thrift.protocol.TField DEFAULT_INVENTORY_FIELD_DESC = new org.apache.thrift.protocol.TField("defaultInventory", org.apache.thrift.protocol.TType.I64, (short)43);
|
| 67 |
private static final org.apache.thrift.protocol.TField HOLD_INVENTORY_FIELD_DESC = new org.apache.thrift.protocol.TField("holdInventory", org.apache.thrift.protocol.TType.I64, (short)44);
|
67 |
private static final org.apache.thrift.protocol.TField HOLD_INVENTORY_FIELD_DESC = new org.apache.thrift.protocol.TField("holdInventory", org.apache.thrift.protocol.TType.I64, (short)44);
|
| 68 |
private static final org.apache.thrift.protocol.TField HOLD_OVERRIDE_FIELD_DESC = new org.apache.thrift.protocol.TField("holdOverride", org.apache.thrift.protocol.TType.BOOL, (short)45);
|
68 |
private static final org.apache.thrift.protocol.TField HOLD_OVERRIDE_FIELD_DESC = new org.apache.thrift.protocol.TField("holdOverride", org.apache.thrift.protocol.TType.BOOL, (short)45);
|
| 69 |
private static final org.apache.thrift.protocol.TField PACK_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("packQuantity", org.apache.thrift.protocol.TType.I64, (short)46);
|
69 |
private static final org.apache.thrift.protocol.TField PACK_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("packQuantity", org.apache.thrift.protocol.TType.I64, (short)46);
|
| - |
|
70 |
private static final org.apache.thrift.protocol.TField QUANTITY_STEP_FIELD_DESC = new org.apache.thrift.protocol.TField("quantityStep", org.apache.thrift.protocol.TType.I64, (short)47);
|
| - |
|
71 |
private static final org.apache.thrift.protocol.TField MINIMUM_BUY_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("minimumBuyQuantity", org.apache.thrift.protocol.TType.I64, (short)48);
|
| 70 |
|
72 |
|
| 71 |
private long id; // required
|
73 |
private long id; // required
|
| 72 |
private String productGroup; // required
|
74 |
private String productGroup; // required
|
| 73 |
private String brand; // required
|
75 |
private String brand; // required
|
| 74 |
private String modelNumber; // required
|
76 |
private String modelNumber; // required
|
| Line 110... |
Line 112... |
| 110 |
private String asin; // required
|
112 |
private String asin; // required
|
| 111 |
private long defaultInventory; // required
|
113 |
private long defaultInventory; // required
|
| 112 |
private long holdInventory; // required
|
114 |
private long holdInventory; // required
|
| 113 |
private boolean holdOverride; // required
|
115 |
private boolean holdOverride; // required
|
| 114 |
private long packQuantity; // required
|
116 |
private long packQuantity; // required
|
| - |
|
117 |
private long quantityStep; // required
|
| - |
|
118 |
private long minimumBuyQuantity; // required
|
| 115 |
|
119 |
|
| 116 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
120 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 117 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
121 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 118 |
ID((short)1, "id"),
|
122 |
ID((short)1, "id"),
|
| 119 |
PRODUCT_GROUP((short)2, "productGroup"),
|
123 |
PRODUCT_GROUP((short)2, "productGroup"),
|
| Line 164... |
Line 168... |
| 164 |
PREFERRED_INSURER((short)41, "preferredInsurer"),
|
168 |
PREFERRED_INSURER((short)41, "preferredInsurer"),
|
| 165 |
ASIN((short)42, "asin"),
|
169 |
ASIN((short)42, "asin"),
|
| 166 |
DEFAULT_INVENTORY((short)43, "defaultInventory"),
|
170 |
DEFAULT_INVENTORY((short)43, "defaultInventory"),
|
| 167 |
HOLD_INVENTORY((short)44, "holdInventory"),
|
171 |
HOLD_INVENTORY((short)44, "holdInventory"),
|
| 168 |
HOLD_OVERRIDE((short)45, "holdOverride"),
|
172 |
HOLD_OVERRIDE((short)45, "holdOverride"),
|
| 169 |
PACK_QUANTITY((short)46, "packQuantity");
|
173 |
PACK_QUANTITY((short)46, "packQuantity"),
|
| - |
|
174 |
QUANTITY_STEP((short)47, "quantityStep"),
|
| - |
|
175 |
MINIMUM_BUY_QUANTITY((short)48, "minimumBuyQuantity");
|
| 170 |
|
176 |
|
| 171 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
177 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| 172 |
|
178 |
|
| 173 |
static {
|
179 |
static {
|
| 174 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
180 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| Line 267... |
Line 273... |
| 267 |
return HOLD_INVENTORY;
|
273 |
return HOLD_INVENTORY;
|
| 268 |
case 45: // HOLD_OVERRIDE
|
274 |
case 45: // HOLD_OVERRIDE
|
| 269 |
return HOLD_OVERRIDE;
|
275 |
return HOLD_OVERRIDE;
|
| 270 |
case 46: // PACK_QUANTITY
|
276 |
case 46: // PACK_QUANTITY
|
| 271 |
return PACK_QUANTITY;
|
277 |
return PACK_QUANTITY;
|
| - |
|
278 |
case 47: // QUANTITY_STEP
|
| - |
|
279 |
return QUANTITY_STEP;
|
| - |
|
280 |
case 48: // MINIMUM_BUY_QUANTITY
|
| - |
|
281 |
return MINIMUM_BUY_QUANTITY;
|
| 272 |
default:
|
282 |
default:
|
| 273 |
return null;
|
283 |
return null;
|
| 274 |
}
|
284 |
}
|
| 275 |
}
|
285 |
}
|
| 276 |
|
286 |
|
| Line 336... |
Line 346... |
| 336 |
private static final int __PREFERREDINSURER_ISSET_ID = 24;
|
346 |
private static final int __PREFERREDINSURER_ISSET_ID = 24;
|
| 337 |
private static final int __DEFAULTINVENTORY_ISSET_ID = 25;
|
347 |
private static final int __DEFAULTINVENTORY_ISSET_ID = 25;
|
| 338 |
private static final int __HOLDINVENTORY_ISSET_ID = 26;
|
348 |
private static final int __HOLDINVENTORY_ISSET_ID = 26;
|
| 339 |
private static final int __HOLDOVERRIDE_ISSET_ID = 27;
|
349 |
private static final int __HOLDOVERRIDE_ISSET_ID = 27;
|
| 340 |
private static final int __PACKQUANTITY_ISSET_ID = 28;
|
350 |
private static final int __PACKQUANTITY_ISSET_ID = 28;
|
| - |
|
351 |
private static final int __QUANTITYSTEP_ISSET_ID = 29;
|
| - |
|
352 |
private static final int __MINIMUMBUYQUANTITY_ISSET_ID = 30;
|
| 341 |
private BitSet __isset_bit_vector = new BitSet(29);
|
353 |
private BitSet __isset_bit_vector = new BitSet(31);
|
| 342 |
|
354 |
|
| 343 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
355 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 344 |
static {
|
356 |
static {
|
| 345 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
357 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 346 |
tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
358 |
tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| Line 431... |
Line 443... |
| 431 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
443 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 432 |
tmpMap.put(_Fields.HOLD_OVERRIDE, new org.apache.thrift.meta_data.FieldMetaData("holdOverride", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
444 |
tmpMap.put(_Fields.HOLD_OVERRIDE, new org.apache.thrift.meta_data.FieldMetaData("holdOverride", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 433 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
445 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
| 434 |
tmpMap.put(_Fields.PACK_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("packQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
446 |
tmpMap.put(_Fields.PACK_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("packQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 435 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
447 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| - |
|
448 |
tmpMap.put(_Fields.QUANTITY_STEP, new org.apache.thrift.meta_data.FieldMetaData("quantityStep", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
449 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| - |
|
450 |
tmpMap.put(_Fields.MINIMUM_BUY_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("minimumBuyQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
451 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 436 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
452 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 437 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Item.class, metaDataMap);
|
453 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Item.class, metaDataMap);
|
| 438 |
}
|
454 |
}
|
| 439 |
|
455 |
|
| 440 |
public Item() {
|
456 |
public Item() {
|
| Line 470... |
Line 486... |
| 470 |
long preferredInsurer,
|
486 |
long preferredInsurer,
|
| 471 |
String asin,
|
487 |
String asin,
|
| 472 |
long defaultInventory,
|
488 |
long defaultInventory,
|
| 473 |
long holdInventory,
|
489 |
long holdInventory,
|
| 474 |
boolean holdOverride,
|
490 |
boolean holdOverride,
|
| 475 |
long packQuantity)
|
491 |
long packQuantity,
|
| - |
|
492 |
long quantityStep,
|
| - |
|
493 |
long minimumBuyQuantity)
|
| 476 |
{
|
494 |
{
|
| 477 |
this();
|
495 |
this();
|
| 478 |
this.id = id;
|
496 |
this.id = id;
|
| 479 |
setIdIsSet(true);
|
497 |
setIdIsSet(true);
|
| 480 |
this.productGroup = productGroup;
|
498 |
this.productGroup = productGroup;
|
| Line 522... |
Line 540... |
| 522 |
setHoldInventoryIsSet(true);
|
540 |
setHoldInventoryIsSet(true);
|
| 523 |
this.holdOverride = holdOverride;
|
541 |
this.holdOverride = holdOverride;
|
| 524 |
setHoldOverrideIsSet(true);
|
542 |
setHoldOverrideIsSet(true);
|
| 525 |
this.packQuantity = packQuantity;
|
543 |
this.packQuantity = packQuantity;
|
| 526 |
setPackQuantityIsSet(true);
|
544 |
setPackQuantityIsSet(true);
|
| - |
|
545 |
this.quantityStep = quantityStep;
|
| - |
|
546 |
setQuantityStepIsSet(true);
|
| - |
|
547 |
this.minimumBuyQuantity = minimumBuyQuantity;
|
| - |
|
548 |
setMinimumBuyQuantityIsSet(true);
|
| 527 |
}
|
549 |
}
|
| 528 |
|
550 |
|
| 529 |
/**
|
551 |
/**
|
| 530 |
* Performs a deep copy on <i>other</i>.
|
552 |
* Performs a deep copy on <i>other</i>.
|
| 531 |
*/
|
553 |
*/
|
| Line 616... |
Line 638... |
| 616 |
}
|
638 |
}
|
| 617 |
this.defaultInventory = other.defaultInventory;
|
639 |
this.defaultInventory = other.defaultInventory;
|
| 618 |
this.holdInventory = other.holdInventory;
|
640 |
this.holdInventory = other.holdInventory;
|
| 619 |
this.holdOverride = other.holdOverride;
|
641 |
this.holdOverride = other.holdOverride;
|
| 620 |
this.packQuantity = other.packQuantity;
|
642 |
this.packQuantity = other.packQuantity;
|
| - |
|
643 |
this.quantityStep = other.quantityStep;
|
| - |
|
644 |
this.minimumBuyQuantity = other.minimumBuyQuantity;
|
| 621 |
}
|
645 |
}
|
| 622 |
|
646 |
|
| 623 |
public Item deepCopy() {
|
647 |
public Item deepCopy() {
|
| 624 |
return new Item(this);
|
648 |
return new Item(this);
|
| 625 |
}
|
649 |
}
|
| Line 697... |
Line 721... |
| 697 |
this.holdInventory = 0;
|
721 |
this.holdInventory = 0;
|
| 698 |
setHoldOverrideIsSet(false);
|
722 |
setHoldOverrideIsSet(false);
|
| 699 |
this.holdOverride = false;
|
723 |
this.holdOverride = false;
|
| 700 |
setPackQuantityIsSet(false);
|
724 |
setPackQuantityIsSet(false);
|
| 701 |
this.packQuantity = 0;
|
725 |
this.packQuantity = 0;
|
| - |
|
726 |
setQuantityStepIsSet(false);
|
| - |
|
727 |
this.quantityStep = 0;
|
| - |
|
728 |
setMinimumBuyQuantityIsSet(false);
|
| - |
|
729 |
this.minimumBuyQuantity = 0;
|
| 702 |
}
|
730 |
}
|
| 703 |
|
731 |
|
| 704 |
public long getId() {
|
732 |
public long getId() {
|
| 705 |
return this.id;
|
733 |
return this.id;
|
| 706 |
}
|
734 |
}
|
| Line 1709... |
Line 1737... |
| 1709 |
|
1737 |
|
| 1710 |
public void setPackQuantityIsSet(boolean value) {
|
1738 |
public void setPackQuantityIsSet(boolean value) {
|
| 1711 |
__isset_bit_vector.set(__PACKQUANTITY_ISSET_ID, value);
|
1739 |
__isset_bit_vector.set(__PACKQUANTITY_ISSET_ID, value);
|
| 1712 |
}
|
1740 |
}
|
| 1713 |
|
1741 |
|
| - |
|
1742 |
public long getQuantityStep() {
|
| - |
|
1743 |
return this.quantityStep;
|
| - |
|
1744 |
}
|
| - |
|
1745 |
|
| - |
|
1746 |
public void setQuantityStep(long quantityStep) {
|
| - |
|
1747 |
this.quantityStep = quantityStep;
|
| - |
|
1748 |
setQuantityStepIsSet(true);
|
| - |
|
1749 |
}
|
| - |
|
1750 |
|
| - |
|
1751 |
public void unsetQuantityStep() {
|
| - |
|
1752 |
__isset_bit_vector.clear(__QUANTITYSTEP_ISSET_ID);
|
| - |
|
1753 |
}
|
| - |
|
1754 |
|
| - |
|
1755 |
/** Returns true if field quantityStep is set (has been assigned a value) and false otherwise */
|
| - |
|
1756 |
public boolean isSetQuantityStep() {
|
| - |
|
1757 |
return __isset_bit_vector.get(__QUANTITYSTEP_ISSET_ID);
|
| - |
|
1758 |
}
|
| - |
|
1759 |
|
| - |
|
1760 |
public void setQuantityStepIsSet(boolean value) {
|
| - |
|
1761 |
__isset_bit_vector.set(__QUANTITYSTEP_ISSET_ID, value);
|
| - |
|
1762 |
}
|
| - |
|
1763 |
|
| - |
|
1764 |
public long getMinimumBuyQuantity() {
|
| - |
|
1765 |
return this.minimumBuyQuantity;
|
| - |
|
1766 |
}
|
| - |
|
1767 |
|
| - |
|
1768 |
public void setMinimumBuyQuantity(long minimumBuyQuantity) {
|
| - |
|
1769 |
this.minimumBuyQuantity = minimumBuyQuantity;
|
| - |
|
1770 |
setMinimumBuyQuantityIsSet(true);
|
| - |
|
1771 |
}
|
| - |
|
1772 |
|
| - |
|
1773 |
public void unsetMinimumBuyQuantity() {
|
| - |
|
1774 |
__isset_bit_vector.clear(__MINIMUMBUYQUANTITY_ISSET_ID);
|
| - |
|
1775 |
}
|
| - |
|
1776 |
|
| - |
|
1777 |
/** Returns true if field minimumBuyQuantity is set (has been assigned a value) and false otherwise */
|
| - |
|
1778 |
public boolean isSetMinimumBuyQuantity() {
|
| - |
|
1779 |
return __isset_bit_vector.get(__MINIMUMBUYQUANTITY_ISSET_ID);
|
| - |
|
1780 |
}
|
| - |
|
1781 |
|
| - |
|
1782 |
public void setMinimumBuyQuantityIsSet(boolean value) {
|
| - |
|
1783 |
__isset_bit_vector.set(__MINIMUMBUYQUANTITY_ISSET_ID, value);
|
| - |
|
1784 |
}
|
| - |
|
1785 |
|
| 1714 |
public void setFieldValue(_Fields field, Object value) {
|
1786 |
public void setFieldValue(_Fields field, Object value) {
|
| 1715 |
switch (field) {
|
1787 |
switch (field) {
|
| 1716 |
case ID:
|
1788 |
case ID:
|
| 1717 |
if (value == null) {
|
1789 |
if (value == null) {
|
| 1718 |
unsetId();
|
1790 |
unsetId();
|
| Line 2063... |
Line 2135... |
| 2063 |
} else {
|
2135 |
} else {
|
| 2064 |
setPackQuantity((Long)value);
|
2136 |
setPackQuantity((Long)value);
|
| 2065 |
}
|
2137 |
}
|
| 2066 |
break;
|
2138 |
break;
|
| 2067 |
|
2139 |
|
| - |
|
2140 |
case QUANTITY_STEP:
|
| - |
|
2141 |
if (value == null) {
|
| - |
|
2142 |
unsetQuantityStep();
|
| - |
|
2143 |
} else {
|
| - |
|
2144 |
setQuantityStep((Long)value);
|
| - |
|
2145 |
}
|
| - |
|
2146 |
break;
|
| - |
|
2147 |
|
| - |
|
2148 |
case MINIMUM_BUY_QUANTITY:
|
| - |
|
2149 |
if (value == null) {
|
| - |
|
2150 |
unsetMinimumBuyQuantity();
|
| - |
|
2151 |
} else {
|
| - |
|
2152 |
setMinimumBuyQuantity((Long)value);
|
| - |
|
2153 |
}
|
| - |
|
2154 |
break;
|
| - |
|
2155 |
|
| 2068 |
}
|
2156 |
}
|
| 2069 |
}
|
2157 |
}
|
| 2070 |
|
2158 |
|
| 2071 |
public Object getFieldValue(_Fields field) {
|
2159 |
public Object getFieldValue(_Fields field) {
|
| 2072 |
switch (field) {
|
2160 |
switch (field) {
|
| Line 2200... |
Line 2288... |
| 2200 |
return Boolean.valueOf(isHoldOverride());
|
2288 |
return Boolean.valueOf(isHoldOverride());
|
| 2201 |
|
2289 |
|
| 2202 |
case PACK_QUANTITY:
|
2290 |
case PACK_QUANTITY:
|
| 2203 |
return Long.valueOf(getPackQuantity());
|
2291 |
return Long.valueOf(getPackQuantity());
|
| 2204 |
|
2292 |
|
| - |
|
2293 |
case QUANTITY_STEP:
|
| - |
|
2294 |
return Long.valueOf(getQuantityStep());
|
| - |
|
2295 |
|
| - |
|
2296 |
case MINIMUM_BUY_QUANTITY:
|
| - |
|
2297 |
return Long.valueOf(getMinimumBuyQuantity());
|
| - |
|
2298 |
|
| 2205 |
}
|
2299 |
}
|
| 2206 |
throw new IllegalStateException();
|
2300 |
throw new IllegalStateException();
|
| 2207 |
}
|
2301 |
}
|
| 2208 |
|
2302 |
|
| 2209 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
2303 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| Line 2299... |
Line 2393... |
| 2299 |
return isSetHoldInventory();
|
2393 |
return isSetHoldInventory();
|
| 2300 |
case HOLD_OVERRIDE:
|
2394 |
case HOLD_OVERRIDE:
|
| 2301 |
return isSetHoldOverride();
|
2395 |
return isSetHoldOverride();
|
| 2302 |
case PACK_QUANTITY:
|
2396 |
case PACK_QUANTITY:
|
| 2303 |
return isSetPackQuantity();
|
2397 |
return isSetPackQuantity();
|
| - |
|
2398 |
case QUANTITY_STEP:
|
| - |
|
2399 |
return isSetQuantityStep();
|
| - |
|
2400 |
case MINIMUM_BUY_QUANTITY:
|
| - |
|
2401 |
return isSetMinimumBuyQuantity();
|
| 2304 |
}
|
2402 |
}
|
| 2305 |
throw new IllegalStateException();
|
2403 |
throw new IllegalStateException();
|
| 2306 |
}
|
2404 |
}
|
| 2307 |
|
2405 |
|
| 2308 |
@Override
|
2406 |
@Override
|
| Line 2712... |
Line 2810... |
| 2712 |
return false;
|
2810 |
return false;
|
| 2713 |
if (this.packQuantity != that.packQuantity)
|
2811 |
if (this.packQuantity != that.packQuantity)
|
| 2714 |
return false;
|
2812 |
return false;
|
| 2715 |
}
|
2813 |
}
|
| 2716 |
|
2814 |
|
| - |
|
2815 |
boolean this_present_quantityStep = true;
|
| - |
|
2816 |
boolean that_present_quantityStep = true;
|
| - |
|
2817 |
if (this_present_quantityStep || that_present_quantityStep) {
|
| - |
|
2818 |
if (!(this_present_quantityStep && that_present_quantityStep))
|
| - |
|
2819 |
return false;
|
| - |
|
2820 |
if (this.quantityStep != that.quantityStep)
|
| - |
|
2821 |
return false;
|
| - |
|
2822 |
}
|
| - |
|
2823 |
|
| - |
|
2824 |
boolean this_present_minimumBuyQuantity = true;
|
| - |
|
2825 |
boolean that_present_minimumBuyQuantity = true;
|
| - |
|
2826 |
if (this_present_minimumBuyQuantity || that_present_minimumBuyQuantity) {
|
| - |
|
2827 |
if (!(this_present_minimumBuyQuantity && that_present_minimumBuyQuantity))
|
| - |
|
2828 |
return false;
|
| - |
|
2829 |
if (this.minimumBuyQuantity != that.minimumBuyQuantity)
|
| - |
|
2830 |
return false;
|
| - |
|
2831 |
}
|
| - |
|
2832 |
|
| 2717 |
return true;
|
2833 |
return true;
|
| 2718 |
}
|
2834 |
}
|
| 2719 |
|
2835 |
|
| 2720 |
@Override
|
2836 |
@Override
|
| 2721 |
public int hashCode() {
|
2837 |
public int hashCode() {
|
| Line 3168... |
Line 3284... |
| 3168 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.packQuantity, typedOther.packQuantity);
|
3284 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.packQuantity, typedOther.packQuantity);
|
| 3169 |
if (lastComparison != 0) {
|
3285 |
if (lastComparison != 0) {
|
| 3170 |
return lastComparison;
|
3286 |
return lastComparison;
|
| 3171 |
}
|
3287 |
}
|
| 3172 |
}
|
3288 |
}
|
| - |
|
3289 |
lastComparison = Boolean.valueOf(isSetQuantityStep()).compareTo(typedOther.isSetQuantityStep());
|
| - |
|
3290 |
if (lastComparison != 0) {
|
| - |
|
3291 |
return lastComparison;
|
| - |
|
3292 |
}
|
| - |
|
3293 |
if (isSetQuantityStep()) {
|
| - |
|
3294 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantityStep, typedOther.quantityStep);
|
| - |
|
3295 |
if (lastComparison != 0) {
|
| - |
|
3296 |
return lastComparison;
|
| - |
|
3297 |
}
|
| - |
|
3298 |
}
|
| - |
|
3299 |
lastComparison = Boolean.valueOf(isSetMinimumBuyQuantity()).compareTo(typedOther.isSetMinimumBuyQuantity());
|
| - |
|
3300 |
if (lastComparison != 0) {
|
| - |
|
3301 |
return lastComparison;
|
| - |
|
3302 |
}
|
| - |
|
3303 |
if (isSetMinimumBuyQuantity()) {
|
| - |
|
3304 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.minimumBuyQuantity, typedOther.minimumBuyQuantity);
|
| - |
|
3305 |
if (lastComparison != 0) {
|
| - |
|
3306 |
return lastComparison;
|
| - |
|
3307 |
}
|
| - |
|
3308 |
}
|
| 3173 |
return 0;
|
3309 |
return 0;
|
| 3174 |
}
|
3310 |
}
|
| 3175 |
|
3311 |
|
| 3176 |
public _Fields fieldForId(int fieldId) {
|
3312 |
public _Fields fieldForId(int fieldId) {
|
| 3177 |
return _Fields.findByThriftId(fieldId);
|
3313 |
return _Fields.findByThriftId(fieldId);
|
| Line 3534... |
Line 3670... |
| 3534 |
setPackQuantityIsSet(true);
|
3670 |
setPackQuantityIsSet(true);
|
| 3535 |
} else {
|
3671 |
} else {
|
| 3536 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
3672 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 3537 |
}
|
3673 |
}
|
| 3538 |
break;
|
3674 |
break;
|
| - |
|
3675 |
case 47: // QUANTITY_STEP
|
| - |
|
3676 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| - |
|
3677 |
this.quantityStep = iprot.readI64();
|
| - |
|
3678 |
setQuantityStepIsSet(true);
|
| - |
|
3679 |
} else {
|
| - |
|
3680 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
3681 |
}
|
| - |
|
3682 |
break;
|
| - |
|
3683 |
case 48: // MINIMUM_BUY_QUANTITY
|
| - |
|
3684 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| - |
|
3685 |
this.minimumBuyQuantity = iprot.readI64();
|
| - |
|
3686 |
setMinimumBuyQuantityIsSet(true);
|
| - |
|
3687 |
} else {
|
| - |
|
3688 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
3689 |
}
|
| - |
|
3690 |
break;
|
| 3539 |
default:
|
3691 |
default:
|
| 3540 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
3692 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 3541 |
}
|
3693 |
}
|
| 3542 |
iprot.readFieldEnd();
|
3694 |
iprot.readFieldEnd();
|
| 3543 |
}
|
3695 |
}
|
| Line 3741... |
Line 3893... |
| 3741 |
oprot.writeBool(this.holdOverride);
|
3893 |
oprot.writeBool(this.holdOverride);
|
| 3742 |
oprot.writeFieldEnd();
|
3894 |
oprot.writeFieldEnd();
|
| 3743 |
oprot.writeFieldBegin(PACK_QUANTITY_FIELD_DESC);
|
3895 |
oprot.writeFieldBegin(PACK_QUANTITY_FIELD_DESC);
|
| 3744 |
oprot.writeI64(this.packQuantity);
|
3896 |
oprot.writeI64(this.packQuantity);
|
| 3745 |
oprot.writeFieldEnd();
|
3897 |
oprot.writeFieldEnd();
|
| - |
|
3898 |
oprot.writeFieldBegin(QUANTITY_STEP_FIELD_DESC);
|
| - |
|
3899 |
oprot.writeI64(this.quantityStep);
|
| - |
|
3900 |
oprot.writeFieldEnd();
|
| - |
|
3901 |
oprot.writeFieldBegin(MINIMUM_BUY_QUANTITY_FIELD_DESC);
|
| - |
|
3902 |
oprot.writeI64(this.minimumBuyQuantity);
|
| - |
|
3903 |
oprot.writeFieldEnd();
|
| 3746 |
oprot.writeFieldStop();
|
3904 |
oprot.writeFieldStop();
|
| 3747 |
oprot.writeStructEnd();
|
3905 |
oprot.writeStructEnd();
|
| 3748 |
}
|
3906 |
}
|
| 3749 |
|
3907 |
|
| 3750 |
@Override
|
3908 |
@Override
|
| Line 4009... |
Line 4167... |
| 4009 |
first = false;
|
4167 |
first = false;
|
| 4010 |
if (!first) sb.append(", ");
|
4168 |
if (!first) sb.append(", ");
|
| 4011 |
sb.append("packQuantity:");
|
4169 |
sb.append("packQuantity:");
|
| 4012 |
sb.append(this.packQuantity);
|
4170 |
sb.append(this.packQuantity);
|
| 4013 |
first = false;
|
4171 |
first = false;
|
| - |
|
4172 |
if (!first) sb.append(", ");
|
| - |
|
4173 |
sb.append("quantityStep:");
|
| - |
|
4174 |
sb.append(this.quantityStep);
|
| - |
|
4175 |
first = false;
|
| - |
|
4176 |
if (!first) sb.append(", ");
|
| - |
|
4177 |
sb.append("minimumBuyQuantity:");
|
| - |
|
4178 |
sb.append(this.minimumBuyQuantity);
|
| - |
|
4179 |
first = false;
|
| 4014 |
sb.append(")");
|
4180 |
sb.append(")");
|
| 4015 |
return sb.toString();
|
4181 |
return sb.toString();
|
| 4016 |
}
|
4182 |
}
|
| 4017 |
|
4183 |
|
| 4018 |
public void validate() throws org.apache.thrift.TException {
|
4184 |
public void validate() throws org.apache.thrift.TException {
|