Subversion Repositories SmartDukaan

Rev

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

Rev 6821 Rev 6832
Line 299... Line 299...
299
 
299
 
300
    public ItemStockPurchaseParams getItemStockPurchaseParams(long itemId) throws org.apache.thrift.TException;
300
    public ItemStockPurchaseParams getItemStockPurchaseParams(long itemId) throws org.apache.thrift.TException;
301
 
301
 
302
    public void addOosStatusForItem(Map<Long,Boolean> oosStatusMap, long date) throws org.apache.thrift.TException;
302
    public void addOosStatusForItem(Map<Long,Boolean> oosStatusMap, long date) throws org.apache.thrift.TException;
303
 
303
 
-
 
304
    public List<OOSStatus> getOosStatusesForXDaysForItem(long itemId, int days) throws org.apache.thrift.TException;
-
 
305
 
304
  }
306
  }
305
 
307
 
306
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
308
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
307
 
309
 
308
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
310
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
Line 397... Line 399...
397
 
399
 
398
    public void getItemStockPurchaseParams(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemStockPurchaseParams_call> resultHandler) throws org.apache.thrift.TException;
400
    public void getItemStockPurchaseParams(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemStockPurchaseParams_call> resultHandler) throws org.apache.thrift.TException;
399
 
401
 
400
    public void addOosStatusForItem(Map<Long,Boolean> oosStatusMap, long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOosStatusForItem_call> resultHandler) throws org.apache.thrift.TException;
402
    public void addOosStatusForItem(Map<Long,Boolean> oosStatusMap, long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOosStatusForItem_call> resultHandler) throws org.apache.thrift.TException;
401
 
403
 
-
 
404
    public void getOosStatusesForXDaysForItem(long itemId, int days, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOosStatusesForXDaysForItem_call> resultHandler) throws org.apache.thrift.TException;
-
 
405
 
402
  }
406
  }
403
 
407
 
404
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
408
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
405
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
409
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
406
      public Factory() {}
410
      public Factory() {}
Line 1554... Line 1558...
1554
      addOosStatusForItem_result result = new addOosStatusForItem_result();
1558
      addOosStatusForItem_result result = new addOosStatusForItem_result();
1555
      receiveBase(result, "addOosStatusForItem");
1559
      receiveBase(result, "addOosStatusForItem");
1556
      return;
1560
      return;
1557
    }
1561
    }
1558
 
1562
 
-
 
1563
    public List<OOSStatus> getOosStatusesForXDaysForItem(long itemId, int days) throws org.apache.thrift.TException
-
 
1564
    {
-
 
1565
      send_getOosStatusesForXDaysForItem(itemId, days);
-
 
1566
      return recv_getOosStatusesForXDaysForItem();
-
 
1567
    }
-
 
1568
 
-
 
1569
    public void send_getOosStatusesForXDaysForItem(long itemId, int days) throws org.apache.thrift.TException
-
 
1570
    {
-
 
1571
      getOosStatusesForXDaysForItem_args args = new getOosStatusesForXDaysForItem_args();
-
 
1572
      args.setItemId(itemId);
-
 
1573
      args.setDays(days);
-
 
1574
      sendBase("getOosStatusesForXDaysForItem", args);
-
 
1575
    }
-
 
1576
 
-
 
1577
    public List<OOSStatus> recv_getOosStatusesForXDaysForItem() throws org.apache.thrift.TException
-
 
1578
    {
-
 
1579
      getOosStatusesForXDaysForItem_result result = new getOosStatusesForXDaysForItem_result();
-
 
1580
      receiveBase(result, "getOosStatusesForXDaysForItem");
-
 
1581
      if (result.isSetSuccess()) {
-
 
1582
        return result.success;
-
 
1583
      }
-
 
1584
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOosStatusesForXDaysForItem failed: unknown result");
-
 
1585
    }
-
 
1586
 
1559
  }
1587
  }
1560
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1588
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1561
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1589
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1562
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1590
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1563
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
1591
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 3175... Line 3203...
3175
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3203
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3176
        (new Client(prot)).recv_addOosStatusForItem();
3204
        (new Client(prot)).recv_addOosStatusForItem();
3177
      }
3205
      }
3178
    }
3206
    }
3179
 
3207
 
-
 
3208
    public void getOosStatusesForXDaysForItem(long itemId, int days, org.apache.thrift.async.AsyncMethodCallback<getOosStatusesForXDaysForItem_call> resultHandler) throws org.apache.thrift.TException {
-
 
3209
      checkReady();
-
 
3210
      getOosStatusesForXDaysForItem_call method_call = new getOosStatusesForXDaysForItem_call(itemId, days, resultHandler, this, ___protocolFactory, ___transport);
-
 
3211
      this.___currentMethod = method_call;
-
 
3212
      ___manager.call(method_call);
-
 
3213
    }
