Subversion Repositories SmartDukaan

Rev

Rev 12531 | Rev 13504 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 12531 Rev 12800
Line 356... Line 356...
356
 
356
 
357
    public List<Scan> getScansForInventoryItem(long inventoryItemId, ScanType type) throws WarehouseServiceException, org.apache.thrift.TException;
357
    public List<Scan> getScansForInventoryItem(long inventoryItemId, ScanType type) throws WarehouseServiceException, org.apache.thrift.TException;
358
 
358
 
359
    public List<String> checkGrnImeiStatus(List<String> imeiNos) throws WarehouseServiceException, org.apache.thrift.TException;
359
    public List<String> checkGrnImeiStatus(List<String> imeiNos) throws WarehouseServiceException, org.apache.thrift.TException;
360
 
360
 
-
 
361
    public List<InvAgeConsiderItems> getInventoryAgeConsideredItems(long itemId) throws WarehouseServiceException, org.apache.thrift.TException;
-
 
362
 
361
  }
363
  }
362
 
364
 
363
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
365
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
364
 
366
 
365
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
367
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
Line 486... Line 488...
486
 
488
 
487
    public void getScansForInventoryItem(long inventoryItemId, ScanType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getScansForInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
489
    public void getScansForInventoryItem(long inventoryItemId, ScanType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getScansForInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
488
 
490
 
489
    public void checkGrnImeiStatus(List<String> imeiNos, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.checkGrnImeiStatus_call> resultHandler) throws org.apache.thrift.TException;
491
    public void checkGrnImeiStatus(List<String> imeiNos, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.checkGrnImeiStatus_call> resultHandler) throws org.apache.thrift.TException;
490
 
492
 
-
 
493
    public void getInventoryAgeConsideredItems(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryAgeConsideredItems_call> resultHandler) throws org.apache.thrift.TException;
-
 
494
 
491
  }
495
  }
492
 
496
 
493
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
497
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
494
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
498
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
495
      public Factory() {}
499
      public Factory() {}
Line 2109... Line 2113...
2109
        throw result.ex;
2113
        throw result.ex;
2110
      }
2114
      }
2111
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "checkGrnImeiStatus failed: unknown result");
2115
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "checkGrnImeiStatus failed: unknown result");
2112
    }
2116
    }
2113
 
2117
 
-
 
2118
    public List<InvAgeConsiderItems> getInventoryAgeConsideredItems(long itemId) throws WarehouseServiceException, org.apache.thrift.TException
-
 
2119
    {
-
 
2120
      send_getInventoryAgeConsideredItems(itemId);
-
 
2121
      return recv_getInventoryAgeConsideredItems();
-
 
2122
    }
-
 
2123
 
-
 
2124
    public void send_getInventoryAgeConsideredItems(long itemId) throws org.apache.thrift.TException
-
 
2125
    {
-
 
2126
      getInventoryAgeConsideredItems_args args = new getInventoryAgeConsideredItems_args();
-
 
2127
      args.setItemId(itemId);
-
 
2128
      sendBase("getInventoryAgeConsideredItems", args);
-
 
2129
    }
-
 
2130
 
-
 
2131
    public List<InvAgeConsiderItems> recv_getInventoryAgeConsideredItems() throws WarehouseServiceException, org.apache.thrift.TException
-
 
2132
    {
-
 
2133
      getInventoryAgeConsideredItems_result result = new getInventoryAgeConsideredItems_result();
-
 
2134
      receiveBase(result, "getInventoryAgeConsideredItems");
-
 
2135
      if (result.isSetSuccess()) {
-
 
2136
        return result.success;
-
 
2137
      }
-
 
2138
      if (result.ex != null) {
-
 
2139
        throw result.ex;
-
 
2140
      }
-
 
2141
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryAgeConsideredItems failed: unknown result");
-
 
2142
    }
-
 
2143
 
2114
  }
2144
  }
2115
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2145
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2116
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2146
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2117
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2147
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2118
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2148
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 4365... Line 4395...
4365
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4395
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4366
        return (new Client(prot)).recv_checkGrnImeiStatus();
4396
        return (new Client(prot)).recv_checkGrnImeiStatus();
4367
      }
4397
      }
4368
    }
4398
    }
4369
 
4399
 
-
 
4400
    public void getInventoryAgeConsideredItems(long itemId, org.apache.thrift.async.AsyncMethodCallback<getInventoryAgeConsideredItems_call> resultHandler) throws org.apache.thrift.TException {
-
 
4401
      checkReady();
-
 
4402
      getInventoryAgeConsideredItems_call method_call = new getInventoryAgeConsideredItems_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
-
 
4403
      this.___currentMethod = method_call;
-
 
4404
      ___manager.call(method_call);
-
 
4405
    }
