Subversion Repositories SmartDukaan

Rev

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

Rev 20028 Rev 20032
Line 1234... Line 1234...
1234
 
1234
 
1235
    public SellerInfo getSellerInfo(long sellerId) throws org.apache.thrift.TException;
1235
    public SellerInfo getSellerInfo(long sellerId) throws org.apache.thrift.TException;
1236
 
1236
 
1237
    public WarehouseAddress getWarehouseAddress(long address_id) throws org.apache.thrift.TException;
1237
    public WarehouseAddress getWarehouseAddress(long address_id) throws org.apache.thrift.TException;
1238
 
1238
 
-
 
1239
    public BuyerInfo getBuyerByWarehouse(long warehouse_id) throws org.apache.thrift.TException;
-
 
1240
 
1239
    public boolean markReturnNotRequiredOrdersProcessed(ReturnOrderInfo returnOrderInfo) throws TransactionServiceException, org.apache.thrift.TException;
1241
    public boolean markReturnNotRequiredOrdersProcessed(ReturnOrderInfo returnOrderInfo) throws TransactionServiceException, org.apache.thrift.TException;
1240
 
1242
 
1241
    public ReturnPickupRequest getReturnPickupRequest(long returnPickupId) throws org.apache.thrift.TException;
1243
    public ReturnPickupRequest getReturnPickupRequest(long returnPickupId) throws org.apache.thrift.TException;
1242
 
1244
 
1243
    public ReturnOrderInfo splitReturnOrderInfo(long returnOrderId, long splitOrderQty) throws org.apache.thrift.TException;
1245
    public ReturnOrderInfo splitReturnOrderInfo(long returnOrderId, long splitOrderQty) throws org.apache.thrift.TException;
Line 1848... Line 1850...
1848
 
1850
 
1849
    public void getSellerInfo(long sellerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSellerInfo_call> resultHandler) throws org.apache.thrift.TException;
1851
    public void getSellerInfo(long sellerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSellerInfo_call> resultHandler) throws org.apache.thrift.TException;
1850
 
1852
 
1851
    public void getWarehouseAddress(long address_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWarehouseAddress_call> resultHandler) throws org.apache.thrift.TException;
1853
    public void getWarehouseAddress(long address_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWarehouseAddress_call> resultHandler) throws org.apache.thrift.TException;
1852
 
1854
 
-
 
1855
    public void getBuyerByWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBuyerByWarehouse_call> resultHandler) throws org.apache.thrift.TException;
-
 
1856
 
1853
    public void markReturnNotRequiredOrdersProcessed(ReturnOrderInfo returnOrderInfo, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markReturnNotRequiredOrdersProcessed_call> resultHandler) throws org.apache.thrift.TException;
1857
    public void markReturnNotRequiredOrdersProcessed(ReturnOrderInfo returnOrderInfo, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markReturnNotRequiredOrdersProcessed_call> resultHandler) throws org.apache.thrift.TException;
1854
 
1858
 
1855
    public void getReturnPickupRequest(long returnPickupId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReturnPickupRequest_call> resultHandler) throws org.apache.thrift.TException;
1859
    public void getReturnPickupRequest(long returnPickupId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReturnPickupRequest_call> resultHandler) throws org.apache.thrift.TException;
1856
 
1860
 
1857
    public void splitReturnOrderInfo(long returnOrderId, long splitOrderQty, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.splitReturnOrderInfo_call> resultHandler) throws org.apache.thrift.TException;
1861
    public void splitReturnOrderInfo(long returnOrderId, long splitOrderQty, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.splitReturnOrderInfo_call> resultHandler) throws org.apache.thrift.TException;
Line 9292... Line 9296...
9292
        return result.success;
9296
        return result.success;
9293
      }
9297
      }
9294
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWarehouseAddress failed: unknown result");
9298
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWarehouseAddress failed: unknown result");
9295
    }
9299
    }
9296
 
9300
 
-
 
9301
    public BuyerInfo getBuyerByWarehouse(long warehouse_id) throws org.apache.thrift.TException
-
 
9302
    {
-
 
9303
      send_getBuyerByWarehouse(warehouse_id);
-
 
9304
      return recv_getBuyerByWarehouse();
-
 
9305
    }
-
 
9306
 
-
 
9307
    public void send_getBuyerByWarehouse(long warehouse_id) throws org.apache.thrift.TException
-
 