-
 
3214
 
-
 
3215
    public static class getOosStatusesForXDaysForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
3216
      private long itemId;
-
 
3217
      private int days;
-
 
3218
      public getOosStatusesForXDaysForItem_call(long itemId, int days, org.apache.thrift.async.AsyncMethodCallback<getOosStatusesForXDaysForItem_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 {
-
 
3219
        super(client, protocolFactory, transport, resultHandler, false);
-
 
3220
        this.itemId = itemId;
-
 
3221
        this.days = days;
-
 
3222
      }
-
 
3223
 
-
 
3224
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
3225
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOosStatusesForXDaysForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
3226
        getOosStatusesForXDaysForItem_args args = new getOosStatusesForXDaysForItem_args();
-
 
3227
        args.setItemId(itemId);
-
 
3228
        args.setDays(days);
-
 
3229
        args.write(prot);
-
 
3230
        prot.writeMessageEnd();
-
 
3231
      }
-
 
3232
 
-
 
3233
      public List<OOSStatus> getResult() throws org.apache.thrift.TException {
-
 
3234
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
3235
          throw new IllegalStateException("Method call not finished!");
-
 
3236
        }
-
 
3237
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
3238
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
3239
        return (new Client(prot)).recv_getOosStatusesForXDaysForItem();
-
 
3240
      }
-
 
3241
    }
-
 
3242
 
3180
  }
3243
  }
3181
 
3244
 
3182
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
3245
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
3183
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
3246
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
3184
    public Processor(I iface) {
3247
    public Processor(I iface) {
Line 3235... Line 3298...
3235
      processMap.put("getAllIgnoredInventoryupdateItemsCount", new getAllIgnoredInventoryupdateItemsCount());
3298
      processMap.put("getAllIgnoredInventoryupdateItemsCount", new getAllIgnoredInventoryupdateItemsCount());
3236
      processMap.put("getIgnoredInventoryUpdateItemids", new getIgnoredInventoryUpdateItemids());
3299
      processMap.put("getIgnoredInventoryUpdateItemids", new getIgnoredInventoryUpdateItemids());
3237
      processMap.put("updateItemStockPurchaseParams", new updateItemStockPurchaseParams());
3300
      processMap.put("updateItemStockPurchaseParams", new updateItemStockPurchaseParams());
3238
      processMap.put("getItemStockPurchaseParams", new getItemStockPurchaseParams());
3301
      processMap.put("getItemStockPurchaseParams", new getItemStockPurchaseParams());
3239
      processMap.put("addOosStatusForItem", new addOosStatusForItem());
3302
      processMap.put("addOosStatusForItem", new addOosStatusForItem());
-
 
3303
      processMap.put("getOosStatusesForXDaysForItem", new getOosStatusesForXDaysForItem());
3240
      return processMap;
3304
      return processMap;
3241
    }
3305
    }
3242
 
3306
 
3243
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
3307
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
3244
      public addWarehouse() {
3308
      public addWarehouse() {
Line 4088... Line 4152...
4088
        iface.addOosStatusForItem(args.oosStatusMap, args.date);
4152
        iface.addOosStatusForItem(args.oosStatusMap, args.date);
4089
        return result;
4153
        return result;
4090
      }
4154
      }
4091
    }
4155
    }
4092
 
4156
 
-
 
4157
    private static class getOosStatusesForXDaysForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOosStatusesForXDaysForItem_args> {
-
 
4158
      public getOosStatusesForXDaysForItem() {
-
 
4159
        super("getOosStatusesForXDaysForItem");
-
 
4160
      }
-
 
4161
 
-
 
4162
      protected getOosStatusesForXDaysForItem_args getEmptyArgsInstance() {
-
 
4163
        return new getOosStatusesForXDaysForItem_args();
-
 
4164
      }
-
 
4165
 
-
 
4166
      protected getOosStatusesForXDaysForItem_result getResult(I iface, getOosStatusesForXDaysForItem_args args) throws org.apache.thrift.TException {
-
 
4167
        getOosStatusesForXDaysForItem_result result = new getOosStatusesForXDaysForItem_result();
-
 
4168
        result.success = iface.getOosStatusesForXDaysForItem(args.itemId, args.days);
-
 
4169
        return result;
-
 
4170
      }
-
 
4171
    }
-
 
4172
 
4093
  }
4173
  }
4094
 
4174
 
4095
  public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
4175
  public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
4096
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
4176
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
4097
 
4177
 
Line 35878... Line 35958...
35878
      sb.append(")");
