| Line 303... |
Line 303... |
| 303 |
|
303 |
|
| 304 |
public List<OOSStatus> getOosStatusesForXDaysForItem(long itemId, int days) throws org.apache.thrift.TException;
|
304 |
public List<OOSStatus> getOosStatusesForXDaysForItem(long itemId, int days) throws org.apache.thrift.TException;
|
| 305 |
|
305 |
|
| 306 |
public List<ItemStockPurchaseParams> getNonZeroItemStockPurchaseParams() throws org.apache.thrift.TException;
|
306 |
public List<ItemStockPurchaseParams> getNonZeroItemStockPurchaseParams() throws org.apache.thrift.TException;
|
| 307 |
|
307 |
|
| - |
|
308 |
/**
|
| - |
|
309 |
* Returns a list of inventory stock for items for which there are pending orders or have billable inventory.
|
| - |
|
310 |
*/
|
| - |
|
311 |
public List<AvailableAndReservedStock> getBillableInventoryAndPendingOrders() throws org.apache.thrift.TException;
|
| - |
|
312 |
|
| 308 |
}
|
313 |
}
|
| 309 |
|
314 |
|
| 310 |
public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
|
315 |
public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
|
| 311 |
|
316 |
|
| 312 |
public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
|
317 |
public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
|
| Line 405... |
Line 410... |
| 405 |
|
410 |
|
| 406 |
public void getOosStatusesForXDaysForItem(long itemId, int days, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOosStatusesForXDaysForItem_call> resultHandler) throws org.apache.thrift.TException;
|
411 |
public void getOosStatusesForXDaysForItem(long itemId, int days, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOosStatusesForXDaysForItem_call> resultHandler) throws org.apache.thrift.TException;
|
| 407 |
|
412 |
|
| 408 |
public void getNonZeroItemStockPurchaseParams(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNonZeroItemStockPurchaseParams_call> resultHandler) throws org.apache.thrift.TException;
|
413 |
public void getNonZeroItemStockPurchaseParams(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNonZeroItemStockPurchaseParams_call> resultHandler) throws org.apache.thrift.TException;
|
| 409 |
|
414 |
|
| - |
|
415 |
public void getBillableInventoryAndPendingOrders(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBillableInventoryAndPendingOrders_call> resultHandler) throws org.apache.thrift.TException;
|
| - |
|
416 |
|
| 410 |
}
|
417 |
}
|
| 411 |
|
418 |
|
| 412 |
public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
|
419 |
public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
|
| 413 |
public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
|
420 |
public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
|
| 414 |
public Factory() {}
|
421 |
public Factory() {}
|
| Line 1608... |
Line 1615... |
| 1608 |
return result.success;
|
1615 |
return result.success;
|
| 1609 |
}
|
1616 |
}
|
| 1610 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNonZeroItemStockPurchaseParams failed: unknown result");
|
1617 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNonZeroItemStockPurchaseParams failed: unknown result");
|
| 1611 |
}
|
1618 |
}
|
| 1612 |
|
1619 |
|
| - |
|
1620 |
public List<AvailableAndReservedStock> getBillableInventoryAndPendingOrders() throws org.apache.thrift.TException
|
| - |
|
1621 |
{
|
| - |
|
1622 |
send_getBillableInventoryAndPendingOrders();
|
| - |
|
1623 |
return recv_getBillableInventoryAndPendingOrders();
|
| - |
|
1624 |
}
|
| - |
|
1625 |
|
| - |
|
1626 |
public void send_getBillableInventoryAndPendingOrders() throws org.apache.thrift.TException
|
| - |
|
1627 |
{
|
| - |
|
1628 |
getBillableInventoryAndPendingOrders_args args = new getBillableInventoryAndPendingOrders_args();
|
| - |
|
1629 |
sendBase("getBillableInventoryAndPendingOrders", args);
|
| - |
|
1630 |
}
|
| - |
|
1631 |
|
| - |
|
1632 |
public List<AvailableAndReservedStock> recv_getBillableInventoryAndPendingOrders() throws org.apache.thrift.TException
|
| - |
|
1633 |
{
|
| - |
|
1634 |
getBillableInventoryAndPendingOrders_result result = new getBillableInventoryAndPendingOrders_result();
|
| - |
|
1635 |
receiveBase(result, "getBillableInventoryAndPendingOrders");
|
| - |
|
1636 |
if (result.isSetSuccess()) {
|
| - |
|
1637 |
return result.success;
|
| - |
|
1638 |
}
|
| - |
|
1639 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBillableInventoryAndPendingOrders failed: unknown result");
|
| - |
|
1640 |
}
|
| - |
|
1641 |
|
| 1613 |
}
|
1642 |
}
|
| 1614 |
public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
|
1643 |
public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
|
| 1615 |
public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
|
1644 |
public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
|
| 1616 |
private org.apache.thrift.async.TAsyncClientManager clientManager;
|
1645 |
private org.apache.thrift.async.TAsyncClientManager clientManager;
|
| 1617 |
private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
|
1646 |
private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
|
| Line 3293... |
Line 3322... |
| 3293 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
3322 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 3294 |
return (new Client(prot)).recv_getNonZeroItemStockPurchaseParams();
|
3323 |
return (new Client(prot)).recv_getNonZeroItemStockPurchaseParams();
|
| 3295 |
}
|
3324 |
}
|
| 3296 |
}
|
3325 |
}
|
| 3297 |
|
3326 |
|
| - |
|
3327 |
public void getBillableInventoryAndPendingOrders(org.apache.thrift.async.AsyncMethodCallback<getBillableInventoryAndPendingOrders_call> resultHandler) throws org.apache.thrift.TException {
|
| - |
|
3328 |
checkReady();
|
| - |
|
3329 |
getBillableInventoryAndPendingOrders_call method_call = new getBillableInventoryAndPendingOrders_call(resultHandler, this, ___protocolFactory, ___transport);
|
| - |
|
3330 |
this.___currentMethod = method_call;
|
| - |
|
3331 |
___manager.call(method_call);
|
| - |
|
3332 |
}
|
| - |
|
3333 |
|
| - |
|
3334 |
public static class getBillableInventoryAndPendingOrders_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| - |
|
3335 |
public getBillableInventoryAndPendingOrders_call(org.apache.thrift.async.AsyncMethodCallback<getBillableInventoryAndPendingOrders_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
| - |
|
3336 |
super(client, protocolFactory, transport, resultHandler, false);
|
| - |
|
3337 |
}
|
| - |
|
3338 |
|
| - |
|
3339 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| - |
|
3340 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBillableInventoryAndPendingOrders", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
| - |
|
3341 |
getBillableInventoryAndPendingOrders_args args = new getBillableInventoryAndPendingOrders_args();
|
| - |
|
3342 |
args.write(prot);
|
| - |
|
3343 |
prot.writeMessageEnd();
|
| - |
|
3344 |
}
|
| - |
|
3345 |
|
| - |
|
3346 |
public List<AvailableAndReservedStock> getResult() throws org.apache.thrift.TException {
|
| - |
|
3347 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
| - |
|
3348 |
throw new IllegalStateException("Method call not finished!");
|
| - |
|
3349 |
}
|
| - |
|
3350 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
| - |
|
3351 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| - |
|
3352 |
return (new Client(prot)).recv_getBillableInventoryAndPendingOrders();
|
| - |
|
3353 |
}
|
| - |
|
3354 |
}
|
| - |
|
3355 |
|
| 3298 |
}
|
3356 |
}
|
| 3299 |
|
3357 |
|
| 3300 |
public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
|
3358 |
public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
|
| 3301 |
private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
|
3359 |
private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
|
| 3302 |
public Processor(I iface) {
|
3360 |
public Processor(I iface) {
|
| Line 3355... |
Line 3413... |
| 3355 |
processMap.put("updateItemStockPurchaseParams", new updateItemStockPurchaseParams());
|
3413 |
processMap.put("updateItemStockPurchaseParams", new updateItemStockPurchaseParams());
|
| 3356 |
processMap.put("getItemStockPurchaseParams", new getItemStockPurchaseParams());
|
3414 |
processMap.put("getItemStockPurchaseParams", new getItemStockPurchaseParams());
|
| 3357 |
processMap.put("addOosStatusForItem", new addOosStatusForItem());
|
3415 |
processMap.put("addOosStatusForItem", new addOosStatusForItem());
|
| 3358 |
processMap.put("getOosStatusesForXDaysForItem", new getOosStatusesForXDaysForItem());
|
3416 |
processMap.put("getOosStatusesForXDaysForItem", new getOosStatusesForXDaysForItem());
|
| 3359 |
processMap.put("getNonZeroItemStockPurchaseParams", new getNonZeroItemStockPurchaseParams());
|
3417 |
processMap.put("getNonZeroItemStockPurchaseParams", new getNonZeroItemStockPurchaseParams());
|
| - |
|
3418 |
processMap.put("getBillableInventoryAndPendingOrders", new getBillableInventoryAndPendingOrders());
|
| 3360 |
return processMap;
|
3419 |
return processMap;
|
| 3361 |
}
|
3420 |
}
|
| 3362 |
|
3421 |
|
| 3363 |
private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
|
3422 |
private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
|
| 3364 |
public addWarehouse() {
|
3423 |
public addWarehouse() {
|
| Line 4240... |
Line 4299... |
| 4240 |
result.success = iface.getNonZeroItemStockPurchaseParams();
|
4299 |
result.success = iface.getNonZeroItemStockPurchaseParams();
|
| 4241 |
return result;
|
4300 |
return result;
|
| 4242 |
}
|
4301 |
}
|
| 4243 |
}
|
4302 |
}
|
| 4244 |
|
4303 |
|
| - |
|
4304 |
private static class getBillableInventoryAndPendingOrders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBillableInventoryAndPendingOrders_args> {
|
| - |
|
4305 |
public getBillableInventoryAndPendingOrders() {
|
| - |
|
4306 |
super("getBillableInventoryAndPendingOrders");
|
| - |
|
4307 |
}
|
| - |
|
4308 |
|
| - |
|
4309 |
protected getBillableInventoryAndPendingOrders_args getEmptyArgsInstance() {
|
| - |
|
4310 |
return new getBillableInventoryAndPendingOrders_args();
|
| - |
|
4311 |
}
|
| - |
|
4312 |
|
| - |
|
4313 |
protected getBillableInventoryAndPendingOrders_result getResult(I iface, getBillableInventoryAndPendingOrders_args args) throws org.apache.thrift.TException {
|
| - |
|
4314 |
getBillableInventoryAndPendingOrders_result result = new getBillableInventoryAndPendingOrders_result();
|
| - |
|
4315 |
result.success = iface.getBillableInventoryAndPendingOrders();
|
| - |
|
4316 |
return result;
|
| - |
|
4317 |
}
|
| - |
|
4318 |
}
|
| - |
|
4319 |
|
| 4245 |
}
|
4320 |
}
|
| 4246 |
|
4321 |
|
| 4247 |
public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable {
|
4322 |
public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable {
|
| 4248 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
|
4323 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
|
| 4249 |
|
4324 |
|
| Line 37260... |
Line 37335... |
| 37260 |
boolean first = true;
|
37335 |
boolean first = true;
|
| 37261 |
|
37336 |
|
| 37262 |
sb.append("success:");
|
37337 |
sb.append("success:");
|
| 37263 |
if (this.success == null) {
|
37338 |
if (this.success == null) {
|
| 37264 |
sb.append("null");
|
37339 |
sb.append("null");
|
| - |
|
37340 |
} else {
|
| - |
|
37341 |
sb.append(this.success);
|
| - |
|
37342 |
}
|
| - |
|
37343 |
first = false;
|
| - |
|
37344 |
sb.append(")");
|
| - |
|
37345 |
return sb.toString();
|
| - |
|
37346 |
}
|
| - |
|
37347 |
|
| - |
|
37348 |
public void validate() throws org.apache.thrift.TException {
|
| - |
|
37349 |
// check for required fields
|
| - |
|
37350 |
}
|
| - |
|
37351 |
|
| - |
|
37352 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
| - |
|
37353 |
try {
|
| - |
|
37354 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
| - |
|
37355 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
37356 |
throw new java.io.IOException(te);
|
| - |
|
37357 |
}
|
| - |
|
37358 |
}
|
| - |
|
37359 |
|
| - |
|
37360 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
| - |
|
37361 |
try {
|
| - |
|
37362 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
| - |
|
37363 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
37364 |
throw new java.io.IOException(te);
|
| - |
|
37365 |
}
|
| - |
|
37366 |
}
|
| - |
|
37367 |
|
| - |
|
37368 |
}
|
| - |
|
37369 |
|
| - |
|
37370 |
public static class getBillableInventoryAndPendingOrders_args implements org.apache.thrift.TBase<getBillableInventoryAndPendingOrders_args, getBillableInventoryAndPendingOrders_args._Fields>, java.io.Serializable, Cloneable {
|
| - |
|
37371 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBillableInventoryAndPendingOrders_args");
|
| - |
|
37372 |
|
| - |
|
37373 |
|
| - |
|
37374 |
|
| - |
|
37375 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| - |
|
37376 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| - |
|
37377 |
;
|
| - |
|
37378 |
|
| - |
|
37379 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| - |
|
37380 |
|
| - |
|
37381 |
static {
|
| - |
|
37382 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| - |
|
37383 |
byName.put(field.getFieldName(), field);
|
| - |
|
37384 |
}
|
| - |
|
37385 |
}
|
| - |
|
37386 |
|
| - |
|
37387 |
/**
|
| - |
|
37388 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
| - |
|
37389 |
*/
|
| - |
|
37390 |
public static _Fields findByThriftId(int fieldId) {
|
| - |
|
37391 |
switch(fieldId) {
|
| - |
|
37392 |
default:
|
| - |
|
37393 |
return null;
|
| - |
|
37394 |
}
|
| - |
|
37395 |
}
|
| - |
|
37396 |
|
| - |
|
37397 |
/**
|
| - |
|
37398 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
| - |
|
37399 |
* if it is not found.
|
| - |
|
37400 |
*/
|
| - |
|
37401 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
| - |
|
37402 |
_Fields fields = findByThriftId(fieldId);
|
| - |
|
37403 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
| - |
|
37404 |
return fields;
|
| - |
|
37405 |
}
|
| - |
|
37406 |
|
| - |
|
37407 |
/**
|
| - |
|
37408 |
* Find the _Fields constant that matches name, or null if its not found.
|
| - |
|
37409 |
*/
|
| - |
|
37410 |
public static _Fields findByName(String name) {
|
| - |
|
37411 |
return byName.get(name);
|
| - |
|
37412 |
}
|
| - |
|
37413 |
|
| - |
|
37414 |
private final short _thriftId;
|
| - |
|
37415 |
private final String _fieldName;
|
| - |
|
37416 |
|
| - |
|
37417 |
_Fields(short thriftId, String fieldName) {
|
| - |
|
37418 |
_thriftId = thriftId;
|
| - |
|
37419 |
_fieldName = fieldName;
|
| - |
|
37420 |
}
|
| - |
|
37421 |
|
| - |
|
37422 |
public short getThriftFieldId() {
|
| - |
|
37423 |
return _thriftId;
|
| - |
|
37424 |
}
|
| - |
|
37425 |
|
| - |
|
37426 |
public String getFieldName() {
|
| - |
|
37427 |
return _fieldName;
|
| - |
|
37428 |
}
|
| - |
|
37429 |
}
|
| - |
|
37430 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| - |
|
37431 |
static {
|
| - |
|
37432 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| - |
|
37433 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| - |
|
37434 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBillableInventoryAndPendingOrders_args.class, metaDataMap);
|
| - |
|
37435 |
}
|
| - |
|
37436 |
|
| - |
|
37437 |
public getBillableInventoryAndPendingOrders_args() {
|
| - |
|
37438 |
}
|
| - |
|
37439 |
|
| - |
|
37440 |
/**
|
| - |
|
37441 |
* Performs a deep copy on <i>other</i>.
|
| - |
|
37442 |
*/
|
| - |
|
37443 |
public getBillableInventoryAndPendingOrders_args(getBillableInventoryAndPendingOrders_args other) {
|
| - |
|
37444 |
}
|
| - |
|
37445 |
|
| - |
|
37446 |
public getBillableInventoryAndPendingOrders_args deepCopy() {
|
| - |
|
37447 |
return new getBillableInventoryAndPendingOrders_args(this);
|
| - |
|
37448 |
}
|
| - |
|
37449 |
|
| - |
|
37450 |
@Override
|
| - |
|
37451 |
public void clear() {
|
| - |
|
37452 |
}
|
| - |
|
37453 |
|
| - |
|
37454 |
public void setFieldValue(_Fields field, Object value) {
|
| - |
|
37455 |
switch (field) {
|
| - |
|
37456 |
}
|
| - |
|
37457 |
}
|
| - |
|
37458 |
|
| - |
|
37459 |
public Object getFieldValue(_Fields field) {
|
| - |
|
37460 |
switch (field) {
|
| - |
|
37461 |
}
|
| - |
|
37462 |
throw new IllegalStateException();
|
| - |
|
37463 |
}
|
| - |
|
37464 |
|
| - |
|
37465 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| - |
|
37466 |
public boolean isSet(_Fields field) {
|
| - |
|
37467 |
if (field == null) {
|
| - |
|
37468 |
throw new IllegalArgumentException();
|
| - |
|
37469 |
}
|
| - |
|
37470 |
|
| - |
|
37471 |
switch (field) {
|
| - |
|
37472 |
}
|
| - |
|
37473 |
throw new IllegalStateException();
|
| - |
|
37474 |
}
|
| - |
|
37475 |
|
| - |
|
37476 |
@Override
|
| - |
|
37477 |
public boolean equals(Object that) {
|
| - |
|
37478 |
if (that == null)
|
| - |
|
37479 |
return false;
|
| - |
|
37480 |
if (that instanceof getBillableInventoryAndPendingOrders_args)
|
| - |
|
37481 |
return this.equals((getBillableInventoryAndPendingOrders_args)that);
|
| - |
|
37482 |
return false;
|
| - |
|
37483 |
}
|
| - |
|
37484 |
|
| - |
|
37485 |
public boolean equals(getBillableInventoryAndPendingOrders_args that) {
|
| - |
|
37486 |
if (that == null)
|
| - |
|
37487 |
return false;
|
| - |
|
37488 |
|
| - |
|
37489 |
return true;
|
| - |
|
37490 |
}
|
| - |
|
37491 |
|
| - |
|
37492 |
@Override
|
| - |
|
37493 |
public int hashCode() {
|
| - |
|
37494 |
return 0;
|
| - |
|
37495 |
}
|
| - |
|
37496 |
|
| - |
|
37497 |
public int compareTo(getBillableInventoryAndPendingOrders_args other) {
|
| - |
|
37498 |
if (!getClass().equals(other.getClass())) {
|
| - |
|
37499 |
return getClass().getName().compareTo(other.getClass().getName());
|
| - |
|
37500 |
}
|
| - |
|
37501 |
|
| - |
|
37502 |
int lastComparison = 0;
|
| - |
|
37503 |
getBillableInventoryAndPendingOrders_args typedOther = (getBillableInventoryAndPendingOrders_args)other;
|
| - |
|
37504 |
|
| - |
|
37505 |
return 0;
|
| - |
|
37506 |
}
|
| - |
|
37507 |
|
| - |
|
37508 |
public _Fields fieldForId(int fieldId) {
|
| - |
|
37509 |
return _Fields.findByThriftId(fieldId);
|
| - |
|
37510 |
}
|
| - |
|
37511 |
|
| - |
|
37512 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
| - |
|
37513 |
org.apache.thrift.protocol.TField field;
|
| - |
|
37514 |
iprot.readStructBegin();
|
| - |
|
37515 |
while (true)
|
| - |
|
37516 |
{
|
| - |
|
37517 |
field = iprot.readFieldBegin();
|
| - |
|
37518 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| - |
|
37519 |
break;
|
| - |
|
37520 |
}
|
| - |
|
37521 |
switch (field.id) {
|
| - |
|
37522 |
default:
|
| - |
|
37523 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
37524 |
}
|
| - |
|
37525 |
iprot.readFieldEnd();
|
| - |
|
37526 |
}
|
| - |
|
37527 |
iprot.readStructEnd();
|
| - |
|
37528 |
validate();
|
| - |
|
37529 |
}
|
| - |
|
37530 |
|
| - |
|
37531 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| - |
|
37532 |
validate();
|
| - |
|
37533 |
|
| - |
|
37534 |
oprot.writeStructBegin(STRUCT_DESC);
|
| - |
|
37535 |
oprot.writeFieldStop();
|
| - |
|
37536 |
oprot.writeStructEnd();
|
| - |
|
37537 |
}
|
| - |
|
37538 |
|
| - |
|
37539 |
@Override
|
| - |
|
37540 |
public String toString() {
|
| - |
|
37541 |
StringBuilder sb = new StringBuilder("getBillableInventoryAndPendingOrders_args(");
|
| - |
|
37542 |
boolean first = true;
|
| - |
|
37543 |
|
| - |
|
37544 |
sb.append(")");
|
| - |
|
37545 |
return sb.toString();
|
| - |
|
37546 |
}
|
| - |
|
37547 |
|
| - |
|
37548 |
public void validate() throws org.apache.thrift.TException {
|
| - |
|
37549 |
// check for required fields
|
| - |
|
37550 |
}
|
| - |
|
37551 |
|
| - |
|
37552 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
| - |
|
37553 |
try {
|
| - |
|
37554 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
| - |
|
37555 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
37556 |
throw new java.io.IOException(te);
|
| - |
|
37557 |
}
|
| - |
|
37558 |
}
|
| - |
|
37559 |
|
| - |
|
37560 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
| - |
|
37561 |
try {
|
| - |
|
37562 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
| - |
|
37563 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
37564 |
throw new java.io.IOException(te);
|
| - |
|
37565 |
}
|
| - |
|
37566 |
}
|
| - |
|
37567 |
|
| - |
|
37568 |
}
|
| - |
|
37569 |
|
| - |
|
37570 |
public static class getBillableInventoryAndPendingOrders_result implements org.apache.thrift.TBase<getBillableInventoryAndPendingOrders_result, getBillableInventoryAndPendingOrders_result._Fields>, java.io.Serializable, Cloneable {
|
| - |
|
37571 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBillableInventoryAndPendingOrders_result");
|
| - |
|
37572 |
|
| - |
|
37573 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
|
| - |
|
37574 |
|
| - |
|
37575 |
private List<AvailableAndReservedStock> success; // required
|
| - |
|
37576 |
|
| - |
|
37577 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| - |
|
37578 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| - |
|
37579 |
SUCCESS((short)0, "success");
|
| - |
|
37580 |
|
| - |
|
37581 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| - |
|
37582 |
|
| - |
|
37583 |
static {
|
| - |
|
37584 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| - |
|
37585 |
byName.put(field.getFieldName(), field);
|
| - |
|
37586 |
}
|
| - |
|
37587 |
}
|
| - |
|
37588 |
|
| - |
|
37589 |
/**
|
| - |
|
37590 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
| - |
|
37591 |
*/
|
| - |
|
37592 |
public static _Fields findByThriftId(int fieldId) {
|
| - |
|
37593 |
switch(fieldId) {
|
| - |
|
37594 |
case 0: // SUCCESS
|
| - |
|
37595 |
return SUCCESS;
|
| - |
|
37596 |
default:
|
| - |
|
37597 |
return null;
|
| - |
|
37598 |
}
|
| - |
|
37599 |
}
|
| - |
|
37600 |
|
| - |
|
37601 |
/**
|
| - |
|
37602 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
| - |
|
37603 |
* if it is not found.
|
| - |
|
37604 |
*/
|
| - |
|
37605 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
| - |
|
37606 |
_Fields fields = findByThriftId(fieldId);
|
| - |
|
37607 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
| - |
|
37608 |
return fields;
|
| - |
|
37609 |
}
|
| - |
|
37610 |
|
| - |
|
37611 |
/**
|
| - |
|
37612 |
* Find the _Fields constant that matches name, or null if its not found.
|
| - |
|
37613 |
*/
|
| - |
|
37614 |
public static _Fields findByName(String name) {
|
| - |
|
37615 |
return byName.get(name);
|
| - |
|
37616 |
}
|
| - |
|
37617 |
|
| - |
|
37618 |
private final short _thriftId;
|
| - |
|
37619 |
private final String _fieldName;
|
| - |
|
37620 |
|
| - |
|
37621 |
_Fields(short thriftId, String fieldName) {
|
| - |
|
37622 |
_thriftId = thriftId;
|
| - |
|
37623 |
_fieldName = fieldName;
|
| - |
|
37624 |
}
|
| - |
|
37625 |
|
| - |
|
37626 |
public short getThriftFieldId() {
|
| - |
|
37627 |
return _thriftId;
|
| - |
|
37628 |
}
|
| - |
|
37629 |
|
| - |
|
37630 |
public String getFieldName() {
|
| - |
|
37631 |
return _fieldName;
|
| - |
|
37632 |
}
|
| - |
|
37633 |
}
|
| - |
|
37634 |
|
| - |
|
37635 |
// isset id assignments
|
| - |
|
37636 |
|
| - |
|
37637 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| - |
|
37638 |
static {
|
| - |
|
37639 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| - |
|
37640 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
37641 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
| - |
|
37642 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AvailableAndReservedStock.class))));
|
| - |
|
37643 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| - |
|
37644 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBillableInventoryAndPendingOrders_result.class, metaDataMap);
|
| - |
|
37645 |
}
|
| - |
|
37646 |
|
| - |
|
37647 |
public getBillableInventoryAndPendingOrders_result() {
|
| - |
|
37648 |
}
|
| - |
|
37649 |
|
| - |
|
37650 |
public getBillableInventoryAndPendingOrders_result(
|
| - |
|
37651 |
List<AvailableAndReservedStock> success)
|
| - |
|
37652 |
{
|
| - |
|
37653 |
this();
|
| - |
|
37654 |
this.success = success;
|
| - |
|
37655 |
}
|
| - |
|
37656 |
|
| - |
|
37657 |
/**
|
| - |
|
37658 |
* Performs a deep copy on <i>other</i>.
|
| - |
|
37659 |
*/
|
| - |
|
37660 |
public getBillableInventoryAndPendingOrders_result(getBillableInventoryAndPendingOrders_result other) {
|
| - |
|
37661 |
if (other.isSetSuccess()) {
|
| - |
|
37662 |
List<AvailableAndReservedStock> __this__success = new ArrayList<AvailableAndReservedStock>();
|
| - |
|
37663 |
for (AvailableAndReservedStock other_element : other.success) {
|
| - |
|
37664 |
__this__success.add(new AvailableAndReservedStock(other_element));
|
| - |
|
37665 |
}
|
| - |
|
37666 |
this.success = __this__success;
|
| - |
|
37667 |
}
|
| - |
|
37668 |
}
|
| - |
|
37669 |
|
| - |
|
37670 |
public getBillableInventoryAndPendingOrders_result deepCopy() {
|
| - |
|
37671 |
return new getBillableInventoryAndPendingOrders_result(this);
|
| - |
|
37672 |
}
|
| - |
|
37673 |
|
| - |
|
37674 |
@Override
|
| - |
|
37675 |
public void clear() {
|
| - |
|
37676 |
this.success = null;
|
| - |
|
37677 |
}
|
| - |
|
37678 |
|
| - |
|
37679 |
public int getSuccessSize() {
|
| - |
|
37680 |
return (this.success == null) ? 0 : this.success.size();
|
| - |
|
37681 |
}
|
| - |
|
37682 |
|
| - |
|
37683 |
public java.util.Iterator<AvailableAndReservedStock> getSuccessIterator() {
|
| - |
|
37684 |
return (this.success == null) ? null : this.success.iterator();
|
| - |
|
37685 |
}
|
| - |
|
37686 |
|
| - |
|
37687 |
public void addToSuccess(AvailableAndReservedStock elem) {
|
| - |
|
37688 |
if (this.success == null) {
|
| - |
|
37689 |
this.success = new ArrayList<AvailableAndReservedStock>();
|
| - |
|
37690 |
}
|
| - |
|
37691 |
this.success.add(elem);
|
| - |
|
37692 |
}
|
| - |
|
37693 |
|
| - |
|
37694 |
public List<AvailableAndReservedStock> getSuccess() {
|
| - |
|
37695 |
return this.success;
|
| - |
|
37696 |
}
|
| - |
|
37697 |
|
| - |
|
37698 |
public void setSuccess(List<AvailableAndReservedStock> success) {
|
| - |
|
37699 |
this.success = success;
|
| - |
|
37700 |
}
|
| - |
|
37701 |
|
| - |
|
37702 |
public void unsetSuccess() {
|
| - |
|
37703 |
this.success = null;
|
| - |
|
37704 |
}
|
| - |
|
37705 |
|
| - |
|
37706 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| - |
|
37707 |
public boolean isSetSuccess() {
|
| - |
|
37708 |
return this.success != null;
|
| - |
|
37709 |
}
|
| - |
|
37710 |
|
| - |
|
37711 |
public void setSuccessIsSet(boolean value) {
|
| - |
|
37712 |
if (!value) {
|
| - |
|
37713 |
this.success = null;
|
| - |
|
37714 |
}
|
| - |
|
37715 |
}
|
| - |
|
37716 |
|
| - |
|
37717 |
public void setFieldValue(_Fields field, Object value) {
|
| - |
|
37718 |
switch (field) {
|
| - |
|
37719 |
case SUCCESS:
|
| - |
|
37720 |
if (value == null) {
|
| - |
|
37721 |
unsetSuccess();
|
| - |
|
37722 |
} else {
|
| - |
|
37723 |
setSuccess((List<AvailableAndReservedStock>)value);
|
| - |
|
37724 |
}
|
| - |
|
37725 |
break;
|
| - |
|
37726 |
|
| - |
|
37727 |
}
|
| - |
|
37728 |
}
|
| - |
|
37729 |
|
| - |
|
37730 |
public Object getFieldValue(_Fields field) {
|
| - |
|
37731 |
switch (field) {
|
| - |
|
37732 |
case SUCCESS:
|
| - |
|
37733 |
return getSuccess();
|
| - |
|
37734 |
|
| - |
|
37735 |
}
|
| - |
|
37736 |
throw new IllegalStateException();
|
| - |
|
37737 |
}
|
| - |
|
37738 |
|
| - |
|
37739 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| - |
|
37740 |
public boolean isSet(_Fields field) {
|
| - |
|
37741 |
if (field == null) {
|
| - |
|
37742 |
throw new IllegalArgumentException();
|
| - |
|
37743 |
}
|
| - |
|
37744 |
|
| - |
|
37745 |
switch (field) {
|
| - |
|
37746 |
case SUCCESS:
|
| - |
|
37747 |
return isSetSuccess();
|
| - |
|
37748 |
}
|
| - |
|
37749 |
throw new IllegalStateException();
|
| - |
|
37750 |
}
|
| - |
|
37751 |
|
| - |
|
37752 |
@Override
|
| - |
|
37753 |
public boolean equals(Object that) {
|
| - |
|
37754 |
if (that == null)
|
| - |
|
37755 |
return false;
|
| - |
|
37756 |
if (that instanceof getBillableInventoryAndPendingOrders_result)
|
| - |
|
37757 |
return this.equals((getBillableInventoryAndPendingOrders_result)that);
|
| - |
|
37758 |
return false;
|
| - |
|
37759 |
}
|
| - |
|
37760 |
|
| - |
|
37761 |
public boolean equals(getBillableInventoryAndPendingOrders_result that) {
|
| - |
|
37762 |
if (that == null)
|
| - |
|
37763 |
return false;
|
| - |
|
37764 |
|
| - |
|
37765 |
boolean this_present_success = true && this.isSetSuccess();
|
| - |
|
37766 |
boolean that_present_success = true && that.isSetSuccess();
|
| - |
|
37767 |
if (this_present_success || that_present_success) {
|
| - |
|
37768 |
if (!(this_present_success && that_present_success))
|
| - |
|
37769 |
return false;
|
| - |
|
37770 |
if (!this.success.equals(that.success))
|
| - |
|
37771 |
return false;
|
| - |
|
37772 |
}
|
| - |
|
37773 |
|
| - |
|
37774 |
return true;
|
| - |
|
37775 |
}
|
| - |
|
37776 |
|
| - |
|
37777 |
@Override
|
| - |
|
37778 |
public int hashCode() {
|
| - |
|
37779 |
return 0;
|
| - |
|
37780 |
}
|
| - |
|
37781 |
|
| - |
|
37782 |
public int compareTo(getBillableInventoryAndPendingOrders_result other) {
|
| - |
|
37783 |
if (!getClass().equals(other.getClass())) {
|
| - |
|
37784 |
return getClass().getName().compareTo(other.getClass().getName());
|
| - |
|
37785 |
}
|
| - |
|
37786 |
|
| - |
|
37787 |
int lastComparison = 0;
|
| - |
|
37788 |
getBillableInventoryAndPendingOrders_result typedOther = (getBillableInventoryAndPendingOrders_result)other;
|
| - |
|
37789 |
|
| - |
|
37790 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| - |
|
37791 |
if (lastComparison != 0) {
|
| - |
|
37792 |
return lastComparison;
|
| - |
|
37793 |
}
|
| - |
|
37794 |
if (isSetSuccess()) {
|
| - |
|
37795 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
| - |
|
37796 |
if (lastComparison != 0) {
|
| - |
|
37797 |
return lastComparison;
|
| - |
|
37798 |
}
|
| - |
|
37799 |
}
|
| - |
|
37800 |
return 0;
|
| - |
|
37801 |
}
|
| - |
|
37802 |
|
| - |
|
37803 |
public _Fields fieldForId(int fieldId) {
|
| - |
|
37804 |
return _Fields.findByThriftId(fieldId);
|
| - |
|
37805 |
}
|
| - |
|
37806 |
|
| - |
|
37807 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
| - |
|
37808 |
org.apache.thrift.protocol.TField field;
|
| - |
|
37809 |
iprot.readStructBegin();
|
| - |
|
37810 |
while (true)
|
| - |
|
37811 |
{
|
| - |
|
37812 |
field = iprot.readFieldBegin();
|
| - |
|
37813 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| - |
|
37814 |
break;
|
| - |
|
37815 |
}
|
| - |
|
37816 |
switch (field.id) {
|
| - |
|
37817 |
case 0: // SUCCESS
|
| - |
|
37818 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
| - |
|
37819 |
{
|
| - |
|
37820 |
org.apache.thrift.protocol.TList _list117 = iprot.readListBegin();
|
| - |
|
37821 |
this.success = new ArrayList<AvailableAndReservedStock>(_list117.size);
|
| - |
|
37822 |
for (int _i118 = 0; _i118 < _list117.size; ++_i118)
|
| - |
|
37823 |
{
|
| - |
|
37824 |
AvailableAndReservedStock _elem119; // required
|
| - |
|
37825 |
_elem119 = new AvailableAndReservedStock();
|
| - |
|
37826 |
_elem119.read(iprot);
|
| - |
|
37827 |
this.success.add(_elem119);
|
| - |
|
37828 |
}
|
| - |
|
37829 |
iprot.readListEnd();
|
| - |
|
37830 |
}
|
| - |
|
37831 |
} else {
|
| - |
|
37832 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
37833 |
}
|
| - |
|
37834 |
break;
|
| - |
|
37835 |
default:
|
| - |
|
37836 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
37837 |
}
|
| - |
|
37838 |
iprot.readFieldEnd();
|
| - |
|
37839 |
}
|
| - |
|
37840 |
iprot.readStructEnd();
|
| - |
|
37841 |
validate();
|
| - |
|
37842 |
}
|
| - |
|
37843 |
|
| - |
|
37844 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| - |
|
37845 |
oprot.writeStructBegin(STRUCT_DESC);
|
| - |
|
37846 |
|
| - |
|
37847 |
if (this.isSetSuccess()) {
|
| - |
|
37848 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| - |
|
37849 |
{
|
| - |
|
37850 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
| - |
|
37851 |
for (AvailableAndReservedStock _iter120 : this.success)
|
| - |
|
37852 |
{
|
| - |
|
37853 |
_iter120.write(oprot);
|
| - |
|
37854 |
}
|
| - |
|
37855 |
oprot.writeListEnd();
|
| - |
|
37856 |
}
|
| - |
|
37857 |
oprot.writeFieldEnd();
|
| - |
|
37858 |
}
|
| - |
|
37859 |
oprot.writeFieldStop();
|
| - |
|
37860 |
oprot.writeStructEnd();
|
| - |
|
37861 |
}
|
| - |
|
37862 |
|
| - |
|
37863 |
@Override
|
| - |
|
37864 |
public String toString() {
|
| - |
|
37865 |
StringBuilder sb = new StringBuilder("getBillableInventoryAndPendingOrders_result(");
|
| - |
|
37866 |
boolean first = true;
|
| - |
|
37867 |
|
| - |
|
37868 |
sb.append("success:");
|
| - |
|
37869 |
if (this.success == null) {
|
| - |
|
37870 |
sb.append("null");
|
| 37265 |
} else {
|
37871 |
} else {
|
| 37266 |
sb.append(this.success);
|
37872 |
sb.append(this.success);
|
| 37267 |
}
|
37873 |
}
|
| 37268 |
first = false;
|
37874 |
first = false;
|
| 37269 |
sb.append(")");
|
37875 |
sb.append(")");
|