-
 
4406
 
-
 
4407
    public static class getInventoryAgeConsideredItems_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
4408
      private long itemId;
-
 
4409
      public getInventoryAgeConsideredItems_call(long itemId, org.apache.thrift.async.AsyncMethodCallback<getInventoryAgeConsideredItems_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 {
-
 
4410
        super(client, protocolFactory, transport, resultHandler, false);
-
 
4411
        this.itemId = itemId;
-
 
4412
      }
-
 
4413
 
-
 
4414
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
4415
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryAgeConsideredItems", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
4416
        getInventoryAgeConsideredItems_args args = new getInventoryAgeConsideredItems_args();
-
 
4417
        args.setItemId(itemId);
-
 
4418
        args.write(prot);
-
 
4419
        prot.writeMessageEnd();
-
 
4420
      }
-
 
4421
 
-
 
4422
      public List<InvAgeConsiderItems> getResult() throws WarehouseServiceException, org.apache.thrift.TException {
-
 
4423
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
4424
          throw new IllegalStateException("Method call not finished!");
-
 
4425
        }
-
 
4426
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
4427
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
4428
        return (new Client(prot)).recv_getInventoryAgeConsideredItems();
-
 
4429
      }
-
 
4430
    }
-
 
4431
 
4370
  }
4432
  }
4371
 
4433
 
4372
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4434
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4373
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4435
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4374
    public Processor(I iface) {
4436
    public Processor(I iface) {
Line 4441... Line 4503...
4441
      processMap.put("getCurrentBadQuantityForItem", new getCurrentBadQuantityForItem());
4503
      processMap.put("getCurrentBadQuantityForItem", new getCurrentBadQuantityForItem());
4442
      processMap.put("scanForBadPurchaseReturn", new scanForBadPurchaseReturn());
4504
      processMap.put("scanForBadPurchaseReturn", new scanForBadPurchaseReturn());
4443
      processMap.put("getItemsInPurchaseReturn", new getItemsInPurchaseReturn());
4505
      processMap.put("getItemsInPurchaseReturn", new getItemsInPurchaseReturn());
4444
      processMap.put("getScansForInventoryItem", new getScansForInventoryItem());
4506
      processMap.put("getScansForInventoryItem", new getScansForInventoryItem());
4445
      processMap.put("checkGrnImeiStatus", new checkGrnImeiStatus());
4507
      processMap.put("checkGrnImeiStatus", new checkGrnImeiStatus());
-
 
4508
      processMap.put("getInventoryAgeConsideredItems", new getInventoryAgeConsideredItems());
4446
      return processMap;
4509
      return processMap;
4447
    }
4510
    }
4448
 
4511
 
4449
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
4512
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
4450
      public getInventoryItem() {
4513
      public getInventoryItem() {
Line 5615... Line 5678...
5615
        }
5678
        }
5616
        return result;
5679
        return result;
5617
      }
5680
      }
5618
    }
5681
    }
5619
 
5682
 
-
 
5683
    private static class getInventoryAgeConsideredItems<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryAgeConsideredItems_args> {
-
 
5684
      public getInventoryAgeConsideredItems() {
-
 
5685
        super("getInventoryAgeConsideredItems");
-
 
5686
      }
-
 
5687
 
-
 
5688
      protected getInventoryAgeConsideredItems_args getEmptyArgsInstance() {
-
 
5689
        return new getInventoryAgeConsideredItems_args();
-
 
5690
      }
-
 
5691
 
-
 
5692
      protected getInventoryAgeConsideredItems_result getResult(I iface, getInventoryAgeConsideredItems_args args) throws org.apache.thrift.TException {
-
 
5693
        getInventoryAgeConsideredItems_result result = new getInventoryAgeConsideredItems_result();
-
 
5694
        try {
-
 
5695
          result.success = iface.getInventoryAgeConsideredItems(args.itemId);
-
 
5696
        } catch (WarehouseServiceException ex) {
-
 
5697
          result.ex = ex;
-
 
5698
        }
-
 
5699
        return result;
-
 
5700
      }
-
 
5701
    }
-
 
5702
 
5620
  }
5703
  }
5621
 
5704
 
5622
  public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
5705
  public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
5623
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
5706
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
5624
 
5707
 
Line 52900... Line 52983...
52900
      boolean first = true;
52983
      boolean first = true;
52901
 
52984
 
52902
      sb.append("success:");
52985
      sb.append("success:");