35958
      sb.append(")");
35879
      return sb.toString();
35959
      return sb.toString();
35880
    }
35960
    }
35881
 
35961
 
35882
    public void validate() throws org.apache.thrift.TException {
35962
    public void validate() throws org.apache.thrift.TException {
-
 
35963
      // check for required fields
-
 
35964
    }
-
 
35965
 
-
 
35966
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
35967
      try {
-
 
35968
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
35969
      } catch (org.apache.thrift.TException te) {
-
 
35970
        throw new java.io.IOException(te);
-
 
35971
      }
-
 
35972
    }
-
 
35973
 
-
 
35974
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
35975
      try {
-
 
35976
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
35977
      } catch (org.apache.thrift.TException te) {
-
 
35978
        throw new java.io.IOException(te);
-
 
35979
      }
-
 
35980
    }
-
 
35981
 
-
 
35982
  }
-
 
35983
 
-
 
35984
  public static class getOosStatusesForXDaysForItem_args implements org.apache.thrift.TBase<getOosStatusesForXDaysForItem_args, getOosStatusesForXDaysForItem_args._Fields>, java.io.Serializable, Cloneable   {
-
 
35985
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOosStatusesForXDaysForItem_args");
-
 
35986
 
-
 
35987
    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);
-
 
35988
    private static final org.apache.thrift.protocol.TField DAYS_FIELD_DESC = new org.apache.thrift.protocol.TField("days", org.apache.thrift.protocol.TType.I32, (short)2);
-
 
35989
 
-
 
35990
    private long itemId; // required
-
 
35991
    private int days; // required
-
 
35992
 
-
 
35993
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
35994
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
35995
      ITEM_ID((short)1, "itemId"),
-
 
35996
      DAYS((short)2, "days");
-
 
35997
 
-
 
35998
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
35999
 
-
 
36000
      static {
-
 
36001
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
36002
          byName.put(field.getFieldName(), field);
-
 
36003
        }
-
 
36004
      }
-
 
36005
 
-
 
36006
      /**
-
 
36007
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
36008
       */
-
 
36009
      public static _Fields findByThriftId(int fieldId) {
-
 
36010
        switch(fieldId) {
-
 
36011
          case 1: // ITEM_ID
-
 
36012
            return ITEM_ID;
-
 
36013
          case 2: // DAYS
-
 
36014
            return DAYS;
-
 
36015
          default:
-
 
36016
            return null;
-
 
36017
        }
-
 
36018
      }
-
 
36019
 
-
 
36020
      /**
-
 
36021
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
36022
       * if it is not found.
-
 
36023
       */
-
 
36024
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
36025
        _Fields fields = findByThriftId(fieldId);
-
 
36026
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
36027
        return fields;
-
 
36028
      }
-
 
36029
 
-
 
36030
      /**
-
 
36031
       * Find the _Fields constant that matches name, or null if its not found.
-
 
36032
       */
-
 
36033
      public static _Fields findByName(String name) {
-
 
36034
        return byName.get(name);
-
 
36035
      }
-
 
36036
 
-
 
36037
      private final short _thriftId;
-
 
36038
      private final String _fieldName;
-
 
36039
 
-
 
36040
      _Fields(short thriftId, String fieldName) {
-
 
36041
        _thriftId = thriftId;
-
 
36042
        _fieldName = fieldName;
-
 
36043
      }
-
 
36044
 
-
 
36045
      public short getThriftFieldId() {
-
 
36046
        return _thriftId;
-
 
36047
      }
-
 
36048
 
-
 
36049
      public String getFieldName() {
-
 
36050
        return _fieldName;
-
 
36051
      }
-
 
36052
    }
-
 
36053
 
-
 
36054
    // isset id assignments
-
 
36055
    private static final int __ITEMID_ISSET_ID = 0;
-
 
36056
    private static final int __DAYS_ISSET_ID = 1;
-
 
36057
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
36058
 
-
 
