Subversion Repositories SmartDukaan

Rev

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

Rev 7073 Rev 7075
Line 912... Line 912...
912
 
912
 
913
    public ByteBuffer getDocument(long docType, long docSource) throws org.apache.thrift.TException;
913
    public ByteBuffer getDocument(long docType, long docSource) throws org.apache.thrift.TException;
914
 
914
 
915
    public boolean changeShippingAddress(long orderId, String line1, String line2, String city, String state, String pin) throws org.apache.thrift.TException;
915
    public boolean changeShippingAddress(long orderId, String line1, String line2, String city, String state, String pin) throws org.apache.thrift.TException;
916
 
916
 
917
    public ByteBuffer retrieveInvoice(long orderId) throws org.apache.thrift.TException;
917
    public ByteBuffer retrieveInvoice(long orderId, long userId) throws org.apache.thrift.TException;
918
 
918
 
919
    public List<String> receiveUpdatesForRedExpress(String awbNumber) throws org.apache.thrift.TException;
919
    public List<String> receiveUpdatesForRedExpress(String awbNumber) throws org.apache.thrift.TException;
920
 
920
 
921
    public RechargeTransaction createRechargeTransaction(RechargeTransaction thriftRechargeTransaction) throws org.apache.thrift.TException;
921
    public RechargeTransaction createRechargeTransaction(RechargeTransaction thriftRechargeTransaction) throws org.apache.thrift.TException;
922
 
922
 
Line 1224... Line 1224...
1224
 
1224
 
1225
    public void getDocument(long docType, long docSource, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getDocument_call> resultHandler) throws org.apache.thrift.TException;
1225
    public void getDocument(long docType, long docSource, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getDocument_call> resultHandler) throws org.apache.thrift.TException;
1226
 
1226
 
1227
    public void changeShippingAddress(long orderId, String line1, String line2, String city, String state, String pin, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeShippingAddress_call> resultHandler) throws org.apache.thrift.TException;
1227
    public void changeShippingAddress(long orderId, String line1, String line2, String city, String state, String pin, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeShippingAddress_call> resultHandler) throws org.apache.thrift.TException;
1228
 
1228
 
1229
    public void retrieveInvoice(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.retrieveInvoice_call> resultHandler) throws org.apache.thrift.TException;
1229
    public void retrieveInvoice(long orderId, long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.retrieveInvoice_call> resultHandler) throws org.apache.thrift.TException;
1230
 
1230
 
1231
    public void receiveUpdatesForRedExpress(String awbNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.receiveUpdatesForRedExpress_call> resultHandler) throws org.apache.thrift.TException;
1231
    public void receiveUpdatesForRedExpress(String awbNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.receiveUpdatesForRedExpress_call> resultHandler) throws org.apache.thrift.TException;
1232
 
1232
 
1233
    public void createRechargeTransaction(RechargeTransaction thriftRechargeTransaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createRechargeTransaction_call> resultHandler) throws org.apache.thrift.TException;
1233
    public void createRechargeTransaction(RechargeTransaction thriftRechargeTransaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createRechargeTransaction_call> resultHandler) throws org.apache.thrift.TException;
1234
 
1234
 
Line 5059... Line 5059...
5059
        return result.success;
5059
        return result.success;
5060
      }
5060
      }
5061
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "changeShippingAddress failed: unknown result");
5061
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "changeShippingAddress failed: unknown result");
5062
    }
5062
    }
5063
 
5063
 
5064
    public ByteBuffer retrieveInvoice(long orderId) throws org.apache.thrift.TException
5064
    public ByteBuffer retrieveInvoice(long orderId, long userId) throws org.apache.thrift.TException
5065
    {
5065
    {
5066
      send_retrieveInvoice(orderId);
5066
      send_retrieveInvoice(orderId, userId);
5067
      return recv_retrieveInvoice();
5067
      return recv_retrieveInvoice();
5068
    }
5068
    }
5069
 
5069
 
5070
    public void send_retrieveInvoice(long orderId) throws org.apache.thrift.TException
5070
    public void send_retrieveInvoice(long orderId, long userId) throws org.apache.thrift.TException
5071
    {
5071
    {
5072
      retrieveInvoice_args args = new retrieveInvoice_args();
5072
      retrieveInvoice_args args = new retrieveInvoice_args();
5073
      args.setOrderId(orderId);
5073
      args.setOrderId(orderId);
-
 
5074
      args.setUserId(userId);
5074
      sendBase("retrieveInvoice", args);
5075
      sendBase("retrieveInvoice", args);
5075
    }
5076
    }
5076
 
5077
 
