Subversion Repositories SmartDukaan

Rev

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

Rev 19980 Rev 20025
Line 1238... Line 1238...
1238
 
1238
 
1239
    public SellerInfo getSellerInfo(long sellerId) throws org.apache.thrift.TException;
1239
    public SellerInfo getSellerInfo(long sellerId) throws org.apache.thrift.TException;
1240
 
1240
 
1241
    public WarehouseAddress getWarehouseAddress(long address_id) throws org.apache.thrift.TException;
1241
    public WarehouseAddress getWarehouseAddress(long address_id) throws org.apache.thrift.TException;
1242
 
1242
 
-
 
1243
    public BuyerInfo getBuyerByWarehouse(long warehouse_id) throws org.apache.thrift.TException;
-
 
1244
 
1243
  }
1245
  }
1244
 
1246
 
1245
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1247
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1246
 
1248
 
1247
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
1249
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1844... Line 1846...
1844
 
1846
 
1845
    public void getSellerInfo(long sellerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSellerInfo_call> resultHandler) throws org.apache.thrift.TException;
1847
    public void getSellerInfo(long sellerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSellerInfo_call> resultHandler) throws org.apache.thrift.TException;
1846
 
1848
 
1847
    public void getWarehouseAddress(long address_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWarehouseAddress_call> resultHandler) throws org.apache.thrift.TException;
1849
    public void getWarehouseAddress(long address_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWarehouseAddress_call> resultHandler) throws org.apache.thrift.TException;
1848
 
1850
 
-
 
1851
    public void getBuyerByWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBuyerByWarehouse_call> resultHandler) throws org.apache.thrift.TException;
-
 
1852
 
1849
  }
1853
  }
1850
 
1854
 
1851
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1855
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1852
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1856
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1853
      public Factory() {}
1857
      public Factory() {}
Line 9325... Line 9329...
9325
        return result.success;
9329
        return result.success;
9326
      }
9330
      }
9327
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWarehouseAddress failed: unknown result");
9331
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWarehouseAddress failed: unknown result");
9328
    }
9332
    }
9329
 
9333
 
-
 
9334
    public BuyerInfo getBuyerByWarehouse(long warehouse_id) throws org.apache.thrift.TException
-
 
9335
    {
-
 
9336
      send_getBuyerByWarehouse(warehouse_id);
-
 
9337
      return recv_getBuyerByWarehouse();
-
 
9338
    }
-
 
9339
 
-
 
9340
    public void send_getBuyerByWarehouse(long warehouse_id) throws org.apache.thrift.TException
-
 
9341
    {
-
 
9342
      getBuyerByWarehouse_args args = new getBuyerByWarehouse_args();
-
 
9343
      args.setWarehouse_id(warehouse_id);
-
 
9344
      sendBase("getBuyerByWarehouse", args);
-
 
9345
    }
-
 
9346
 
-
 
9347
    public BuyerInfo recv_getBuyerByWarehouse() throws org.apache.thrift.TException
-
 
9348
    {
-
 
9349
      getBuyerByWarehouse_result result = new getBuyerByWarehouse_result();
-
 
9350
      receiveBase(result, "getBuyerByWarehouse");
-
 
9351
      if (result.isSetSuccess()) {
-
 
9352
        return result.success;
-
 
9353
      }
-
 
9354
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBuyerByWarehouse failed: unknown result");
-
 
9355
    }
-
 
9356
 
9330
  }
9357
  }
9331
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
9358
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
9332
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
9359
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
9333
      private org.apache.thrift.async.TAsyncClientManager clientManager;
9360
      private org.apache.thrift.async.TAsyncClientManager clientManager;
9334
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
9361
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 19845... Line 19872...
19845
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
19872
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
19846
        return (new Client(prot)).recv_getWarehouseAddress();
19873
        return (new Client(prot)).recv_getWarehouseAddress();
19847
      }
19874
      }
19848
    }
19875
    }
19849
 
19876
 
-
 
19877
    public void getBuyerByWarehouse(long warehouse_id, org.apache.thrift.async.AsyncMethodCallback<getBuyerByWarehouse_call> resultHandler) throws org.apache.thrift.TException {
-
 
19878
      checkReady();
-
 
19879
      getBuyerByWarehouse_call method_call = new getBuyerByWarehouse_call(warehouse_id, resultHandler, this, ___protocolFactory, ___transport);
-
 
19880
      this.___currentMethod = method_call;
-
 
19881
      ___manager.call(method_call);
-
 
19882
    }