36059
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
36060
    static {
-
 
36061
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
36062
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
36063
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
36064
      tmpMap.put(_Fields.DAYS, new org.apache.thrift.meta_data.FieldMetaData("days", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
36065
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
-
 
36066
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
36067
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOosStatusesForXDaysForItem_args.class, metaDataMap);
-
 
36068
    }
-
 
36069
 
-
 
36070
    public getOosStatusesForXDaysForItem_args() {
-
 
36071
    }
-
 
36072
 
-
 
36073
    public getOosStatusesForXDaysForItem_args(
-
 
36074
      long itemId,
-
 
36075
      int days)
-
 
36076
    {
-
 
36077
      this();
-
 
36078
      this.itemId = itemId;
-
 
36079
      setItemIdIsSet(true);
-
 
36080
      this.days = days;
-
 
36081
      setDaysIsSet(true);
-
 
36082
    }
-
 
36083
 
-
 
36084
    /**
-
 
36085
     * Performs a deep copy on <i>other</i>.
-
 
36086
     */
-
 
36087
    public getOosStatusesForXDaysForItem_args(getOosStatusesForXDaysForItem_args other) {
-
 
36088
      __isset_bit_vector.clear();
-
 
36089
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
36090
      this.itemId = other.itemId;
-
 
36091
      this.days = other.days;
-
 
36092
    }
-
 
36093
 
-
 
36094
    public getOosStatusesForXDaysForItem_args deepCopy() {
-
 
36095
      return new getOosStatusesForXDaysForItem_args(this);
-
 
36096
    }
-
 
36097
 
-
 
36098
    @Override
-
 
36099
    public void clear() {
-
 
36100
      setItemIdIsSet(false);
-
 
36101
      this.itemId = 0;
-
 
36102
      setDaysIsSet(false);
-
 
36103
      this.days = 0;
-
 
36104
    }
-
 
36105
 
-
 
36106
    public long getItemId() {
-
 
36107
      return this.itemId;
-
 
36108
    }
-
 
36109
 
-
 
36110
    public void setItemId(long itemId) {
-
 
36111
      this.itemId = itemId;
-
 
36112
      setItemIdIsSet(true);
-
 
36113
    }
-
 
36114
 
-
 
36115
    public void unsetItemId() {
-
 
36116
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
-
 
36117
    }
-
 
36118
 
-
 
36119
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
-
 
36120
    public boolean isSetItemId() {
-
 
36121
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
-
 
36122
    }
-
 
36123
 
-
 
36124
    public void setItemIdIsSet(boolean value) {
-
 
36125
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
-
 
36126
    }
-
 
36127
 
-
 
36128
    public int getDays() {
-
 
36129
      return this.days;
-
 
36130
    }
-
 
36131
 
-
 
36132
    public void setDays(int days) {
-
 
36133
      this.days = days;
-
 
36134
      setDaysIsSet(true);
-
 
36135
    }
-
 
36136
 
-
 
36137
    public void unsetDays() {
-
 
36138
      __isset_bit_vector.clear(__DAYS_ISSET_ID);
-
 
36139
    }
-
 
36140
 
-
 
36141
    /** Returns true if field days is set (has been assigned a value) and false otherwise */
-
 
36142
    public boolean isSetDays() {
-
 
36143
      return __isset_bit_vector.get(__DAYS_ISSET_ID);
-
 
36144
    }
-
 
36145
 
-
 
36146
    public void setDaysIsSet(boolean value) {
-
 
36147
      __isset_bit_vector.set(__DAYS_ISSET_ID, value);
-
 
36148
    }
-
 
36149
 
-
 
36150
    public void setFieldValue(_Fields field, Object value) {
-
 
36151
      switch (field) {
-
 
36152
      case ITEM_ID:
-
 
36153
        if (value == null) {
-
 
36154
          unsetItemId();
-
 
36155
        } else {
-
 
36156
          setItemId((Long)value);
-
 
36157
        }
-
 
36158
        break;
-
 
36159
 
-
 
36160
      case DAYS:
-
 
36161
        if (value == null) {
-
 
36162
          unsetDays();
-
 
36163
        } else {
-
 
36164
          setDays((Integer)value);
-
 
36165
        }
-
 
36166
        break;
-
 
36167
 
-
 
36168
      }
-
 
36169
    }
-
 
36170
 
-
 
36171
    public Object getFieldValue(_Fields field) {
-
 
36172
      switch (field) {
-
 
36173
      case ITEM_ID:
-
 
36174
        return Long.valueOf(getItemId());
-
 
36175
 
-
 
36176
      case DAYS:
-
 
36177
        return Integer.valueOf(getDays());
-
 
36178
 
-
 
36179
      }
-
 
36180
      throw new IllegalStateException();
-
 
36181
    }
-
 
36182
 
-
 
36183
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
36184
    public boolean isSet(_Fields field) {
-
 
36185
      if (field == null) {
-
 
36186
        throw new IllegalArgumentException();
-
 
36187
      }
-
 
36188
 
-
 
36189
      switch (field) {
-
 
36190
      case ITEM_ID:
-
 
36191
        return isSetItemId();
-
 
36192
      case DAYS:
-
 
36193
        return isSetDays();
-
 
36194
      }
-
 
36195
      throw new IllegalStateException();
-
 
36196
    }
-
 
36197
 
-
 
36198
    @Override
-
 
36199
    public boolean equals(Object that) {
-
 
36200
      if (that == null)
-
 
36201
        return false;
-
 
36202
      if (that instanceof getOosStatusesForXDaysForItem_args)
-
 
36203
        return this.equals((getOosStatusesForXDaysForItem_args)that);
-
 
36204
      return false;
-
 
36205
    }
-
 
36206
 
-
 
36207
    public boolean equals(getOosStatusesForXDaysForItem_args that) {
-
 
36208
      if (that == null)
-
 
36209
        return false;
-
 
36210
 
-
 
36211
      boolean this_present_itemId = true;
-
 
36212
      boolean that_present_itemId = true;
-
 
36213
      if (this_present_itemId || that_present_itemId) {
-
 
36214
        if (!(this_present_itemId && that_present_itemId))
-
 
36215
          return false;
-
 
36216
        if (this.itemId != that.itemId)
-
 
36217
          return false;
-
 
36218
      }
-
 
36219
 
-
 
36220
      boolean this_present_days = true;
-
 
36221
      boolean that_present_days = true;
-
 
36222
      if (this_present_days || that_present_days) {
-
 
36223
        if (!(this_present_days && that_present_days))
-
 
36224
          return false;
-
 
36225
        if (this.days != that.days)
-
 
36226
          return false;
-
 
36227
      }
-
 
36228
 
-
 
36229
      return true;
-
 
36230
    }
-
 
36231
 
-
 
36232
    @Override
-
 
36233
    public int hashCode() {
-
 
36234
      return 0;
-
 
36235
    }
-
 
36236
 
-
 
36237
    public int compareTo(getOosStatusesForXDaysForItem_args other) {
-
 
36238
      if (!getClass().equals(other.getClass())) {
-
 
36239
        return getClass().getName().compareTo(other.getClass().getName());
-
 
36240
      }
-
 
36241
 
-
 
36242
      int lastComparison = 0;
-
 
36243
      getOosStatusesForXDaysForItem_args typedOther = (getOosStatusesForXDaysForItem_args)other;
-
 
36244
 
-
 
36245
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
-
 
36246
      if (lastComparison != 0) {
-
 
36247
        return lastComparison;
-
 
36248
      }
-
 
36249
      if (isSetItemId()) {
-
 
36250
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
-
 
36251
        if (lastComparison != 0) {
-
 
36252
          return lastComparison;
-
 
36253
        }
-
 
36254
      }
-
 
36255
      lastComparison = Boolean.valueOf(isSetDays()).compareTo(typedOther.isSetDays());
-
 
36256
      if (lastComparison != 0) {
-
 
36257
        return lastComparison;
-
 
36258
      }
-
 
36259
      if (isSetDays()) {
-
 
36260
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.days, typedOther.days);
-
 
36261
        if (lastComparison != 0) {
-
 
36262
          return lastComparison;
-
 
36263
        }
-
 
36264
      }
-
 
36265
      return 0;
-
 
36266
    }