5077
    public ByteBuffer recv_retrieveInvoice() throws org.apache.thrift.TException
5078
    public ByteBuffer recv_retrieveInvoice() throws org.apache.thrift.TException
5078
    {
5079
    {
Line 10431... Line 10432...
10431
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
10432
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
10432
        return (new Client(prot)).recv_changeShippingAddress();
10433
        return (new Client(prot)).recv_changeShippingAddress();
10433
      }
10434
      }
10434
    }
10435
    }
10435
 
10436
 
10436
    public void retrieveInvoice(long orderId, org.apache.thrift.async.AsyncMethodCallback<retrieveInvoice_call> resultHandler) throws org.apache.thrift.TException {
10437
    public void retrieveInvoice(long orderId, long userId, org.apache.thrift.async.AsyncMethodCallback<retrieveInvoice_call> resultHandler) throws org.apache.thrift.TException {
10437
      checkReady();
10438
      checkReady();
10438
      retrieveInvoice_call method_call = new retrieveInvoice_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
10439
      retrieveInvoice_call method_call = new retrieveInvoice_call(orderId, userId, resultHandler, this, ___protocolFactory, ___transport);
10439
      this.___currentMethod = method_call;
10440
      this.___currentMethod = method_call;
10440
      ___manager.call(method_call);
10441
      ___manager.call(method_call);
10441
    }
10442
    }
10442
 
10443
 
10443
    public static class retrieveInvoice_call extends org.apache.thrift.async.TAsyncMethodCall {
10444
    public static class retrieveInvoice_call extends org.apache.thrift.async.TAsyncMethodCall {
10444
      private long orderId;
10445
      private long orderId;
-
 
10446
      private long userId;
10445
      public retrieveInvoice_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<retrieveInvoice_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 {
10447
      public retrieveInvoice_call(long orderId, long userId, org.apache.thrift.async.AsyncMethodCallback<retrieveInvoice_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 {
10446
        super(client, protocolFactory, transport, resultHandler, false);
10448
        super(client, protocolFactory, transport, resultHandler, false);
10447
        this.orderId = orderId;
10449
        this.orderId = orderId;
-
 
10450
        this.userId = userId;
10448
      }
10451
      }
10449
 
10452
 
10450
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
10453
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
10451
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("retrieveInvoice", org.apache.thrift.protocol.TMessageType.CALL, 0));
10454
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("retrieveInvoice", org.apache.thrift.protocol.TMessageType.CALL, 0));
10452
        retrieveInvoice_args args = new retrieveInvoice_args();
10455
        retrieveInvoice_args args = new retrieveInvoice_args();
10453
        args.setOrderId(orderId);
10456
        args.setOrderId(orderId);
-
 
10457
        args.setUserId(userId);
10454
        args.write(prot);
10458
        args.write(prot);
10455
        prot.writeMessageEnd();
10459
        prot.writeMessageEnd();
10456
      }
10460
      }
10457
 
10461
 
10458
      public ByteBuffer getResult() throws org.apache.thrift.TException {
10462
      public ByteBuffer getResult() throws org.apache.thrift.TException {
Line 13552... Line 13556...
13552
        return new retrieveInvoice_args();
13556
        return new retrieveInvoice_args();
13553
      }
13557
      }
13554
 
13558
 
13555
      protected retrieveInvoice_result getResult(I iface, retrieveInvoice_args args) throws org.apache.thrift.TException {
13559
      protected retrieveInvoice_result getResult(I iface, retrieveInvoice_args args) throws org.apache.thrift.TException {
13556
        retrieveInvoice_result result = new retrieveInvoice_result();
13560
        retrieveInvoice_result result = new retrieveInvoice_result();
13557
        result.success = iface.retrieveInvoice(args.orderId);
13561
        result.success = iface.retrieveInvoice(args.orderId, args.userId);
13558
        return result;
13562
        return result;
13559
      }
13563
      }
13560
    }
13564
    }
13561
 
13565
 
13562
    private static class receiveUpdatesForRedExpress<I extends Iface> extends org.apache.thrift.ProcessFunction<I, receiveUpdatesForRedExpress_args> {
13566
    private static class receiveUpdatesForRedExpress<I extends Iface> extends org.apache.thrift.ProcessFunction<I, receiveUpdatesForRedExpress_args> {
Line 57695... Line 57699...
57695
      }
57699
      }
57696
    }
57700
    }
57697
 
57701
 
57698
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
57702
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
57699
      try {
57703
      try {
57700
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
57701
        __isset_bit_vector = new BitSet(1);
-
 
57702
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
57704
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
57703
      } catch (org.apache.thrift.TException te) {
57705
      } catch (org.apache.thrift.TException te) {
57704
        throw new java.io.IOException(te);
57706
        throw new java.io.IOException(te);
57705
      }
57707
      }