52903
      if (this.success == null) {
52986
      if (this.success == null) {
52904
        sb.append("null");
52987
        sb.append("null");
-
 
52988
      } else {
-
 
52989
        sb.append(this.success);
-
 
52990
      }
-
 
52991
      first = false;
-
 
52992
      if (!first) sb.append(", ");
-
 
52993
      sb.append("ex:");
-
 
52994
      if (this.ex == null) {
-
 
52995
        sb.append("null");
-
 
52996
      } else {
-
 
52997
        sb.append(this.ex);
-
 
52998
      }
-
 
52999
      first = false;
-
 
53000
      sb.append(")");
-
 
53001
      return sb.toString();
-
 
53002
    }
-
 
53003
 
-
 
53004
    public void validate() throws org.apache.thrift.TException {
-
 
53005
      // check for required fields
-
 
53006
    }
-
 
53007
 
-
 
53008
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
53009
      try {
-
 
53010
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
53011
      } catch (org.apache.thrift.TException te) {
-
 
53012
        throw new java.io.IOException(te);
-
 
53013
      }
-
 
53014
    }
-
 
53015
 
-
 
53016
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
53017
      try {
-
 
53018
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
53019
      } catch (org.apache.thrift.TException te) {
-
 
53020
        throw new java.io.IOException(te);
-
 
53021
      }
-
 
53022
    }
-
 
53023
 
-
 
53024
  }
-
 
53025
 
-
 
53026
  public static class getInventoryAgeConsideredItems_args implements org.apache.thrift.TBase<getInventoryAgeConsideredItems_args, getInventoryAgeConsideredItems_args._Fields>, java.io.Serializable, Cloneable   {
-
 
53027
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryAgeConsideredItems_args");
-
 
53028
 
-
 
53029
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
53030
 
-
 
53031
    private long itemId; // required
-
 
53032
 
-
 
53033
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
53034
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
53035
      ITEM_ID((short)1, "itemId");
-
 
53036
 
-
 
53037
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
53038
 
-
 
53039
      static {
-
 
53040
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
53041
          byName.put(field.getFieldName(), field);
-
 
53042
        }
-
 
53043
      }
-
 
53044
 
-
 
53045
      /**
-
 
53046
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
53047
       */
-
 
53048
      public static _Fields findByThriftId(int fieldId) {
-
 
53049
        switch(fieldId) {
-
 
53050
          case 1: // ITEM_ID
-
 
53051
            return ITEM_ID;
-
 
53052
          default:
-
 
53053
            return null;
-
 
53054
        }
-
 
53055
      }
-
 
53056
 
-
 
53057
      /**
-
 
53058
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
53059
       * if it is not found.
-
 
53060
       */
-
 
53061
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
53062
        _Fields fields = findByThriftId(fieldId);
-
 
53063
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
53064
        return fields;
-
 
53065
      }
-
 
53066
 
-
 
53067
      /**
-
 
53068
       * Find the _Fields constant that matches name, or null if its not found.
-
 
53069
       */
-
 
53070
      public static _Fields findByName(String name) {
-
 
53071
        return byName.get(name);
-
 
53072
      }
-
 
53073
 
-
 
53074
      private final short _thriftId;
-
 
53075
      private final String _fieldName;
-
 
53076
 
-
 
53077
      _Fields(short thriftId, String fieldName) {
-
 
53078
        _thriftId = thriftId;
-
 
53079
        _fieldName = fieldName;
-
 
53080
      }
-
 
53081
 
-
 
53082
      public short getThriftFieldId() {
-
 
53083
        return _thriftId;
-
 
53084
      }
-
 
53085
 
-
 
53086
      public String getFieldName() {
-
 
53087
        return _fieldName;
-
 
53088
      }
-
 
53089
    }
-
 
53090
 
-
 
53091
    // isset id assignments
-
 
53092
    private static final int __ITEMID_ISSET_ID = 0;
-
 
53093
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
53094
 
-
 
53095
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
53096
    static {
-
 
53097
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
53098
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
53099
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
53100
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
53101
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryAgeConsideredItems_args.class, metaDataMap);
-
 
53102
    }
-
 
53103
 
-
 
53104
    public getInventoryAgeConsideredItems_args() {
-
 
53105
    }
-
 
53106
 
-
 
53107
    public getInventoryAgeConsideredItems_args(
-
 
53108
      long itemId)
-
 
53109
    {
-
 
53110
      this();
-
 
53111
      this.itemId = itemId;
-
 
53112
      setItemIdIsSet(true);
-
 
53113
    }
-
 
53114
 
-
 