-
 
19883
 
-
 
19884
    public static class getBuyerByWarehouse_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
19885
      private long warehouse_id;
-
 
19886
      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 {
-
 
19887
        super(client, protocolFactory, transport, resultHandler, false);
-
 
19888
        this.warehouse_id = warehouse_id;
-
 
19889
      }
-
 
19890
 
-
 
19891
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
19892
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBuyerByWarehouse", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
19893
        getBuyerByWarehouse_args args = new getBuyerByWarehouse_args();
-
 
19894
        args.setWarehouse_id(warehouse_id);
-
 
19895
        args.write(prot);
-
 
19896
        prot.writeMessageEnd();
-
 
19897
      }
-
 
19898
 
-
 
19899
      public BuyerInfo getResult() throws org.apache.thrift.TException {
-
 
19900
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
19901
          throw new IllegalStateException("Method call not finished!");
-
 
19902
        }
-
 
19903
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
19904
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
19905
        return (new Client(prot)).recv_getBuyerByWarehouse();
-
 
19906
      }
-
 
19907
    }
-
 
19908
 
19850
  }
19909
  }
19851
 
19910
 
19852
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
19911
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
19853
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
19912
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
19854
    public Processor(I iface) {
19913
    public Processor(I iface) {
Line 20159... Line 20218...
20159
      processMap.put("markReturnNotRequiredOrdersProcessed", new markReturnNotRequiredOrdersProcessed());
20218
      processMap.put("markReturnNotRequiredOrdersProcessed", new markReturnNotRequiredOrdersProcessed());
20160
      processMap.put("getReturnPickupRequest", new getReturnPickupRequest());
20219
      processMap.put("getReturnPickupRequest", new getReturnPickupRequest());
20161
      processMap.put("getPendingStoreOrders", new getPendingStoreOrders());
20220
      processMap.put("getPendingStoreOrders", new getPendingStoreOrders());
20162
      processMap.put("getSellerInfo", new getSellerInfo());
20221
      processMap.put("getSellerInfo", new getSellerInfo());
20163
      processMap.put("getWarehouseAddress", new getWarehouseAddress());
20222
      processMap.put("getWarehouseAddress", new getWarehouseAddress());
-
 
20223
      processMap.put("getBuyerByWarehouse", new getBuyerByWarehouse());
20164
      return processMap;
20224
      return processMap;
20165
    }
20225
    }
20166
 
20226
 
20167
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
20227
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
20168
      public createTransaction() {
20228
      public createTransaction() {
Line 25612... Line 25672...
25612
        result.success = iface.getWarehouseAddress(args.address_id);
25672
        result.success = iface.getWarehouseAddress(args.address_id);
25613
        return result;
25673
        return result;
25614
      }
25674
      }
25615
    }
25675
    }
25616
 
25676
 
-
 
25677
    private static class getBuyerByWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBuyerByWarehouse_args> {
-
 
25678
      public getBuyerByWarehouse() {
-
 
25679
        super("getBuyerByWarehouse");
-
 
25680
      }
-
 
25681
 
-
 
25682
      protected getBuyerByWarehouse_args getEmptyArgsInstance() {
-
 
25683
        return new getBuyerByWarehouse_args();
-
 
25684
      }
-
 
25685
 
-
 
25686
      protected getBuyerByWarehouse_result getResult(I iface, getBuyerByWarehouse_args args) throws org.apache.thrift.TException {
-
 
25687
        getBuyerByWarehouse_result result = new getBuyerByWarehouse_result();
-
 
25688
        result.success = iface.getBuyerByWarehouse(args.warehouse_id);
-
 
25689
        return result;
-
 
25690
      }
-
 
25691
    }
-
 
25692
 
25617
  }
25693
  }
25618
 
25694
 
25619
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
25695
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
25620
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
25696
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
25621
 
25697
 
Line 241169... Line 241245...
241169
      boolean first = true;
241245
      boolean first = true;
241170
 
241246
 
241171
      sb.append("success:");
241247
      sb.append("success:");
241172
      if (this.success == null) {
241248
      if (this.success == null) {
241173
        sb.append("null");
241249
        sb.append("null");
-
 
241250
      } else {
-
 
241251
        sb.append(this.success);
-
 
241252
      }
-
 
241253
      first = false;
-
 
241254
      sb.append(")");
-
 
241255
      return sb.toString();
-
 
241256
    }