9308
    {
-
 
9309
      getBuyerByWarehouse_args args = new getBuyerByWarehouse_args();
-
 
9310
      args.setWarehouse_id(warehouse_id);
-
 
9311
      sendBase("getBuyerByWarehouse", args);
-
 
9312
    }
-
 
9313
 
-
 
9314
    public BuyerInfo recv_getBuyerByWarehouse() throws org.apache.thrift.TException
-
 
9315
    {
-
 
9316
      getBuyerByWarehouse_result result = new getBuyerByWarehouse_result();
-
 
9317
      receiveBase(result, "getBuyerByWarehouse");
-
 
9318
      if (result.isSetSuccess()) {
-
 
9319
        return result.success;
-
 
9320
      }
-
 
9321
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBuyerByWarehouse failed: unknown result");
-
 
9322
    }
-
 
9323
 
9297
    public boolean markReturnNotRequiredOrdersProcessed(ReturnOrderInfo returnOrderInfo) throws TransactionServiceException, org.apache.thrift.TException
9324
    public boolean markReturnNotRequiredOrdersProcessed(ReturnOrderInfo returnOrderInfo) throws TransactionServiceException, org.apache.thrift.TException
9298
    {
9325
    {
9299
      send_markReturnNotRequiredOrdersProcessed(returnOrderInfo);
9326
      send_markReturnNotRequiredOrdersProcessed(returnOrderInfo);
9300
      return recv_markReturnNotRequiredOrdersProcessed();
9327
      return recv_markReturnNotRequiredOrdersProcessed();
9301
    }
9328
    }
Line 19891... Line 19918...
19891
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
19918
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
19892
        return (new Client(prot)).recv_getWarehouseAddress();
19919
        return (new Client(prot)).recv_getWarehouseAddress();
19893
      }
19920
      }
19894
    }
19921
    }
19895
 
19922
 
-
 
19923
    public void getBuyerByWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getBuyerByWarehouse_call> resultHandler) throws org.apache.thrift.TException {
-
 
19924
      checkReady();
-
 
19925
      getBuyerByWarehouse_call method_call = new getBuyerByWarehouse_call(warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
-
 
19926
      this.___currentMethod = method_call;
-
 
19927
      ___manager.call(method_call);
-
 
19928
    }
-
 
19929
 
-
 
19930
    public static class getBuyerByWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
19931
      private long warehouse_id;
-
 
19932
      public getBuyerByWarehouse_call(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getBuyerByWarehouse_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 {
-
 
19933
        super(client, protocolFactory, transport, resultHandler, false);
-
 
19934
        this.warehouse_id = warehouse_id;
-
 
19935
      }
-
 
19936
 
-
 
19937
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
19938
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBuyerByWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
19939
        getBuyerByWarehouse_args args = new getBuyerByWarehouse_args();
-
 
19940
        args.setWarehouse_id(warehouse_id);
-
 
19941
        args.write(prot);
-
 
19942
        prot.writeMessageEnd();
-
 
19943
      }
-
 
19944
 
-
 
19945
      public BuyerInfo getResult() throws org.apache.thrift.TException {
-
 
19946
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
19947
          throw new IllegalStateException("Method call not finished!");
-
 
19948
        }
-
 
19949
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
19950
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
19951
        return (new Client(prot)).recv_getBuyerByWarehouse();
-
 
19952
      }
-
 
19953
    }
-
 
19954
 