53115
    /**
-
 
53116
     * Performs a deep copy on <i>other</i>.
-
 
53117
     */
-
 
53118
    public getInventoryAgeConsideredItems_args(getInventoryAgeConsideredItems_args other) {
-
 
53119
      __isset_bit_vector.clear();
-
 
53120
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
53121
      this.itemId = other.itemId;
-
 
53122
    }
-
 
53123
 
-
 
53124
    public getInventoryAgeConsideredItems_args deepCopy() {
-
 
53125
      return new getInventoryAgeConsideredItems_args(this);
-
 
53126
    }
-
 
53127
 
-
 
53128
    @Override
-
 
53129
    public void clear() {
-
 
53130
      setItemIdIsSet(false);
-
 
53131
      this.itemId = 0;
-
 
53132
    }
-
 
53133
 
-
 
53134
    public long getItemId() {
-
 
53135
      return this.itemId;
-
 
53136
    }
-
 
53137
 
-
 
53138
    public void setItemId(long itemId) {
-
 
53139
      this.itemId = itemId;
-
 
53140
      setItemIdIsSet(true);
-
 
53141
    }
-
 
53142
 
-
 
53143
    public void unsetItemId() {
-
 
53144
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
-
 
53145
    }
-
 
53146
 
-
 
53147
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
-
 
53148
    public boolean isSetItemId() {
-
 
53149
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
-
 
53150
    }
-
 
53151
 
-
 
53152
    public void setItemIdIsSet(boolean value) {
-
 
53153
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
-
 
53154
    }
-
 
53155
 
-
 
53156
    public void setFieldValue(_Fields field, Object value) {
-
 
53157
      switch (field) {
-
 
53158
      case ITEM_ID:
-
 
53159
        if (value == null) {
-
 
53160
          unsetItemId();
-
 
53161
        } else {
-
 
53162
          setItemId((Long)value);
-
 
53163
        }
-
 
53164
        break;
-
 
53165
 
-
 
53166
      }
-
 
53167
    }
-
 
53168
 
-
 
53169
    public Object getFieldValue(_Fields field) {
-
 
53170
      switch (field) {
-
 
53171
      case ITEM_ID:
-
 
53172
        return Long.valueOf(getItemId());
-
 
53173
 
-
 
53174
      }
-
 
53175
      throw new IllegalStateException();
-
 
53176
    }
-
 
53177
 
-
 
53178
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
53179
    public boolean isSet(_Fields field) {
-
 
53180
      if (field == null) {
-
 
53181
        throw new IllegalArgumentException();
-
 
53182
      }
-
 
53183
 
-
 
53184
      switch (field) {
-
 
53185
      case ITEM_ID:
-
 
53186
        return isSetItemId();
-
 
53187
      }
-
 
53188
      throw new IllegalStateException();
-
 
53189
    }
-
 
53190
 
-
 
53191
    @Override
-
 
53192
    public boolean equals(Object that) {
-
 
53193
      if (that == null)
-
 
53194
        return false;
-
 
53195
      if (that instanceof getInventoryAgeConsideredItems_args)
-
 
53196
        return this.equals((getInventoryAgeConsideredItems_args)that);
-
 
53197
      return false;
-
 
53198
    }
-
 
53199
 
-
 
53200
    public boolean equals(getInventoryAgeConsideredItems_args that) {
-
 
53201
      if (that == null)
-
 
53202
        return false;
-
 
53203
 
-
 
53204
      boolean this_present_itemId = true;
-
 
53205
      boolean that_present_itemId = true;
-
 
53206
      if (this_present_itemId || that_present_itemId) {
-
 
53207
        if (!(this_present_itemId && that_present_itemId))
-
 
53208
          return false;
-
 
53209
        if (this.itemId != that.itemId)
-
 
53210
          return false;
-
 
53211
      }
-
 
53212
 
-
 
53213
      return true;
-
 
53214
    }
-
 
53215
 
-
 
53216
    @Override
-
 
53217
    public int hashCode() {
-
 
53218
      return 0;
-
 
53219
    }
-
 
53220
 
-
 
53221
    public int compareTo(getInventoryAgeConsideredItems_args other) {
-
 
53222
      if (!getClass().equals(other.getClass())) {
-
 
53223
        return getClass().getName().compareTo(other.getClass().getName());
-
 
53224
      }
-
 
53225
 
-
 
53226
      int lastComparison = 0;
-
 
53227
      getInventoryAgeConsideredItems_args typedOther = (getInventoryAgeConsideredItems_args)other;
-
 
53228
 
-
 
53229
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
-
 
53230
      if (lastComparison != 0) {
-
 
53231
        return lastComparison;
-
 
53232
      }
-
 
53233
      if (isSetItemId()) {
-
 
53234
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
-
 
53235
        if (lastComparison != 0) {
-
 
53236
          return lastComparison;
-
 
53237
        }
-
 
53238
      }
-
 
53239
      return 0;
-
 
53240
    }