-
 
241257
 
-
 
241258
    public void validate() throws org.apache.thrift.TException {
-
 
241259
      // check for required fields
-
 
241260
    }
-
 
241261
 
-
 
241262
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
241263
      try {
-
 
241264
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
241265
      } catch (org.apache.thrift.TException te) {
-
 
241266
        throw new java.io.IOException(te);
-
 
241267
      }
-
 
241268
    }
-
 
241269
 
-
 
241270
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
241271
      try {
-
 
241272
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
241273
      } catch (org.apache.thrift.TException te) {
-
 
241274
        throw new java.io.IOException(te);
-
 
241275
      }
-
 
241276
    }
-
 
241277
 
-
 
241278
  }
-
 
241279
 
-
 
241280
  public static class getBuyerByWarehouse_args implements org.apache.thrift.TBase<getBuyerByWarehouse_args, getBuyerByWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
-
 
241281
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBuyerByWarehouse_args");
-
 
241282
 
-
 
241283
    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);
-
 
241284
 
-
 
241285
    private long warehouse_id; // required
-
 
241286
 
-
 
241287
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
241288
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
241289
      WAREHOUSE_ID((short)1, "warehouse_id");
-
 
241290
 
-
 
241291
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
241292
 
-
 
241293
      static {
-
 
241294
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
241295
          byName.put(field.getFieldName(), field);
-
 
241296
        }
-
 
241297
      }
-
 
241298
 
-
 
241299
      /**
-
 
241300
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
241301
       */
-
 
241302
      public static _Fields findByThriftId(int fieldId) {
-
 
241303
        switch(fieldId) {
-
 
241304
          case 1: // WAREHOUSE_ID
-
 
241305
            return WAREHOUSE_ID;
-
 
241306
          default:
-
 
241307
            return null;
-
 
241308
        }
-
 
241309
      }
-
 
241310
 
-
 
241311
      /**
-
 
241312
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
241313
       * if it is not found.
-
 
241314
       */
-
 
241315
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
241316
        _Fields fields = findByThriftId(fieldId);
-
 
241317
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
241318
        return fields;
-
 
241319
      }
-
 
241320
 
-
 
241321
      /**
-
 
241322
       * Find the _Fields constant that matches name, or null if its not found.
-
 
241323
       */
-
 
241324
      public static _Fields findByName(String name) {
-
 
241325
        return byName.get(name);
-
 
241326
      }
-
 
241327
 
-
 
241328
      private final short _thriftId;
-
 
241329
      private final String _fieldName;
-
 
241330
 
-
 
241331
      _Fields(short thriftId, String fieldName) {
-
 
241332
        _thriftId = thriftId;
-
 
241333
        _fieldName = fieldName;
-
 
241334
      }
-
 
241335
 
-
 
241336
      public short getThriftFieldId() {
-
 
241337
        return _thriftId;
-
 
241338
      }
-
 
241339
 
-
 
241340
      public String getFieldName() {
-
 
241341
        return _fieldName;
-
 
241342
      }
-
 
241343
    }
-
 
241344
 
-
 
241345
    // isset id assignments
-
 
241346
    private static final int __WAREHOUSE_ID_ISSET_ID = 0;
-
 
241347
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
241348
 
-
 
241349
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
241350
    static {
-
 
241351
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
241352
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
241353
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
241354
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
241355
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBuyerByWarehouse_args.class, metaDataMap);
-
 
241356
    }
-
 
241357
 
-
 
241358
    public getBuyerByWarehouse_args() {
-
 
241359
    }
-
 
241360
 
-
 
241361
    public getBuyerByWarehouse_args(
-
 
241362
      long warehouse_id)
-
 
241363
    {
-
 
241364
      this();
-
 
241365
      this.warehouse_id = warehouse_id;
-
 
241366
      setWarehouse_idIsSet(true);
-
 
241367
    }
-
 
241368
 
-
 
241369
    /**
-
 
241370
     * Performs a deep copy on <i>other</i>.
-
 
241371
     */
-
 
241372
    public getBuyerByWarehouse_args(getBuyerByWarehouse_args other) {
-
 
241373
      __isset_bit_vector.clear();
-
 
241374
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
241375
      this.warehouse_id = other.warehouse_id;
-
 
241376
    }
-
 
241377
 
-
 
241378
    public getBuyerByWarehouse_args deepCopy() {
-
 
241379
      return new getBuyerByWarehouse_args(this);
-
 
241380
    }