19896
    public void markReturnNotRequiredOrdersProcessed(ReturnOrderInfo returnOrderInfo, org.apache.thrift.async.AsyncMethodCallback<markReturnNotRequiredOrdersProcessed_call> resultHandler) throws org.apache.thrift.TException {
19955
    public void markReturnNotRequiredOrdersProcessed(ReturnOrderInfo returnOrderInfo, org.apache.thrift.async.AsyncMethodCallback<markReturnNotRequiredOrdersProcessed_call> resultHandler) throws org.apache.thrift.TException {
19897
      checkReady();
19956
      checkReady();
19898
      markReturnNotRequiredOrdersProcessed_call method_call = new markReturnNotRequiredOrdersProcessed_call(returnOrderInfo, resultHandler, this, ___protocolFactory, ___transport);
19957
      markReturnNotRequiredOrdersProcessed_call method_call = new markReturnNotRequiredOrdersProcessed_call(returnOrderInfo, resultHandler, this, ___protocolFactory, ___transport);
19899
      this.___currentMethod = method_call;
19958
      this.___currentMethod = method_call;
19900
      ___manager.call(method_call);
19959
      ___manager.call(method_call);
Line 20401... Line 20460...
20401
      processMap.put("getEligibleReturnOrdersForPickup", new getEligibleReturnOrdersForPickup());
20460
      processMap.put("getEligibleReturnOrdersForPickup", new getEligibleReturnOrdersForPickup());
20402
      processMap.put("validateReturnTransaction", new validateReturnTransaction());
20461
      processMap.put("validateReturnTransaction", new validateReturnTransaction());
20403
      processMap.put("getPendingStoreOrders", new getPendingStoreOrders());
20462
      processMap.put("getPendingStoreOrders", new getPendingStoreOrders());
20404
      processMap.put("getSellerInfo", new getSellerInfo());
20463
      processMap.put("getSellerInfo", new getSellerInfo());
20405
      processMap.put("getWarehouseAddress", new getWarehouseAddress());
20464
      processMap.put("getWarehouseAddress", new getWarehouseAddress());
-
 
20465
      processMap.put("getBuyerByWarehouse", new getBuyerByWarehouse());
20406
      processMap.put("markReturnNotRequiredOrdersProcessed", new markReturnNotRequiredOrdersProcessed());
20466
      processMap.put("markReturnNotRequiredOrdersProcessed", new markReturnNotRequiredOrdersProcessed());
20407
      processMap.put("getReturnPickupRequest", new getReturnPickupRequest());
20467
      processMap.put("getReturnPickupRequest", new getReturnPickupRequest());
20408
      processMap.put("splitReturnOrderInfo", new splitReturnOrderInfo());
20468
      processMap.put("splitReturnOrderInfo", new splitReturnOrderInfo());
20409
      processMap.put("deleteReturnOrder", new deleteReturnOrder());
20469
      processMap.put("deleteReturnOrder", new deleteReturnOrder());
20410
      processMap.put("refundReturnOrder", new refundReturnOrder());
20470
      processMap.put("refundReturnOrder", new refundReturnOrder());
Line 25823... Line 25883...
25823
        result.success = iface.getWarehouseAddress(args.address_id);
25883
        result.success = iface.getWarehouseAddress(args.address_id);
25824
        return result;
25884
        return result;
25825
      }
25885
      }
25826
    }
25886
    }
25827
 
25887
 
-
 
25888
    private static class getBuyerByWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBuyerByWarehouse_args> {
-
 
25889
      public getBuyerByWarehouse() {
-
 
25890
        super("getBuyerByWarehouse");
-
 
25891
      }
-
 
25892
 
-
 
25893
      protected getBuyerByWarehouse_args getEmptyArgsInstance() {
-
 
25894
        return new getBuyerByWarehouse_args();
-
 
25895
      }
-
 
25896
 
-
 
25897
      protected getBuyerByWarehouse_result getResult(I iface, getBuyerByWarehouse_args args) throws org.apache.thrift.TException {
-
 
25898
        getBuyerByWarehouse_result result = new getBuyerByWarehouse_result();
-
 
25899
        result.success = iface.getBuyerByWarehouse(args.warehouse_id);
-
 
25900
        return result;
-
 
25901
      }
-
 
25902
    }
-
 
25903
 
25828
    private static class markReturnNotRequiredOrdersProcessed<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markReturnNotRequiredOrdersProcessed_args> {
25904
    private static class markReturnNotRequiredOrdersProcessed<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markReturnNotRequiredOrdersProcessed_args> {
25829
      public markReturnNotRequiredOrdersProcessed() {
25905
      public markReturnNotRequiredOrdersProcessed() {
25830
        super("markReturnNotRequiredOrdersProcessed");
25906
        super("markReturnNotRequiredOrdersProcessed");
25831
      }
25907
      }
25832
 
25908
 
Line 240178... Line 240254...
240178
      boolean first = true;
240254
      boolean first = true;
240179
 
240255
 
240180
      sb.append("success:");
240256
      sb.append("success:");
240181
      if (this.success == null) {
240257
      if (this.success == null) {
240182
        sb.append("null");
240258
        sb.append("null");
-
 
240259
      } else {
-
 
240260
        sb.append(this.success);
-
 
240261
      }
-
 
240262
      first = false;
-
 
240263
      sb.append(")");
-
 
240264
      return sb.toString();
-
 
240265
    }
-
 
240266
 
-
 
240267
    public void validate() throws org.apache.thrift.TException {
-
 
240268
      // check for required fields
-
 
240269
    }
-
 
240270
 
-
 
240271
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
240272
      try {
-
 
240273
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
240274
      } catch (org.apache.thrift.TException te) {
-
 
240275
        throw new java.io.IOException(te);
-
 
240276
      }
-
 
240277
    }
-
 
240278
 
-
 
240279
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
240280
      try {
-
 
240281
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
240282
      } catch (org.apache.thrift.TException te) {
-
 
240283
        throw new java.io.IOException(te);
-
 
240284
      }
-
 
240285
    }