-
 
36267
 
-
 
36268
    public _Fields fieldForId(int fieldId) {
-
 
36269
      return _Fields.findByThriftId(fieldId);
-
 
36270
    }
-
 
36271
 
-
 
36272
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
36273
      org.apache.thrift.protocol.TField field;
-
 
36274
      iprot.readStructBegin();
-
 
36275
      while (true)
-
 
36276
      {
-
 
36277
        field = iprot.readFieldBegin();
-
 
36278
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
36279
          break;
-
 
36280
        }
-
 
36281
        switch (field.id) {
-
 
36282
          case 1: // ITEM_ID
-
 
36283
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
36284
              this.itemId = iprot.readI64();
-
 
36285
              setItemIdIsSet(true);
-
 
36286
            } else { 
-
 
36287
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
36288
            }
-
 
36289
            break;
-
 
36290
          case 2: // DAYS
-
 
36291
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
36292
              this.days = iprot.readI32();
-
 
36293
              setDaysIsSet(true);
-
 
36294
            } else { 
-
 
36295
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
36296
            }
-
 
36297
            break;
-
 
36298
          default:
-
 
36299
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
36300
        }
-
 
36301
        iprot.readFieldEnd();
-
 
36302
      }
-
 
36303
      iprot.readStructEnd();
-
 
36304
      validate();
-
 
36305
    }
-
 
36306
 
-
 
36307
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
36308
      validate();
-
 
36309
 
-
 
36310
      oprot.writeStructBegin(STRUCT_DESC);
-
 
36311
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
36312
      oprot.writeI64(this.itemId);
-
 
36313
      oprot.writeFieldEnd();
-
 
36314
      oprot.writeFieldBegin(DAYS_FIELD_DESC);
-
 