-
 
241381
 
-
 
241382
    @Override
-
 
241383
    public void clear() {
-
 
241384
      setWarehouse_idIsSet(false);
-
 
241385
      this.warehouse_id = 0;
-
 
241386
    }
-
 
241387
 
-
 
241388
    public long getWarehouse_id() {
-
 
241389
      return this.warehouse_id;
-
 
241390
    }
-
 
241391
 
-
 
241392
    public void setWarehouse_id(long warehouse_id) {
-
 
241393
      this.warehouse_id = warehouse_id;
-
 
241394
      setWarehouse_idIsSet(true);
-
 
241395
    }
-
 
241396
 
-
 
241397
    public void unsetWarehouse_id() {
-
 
241398
      __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
-
 
241399
    }
-
 
241400
 
-
 
241401
    /** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */
-
 
241402
    public boolean isSetWarehouse_id() {
-
 
241403
      return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
-
 
241404
    }
-
 
241405
 
-
 
241406
    public void setWarehouse_idIsSet(boolean value) {
-
 
241407
      __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
-
 
241408
    }
-
 
241409
 
-
 
241410
    public void setFieldValue(_Fields field, Object value) {
-
 
241411
      switch (field) {
-
 
241412
      case WAREHOUSE_ID:
-
 
241413
        if (value == null) {
-
 
241414
          unsetWarehouse_id();
-
 
241415
        } else {
-
 
241416
          setWarehouse_id((Long)value);
-
 
241417
        }
-
 
241418
        break;
-
 
241419
 
-
 
241420
      }
-
 
241421
    }
-
 
241422
 
-
 
241423
    public Object getFieldValue(_Fields field) {
-
 
241424
      switch (field) {
-
 
241425
      case WAREHOUSE_ID:
-
 
241426
        return Long.valueOf(getWarehouse_id());
-
 
241427
 
-
 
241428
      }
-
 
241429
      throw new IllegalStateException();
-
 
241430
    }
-
 
241431
 
-
 
241432
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
241433
    public boolean isSet(_Fields field) {
-
 
241434
      if (field == null) {
-
 
241435
        throw new IllegalArgumentException();
-
 
241436
      }
-
 
241437
 
-
 
241438
      switch (field) {
-
 
241439
      case WAREHOUSE_ID:
-
 
241440
        return isSetWarehouse_id();
-
 
241441
      }
-
 
241442
      throw new IllegalStateException();
-
 
241443
    }
-
 
241444
 
-
 
241445
    @Override
-
 
241446
    public boolean equals(Object that) {
-
 
241447
      if (that == null)
-
 
241448
        return false;
-
 
241449
      if (that instanceof getBuyerByWarehouse_args)
-
 
241450
        return this.equals((getBuyerByWarehouse_args)that);
-
 
241451
      return false;
-
 
241452
    }
-
 
241453
 
-
 
241454
    public boolean equals(getBuyerByWarehouse_args that) {
-
 
241455
      if (that == null)
-
 
241456
        return false;
-
 
241457
 
-
 
241458
      boolean this_present_warehouse_id = true;
-
 
241459
      boolean that_present_warehouse_id = true;
-
 
241460
      if (this_present_warehouse_id || that_present_warehouse_id) {
-
 
241461
        if (!(this_present_warehouse_id && that_present_warehouse_id))
-
 
241462
          return false;
-
 
241463
        if (this.warehouse_id != that.warehouse_id)
-
 
241464
          return false;
-
 
241465
      }
-
 
241466
 
-
 
241467
      return true;
-
 
241468
    }
-
 
241469
 
-
 
241470
    @Override
-
 
241471
    public int hashCode() {
-
 
241472
      return 0;
-
 
241473
    }
-
 
241474
 
-
 
241475
    public int compareTo(getBuyerByWarehouse_args other) {
-
 
241476
      if (!getClass().equals(other.getClass())) {
-
 
241477
        return getClass().getName().compareTo(other.getClass().getName());
-
 
241478
      }
-
 
241479
 
-
 
241480
      int lastComparison = 0;
-
 
241481
      getBuyerByWarehouse_args typedOther = (getBuyerByWarehouse_args)other;
-
 
241482
 
-
 
241483
      lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());
-
 
241484
      if (lastComparison != 0) {
-
 
241485
        return lastComparison;
-
 
241486
      }
-
 