-
 
240286
 
-
 
240287
  }
-
 
240288
 
-
 
240289
  public static class getBuyerByWarehouse_args implements org.apache.thrift.TBase<getBuyerByWarehouse_args, getBuyerByWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
-
 
240290
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBuyerByWarehouse_args");
-
 
240291
 
-
 
240292
    private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouse_id", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
240293
 
-
 
240294
    private long warehouse_id; // required
-
 
240295
 
-
 
240296
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
240297
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
240298
      WAREHOUSE_ID((short)1, "warehouse_id");
-
 
240299
 
-
 
240300
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
240301
 
-
 
240302
      static {
-
 
240303
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
240304
          byName.put(field.getFieldName(), field);
-
 
240305
        }
-
 
240306
      }
-
 
240307
 
-
 
240308
      /**
-
 
240309
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
240310
       */
-
 
240311
      public static _Fields findByThriftId(int fieldId) {
-
 
240312
        switch(fieldId) {
-
 
240313
          case 1: // WAREHOUSE_ID
-
 
240314
            return WAREHOUSE_ID;
-
 
240315
          default:
-
 
240316
            return null;
-
 
240317
        }
-
 
240318
      }
-
 
240319
 
-
 
240320
      /**
-
 
240321
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
240322
       * if it is not found.
-
 
240323
       */
-
 
240324
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
240325
        _Fields fields = findByThriftId(fieldId);
-
 
240326
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
240327
        return fields;
-
 
240328
      }
-
 
240329
 
-
 
240330
      /**
-
 
240331
       * Find the _Fields constant that matches name, or null if its not found.
-
 
240332
       */
-
 
240333
      public static _Fields findByName(String name) {
-
 
240334
        return byName.get(name);
-
 
240335
      }
-
 
240336
 
-
 
240337
      private final short _thriftId;
-
 
240338
      private final String _fieldName;
-
 
240339
 
-
 
240340
      _Fields(short thriftId, String fieldName) {
-
 
240341
        _thriftId = thriftId;
-
 
240342
        _fieldName = fieldName;
-
 
240343
      }
-
 
240344
 
-
 
240345
      public short getThriftFieldId() {
-
 
240346
        return _thriftId;
-
 
240347
      }
-
 
240348
 
-
 
240349
      public String getFieldName() {
-
 
240350
        return _fieldName;
-
 
240351
      }
-
 
240352
    }
-
 
240353
 
-
 
240354
    // isset id assignments
-
 
240355
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
-
 
240356
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
240357
 
-
 
240358
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
240359
    static {
-
 
240360
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
240361
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
240362
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
240363
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
240364
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBuyerByWarehouse_args.class, metaDataMap);
-
 
240365
    }
-
 
240366
 
-
 
240367
    public getBuyerByWarehouse_args() {
-
 
240368
    }
-
 
240369
 
-
 
240370
    public getBuyerByWarehouse_args(
-
 
240371
      long warehouse_id)
-
 
240372
    {
-
 
240373
      this();
-
 
240374
      this.warehouse_id = warehouse_id;
-
 
240375
      setWarehouse_idIsSet(true);
-
 
240376
    }
-
 
240377
 
-
 
240378
    /**
-
 
240379
     * Performs a deep copy on <i>other</i>.
-
 
240380
     */
-
 
240381
    public getBuyerByWarehouse_args(getBuyerByWarehouse_args other) {
-
 
240382
      __isset_bit_vector.clear();
-
 
240383
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
240384
      this.warehouse_id = other.warehouse_id;
-
 
240385
    }
-
 
240386
 
-
 
240387
    public getBuyerByWarehouse_args deepCopy() {
-
 
240388
      return new getBuyerByWarehouse_args(this);
-
 
240389
    }