36315
      oprot.writeI32(this.days);
-
 
36316
      oprot.writeFieldEnd();
-
 
36317
      oprot.writeFieldStop();
-
 
36318
      oprot.writeStructEnd();
-
 
36319
    }
-
 
36320
 
-
 
36321
    @Override
-
 
36322
    public String toString() {
-
 
36323
      StringBuilder sb = new StringBuilder("getOosStatusesForXDaysForItem_args(");
-
 
36324
      boolean first = true;
-
 
36325
 
-
 
36326
      sb.append("itemId:");
-
 
36327
      sb.append(this.itemId);
-
 
36328
      first = false;
-
 
36329
      if (!first) sb.append(", ");
-
 
36330
      sb.append("days:");
-
 
36331
      sb.append(this.days);
-
 
36332
      first = false;
-
 
36333
      sb.append(")");
-
 
36334
      return sb.toString();
-
 
36335
    }
-
 
36336
 
-
 
36337
    public void validate() throws org.apache.thrift.TException {
-
 
36338
      // check for required fields
-
 
36339
    }
-
 
36340
 
-
 
36341
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
36342
      try {
-
 
36343
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
36344
      } catch (org.apache.thrift.TException te) {
-
 
36345
        throw new java.io.IOException(te);
-
 
36346
      }
-
 
36347
    }
-
 
36348
 
-
 
36349
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
36350
      try {
-
 
36351
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
36352
        __isset_bit_vector = new BitSet(1);
-
 
36353
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
36354
      } catch (org.apache.thrift.TException te) {
-
 
36355
        throw new java.io.IOException(te);
-
 
36356
      }
-
 
36357
    }
-
 
36358
 
-
 
36359
  }
-
 
36360
 
-
 
36361
  public static class getOosStatusesForXDaysForItem_result implements org.apache.thrift.TBase<getOosStatusesForXDaysForItem_result, getOosStatusesForXDaysForItem_result._Fields>, java.io.Serializable, Cloneable   {
-
 
36362
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOosStatusesForXDaysForItem_result");
-
 
36363
 
-
 
36364
    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);
-
 
36365
 
-
 
36366
    private List<OOSStatus> success; // required
-
 
36367
 
-
 
36368
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
36369
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
36370
      SUCCESS((short)0, "success");
-
 
36371
 
-
 
36372
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
36373
 
-
 
36374
      static {
-
 
36375
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
36376
          byName.put(field.getFieldName(), field);
-
 
36377
        }
-
 
36378
      }
-
 
36379
 
-
 
36380
      /**
-
 
36381
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
36382
       */
-
 
36383
      public static _Fields findByThriftId(int fieldId) {
-
 
36384
        switch(fieldId) {
-
 
36385
          case 0: // SUCCESS
-
 
36386
            return SUCCESS;
-
 
36387
          default:
-
 
36388
            return null;
-
 
36389
        }
-
 
36390
      }
-
 
36391
 
-
 
36392
      /**
-
 
36393
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
36394
       * if it is not found.
-
 
36395
       */
-
 
36396
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
36397
        _Fields fields = findByThriftId(fieldId);
-
 
36398
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
36399
        return fields;
-
 
36400
      }
-
 
36401
 
-
 
36402
      /**
-
 
36403
       * Find the _Fields constant that matches name, or null if its not found.
-
 
36404
       */
-
 
36405
      public static _Fields findByName(String name) {
-
 
36406
        return byName.get(name);
-
 
36407
      }
-
 
36408
 
-
 
36409
      private final short _thriftId;
-
 
36410
      private final String _fieldName;
-
 
36411
 
-
 
36412
      _Fields(short thriftId, String fieldName) {
-
 
36413
        _thriftId = thriftId;
-
 
36414
        _fieldName = fieldName;
-
 
36415
      }
-
 
36416
 
-
 
36417
      public short getThriftFieldId() {
-
 
36418
        return _thriftId;
-
 
36419
      }
-
 
36420
 
-
 
36421
      public String getFieldName() {
-
 
36422
        return _fieldName;
-
 
36423
      }
-
 
36424
    }
-
 
36425
 
-
 
36426
    // isset id assignments
-
 
36427
 
-
 
36428
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
36429
    static {
-
 
36430
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
36431
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
36432
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
36433
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, OOSStatus.class))));
-
 
36434
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
36435
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOosStatusesForXDaysForItem_result.class, metaDataMap);
-
 
36436
    }
-
 
36437
 
-
 
36438
    public getOosStatusesForXDaysForItem_result() {
-
 
36439
    }
-
 
36440
 
-
 
36441
    public getOosStatusesForXDaysForItem_result(
-
 
36442
      List<OOSStatus> success)