241487
      if (isSetWarehouse_id()) {
-
 
241488
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);
-
 
241489
        if (lastComparison != 0) {
-
 
241490
          return lastComparison;
-
 
241491
        }
-
 
241492
      }
-
 
241493
      return 0;
-
 
241494
    }
-
 
241495
 
-
 
241496
    public _Fields fieldForId(int fieldId) {
-
 
241497
      return _Fields.findByThriftId(fieldId);
-
 
241498
    }
-
 
241499
 
-
 
241500
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
241501
      org.apache.thrift.protocol.TField field;
-
 
241502
      iprot.readStructBegin();
-
 
241503
      while (true)
-
 
241504
      {
-
 
241505
        field = iprot.readFieldBegin();
-
 
241506
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
241507
          break;
-
 
241508
        }
-
 
241509
        switch (field.id) {
-
 
241510
          case 1: // WAREHOUSE_ID
-
 
241511
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
241512
              this.warehouse_id = iprot.readI64();
-
 
241513
              setWarehouse_idIsSet(true);
-
 
241514
            } else { 
-
 
241515
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
241516
            }
-
 
241517
            break;
-
 
241518
          default:
-
 
241519
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
241520
        }
-
 
241521
        iprot.readFieldEnd();
-
 
241522
      }
-
 
241523
      iprot.readStructEnd();
-
 
241524
      validate();
-
 
241525
    }
-
 
241526
 
-
 
241527
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
241528
      validate();
-
 
241529
 
-
 
241530
      oprot.writeStructBegin(STRUCT_DESC);
-
 
241531
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
-
 
241532
      oprot.writeI64(this.warehouse_id);
-
 
241533
      oprot.writeFieldEnd();
-
 
241534
      oprot.writeFieldStop();
-
 
241535
      oprot.writeStructEnd();
-
 
241536
    }
-
 
241537
 
-
 
241538
    @Override
-
 
241539
    public String toString() {
-
 
241540
      StringBuilder sb = new StringBuilder("getBuyerByWarehouse_args(");
-
 
241541
      boolean first = true;
-
 
241542
 
-
 
241543
      sb.append("warehouse_id:");
-
 
241544
      sb.append(this.warehouse_id);
-
 
241545
      first = false;
-
 
241546
      sb.append(")");
-
 
241547
      return sb.toString();
-
 
241548
    }
-
 
241549
 
-
 
241550
    public void validate() throws org.apache.thrift.TException {
-
 
241551
      // check for required fields
-
 
241552
    }
-
 
241553
 
-
 
241554
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
241555
      try {
-
 
241556
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
241557
      } catch (org.apache.thrift.TException te) {
-
 
241558
        throw new java.io.IOException(te);
-
 
241559
      }
-
 
241560
    }
-
 
241561
 
-
 
241562
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
241563
      try {
-
 
241564
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
241565
        __isset_bit_vector = new BitSet(1);
-
 
241566
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
241567
      } catch (org.apache.thrift.TException te) {
-
 
241568
        throw new java.io.IOException(te);
-
 
241569
      }
-
 
241570
    }
-
 
241571
 
-
 
241572
  }
-
 
241573
 
-
 
241574
  public static class getBuyerByWarehouse_result implements org.apache.thrift.TBase<getBuyerByWarehouse_result, getBuyerByWarehouse_result._Fields>, java.io.Serializable, Cloneable   {
-
 
241575
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBuyerByWarehouse_result");
-
 
241576
 
-
 
241577
    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);
-
 
241578
 
-
 
241579
    private BuyerInfo success; // required
-
 
241580
 
-
 
241581
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
241582
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
241583
      SUCCESS((short)0, "success");
-
 
241584
 
-
 
241585
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
241586
 
-
 
241587
      static {
-
 
241588
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
241589
          byName.put(field.getFieldName(), field);
-
 
241590
        }
-
 
241591
      }
-
 
241592
 
-
 
241593
      /**
-
 
241594
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
241595
       */
-
 
241596
      public static _Fields findByThriftId(int fieldId) {
-
 
241597
        switch(fieldId) {
-
 
241598
          case 0: // SUCCESS
-
 
241599
            return SUCCESS;
-
 
241600
          default:
-
 
241601
            return null;
-
 
241602
        }
-
 
241603
      }
-
 
241604
 
-
 
241605
      /**
-
 
241606
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
241607
       * if it is not found.
-
 
241608
       */
-
 