-
 
240390
 
-
 
240391
    @Override
-
 
240392
    public void clear() {
-
 
240393
      setWarehouse_idIsSet(false);
-
 
240394
      this.warehouse_id = 0;
-
 
240395
    }
-
 
240396
 
-
 
240397
    public long getWarehouse_id() {
-
 
240398
      return this.warehouse_id;
-
 
240399
    }
-
 
240400
 
-
 
240401
    public void setWarehouse_id(long warehouse_id) {
-
 
240402
      this.warehouse_id = warehouse_id;
-
 
240403
      setWarehouse_idIsSet(true);
-
 
240404
    }
-
 
240405
 
-
 
240406
    public void unsetWarehouse_id() {
-
 
240407
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
-
 
240408
    }
-
 
240409
 
-
 
240410
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
-
 
240411
    public boolean isSetWarehouse_id() {
-
 
240412
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
-
 
240413
    }
-
 
240414
 
-
 
240415
    public void setWarehouse_idIsSet(boolean value) {
-
 
240416
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
-
 
240417
    }
-
 
240418
 
-
 
240419
    public void setFieldValue(_Fields field, Object value) {
-
 
240420
      switch (field) {
-
 
240421
      case WAREHOUSE_ID:
-
 
240422
        if (value == null) {
-
 
240423
          unsetWarehouse_id();
-
 
240424
        } else {
-
 
240425
          setWarehouse_id((Long)value);
-
 
240426
        }
-
 
240427
        break;
-
 
240428
 
-
 
240429
      }
-
 
240430
    }
-
 
240431
 
-
 
240432
    public Object getFieldValue(_Fields field) {
-
 
240433
      switch (field) {
-
 
240434
      case WAREHOUSE_ID:
-
 
240435
        return Long.valueOf(getWarehouse_id());
-
 
240436
 
-
 
240437
      }
-
 
240438
      throw new IllegalStateException();
-
 
240439
    }
-
 
240440
 
-
 
240441
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
240442
    public boolean isSet(_Fields field) {
-
 
240443
      if (field == null) {
-
 
240444
        throw new IllegalArgumentException();
-
 
240445
      }
-
 
240446
 
-
 
240447
      switch (field) {
-
 
240448
      case WAREHOUSE_ID:
-
 
240449
        return isSetWarehouse_id();
-
 
240450
      }
-
 
240451
      throw new IllegalStateException();
-
 
240452
    }
-
 
240453
 
-
 
240454
    @Override
-
 
240455
    public boolean equals(Object that) {
-
 
240456
      if (that == null)
-
 
240457
        return false;
-
 
240458
      if (that instanceof getBuyerByWarehouse_args)
-
 
240459
        return this.equals((getBuyerByWarehouse_args)that);
-
 
240460
      return false;
-
 
240461
    }
-
 
240462
 
-
 
240463
    public boolean equals(getBuyerByWarehouse_args that) {
-
 
240464
      if (that == null)
-
 
240465
        return false;
-
 
240466
 
-
 
240467
      boolean this_present_warehouse_id = true;
-
 
240468
      boolean that_present_warehouse_id = true;
-
 
240469
      if (this_present_warehouse_id || that_present_warehouse_id) {
-
 
240470
        if (!(this_present_warehouse_id && that_present_warehouse_id))
-
 
240471
          return false;
-
 
240472
        if (this.warehouse_id != that.warehouse_id)
-
 
240473
          return false;
-
 
240474
      }
-
 
240475
 
-
 
240476
      return true;
-
 
240477
    }
-
 
240478
 
-
 
240479
    @Override
-
 
240480
    public int hashCode() {
-
 
240481
      return 0;
-
 
240482
    }
-
 
240483
 
-
 
240484
    public int compareTo(getBuyerByWarehouse_args other) {
-
 
240485
      if (!getClass().equals(other.getClass())) {
-
 
240486
        return getClass().getName().compareTo(other.getClass().getName());
-
 
240487
      }
-
 
240488
 
-
 
240489
      int lastComparison = 0;
-
 
240490
      getBuyerByWarehouse_args typedOther = (getBuyerByWarehouse_args)other;
-
 
240491
 
-
 
240492
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
-
 
240493
      if (lastComparison != 0) {
-
 
240494
        return lastComparison;
-
 
240495
      }
-
 
240496
      if (isSetWarehouse_id()) {
-
 
240497
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
-
 
240498
        if (lastComparison != 0) {
-
 
240499
          return lastComparison;
-
 
240500
        }
-
 
240501
      }
-
 
240502
      return 0;
-
 
240503
    }