-
 
36443
    {
-
 
36444
      this();
-
 
36445
      this.success = success;
-
 
36446
    }
-
 
36447
 
-
 
36448
    /**
-
 
36449
     * Performs a deep copy on <i>other</i>.
-
 
36450
     */
-
 
36451
    public getOosStatusesForXDaysForItem_result(getOosStatusesForXDaysForItem_result other) {
-
 
36452
      if (other.isSetSuccess()) {
-
 
36453
        List<OOSStatus> __this__success = new ArrayList<OOSStatus>();
-
 
36454
        for (OOSStatus other_element : other.success) {
-
 
36455
          __this__success.add(new OOSStatus(other_element));
-
 
36456
        }
-
 
36457
        this.success = __this__success;
-
 
36458
      }
-
 
36459
    }
-
 
36460
 
-
 
36461
    public getOosStatusesForXDaysForItem_result deepCopy() {
-
 
36462
      return new getOosStatusesForXDaysForItem_result(this);
-
 
36463
    }
-
 
36464
 
-
 
36465
    @Override
-
 
36466
    public void clear() {
-
 
36467
      this.success = null;
-
 
36468
    }
-
 
36469
 
-
 
36470
    public int getSuccessSize() {
-
 
36471
      return (this.success == null) ? 0 : this.success.size();
-
 
36472
    }
-
 
36473
 
-
 
36474
    public java.util.Iterator<OOSStatus> getSuccessIterator() {
-
 
36475
      return (this.success == null) ? null : this.success.iterator();
-
 
36476
    }
-
 
36477
 
-
 
36478
    public void addToSuccess(OOSStatus elem) {
-
 
36479
      if (this.success == null) {
-
 
36480
        this.success = new ArrayList<OOSStatus>();
-
 
36481
      }
-
 
36482
      this.success.add(elem);
-
 
36483
    }
-
 
36484
 
-
 
36485
    public List<OOSStatus> getSuccess() {
-
 
36486
      return this.success;
-
 
36487
    }
-
 
36488
 
-
 
36489
    public void setSuccess(List<OOSStatus> success) {
-
 
36490
      this.success = success;
-
 
36491
    }
-
 
36492
 
-
 
36493
    public void unsetSuccess() {
-
 
36494
      this.success = null;
-
 
36495
    }
-
 
36496
 
-
 
36497
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
36498
    public boolean isSetSuccess() {
-
 
36499
      return this.success != null;
-
 
36500
    }
-
 
36501
 
-
 
36502
    public void setSuccessIsSet(boolean value) {
-
 
36503
      if (!value) {
-
 
36504
        this.success = null;
-
 
36505
      }
-
 
36506
    }
-
 
36507
 
-
 
36508
    public void setFieldValue(_Fields field, Object value) {
-
 
36509
      switch (field) {
-
 
36510
      case SUCCESS:
-
 
36511
        if (value == null) {
-
 
36512
          unsetSuccess();
-
 
36513
        } else {
-
 
36514
          setSuccess((List<OOSStatus>)value);
-
 
36515
        }
-
 
36516
        break;
-
 
36517
 
-
 
36518
      }
-
 
36519
    }
-
 
36520
 
-
 
36521
    public Object getFieldValue(_Fields field) {
-
 
36522
      switch (field) {
-
 
36523
      case SUCCESS:
-
 
36524
        return getSuccess();
-
 
36525
 
-
 
36526
      }
-
 
36527
      throw new IllegalStateException();
-
 
36528
    }
-
 
36529
 
-
 
36530
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
36531
    public boolean isSet(_Fields field) {
-
 
36532
      if (field == null) {
-
 
36533
        throw new IllegalArgumentException();
-
 
36534
      }
-
 
36535
 
-
 
36536
      switch (field) {
-
 
36537
      case SUCCESS:
-
 
36538
        return isSetSuccess();
-
 
36539
      }
-
 
36540
      throw new IllegalStateException();
-
 
36541
    }
-
 
36542
 
-
 
36543
    @Override
-
 
36544
    public boolean equals(Object that) {
-
 
36545
      if (that == null)
-
 
36546
        return false;
-
 
36547
      if (that instanceof getOosStatusesForXDaysForItem_result)
-
 
36548
        return this.equals((getOosStatusesForXDaysForItem_result)that);
-
 
36549
      return false;
-
 
36550
    }
-
 
36551
 
-
 