241609
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
241610
        _Fields fields = findByThriftId(fieldId);
-
 
241611
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
241612
        return fields;
-
 
241613
      }
-
 
241614
 
-
 
241615
      /**
-
 
241616
       * Find the _Fields constant that matches name, or null if its not found.
-
 
241617
       */
-
 
241618
      public static _Fields findByName(String name) {
-
 
241619
        return byName.get(name);
-
 
241620
      }
-
 
241621
 
-
 
241622
      private final short _thriftId;
-
 
241623
      private final String _fieldName;
-
 
241624
 
-
 
241625
      _Fields(short thriftId, String fieldName) {
-
 
241626
        _thriftId = thriftId;
-
 
241627
        _fieldName = fieldName;
-
 
241628
      }
-
 
241629
 
-
 
241630
      public short getThriftFieldId() {
-
 
241631
        return _thriftId;
-
 
241632
      }
-
 
241633
 
-
 
241634
      public String getFieldName() {
-
 
241635
        return _fieldName;
-
 
241636
      }
-
 
241637
    }
-
 
241638
 
-
 
241639
    // isset id assignments
-
 
241640
 
-
 
241641
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
241642
    static {
-
 
241643
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
241644
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
241645
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BuyerInfo.class)));
-
 
241646
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
241647
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBuyerByWarehouse_result.class, metaDataMap);
-
 
241648
    }
-
 
241649
 
-
 
241650
    public getBuyerByWarehouse_result() {
-
 
241651
    }
-
 
241652
 
-
 
241653
    public getBuyerByWarehouse_result(
-
 
241654
      BuyerInfo success)
-
 
241655
    {
-
 
241656
      this();
-
 
241657
      this.success = success;
-
 
241658
    }
-
 
241659
 
-
 
241660
    /**
-
 
241661
     * Performs a deep copy on <i>other</i>.
-
 
241662
     */
-
 
241663
    public getBuyerByWarehouse_result(getBuyerByWarehouse_result other) {
-
 
241664
      if (other.isSetSuccess()) {
-
 
241665
        this.success = new BuyerInfo(other.success);
-
 
241666
      }
-
 
241667
    }
-
 
241668
 
-
 
241669
    public getBuyerByWarehouse_result deepCopy() {
-
 
241670
      return new getBuyerByWarehouse_result(this);
-
 
241671
    }
-
 
241672
 
-
 
241673
    @Override
-
 
241674
    public void clear() {
-
 
241675
      this.success = null;
-
 
241676
    }
-
 
241677
 
-
 
241678
    public BuyerInfo getSuccess() {
-
 
241679
      return this.success;
-
 
241680
    }
-
 
241681
 
-
 
241682
    public void setSuccess(BuyerInfo success) {
-
 
241683
      this.success = success;
-
 
241684
    }
-
 
241685
 
-
 
241686
    public void unsetSuccess() {
-
 
241687
      this.success = null;
-
 
241688
    }
-
 
241689
 
-
 
241690
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
241691
    public boolean isSetSuccess() {
-
 
241692
      return this.success != null;
-
 
241693
    }
-
 
241694
 
-
 
241695
    public void setSuccessIsSet(boolean value) {
-
 
241696
      if (!value) {
-
 
241697
        this.success = null;
-
 
241698
      }
-
 
241699
    }
-
 
241700
 
-
 
241701
    public void setFieldValue(_Fields field, Object value) {
-
 
241702
      switch (field) {
-
 
241703
      case SUCCESS:
-
 
241704
        if (value == null) {
-
 
241705
          unsetSuccess();
-
 
241706
        } else {
-
 
241707
          setSuccess((BuyerInfo)value);
-
 
241708
        }
-
 
241709
        break;
-
 
241710
 
-
 
241711
      }
-
 
241712
    }
-
 
241713
 
-
 
241714
    public Object getFieldValue(_Fields field) {
-
 
241715
      switch (field) {
-
 
241716
      case SUCCESS:
-
 
241717
        return getSuccess();
-
 
241718
 
-
 
241719
      }
-
 
241720
      throw new IllegalStateException();
-
 
241721
    }
-
 
241722
 
-
 
241723
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
241724
    public boolean isSet(_Fields field) {
-
 
241725
      if (field == null) {
-
 
241726
        throw new IllegalArgumentException();
-
 
241727
      }
-
 
241728
 
-
 
241729
      switch (field) {
-
 
241730
      case SUCCESS:
-
 
241731
        return isSetSuccess();
-
 
241732
      }
-
 
241733
      throw new IllegalStateException();
-
 
241734
    }