57706
    }
57708
    }
Line 62547... Line 62549...
62547
      }
62549
      }
62548
    }
62550
    }
62549
 
62551
 
62550
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
62552
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
62551
      try {
62553
      try {
62552
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
62553
        __isset_bit_vector = new BitSet(1);
-
 
62554
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
62554
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
62555
      } catch (org.apache.thrift.TException te) {
62555
      } catch (org.apache.thrift.TException te) {
62556
        throw new java.io.IOException(te);
62556
        throw new java.io.IOException(te);
62557
      }
62557
      }
62558
    }
62558
    }
Line 63980... Line 63980...
63980
      }
63980
      }
63981
    }
63981
    }
63982
 
63982
 
63983
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
63983
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
63984
      try {
63984
      try {
63985
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
63986
        __isset_bit_vector = new BitSet(1);
-
 
63987
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
63985
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
63988
      } catch (org.apache.thrift.TException te) {
63986
      } catch (org.apache.thrift.TException te) {
63989
        throw new java.io.IOException(te);
63987
        throw new java.io.IOException(te);
63990
      }
63988
      }
63991
    }
63989
    }
Line 123702... Line 123700...
123702
 
123700
 
123703
  public static class retrieveInvoice_args implements org.apache.thrift.TBase<retrieveInvoice_args, retrieveInvoice_args._Fields>, java.io.Serializable, Cloneable   {
123701
  public static class retrieveInvoice_args implements org.apache.thrift.TBase<retrieveInvoice_args, retrieveInvoice_args._Fields>, java.io.Serializable, Cloneable   {
123704
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("retrieveInvoice_args");
123702
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("retrieveInvoice_args");
123705
 
123703
 
123706
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
123704
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
123705
    private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)2);
123707
 
123706
 
123708
    private long orderId; // required
123707
    private long orderId; // required
-
 
123708
    private long userId; // required
123709
 
123709
 
123710
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
123710
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
123711
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
123711
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
123712
      ORDER_ID((short)1, "orderId");
123712
      ORDER_ID((short)1, "orderId"),
-
 
123713
      USER_ID((short)2, "userId");
123713
 
123714
 
123714
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
123715
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
123715
 
123716
 
123716
      static {
123717
      static {
123717
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
123718
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 123724... Line 123725...
123724
       */
123725
       */
123725
      public static _Fields findByThriftId(int fieldId) {
123726
      public static _Fields findByThriftId(int fieldId) {
123726
        switch(fieldId) {
123727
        switch(fieldId) {
123727
          case 1: // ORDER_ID
123728
          case 1: // ORDER_ID
123728
            return ORDER_ID;
123729
            return ORDER_ID;
-
 
123730
          case 2: // USER_ID
-
 
123731
            return USER_ID;
123729
          default:
123732
          default:
123730
            return null;
123733
            return null;
123731
        }
123734
        }
123732
      }
123735
      }
123733
 
123736
 
Line 123765... Line 123768...
123765
      }
123768
      }
123766
    }
123769
    }
123767
 
123770
 
123768
    // isset id assignments
123771
    // isset id assignments
123769
    private static final int __ORDERID_ISSET_ID = 0;
123772
    private static final int __ORDERID_ISSET_ID = 0;
-
 
123773
    private static final int __USERID_ISSET_ID = 1;
123770
    private BitSet __isset_bit_vector = new BitSet(1);
123774
    private BitSet __isset_bit_vector = new BitSet(2);
123771
 
123775
 
123772
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123776
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123773
    static {
123777
    static {
123774
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
123778
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
123775
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
123779
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
123776
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
123780
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
123781
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
123782
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
123777
      metaDataMap = Collections.unmodifiableMap(tmpMap);
123783
      metaDataMap = Collections.unmodifiableMap(tmpMap);
123778
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(retrieveInvoice_args.class, metaDataMap);
123784
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(retrieveInvoice_args.class, metaDataMap);
123779
    }
123785
    }
123780
 
123786
 
123781
    public retrieveInvoice_args() {
123787
    public retrieveInvoice_args() {
123782
    }
123788
    }
123783
 
123789
 
123784
    public retrieveInvoice_args(
123790
    public retrieveInvoice_args(
123785
      long orderId)
123791
      long orderId,
-
 
123792
      long userId)
123786
    {
123793
    {
123787
      this();
123794
      this();
123788
      this.orderId = orderId;
123795
      this.orderId = orderId;
123789
      setOrderIdIsSet(true);
123796
      setOrderIdIsSet(true);
-
 
123797
      this.userId = userId;
-
 
123798
      setUserIdIsSet(true);
123790
    }
123799
    }