36552
    public boolean equals(getOosStatusesForXDaysForItem_result that) {
-
 
36553
      if (that == null)
-
 
36554
        return false;
-
 
36555
 
-
 
36556
      boolean this_present_success = true && this.isSetSuccess();
-
 
36557
      boolean that_present_success = true && that.isSetSuccess();
-
 
36558
      if (this_present_success || that_present_success) {
-
 
36559
        if (!(this_present_success && that_present_success))
-
 
36560
          return false;
-
 
36561
        if (!this.success.equals(that.success))
-
 
36562
          return false;
-
 
36563
      }
-
 
36564
 
-
 
36565
      return true;
-
 
36566
    }
-
 
36567
 
-
 
36568
    @Override
-
 
36569
    public int hashCode() {
-
 
36570
      return 0;
-
 
36571
    }
-
 
36572
 
-
 
36573
    public int compareTo(getOosStatusesForXDaysForItem_result other) {
-
 
36574
      if (!getClass().equals(other.getClass())) {
-
 
36575
        return getClass().getName().compareTo(other.getClass().getName());
-
 
36576
      }
-
 
36577
 
-
 
36578
      int lastComparison = 0;
-
 
36579
      getOosStatusesForXDaysForItem_result typedOther = (getOosStatusesForXDaysForItem_result)other;
-
 
36580
 
-
 
36581
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
36582
      if (lastComparison != 0) {
-
 
36583
        return lastComparison;
-
 
36584
      }
-
 
36585
      if (isSetSuccess()) {
-
 
36586
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
36587
        if (lastComparison != 0) {
-
 
36588
          return lastComparison;
-
 
36589
        }
-
 
36590
      }
-
 
36591
      return 0;
-
 
36592
    }
-
 
36593
 
-
 
36594
    public _Fields fieldForId(int fieldId) {
-
 
36595
      return _Fields.findByThriftId(fieldId);
-
 
36596
    }
-
 
36597
 
-
 
36598
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
36599
      org.apache.thrift.protocol.TField field;
-
 
36600
      iprot.readStructBegin();
-
 
36601
      while (true)
-
 
36602
      {
-
 
36603
        field = iprot.readFieldBegin();
-
 
36604
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
36605
          break;
-
 
36606
        }
-
 
36607
        switch (field.id) {
-
 
36608
          case 0: // SUCCESS
-
 
36609
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
36610
              {
-
 
36611
                org.apache.thrift.protocol.TList _list109 = iprot.readListBegin();
-
 
36612
                this.success = new ArrayList<OOSStatus>(_list109.size);
-
 
36613
                for (int _i110 = 0; _i110 < _list109.size; ++_i110)
-
 
36614
                {
-
 
36615
                  OOSStatus _elem111; // required
-
 
36616
                  _elem111 = new OOSStatus();
-
 
36617
                  _elem111.read(iprot);
-
 
36618
                  this.success.add(_elem111);
-
 
36619
                }
-
 
36620
                iprot.readListEnd();
-
 
36621
              }
-
 
36622
            } else { 
-
 
36623
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
36624
            }
-
 
36625
            break;
-
 
36626
          default:
-
 
36627
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
36628
        }
-
 
36629
        iprot.readFieldEnd();
-
 
36630
      }
-
 
36631
      iprot.readStructEnd();
-
 
36632
      validate();
-
 
36633
    }
-
 
36634
 
-
 
36635
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
36636
      oprot.writeStructBegin(STRUCT_DESC);
-
 
36637
 
-
 
36638
      if (this.isSetSuccess()) {
-
 
36639
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
36640
        {
-
 
36641
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
36642
          for (OOSStatus _iter112 : this.success)
-
 
36643
          {
-
 
36644
            _iter112.write(oprot);
-
 
36645
          }
-
 
36646
          oprot.writeListEnd();
-
 
36647
        }
-
 
36648
        oprot.writeFieldEnd();
-
 
36649
      }
-
 
36650
      oprot.writeFieldStop();
-
 
36651
      oprot.writeStructEnd();
-
 
36652
    }
-
 
36653
 
-
 
36654
    @Override
-
 
36655
    public String toString() {
-
 
36656
      StringBuilder sb = new StringBuilder("getOosStatusesForXDaysForItem_result(");
-
 
36657
      boolean first = true;
-
 
36658
 
-
 
36659
      sb.append("success:");
-
 
36660
      if (this.success == null) {
-
 
36661
        sb.append("null");
-
 
36662
      } else {
-
 
36663
        sb.append(this.success);
-
 
36664
      }
-
 
36665
      first = false;
-
 
36666
      sb.append(")");
-
 
36667
      return sb.toString();
-
 
36668
    }
-
 
36669
 
-
 
36670
    public void validate() throws org.apache.thrift.TException {
35883
      // check for required fields
36671
      // check for required fields
35884
    }
36672
    }
35885
 
36673
 
35886
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
36674
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
35887
      try {
36675
      try {