-
 
241735
 
-
 
241736
    @Override
-
 
241737
    public boolean equals(Object that) {
-
 
241738
      if (that == null)
-
 
241739
        return false;
-
 
241740
      if (that instanceof getBuyerByWarehouse_result)
-
 
241741
        return this.equals((getBuyerByWarehouse_result)that);
-
 
241742
      return false;
-
 
241743
    }
-
 
241744
 
-
 
241745
    public boolean equals(getBuyerByWarehouse_result that) {
-
 
241746
      if (that == null)
-
 
241747
        return false;
-
 
241748
 
-
 
241749
      boolean this_present_success = true && this.isSetSuccess();
-
 
241750
      boolean that_present_success = true && that.isSetSuccess();
-
 
241751
      if (this_present_success || that_present_success) {
-
 
241752
        if (!(this_present_success && that_present_success))
-
 
241753
          return false;
-
 
241754
        if (!this.success.equals(that.success))
-
 
241755
          return false;
-
 
241756
      }
-
 
241757
 
-
 
241758
      return true;
-
 
241759
    }
-
 
241760
 
-
 
241761
    @Override
-
 
241762
    public int hashCode() {
-
 
241763
      return 0;
-
 
241764
    }
-
 
241765
 
-
 
241766
    public int compareTo(getBuyerByWarehouse_result other) {
-
 
241767
      if (!getClass().equals(other.getClass())) {
-
 
241768
        return getClass().getName().compareTo(other.getClass().getName());
-
 
241769
      }
-
 
241770
 
-
 
241771
      int lastComparison = 0;
-
 
241772
      getBuyerByWarehouse_result typedOther = (getBuyerByWarehouse_result)other;
-
 
241773
 
-
 
241774
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
241775
      if (lastComparison != 0) {
-
 
241776
        return lastComparison;
-
 
241777
      }
-
 
241778
      if (isSetSuccess()) {
-
 
241779
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
241780
        if (lastComparison != 0) {
-
 
241781
          return lastComparison;
-
 
241782
        }
-
 
241783
      }
-
 
241784
      return 0;
-
 
241785
    }
-
 
241786
 
-
 
241787
    public _Fields fieldForId(int fieldId) {
-
 
241788
      return _Fields.findByThriftId(fieldId);
-
 
241789
    }
-
 
241790
 
-
 
241791
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
241792
      org.apache.thrift.protocol.TField field;
-
 
241793
      iprot.readStructBegin();
-
 
241794
      while (true)
-
 
241795
      {
-
 
241796
        field = iprot.readFieldBegin();
-
 
241797
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
241798
          break;
-
 
241799
        }
-
 
241800
        switch (field.id) {
-
 
241801
          case 0: // SUCCESS
-
 
241802
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
241803
              this.success = new BuyerInfo();
-
 
241804
              this.success.read(iprot);
-
 
241805
            } else { 
-
 
241806
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
241807
            }
-
 
241808
            break;
-
 
241809
          default:
-
 
241810
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
241811
        }
-
 
241812
        iprot.readFieldEnd();
-
 
241813
      }
-
 
241814
      iprot.readStructEnd();
-
 
241815
      validate();
-
 
241816
    }
-
 
241817
 
-
 
241818
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
241819
      oprot.writeStructBegin(STRUCT_DESC);
-
 
241820
 
-
 
241821
      if (this.isSetSuccess()) {
-
 
241822
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
241823
        this.success.write(oprot);
-
 
241824
        oprot.writeFieldEnd();
-
 
241825
      }
-
 
241826
      oprot.writeFieldStop();
-
 
241827
      oprot.writeStructEnd();
-
 
241828
    }
-
 
241829
 
-
 
241830
    @Override
-
 
241831
    public String toString() {
-
 
241832
      StringBuilder sb = new StringBuilder("getBuyerByWarehouse_result(");
-
 
241833
      boolean first = true;
-
 
241834
 
-
 
241835
      sb.append("success:");
-
 
241836
      if (this.success == null) {
-
 
241837
        sb.append("null");
241174
      } else {
241838
      } else {
241175
        sb.append(this.success);
241839
        sb.append(this.success);
241176
      }
241840
      }
241177
      first = false;
241841
      first = false;
241178
      sb.append(")");
241842
      sb.append(")");