-
 
53241
 
-
 
53242
    public _Fields fieldForId(int fieldId) {
-
 
53243
      return _Fields.findByThriftId(fieldId);
-
 
53244
    }
-
 
53245
 
-
 
53246
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
53247
      org.apache.thrift.protocol.TField field;
-
 
53248
      iprot.readStructBegin();
-
 
53249
      while (true)
-
 
53250
      {
-
 
53251
        field = iprot.readFieldBegin();
-
 
53252
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
53253
          break;
-
 
53254
        }
-
 
53255
        switch (field.id) {
-
 
53256
          case 1: // ITEM_ID
-
 
53257
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
53258
              this.itemId = iprot.readI64();
-
 
53259
              setItemIdIsSet(true);
-
 
53260
            } else { 
-
 
53261
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
53262
            }
-
 
53263
            break;
-
 
53264
          default:
-
 
53265
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
53266
        }
-
 
53267
        iprot.readFieldEnd();
-
 
53268
      }
-
 
53269
      iprot.readStructEnd();
-
 
53270
      validate();
-
 
53271
    }
-
 
53272
 
-
 
53273
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
53274
      validate();
-
 
53275
 
-
 
53276
      oprot.writeStructBegin(STRUCT_DESC);
-
 
53277
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
53278
      oprot.writeI64(this.itemId);
-
 
53279
      oprot.writeFieldEnd();
-
 
53280
      oprot.writeFieldStop();
-
 
53281
      oprot.writeStructEnd();
-
 
53282
    }
-
 
53283
 
-
 
53284
    @Override
-
 
53285
    public String toString() {
-
 
53286
      StringBuilder sb = new StringBuilder("getInventoryAgeConsideredItems_args(");
-
 
53287
      boolean first = true;
-
 
53288
 
-
 
53289
      sb.append("itemId:");
-
 
53290
      sb.append(this.itemId);
-
 
53291
      first = false;
-
 
53292
      sb.append(")");
-
 
53293
      return sb.toString();
-
 
53294
    }
-
 
53295
 
-
 
53296
    public void validate() throws org.apache.thrift.TException {
-
 
53297
      // check for required fields
-
 
53298
    }
-
 
53299
 
-
 
53300
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
53301
      try {
-
 
53302
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
53303
      } catch (org.apache.thrift.TException te) {
-
 
53304
        throw new java.io.IOException(te);
-
 
53305
      }
-
 
53306
    }
-
 
53307
 
-
 
53308
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
53309
      try {
-
 
53310
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
53311
        __isset_bit_vector = new BitSet(1);
-
 
53312
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
53313
      } catch (org.apache.thrift.TException te) {
-
 
53314
        throw new java.io.IOException(te);
-
 
53315
      }
-
 
53316
    }
-
 
53317
 
-
 
53318
  }
-
 
53319
 
-
 
53320
  public static class getInventoryAgeConsideredItems_result implements org.apache.thrift.TBase<getInventoryAgeConsideredItems_result, getInventoryAgeConsideredItems_result._Fields>, java.io.Serializable, Cloneable   {
-
 
53321
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryAgeConsideredItems_result");
-
 
53322
 
-
 
53323
    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);
-
 
53324
    private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
53325
 
-
 
53326
    private List<InvAgeConsiderItems> success; // required
-
 
53327
    private WarehouseServiceException ex; // required
-
 
53328
 
-
 
53329
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
53330
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
53331
      SUCCESS((short)0, "success"),
-
 
53332
      EX((short)1, "ex");
-
 
53333
 
-
 
53334
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
53335
 
-
 
53336
      static {
-
 
53337
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
53338
          byName.put(field.getFieldName(), field);
-
 
53339
        }
-
 
53340
      }
-
 
53341
 
-
 
53342
      /**
-
 
53343
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
53344
       */
-
 
53345
      public static _Fields findByThriftId(int fieldId) {
-
 
53346
        switch(fieldId) {
-
 
53347
          case 0: // SUCCESS
-
 
53348
            return SUCCESS;
-
 
53349
          case 1: // EX
-
 
53350
            return EX;
-
 
53351
          default:
-
 
53352
            return null;
-
 
53353
        }
-
 
53354
      }
-
 
53355
 
-
 