-
 
240504
 
-
 
240505
    public _Fields fieldForId(int fieldId) {
-
 
240506
      return _Fields.findByThriftId(fieldId);
-
 
240507
    }
-
 
240508
 
-
 
240509
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
240510
      org.apache.thrift.protocol.TField field;
-
 
240511
      iprot.readStructBegin();
-
 
240512
      while (true)
-
 
240513
      {
-
 
240514
        field = iprot.readFieldBegin();
-
 
240515
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
240516
          break;
-
 
240517
        }
-
 
240518
        switch (field.id) {
-
 
240519
          case 1: // WAREHOUSE_ID
-
 
240520
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
240521
              this.warehouse_id = iprot.readI64();
-
 
240522
              setWarehouse_idIsSet(true);
-
 
240523
            } else { 
-
 
240524
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
240525
            }
-
 
240526
            break;
-
 
240527
          default:
-
 
240528
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
240529
        }
-
 
240530
        iprot.readFieldEnd();
-
 
240531
      }
-
 
240532
      iprot.readStructEnd();
-
 
240533
      validate();
-
 
240534
    }
-
 
240535
 
-
 
240536
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
240537
      validate();
-
 
240538
 
-
 
240539
      oprot.writeStructBegin(STRUCT_DESC);
-
 
240540
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
-
 
240541
      oprot.writeI64(this.warehouse_id);
-
 
240542
      oprot.writeFieldEnd();
-
 
240543
      oprot.writeFieldStop();
-
 
240544
      oprot.writeStructEnd();
-
 
240545
    }
-
 
240546
 
-
 
240547
    @Override
-
 
240548
    public String toString() {
-
 
240549
      StringBuilder sb = new StringBuilder("getBuyerByWarehouse_args(");
-
 
240550
      boolean first = true;
-
 
240551
 
-
 
240552
      sb.append("warehouse_id:");
-
 
240553
      sb.append(this.warehouse_id);
-
 
240554
      first = false;
-
 
240555
      sb.append(")");
-
 
240556
      return sb.toString();
-
 
240557
    }
-
 
240558
 
-
 
240559
    public void validate() throws org.apache.thrift.TException {
-
 
240560
      // check for required fields
-
 
240561
    }
-
 
240562
 
-
 
240563
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
240564
      try {
-
 
240565
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
240566
      } catch (org.apache.thrift.TException te) {
-
 
240567
        throw new java.io.IOException(te);
-
 
240568
      }
-
 
240569
    }
-
 
240570
 
-
 
240571
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
240572
      try {
-
 
240573
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
240574
        __isset_bit_vector = new BitSet(1);
-
 
240575
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
240576
      } catch (org.apache.thrift.TException te) {
-
 
240577
        throw new java.io.IOException(te);
-
 
240578
      }
-
 
240579
    }
-
 
240580
 
-
 
240581
  }
-
 
240582
 
-
 
240583
  public static class getBuyerByWarehouse_result implements org.apache.thrift.TBase<getBuyerByWarehouse_result, getBuyerByWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
-
 
240584
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBuyerByWarehouse_result");
-
 
240585
 
-
 
240586
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
-
 
240587
 
-
 
240588
    private BuyerInfo success; // required
-
 
240589
 
-
 
240590
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
240591
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
240592
      SUCCESS((short)0, "success");
-
 
240593
 
-
 
240594
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
240595
 
-
 
240596
      static {
-
 
240597
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
240598
          byName.put(field.getFieldName(), field);
-
 
240599
        }
-
 
240600
      }
-
 
240601
 
-
 
240602
      /**
-
 
240603
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
240604
       */
-
 
240605
      public static _Fields findByThriftId(int fieldId) {
-
 
240606
        switch(fieldId) {
-
 
240607
          case 0: // SUCCESS
-
 
240608
            return SUCCESS;
-
 
240609
          default:
-
 
240610
            return null;
-
 
240611
        }
-
 
240612
      }
-
 
240613
 
-
 
240614
      /**
-
 
240615
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
240616
       * if it is not found.
-
 
240617
       */
-
 
240618
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
240619
        _Fields fields = findByThriftId(fieldId);
-
 