123791
 
123800
 
123792
    /**
123801
    /**
123793
     * Performs a deep copy on <i>other</i>.
123802
     * Performs a deep copy on <i>other</i>.
123794
     */
123803
     */
123795
    public retrieveInvoice_args(retrieveInvoice_args other) {
123804
    public retrieveInvoice_args(retrieveInvoice_args other) {
123796
      __isset_bit_vector.clear();
123805
      __isset_bit_vector.clear();
123797
      __isset_bit_vector.or(other.__isset_bit_vector);
123806
      __isset_bit_vector.or(other.__isset_bit_vector);
123798
      this.orderId = other.orderId;
123807
      this.orderId = other.orderId;
-
 
123808
      this.userId = other.userId;
123799
    }
123809
    }
123800
 
123810
 
123801
    public retrieveInvoice_args deepCopy() {
123811
    public retrieveInvoice_args deepCopy() {
123802
      return new retrieveInvoice_args(this);
123812
      return new retrieveInvoice_args(this);
123803
    }
123813
    }
123804
 
123814
 
123805
    @Override
123815
    @Override
123806
    public void clear() {
123816
    public void clear() {
123807
      setOrderIdIsSet(false);
123817
      setOrderIdIsSet(false);
123808
      this.orderId = 0;
123818
      this.orderId = 0;
-
 
123819
      setUserIdIsSet(false);
-
 
123820
      this.userId = 0;
123809
    }
123821
    }
123810
 
123822
 
123811
    public long getOrderId() {
123823
    public long getOrderId() {
123812
      return this.orderId;
123824
      return this.orderId;
123813
    }
123825
    }
Line 123828... Line 123840...
123828
 
123840
 
123829
    public void setOrderIdIsSet(boolean value) {
123841
    public void setOrderIdIsSet(boolean value) {
123830
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
123842
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
123831
    }
123843
    }
123832
 
123844
 
-
 
123845
    public long getUserId() {
-
 
123846
      return this.userId;
-
 
123847
    }
-
 
123848
 
-
 
123849
    public void setUserId(long userId) {
-
 
123850
      this.userId = userId;
-
 
123851
      setUserIdIsSet(true);
-
 
123852
    }
-
 
123853
 
-
 
123854
    public void unsetUserId() {
-
 
123855
      __isset_bit_vector.clear(__USERID_ISSET_ID);
-
 
123856
    }
-
 
123857
 
-
 
123858
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
-
 
123859
    public boolean isSetUserId() {
-
 
123860
      return __isset_bit_vector.get(__USERID_ISSET_ID);
-
 
123861
    }
-
 
123862
 
-
 
123863
    public void setUserIdIsSet(boolean value) {
-
 
123864
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
-
 
123865
    }
-
 
123866
 
123833
    public void setFieldValue(_Fields field, Object value) {
123867
    public void setFieldValue(_Fields field, Object value) {
123834
      switch (field) {
123868
      switch (field) {
123835
      case ORDER_ID:
123869
      case ORDER_ID:
123836
        if (value == null) {
123870
        if (value == null) {
123837
          unsetOrderId();
123871
          unsetOrderId();
123838
        } else {
123872
        } else {
123839
          setOrderId((Long)value);
123873
          setOrderId((Long)value);
123840
        }
123874
        }
123841
        break;
123875
        break;
123842
 
123876
 
-
 
123877
      case USER_ID:
-
 
123878
        if (value == null) {
-
 
123879
          unsetUserId();
-
 
123880
        } else {
-
 
123881
          setUserId((Long)value);
-
 
123882
        }
-
 
123883
        break;
-
 
123884
 
123843
      }
123885
      }
123844
    }
123886
    }
123845
 
123887
 
123846
    public Object getFieldValue(_Fields field) {
123888
    public Object getFieldValue(_Fields field) {
123847
      switch (field) {
123889
      switch (field) {
123848
      case ORDER_ID:
123890
      case ORDER_ID:
123849
        return Long.valueOf(getOrderId());
123891
        return Long.valueOf(getOrderId());
123850
 
123892
 
-
 
123893
      case USER_ID:
-
 
123894
        return Long.valueOf(getUserId());
-
 
123895
 
123851
      }
123896
      }
123852
      throw new IllegalStateException();
123897
      throw new IllegalStateException();
123853
    }
123898
    }
123854
 
123899
 
123855
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
123900
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 123859... Line 123904...
123859
      }
123904
      }
123860
 
123905
 