53356
      /**
-
 
53357
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
53358
       * if it is not found.
-
 
53359
       */
-
 
53360
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
53361
        _Fields fields = findByThriftId(fieldId);
-
 
53362
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
53363
        return fields;
-
 
53364
      }
-
 
53365
 
-
 
53366
      /**
-
 
53367
       * Find the _Fields constant that matches name, or null if its not found.
-
 
53368
       */
-
 
53369
      public static _Fields findByName(String name) {
-
 
53370
        return byName.get(name);
-
 
53371
      }
-
 
53372
 
-
 
53373
      private final short _thriftId;
-
 
53374
      private final String _fieldName;
-
 
53375
 
-
 
53376
      _Fields(short thriftId, String fieldName) {
-
 
53377
        _thriftId = thriftId;
-
 
53378
        _fieldName = fieldName;
-
 
53379
      }
-
 
53380
 
-
 
53381
      public short getThriftFieldId() {
-
 
53382
        return _thriftId;
-
 
53383
      }
-
 
53384
 
-
 
53385
      public String getFieldName() {
-
 
53386
        return _fieldName;
-
 
53387
      }
-
 
53388
    }
-
 
53389
 
-
 
53390
    // isset id assignments
-
 
53391
 
-
 
53392
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
53393
    static {
-
 
53394
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
53395
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
53396
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
53397
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InvAgeConsiderItems.class))));
-
 
53398
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
53399
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
53400
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
53401
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryAgeConsideredItems_result.class, metaDataMap);
-
 
53402
    }
-
 
53403
 
-
 
53404
    public getInventoryAgeConsideredItems_result() {
-
 
53405
    }
-
 
53406
 
-
 
53407
    public getInventoryAgeConsideredItems_result(
-
 
53408
      List<InvAgeConsiderItems> success,
-
 
53409
      WarehouseServiceException ex)
-
 
53410
    {
-
 
53411
      this();
-
 
53412
      this.success = success;
-
 
53413
      this.ex = ex;
-
 
53414
    }
-
 
53415
 
-
 
53416
    /**
-
 
53417
     * Performs a deep copy on <i>other</i>.
-
 
53418
     */
-
 
53419
    public getInventoryAgeConsideredItems_result(getInventoryAgeConsideredItems_result other) {
-
 
53420
      if (other.isSetSuccess()) {
-
 
53421
        List<InvAgeConsiderItems> __this__success = new ArrayList<InvAgeConsiderItems>();
-
 
53422
        for (InvAgeConsiderItems other_element : other.success) {
-
 
53423
          __this__success.add(new InvAgeConsiderItems(other_element));
-
 
53424
        }
-
 
53425
        this.success = __this__success;
-
 
53426
      }
-
 
53427
      if (other.isSetEx()) {
-
 
53428
        this.ex = new WarehouseServiceException(other.ex);
-
 
53429
      }
-
 
53430
    }
-
 
53431
 
-
 
53432
    public getInventoryAgeConsideredItems_result deepCopy() {
-
 
53433
      return new getInventoryAgeConsideredItems_result(this);
-
 
53434
    }
-
 
53435
 
-
 
53436
    @Override
-
 
53437
    public void clear() {
-
 
53438
      this.success = null;
-
 
53439
      this.ex = null;
-
 
53440
    }
-
 
53441
 
-
 
53442
    public int getSuccessSize() {
-
 
53443
      return (this.success == null) ? 0 : this.success.size();
-
 
53444
    }
-
 
53445
 
-
 
53446
    public java.util.Iterator<InvAgeConsiderItems> getSuccessIterator() {
-
 
53447
      return (this.success == null) ? null : this.success.iterator();
-
 
53448
    }
-
 
53449
 
-
 
53450
    public void addToSuccess(InvAgeConsiderItems elem) {
-
 
53451
      if (this.success == null) {
-
 
53452
        this.success = new ArrayList<InvAgeConsiderItems>();
-
 
53453
      }
-
 
53454
      this.success.add(elem);
-
 
53455
    }
-
 
53456
 
-
 
53457
    public List<InvAgeConsiderItems> getSuccess() {
-
 
53458
      return this.success;
-
 
53459
    }
-
 
53460
 
-
 
53461
    public void setSuccess(List<InvAgeConsiderItems> success) {
-
 
53462
      this.success = success;
-
 
53463
    }
-
 
53464
 
-
 
53465
    public void unsetSuccess() {
-
 
53466
      this.success = null;
-
 
53467
    }
-
 
53468
 
-
 
53469
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
53470
    public boolean isSetSuccess() {
-
 
53471
      return this.success != null;
-
 
53472
    }