240620
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
240621
        return fields;
-
 
240622
      }
-
 
240623
 
-
 
240624
      /**
-
 
240625
       * Find the _Fields constant that matches name, or null if its not found.
-
 
240626
       */
-
 
240627
      public static _Fields findByName(String name) {
-
 
240628
        return byName.get(name);
-
 
240629
      }
-
 
240630
 
-
 
240631
      private final short _thriftId;
-
 
240632
      private final String _fieldName;
-
 
240633
 
-
 
240634
      _Fields(short thriftId, String fieldName) {
-
 
240635
        _thriftId = thriftId;
-
 
240636
        _fieldName = fieldName;
-
 
240637
      }
-
 
240638
 
-
 
240639
      public short getThriftFieldId() {
-
 
240640
        return _thriftId;
-
 
240641
      }
-
 
240642
 
-
 
240643
      public String getFieldName() {
-
 
240644
        return _fieldName;
-
 
240645
      }
-
 
240646
    }
-
 
240647
 
-
 
240648
    // isset id assignments
-
 
240649
 
-
 
240650
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
240651
    static {
-
 
240652
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
240653
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
240654
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BuyerInfo.class)));
-
 
240655
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
240656
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBuyerByWarehouse_result.class, metaDataMap);
-
 
240657
    }
-
 
240658
 
-
 
240659
    public getBuyerByWarehouse_result() {
-
 
240660
    }
-
 
240661
 
-
 
240662
    public getBuyerByWarehouse_result(
-
 
240663
      BuyerInfo success)
-
 
240664
    {
-
 
240665
      this();
-
 
240666
      this.success = success;
-
 
240667
    }
-
 
240668
 
-
 
240669
    /**
-
 
240670
     * Performs a deep copy on <i>other</i>.
-
 
240671
     */
-
 
240672
    public getBuyerByWarehouse_result(getBuyerByWarehouse_result other) {
-
 
240673
      if (other.isSetSuccess()) {
-
 
240674
        this.success = new BuyerInfo(other.success);
-
 
240675
      }
-
 
240676
    }
-
 
240677
 
-
 
240678
    public getBuyerByWarehouse_result deepCopy() {
-
 
240679
      return new getBuyerByWarehouse_result(this);
-
 
240680
    }
-
 
240681
 
-
 
240682
    @Override
-
 
240683
    public void clear() {
-
 
240684
      this.success = null;
-
 
240685
    }
-
 
240686
 
-
 
240687
    public BuyerInfo getSuccess() {
-
 
240688
      return this.success;
-
 
240689
    }
-
 
240690
 
-
 
240691
    public void setSuccess(BuyerInfo success) {
-
 
240692
      this.success = success;
-
 
240693
    }
-
 
240694
 
-
 
240695
    public void unsetSuccess() {
-
 
240696
      this.success = null;
-
 
240697
    }
-
 
240698
 
-
 
240699
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
240700
    public boolean isSetSuccess() {
-
 
240701
      return this.success != null;
-
 
240702
    }
-
 
240703
 
-
 
240704
    public void setSuccessIsSet(boolean value) {
-
 
240705
      if (!value) {
-
 
240706
        this.success = null;
-
 
240707
      }
-
 
240708
    }
-
 
240709
 
-
 
240710
    public void setFieldValue(_Fields field, Object value) {
-
 
240711
      switch (field) {
-
 
240712
      case SUCCESS:
-
 
240713
        if (value == null) {
-
 
240714
          unsetSuccess();
-
 
240715
        } else {
-
 
240716
          setSuccess((BuyerInfo)value);
-
 
240717
        }
-
 
240718
        break;
-
 
240719
 
-
 
240720
      }
-
 
240721
    }
-
 
240722
 
-
 
240723
    public Object getFieldValue(_Fields field) {
-
 
240724
      switch (field) {
-
 
240725
      case SUCCESS:
-
 
240726
        return getSuccess();
-
 
240727
 
-
 
240728
      }
-
 
240729
      throw new IllegalStateException();
-
 
240730
    }
-
 
240731
 
-
 
240732
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
240733
    public boolean isSet(_Fields field) {
-
 
240734
      if (field == null) {
-
 
240735
        throw new IllegalArgumentException();
-
 
240736
      }
-
 
240737
 
-
 
240738
      switch (field) {
-
 
240739
      case SUCCESS:
-
 
240740
        return isSetSuccess();
-
 
240741
      }
-
 
240742
      throw new IllegalStateException();
-
 
240743
    }