123861
      switch (field) {
123906
      switch (field) {
123862
      case ORDER_ID:
123907
      case ORDER_ID:
123863
        return isSetOrderId();
123908
        return isSetOrderId();
-
 
123909
      case USER_ID:
-
 
123910
        return isSetUserId();
123864
      }
123911
      }
123865
      throw new IllegalStateException();
123912
      throw new IllegalStateException();
123866
    }
123913
    }
123867
 
123914
 
123868
    @Override
123915
    @Override
Line 123885... Line 123932...
123885
          return false;
123932
          return false;
123886
        if (this.orderId != that.orderId)
123933
        if (this.orderId != that.orderId)
123887
          return false;
123934
          return false;
123888
      }
123935
      }
123889
 
123936
 
-
 
123937
      boolean this_present_userId = true;
-
 
123938
      boolean that_present_userId = true;
-
 
123939
      if (this_present_userId || that_present_userId) {
-
 
123940
        if (!(this_present_userId && that_present_userId))
-
 
123941
          return false;
-
 
123942
        if (this.userId != that.userId)
-
 
123943
          return false;
-
 
123944
      }
-
 
123945
 
123890
      return true;
123946
      return true;
123891
    }
123947
    }
123892
 
123948
 
123893
    @Override
123949
    @Override
123894
    public int hashCode() {
123950
    public int hashCode() {
Line 123911... Line 123967...
123911
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
123967
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
123912
        if (lastComparison != 0) {
123968
        if (lastComparison != 0) {
123913
          return lastComparison;
123969
          return lastComparison;
123914
        }
123970
        }
123915
      }
123971
      }
-
 
123972
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
-
 
123973
      if (lastComparison != 0) {
-
 
123974
        return lastComparison;
-
 
123975
      }
-
 
123976
      if (isSetUserId()) {
-
 
123977
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
-
 
123978
        if (lastComparison != 0) {
-
 
123979
          return lastComparison;
-
 
123980
        }
-
 
123981
      }
123916
      return 0;
123982
      return 0;
123917
    }
123983
    }
123918
 
123984
 
123919
    public _Fields fieldForId(int fieldId) {
123985
    public _Fields fieldForId(int fieldId) {
123920
      return _Fields.findByThriftId(fieldId);
123986
      return _Fields.findByThriftId(fieldId);
Line 123936... Line 124002...
123936
              setOrderIdIsSet(true);
124002
              setOrderIdIsSet(true);
123937
            } else { 
124003
            } else { 
123938
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
124004
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123939
            }
124005
            }
123940
            break;
124006
            break;
-
 
124007
          case 2: // USER_ID
-
 
124008
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
124009
              this.userId = iprot.readI64();
-
 
124010
              setUserIdIsSet(true);
-
 
124011
            } else { 
-
 
124012
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
124013
            }
-
 
124014
            break;
123941
          default:
124015
          default:
123942
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
124016
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123943
        }
124017
        }
123944
        iprot.readFieldEnd();
124018
        iprot.readFieldEnd();
123945
      }
124019
      }
Line 123952... Line 124026...
123952
 
124026
 
123953
      oprot.writeStructBegin(STRUCT_DESC);
124027
      oprot.writeStructBegin(STRUCT_DESC);
123954
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
124028
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
123955
      oprot.writeI64(this.orderId);
124029
      oprot.writeI64(this.orderId);
123956
      oprot.writeFieldEnd();
124030
      oprot.writeFieldEnd();
-
 
124031
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
-
 
124032
      oprot.writeI64(this.userId);
-
 
124033
      oprot.writeFieldEnd();
123957
      oprot.writeFieldStop();
124034
      oprot.writeFieldStop();
123958
      oprot.writeStructEnd();
124035
      oprot.writeStructEnd();
123959
    }
124036
    }
123960
 
124037
 
123961
    @Override
124038
    @Override
Line 123964... Line 124041...
123964
      boolean first = true;
124041
      boolean first = true;
123965
 
124042
 
123966
      sb.append("orderId:");
124043
      sb.append("orderId:");
123967
      sb.append(this.orderId);
124044
      sb.append(this.orderId);
123968
      first = false;
124045
      first = false;
-
 
124046
      if (!first) sb.append(", ");
-
 
124047
      sb.append("userId:");
-
 
124048
      sb.append(this.userId);
-
 
124049
      first = false;
123969
      sb.append(")");
124050
      sb.append(")");
123970
      return sb.toString();
124051
      return sb.toString();
123971
    }
124052
    }
123972
 
124053
 
123973
    public void validate() throws org.apache.thrift.TException {
124054
    public void validate() throws org.apache.thrift.TException {