-
 
53473
 
-
 
53474
    public void setSuccessIsSet(boolean value) {
-
 
53475
      if (!value) {
-
 
53476
        this.success = null;
-
 
53477
      }
-
 
53478
    }
-
 
53479
 
-
 
53480
    public WarehouseServiceException getEx() {
-
 
53481
      return this.ex;
-
 
53482
    }
-
 
53483
 
-
 
53484
    public void setEx(WarehouseServiceException ex) {
-
 
53485
      this.ex = ex;
-
 
53486
    }
-
 
53487
 
-
 
53488
    public void unsetEx() {
-
 
53489
      this.ex = null;
-
 
53490
    }
-
 
53491
 
-
 
53492
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
53493
    public boolean isSetEx() {
-
 
53494
      return this.ex != null;
-
 
53495
    }
-
 
53496
 
-
 
53497
    public void setExIsSet(boolean value) {
-
 
53498
      if (!value) {
-
 
53499
        this.ex = null;
-
 
53500
      }
-
 
53501
    }
-
 
53502
 
-
 
53503
    public void setFieldValue(_Fields field, Object value) {
-
 
53504
      switch (field) {
-
 
53505
      case SUCCESS:
-
 
53506
        if (value == null) {
-
 
53507
          unsetSuccess();
-
 
53508
        } else {
-
 
53509
          setSuccess((List<InvAgeConsiderItems>)value);
-
 
53510
        }
-
 
53511
        break;
-
 
53512
 
-
 
53513
      case EX:
-
 
53514
        if (value == null) {
-
 
53515
          unsetEx();
-
 
53516
        } else {
-
 
53517
          setEx((WarehouseServiceException)value);
-
 
53518
        }
-
 
53519
        break;
-
 
53520
 
-
 
53521
      }
-
 
53522
    }
-
 
53523
 
-
 
53524
    public Object getFieldValue(_Fields field) {
-
 
53525
      switch (field) {
-
 
53526
      case SUCCESS:
-
 
53527
        return getSuccess();
-
 
53528
 
-
 
53529
      case EX:
-
 
53530
        return getEx();
-
 
53531
 
-
 
53532
      }
-
 
53533
      throw new IllegalStateException();
-
 
53534
    }
-
 
53535
 
-
 
53536
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
53537
    public boolean isSet(_Fields field) {
-
 
53538
      if (field == null) {
-
 
53539
        throw new IllegalArgumentException();
-
 
53540
      }
-
 
53541
 
-
 
53542
      switch (field) {
-
 
53543
      case SUCCESS:
-
 
53544
        return isSetSuccess();
-
 
53545
      case EX:
-
 
53546
        return isSetEx();
-
 
53547
      }
-
 
53548
      throw new IllegalStateException();
-
 
53549
    }
-
 
53550
 
-
 
53551
    @Override
-
 
53552
    public boolean equals(Object that) {
-
 
53553
      if (that == null)
-
 
53554
        return false;
-
 
53555
      if (that instanceof getInventoryAgeConsideredItems_result)
-
 
53556
        return this.equals((getInventoryAgeConsideredItems_result)that);
-
 
53557
      return false;
-
 
53558
    }
-
 
53559
 
-
 
53560
    public boolean equals(getInventoryAgeConsideredItems_result that) {
-
 
53561
      if (that == null)
-
 
53562
        return false;
-
 
53563
 
-
 
53564
      boolean this_present_success = true && this.isSetSuccess();
-
 
53565
      boolean that_present_success = true && that.isSetSuccess();
-
 
53566
      if (this_present_success || that_present_success) {
-
 
53567
        if (!(this_present_success && that_present_success))
-
 
53568
          return false;
-
 
53569
        if (!this.success.equals(that.success))
-
 
53570
          return false;
-
 
53571
      }
-
 
53572
 
-
 
53573
      boolean this_present_ex = true && this.isSetEx();
-
 
53574
      boolean that_present_ex = true && that.isSetEx();
-
 
53575
      if (this_present_ex || that_present_ex) {
-
 
53576
        if (!(this_present_ex && that_present_ex))
-
 
53577
          return false;
-
 
53578
        if (!this.ex.equals(that.ex))
-
 
53579
          return false;
-
 
53580
      }
-
 
53581
 
-
 
53582
      return true;
-
 
53583
    }
-
 
53584
 
-
 
53585
    @Override
-
 
53586
    public int hashCode() {
-
 
53587
      return 0;
-
 
53588
    }
-
 
53589
 
-
 