-
 
240744
 
-
 
240745
    @Override
-
 
240746
    public boolean equals(Object that) {
-
 
240747
      if (that == null)
-
 
240748
        return false;
-
 
240749
      if (that instanceof getBuyerByWarehouse_result)
-
 
240750
        return this.equals((getBuyerByWarehouse_result)that);
-
 
240751
      return false;
-
 
240752
    }
-
 
240753
 
-
 
240754
    public boolean equals(getBuyerByWarehouse_result that) {
-
 
240755
      if (that == null)
-
 
240756
        return false;
-
 
240757
 
-
 
240758
      boolean this_present_success = true && this.isSetSuccess();
-
 
240759
      boolean that_present_success = true && that.isSetSuccess();
-
 
240760
      if (this_present_success || that_present_success) {
-
 
240761
        if (!(this_present_success && that_present_success))
-
 
240762
          return false;
-
 
240763
        if (!this.success.equals(that.success))
-
 
240764
          return false;
-
 
240765
      }
-
 
240766
 
-
 
240767
      return true;
-
 
240768
    }
-
 
240769
 
-
 
240770
    @Override
-
 
240771
    public int hashCode() {
-
 
240772
      return 0;
-
 
240773
    }
-
 
240774
 
-
 
240775
    public int compareTo(getBuyerByWarehouse_result other) {
-
 
240776
      if (!getClass().equals(other.getClass())) {
-
 
240777
        return getClass().getName().compareTo(other.getClass().getName());
-
 
240778
      }
-
 
240779
 
-
 
240780
      int lastComparison = 0;
-
 
240781
      getBuyerByWarehouse_result typedOther = (getBuyerByWarehouse_result)other;
-
 
240782
 
-
 
240783
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
240784
      if (lastComparison != 0) {
-
 
240785
        return lastComparison;
-
 
240786
      }
-
 
240787
      if (isSetSuccess()) {
-
 
240788
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
240789
        if (lastComparison != 0) {
-
 
240790
          return lastComparison;
-
 
240791
        }
-
 
240792
      }
-
 
240793
      return 0;
-
 
240794
    }
-
 
240795
 
-
 
240796
    public _Fields fieldForId(int fieldId) {
-
 
240797
      return _Fields.findByThriftId(fieldId);
-
 
240798
    }
-
 
240799
 
-
 
240800
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
240801
      org.apache.thrift.protocol.TField field;
-
 
240802
      iprot.readStructBegin();
-
 
240803
      while (true)
-
 
240804
      {
-
 
240805
        field = iprot.readFieldBegin();
-
 
240806
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
240807
          break;
-
 
240808
        }
-
 
240809
        switch (field.id) {
-
 
240810
          case 0: // SUCCESS
-
 
240811
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
240812
              this.success = new BuyerInfo();
-
 
240813
              this.success.read(iprot);
-
 
240814
            } else { 
-
 
240815
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
240816
            }
-
 
240817
            break;
-
 
240818
          default:
-
 
240819
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
240820
        }
-
 
240821
        iprot.readFieldEnd();
-
 
240822
      }
-
 
240823
      iprot.readStructEnd();
-
 
240824
      validate();
-
 
240825
    }
-
 
240826
 
-
 
240827
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
240828
      oprot.writeStructBegin(STRUCT_DESC);
-
 
240829
 
-
 
240830
      if (this.isSetSuccess()) {
-
 
240831
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
240832
        this.success.write(oprot);
-
 
240833
        oprot.writeFieldEnd();
-
 
240834
      }
-
 
240835
      oprot.writeFieldStop();
-
 
240836
      oprot.writeStructEnd();
-
 
240837
    }
-
 
240838
 
-
 
240839
    @Override
-
 
240840
    public String toString() {
-
 
240841
      StringBuilder sb = new StringBuilder("getBuyerByWarehouse_result(");
-
 
240842
      boolean first = true;
-
 
240843
 
-
 
240844
      sb.append("success:");
-
 
240845
      if (this.success == null) {
-
 
240846
        sb.append("null");
240183
      } else {
240847
      } else {
240184
        sb.append(this.success);
240848
        sb.append(this.success);
240185
      }
240849
      }
240186
      first = false;
240850
      first = false;
240187
      sb.append(")");
240851
      sb.append(")");