53590
    public int compareTo(getInventoryAgeConsideredItems_result other) {
-
 
53591
      if (!getClass().equals(other.getClass())) {
-
 
53592
        return getClass().getName().compareTo(other.getClass().getName());
-
 
53593
      }
-
 
53594
 
-
 
53595
      int lastComparison = 0;
-
 
53596
      getInventoryAgeConsideredItems_result typedOther = (getInventoryAgeConsideredItems_result)other;
-
 
53597
 
-
 
53598
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
53599
      if (lastComparison != 0) {
-
 
53600
        return lastComparison;
-
 
53601
      }
-
 
53602
      if (isSetSuccess()) {
-
 
53603
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
53604
        if (lastComparison != 0) {
-
 
53605
          return lastComparison;
-
 
53606
        }
-
 
53607
      }
-
 
53608
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
53609
      if (lastComparison != 0) {
-
 
53610
        return lastComparison;
-
 
53611
      }
-
 
53612
      if (isSetEx()) {
-
 
53613
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
53614
        if (lastComparison != 0) {
-
 
53615
          return lastComparison;
-
 
53616
        }
-
 
53617
      }
-
 
53618
      return 0;
-
 
53619
    }
-
 
53620
 
-
 
53621
    public _Fields fieldForId(int fieldId) {
-
 
53622
      return _Fields.findByThriftId(fieldId);
-
 
53623
    }
-
 
53624
 
-
 
53625
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
53626
      org.apache.thrift.protocol.TField field;
-
 
53627
      iprot.readStructBegin();
-
 
53628
      while (true)
-
 
53629
      {
-
 
53630
        field = iprot.readFieldBegin();
-
 
53631
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
53632
          break;
-
 
53633
        }
-
 
53634
        switch (field.id) {
-
 
53635
          case 0: // SUCCESS
-
 
53636
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
53637
              {
-
 
53638
                org.apache.thrift.protocol.TList _list170 = iprot.readListBegin();
-
 
53639
                this.success = new ArrayList<InvAgeConsiderItems>(_list170.size);
-
 
53640
                for (int _i171 = 0; _i171 < _list170.size; ++_i171)
-
 
53641
                {
-
 
53642
                  InvAgeConsiderItems _elem172; // required
-
 
53643
                  _elem172 = new InvAgeConsiderItems();
-
 
53644
                  _elem172.read(iprot);
-
 
53645
                  this.success.add(_elem172);
-
 
53646
                }
-
 
53647
                iprot.readListEnd();
-
 
53648
              }
-
 
53649
            } else { 
-
 
53650
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
53651
            }
-
 
53652
            break;
-
 
53653
          case 1: // EX
-
 
53654
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
53655
              this.ex = new WarehouseServiceException();
-
 
53656
              this.ex.read(iprot);
-
 
53657
            } else { 
-
 
53658
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
53659
            }
-
 
53660
            break;
-
 
53661
          default:
-
 
53662
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
53663
        }
-
 
53664
        iprot.readFieldEnd();
-
 
53665
      }
-
 
53666
      iprot.readStructEnd();
-
 
53667
      validate();
-
 
53668
    }
-
 
53669
 
-
 
53670
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
53671
      oprot.writeStructBegin(STRUCT_DESC);
-
 
53672
 
-
 
53673
      if (this.isSetSuccess()) {
-
 
53674
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
53675
        {
-
 
53676
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
53677
          for (InvAgeConsiderItems _iter173 : this.success)
-
 
53678
          {
-
 
53679
            _iter173.write(oprot);
-
 
53680
          }
-
 
53681
          oprot.writeListEnd();
-
 
53682
        }
-
 
53683
        oprot.writeFieldEnd();
-
 
53684
      } else if (this.isSetEx()) {
-
 
53685
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
53686
        this.ex.write(oprot);
-
 
53687
        oprot.writeFieldEnd();
-
 
53688
      }
-
 
53689
      oprot.writeFieldStop();
-
 
53690
      oprot.writeStructEnd();
-
 
53691
    }
-
 
53692
 
-
 
53693
    @Override
-
 
53694
    public String toString() {
-
 
53695
      StringBuilder sb = new StringBuilder("getInventoryAgeConsideredItems_result(");
-
 
53696
      boolean first = true;
-
 
53697
 
-
 
53698
      sb.append("success:");
-
 
53699
      if (this.success == null) {
-
 
53700
        sb.append("null");
52905
      } else {
53701
      } else {
52906
        sb.append(this.success);
53702
        sb.append(this.success);
52907
      }
53703
      }
52908
      first = false;
53704
      first = false;
52909
      if (!first) sb.append(", ");
53705
      if (!first) sb.append(", ");