Subversion Repositories SmartDukaan

Rev

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

Rev 5062 Rev 5067
Line 771... Line 771...
771
 
771
 
772
    public List<Order> getOrdersWhereVendorNotPaid(long vendorId) throws TransactionServiceException, org.apache.thrift.TException;
772
    public List<Order> getOrdersWhereVendorNotPaid(long vendorId) throws TransactionServiceException, org.apache.thrift.TException;
773
 
773
 
774
    public Map<Long,Long> getStatusDistributionOfOrders(long startDate, long endDate) throws TransactionServiceException, org.apache.thrift.TException;
774
    public Map<Long,Long> getStatusDistributionOfOrders(long startDate, long endDate) throws TransactionServiceException, org.apache.thrift.TException;
775
 
775
 
-
 
776
    public List<Long> getOrderIdsForStatus(long status, long startDatetime, long endDatetime) throws TransactionServiceException, org.apache.thrift.TException;
-
 
777
 
776
  }
778
  }
777
 
779
 
778
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
780
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
779
 
781
 
780
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
782
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 989... Line 991...
989
 
991
 
990
    public void getOrdersWhereVendorNotPaid(long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersWhereVendorNotPaid_call> resultHandler) throws org.apache.thrift.TException;
992
    public void getOrdersWhereVendorNotPaid(long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersWhereVendorNotPaid_call> resultHandler) throws org.apache.thrift.TException;
991
 
993
 
992
    public void getStatusDistributionOfOrders(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getStatusDistributionOfOrders_call> resultHandler) throws org.apache.thrift.TException;
994
    public void getStatusDistributionOfOrders(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getStatusDistributionOfOrders_call> resultHandler) throws org.apache.thrift.TException;
993
 
995
 
-
 
996
    public void getOrderIdsForStatus(long status, long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderIdsForStatus_call> resultHandler) throws org.apache.thrift.TException;
-
 
997
 
994
  }
998
  }
995
 
999
 
996
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1000
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
997
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1001
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
998
      public Factory() {}
1002
      public Factory() {}
Line 3744... Line 3748...
3744
        throw result.ex;
3748
        throw result.ex;
3745
      }
3749
      }
3746
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getStatusDistributionOfOrders failed: unknown result");
3750
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getStatusDistributionOfOrders failed: unknown result");
3747
    }
3751
    }
3748
 
3752
 
-
 
3753
    public List<Long> getOrderIdsForStatus(long status, long startDatetime, long endDatetime) throws TransactionServiceException, org.apache.thrift.TException
-
 
3754
    {
-
 
3755
      send_getOrderIdsForStatus(status, startDatetime, endDatetime);
-
 
3756
      return recv_getOrderIdsForStatus();
-
 
3757
    }
-
 
3758
 
-
 
3759
    public void send_getOrderIdsForStatus(long status, long startDatetime, long endDatetime) throws org.apache.thrift.TException
-
 
3760
    {
-
 
3761
      getOrderIdsForStatus_args args = new getOrderIdsForStatus_args();
-
 
3762
      args.setStatus(status);
-
 
3763
      args.setStartDatetime(startDatetime);
-
 
3764
      args.setEndDatetime(endDatetime);
-
 
3765
      sendBase("getOrderIdsForStatus", args);
-
 
3766
    }
-
 
3767
 
-
 
3768
    public List<Long> recv_getOrderIdsForStatus() throws TransactionServiceException, org.apache.thrift.TException
-
 
3769
    {
-
 
3770
      getOrderIdsForStatus_result result = new getOrderIdsForStatus_result();
-
 
3771
      receiveBase(result, "getOrderIdsForStatus");
-
 
3772
      if (result.isSetSuccess()) {
-
 
3773
        return result.success;
-
 
3774
      }
-
 
3775
      if (result.ex != null) {
-
 
3776
        throw result.ex;
-
 
3777
      }
-
 
3778
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderIdsForStatus failed: unknown result");
-
 
3779
    }
-
 
3780
 
3749
  }
3781
  }
3750
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
3782
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
3751
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
3783
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
3752
      private org.apache.thrift.async.TAsyncClientManager clientManager;
3784
      private org.apache.thrift.async.TAsyncClientManager clientManager;
3753
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
3785
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 7507... Line 7539...
7507
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
7539
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
7508
        return (new Client(prot)).recv_getStatusDistributionOfOrders();
7540
        return (new Client(prot)).recv_getStatusDistributionOfOrders();
7509
      }
7541
      }
7510
    }
7542
    }
7511
 
7543
 
-
 
7544
    public void getOrderIdsForStatus(long status, long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<getOrderIdsForStatus_call> resultHandler) throws org.apache.thrift.TException {
-
 
7545
      checkReady();
-
 
7546
      getOrderIdsForStatus_call method_call = new getOrderIdsForStatus_call(status, startDatetime, endDatetime, resultHandler, this, ___protocolFactory, ___transport);
-
 
7547
      this.___currentMethod = method_call;
-
 
7548
      ___manager.call(method_call);
-
 
7549
    }
-
 
7550
 
-
 
7551
    public static class getOrderIdsForStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
7552
      private long status;
-
 
7553
      private long startDatetime;
-
 
7554
      private long endDatetime;
-
 
7555
      public getOrderIdsForStatus_call(long status, long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<getOrderIdsForStatus_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 {
-
 
7556
        super(client, protocolFactory, transport, resultHandler, false);
-
 
7557
        this.status = status;
-
 
7558
        this.startDatetime = startDatetime;
-
 
7559
        this.endDatetime = endDatetime;
-
 
7560
      }
-
 
7561
 
-
 
7562
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
7563
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrderIdsForStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
7564
        getOrderIdsForStatus_args args = new getOrderIdsForStatus_args();
-
 
7565
        args.setStatus(status);
-
 
7566
        args.setStartDatetime(startDatetime);
-
 
7567
        args.setEndDatetime(endDatetime);
-
 
7568
        args.write(prot);
-
 
7569
        prot.writeMessageEnd();
-
 
7570
      }
-
 
7571
 
-
 
7572
      public List<Long> getResult() throws TransactionServiceException, org.apache.thrift.TException {
-
 
7573
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
7574
          throw new IllegalStateException("Method call not finished!");
-
 
7575
        }
-
 
7576
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
7577
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
7578
        return (new Client(prot)).recv_getOrderIdsForStatus();
-
 
7579
      }
-
 
7580
    }
-
 
7581
 
7512
  }
7582
  }
7513
 
7583
 
7514
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
7584
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
7515
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
7585
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
7516
    public Processor(I iface) {
7586
    public Processor(I iface) {
Line 7627... Line 7697...
7627
      processMap.put("getSettlementsByDate", new getSettlementsByDate());
7697
      processMap.put("getSettlementsByDate", new getSettlementsByDate());
7628
      processMap.put("getReshippedOrderIds", new getReshippedOrderIds());
7698
      processMap.put("getReshippedOrderIds", new getReshippedOrderIds());
7629
      processMap.put("updateOrdersAsPORaised", new updateOrdersAsPORaised());
7699
      processMap.put("updateOrdersAsPORaised", new updateOrdersAsPORaised());
7630
      processMap.put("getOrdersWhereVendorNotPaid", new getOrdersWhereVendorNotPaid());
7700
      processMap.put("getOrdersWhereVendorNotPaid", new getOrdersWhereVendorNotPaid());
7631
      processMap.put("getStatusDistributionOfOrders", new getStatusDistributionOfOrders());
7701
      processMap.put("getStatusDistributionOfOrders", new getStatusDistributionOfOrders());
-
 
7702
      processMap.put("getOrderIdsForStatus", new getOrderIdsForStatus());
7632
      return processMap;
7703
      return processMap;
7633
    }
7704
    }
7634
 
7705
 
7635
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
7706
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
7636
      public createTransaction() {
7707
      public createTransaction() {
Line 9707... Line 9778...
9707
        }
9778
        }
9708
        return result;
9779
        return result;
9709
      }
9780
      }
9710
    }
9781
    }
9711
 
9782
 
-
 
9783
    private static class getOrderIdsForStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrderIdsForStatus_args> {
-
 
9784
      public getOrderIdsForStatus() {
-
 
9785
        super("getOrderIdsForStatus");
-
 
9786
      }
-
 
9787
 
-
 
9788
      protected getOrderIdsForStatus_args getEmptyArgsInstance() {
-
 
9789
        return new getOrderIdsForStatus_args();
-
 
9790
      }
-
 
9791
 
-
 
9792
      protected getOrderIdsForStatus_result getResult(I iface, getOrderIdsForStatus_args args) throws org.apache.thrift.TException {
-
 
9793
        getOrderIdsForStatus_result result = new getOrderIdsForStatus_result();
-
 
9794
        try {
-
 
9795
          result.success = iface.getOrderIdsForStatus(args.status, args.startDatetime, args.endDatetime);
-
 
9796
        } catch (TransactionServiceException ex) {
-
 
9797
          result.ex = ex;
-
 
9798
        }
-
 
9799
        return result;
-
 
9800
      }
-
 
9801
    }
-
 
9802
 
9712
  }
9803
  }
9713
 
9804
 
9714
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
9805
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
9715
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
9806
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
9716
 
9807
 
Line 88718... Line 88809...
88718
      boolean first = true;
88809
      boolean first = true;
88719
 
88810
 
88720
      sb.append("success:");
88811
      sb.append("success:");
88721
      if (this.success == null) {
88812
      if (this.success == null) {
88722
        sb.append("null");
88813
        sb.append("null");
-
 
88814
      } else {
-
 
88815
        sb.append(this.success);
-
 
88816
      }
-
 
88817
      first = false;
-
 
88818
      if (!first) sb.append(", ");
-
 
88819
      sb.append("ex:");
-
 
88820
      if (this.ex == null) {
-
 
88821
        sb.append("null");
-
 
88822
      } else {
-
 
88823
        sb.append(this.ex);
-
 
88824
      }
-
 
88825
      first = false;
-
 
88826
      sb.append(")");
-
 
88827
      return sb.toString();
-
 
88828
    }
-
 
88829
 
-
 
88830
    public void validate() throws org.apache.thrift.TException {
-
 
88831
      // check for required fields
-
 
88832
    }
-
 
88833
 
-
 
88834
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
88835
      try {
-
 
88836
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
88837
      } catch (org.apache.thrift.TException te) {
-
 
88838
        throw new java.io.IOException(te);
-
 
88839
      }
-
 
88840
    }
-
 
88841
 
-
 
88842
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
88843
      try {
-
 
88844
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
88845
      } catch (org.apache.thrift.TException te) {
-
 
88846
        throw new java.io.IOException(te);
-
 
88847
      }
-
 
88848
    }
-
 
88849
 
-
 
88850
  }
-
 
88851
 
-
 
88852
  public static class getOrderIdsForStatus_args implements org.apache.thrift.TBase<getOrderIdsForStatus_args, getOrderIdsForStatus_args._Fields>, java.io.Serializable, Cloneable   {
-
 
88853
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderIdsForStatus_args");
-
 
88854
 
-
 
88855
    private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
88856
    private static final org.apache.thrift.protocol.TField START_DATETIME_FIELD_DESC = new org.apache.thrift.protocol.TField("startDatetime", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
88857
    private static final org.apache.thrift.protocol.TField END_DATETIME_FIELD_DESC = new org.apache.thrift.protocol.TField("endDatetime", org.apache.thrift.protocol.TType.I64, (short)3);
-
 
88858
 
-
 
88859
    private long status; // required
-
 
88860
    private long startDatetime; // required
-
 
88861
    private long endDatetime; // required
-
 
88862
 
-
 
88863
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
88864
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
88865
      STATUS((short)1, "status"),
-
 
88866
      START_DATETIME((short)2, "startDatetime"),
-
 
88867
      END_DATETIME((short)3, "endDatetime");
-
 
88868
 
-
 
88869
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
88870
 
-
 
88871
      static {
-
 
88872
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
88873
          byName.put(field.getFieldName(), field);
-
 
88874
        }
-
 
88875
      }
-
 
88876
 
-
 
88877
      /**
-
 
88878
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
88879
       */
-
 
88880
      public static _Fields findByThriftId(int fieldId) {
-
 
88881
        switch(fieldId) {
-
 
88882
          case 1: // STATUS
-
 
88883
            return STATUS;
-
 
88884
          case 2: // START_DATETIME
-
 
88885
            return START_DATETIME;
-
 
88886
          case 3: // END_DATETIME
-
 
88887
            return END_DATETIME;
-
 
88888
          default:
-
 
88889
            return null;
-
 
88890
        }
-
 
88891
      }
-
 
88892
 
-
 
88893
      /**
-
 
88894
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
88895
       * if it is not found.
-
 
88896
       */
-
 
88897
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
88898
        _Fields fields = findByThriftId(fieldId);
-
 
88899
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
88900
        return fields;
-
 
88901
      }
-
 
88902
 
-
 
88903
      /**
-
 
88904
       * Find the _Fields constant that matches name, or null if its not found.
-
 
88905
       */
-
 
88906
      public static _Fields findByName(String name) {
-
 
88907
        return byName.get(name);
-
 
88908
      }
-
 
88909
 
-
 
88910
      private final short _thriftId;
-
 
88911
      private final String _fieldName;
-
 
88912
 
-
 
88913
      _Fields(short thriftId, String fieldName) {
-
 
88914
        _thriftId = thriftId;
-
 
88915
        _fieldName = fieldName;
-
 
88916
      }
-
 
88917
 
-
 
88918
      public short getThriftFieldId() {
-
 
88919
        return _thriftId;
-
 
88920
      }
-
 
88921
 
-
 
88922
      public String getFieldName() {
-
 
88923
        return _fieldName;
-
 
88924
      }
-
 
88925
    }
-
 
88926
 
-
 
88927
    // isset id assignments
-
 
88928
    private static final int __STATUS_ISSET_ID = 0;
-
 
88929
    private static final int __STARTDATETIME_ISSET_ID = 1;
-
 
88930
    private static final int __ENDDATETIME_ISSET_ID = 2;
-
 
88931
    private BitSet __isset_bit_vector = new BitSet(3);
-
 
88932
 
-
 
88933
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
88934
    static {
-
 
88935
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
88936
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
88937
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
88938
      tmpMap.put(_Fields.START_DATETIME, new org.apache.thrift.meta_data.FieldMetaData("startDatetime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
88939
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
88940
      tmpMap.put(_Fields.END_DATETIME, new org.apache.thrift.meta_data.FieldMetaData("endDatetime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
88941
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
88942
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
88943
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderIdsForStatus_args.class, metaDataMap);
-
 
88944
    }
-
 
88945
 
-
 
88946
    public getOrderIdsForStatus_args() {
-
 
88947
    }
-
 
88948
 
-
 
88949
    public getOrderIdsForStatus_args(
-
 
88950
      long status,
-
 
88951
      long startDatetime,
-
 
88952
      long endDatetime)
-
 
88953
    {
-
 
88954
      this();
-
 
88955
      this.status = status;
-
 
88956
      setStatusIsSet(true);
-
 
88957
      this.startDatetime = startDatetime;
-
 
88958
      setStartDatetimeIsSet(true);
-
 
88959
      this.endDatetime = endDatetime;
-
 
88960
      setEndDatetimeIsSet(true);
-
 
88961
    }
-
 
88962
 
-
 
88963
    /**
-
 
88964
     * Performs a deep copy on <i>other</i>.
-
 
88965
     */
-
 
88966
    public getOrderIdsForStatus_args(getOrderIdsForStatus_args other) {
-
 
88967
      __isset_bit_vector.clear();
-
 
88968
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
88969
      this.status = other.status;
-
 
88970
      this.startDatetime = other.startDatetime;
-
 
88971
      this.endDatetime = other.endDatetime;
-
 
88972
    }
-
 
88973
 
-
 
88974
    public getOrderIdsForStatus_args deepCopy() {
-
 
88975
      return new getOrderIdsForStatus_args(this);
-
 
88976
    }
-
 
88977
 
-
 
88978
    @Override
-
 
88979
    public void clear() {
-
 
88980
      setStatusIsSet(false);
-
 
88981
      this.status = 0;
-
 
88982
      setStartDatetimeIsSet(false);
-
 
88983
      this.startDatetime = 0;
-
 
88984
      setEndDatetimeIsSet(false);
-
 
88985
      this.endDatetime = 0;
-
 
88986
    }
-
 
88987
 
-
 
88988
    public long getStatus() {
-
 
88989
      return this.status;
-
 
88990
    }
-
 
88991
 
-
 
88992
    public void setStatus(long status) {
-
 
88993
      this.status = status;
-
 
88994
      setStatusIsSet(true);
-
 
88995
    }
-
 
88996
 
-
 
88997
    public void unsetStatus() {
-
 
88998
      __isset_bit_vector.clear(__STATUS_ISSET_ID);
-
 
88999
    }
-
 
89000
 
-
 
89001
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
-
 
89002
    public boolean isSetStatus() {
-
 
89003
      return __isset_bit_vector.get(__STATUS_ISSET_ID);
-
 
89004
    }
-
 
89005
 
-
 
89006
    public void setStatusIsSet(boolean value) {
-
 
89007
      __isset_bit_vector.set(__STATUS_ISSET_ID, value);
-
 
89008
    }
-
 
89009
 
-
 
89010
    public long getStartDatetime() {
-
 
89011
      return this.startDatetime;
-
 
89012
    }
-
 
89013
 
-
 
89014
    public void setStartDatetime(long startDatetime) {
-
 
89015
      this.startDatetime = startDatetime;
-
 
89016
      setStartDatetimeIsSet(true);
-
 
89017
    }
-
 
89018
 
-
 
89019
    public void unsetStartDatetime() {
-
 
89020
      __isset_bit_vector.clear(__STARTDATETIME_ISSET_ID);
-
 
89021
    }
-
 
89022
 
-
 
89023
    /** Returns true if field startDatetime is set (has been assigned a value) and false otherwise */
-
 
89024
    public boolean isSetStartDatetime() {
-
 
89025
      return __isset_bit_vector.get(__STARTDATETIME_ISSET_ID);
-
 
89026
    }
-
 
89027
 
-
 
89028
    public void setStartDatetimeIsSet(boolean value) {
-
 
89029
      __isset_bit_vector.set(__STARTDATETIME_ISSET_ID, value);
-
 
89030
    }
-
 
89031
 
-
 
89032
    public long getEndDatetime() {
-
 
89033
      return this.endDatetime;
-
 
89034
    }
-
 
89035
 
-
 
89036
    public void setEndDatetime(long endDatetime) {
-
 
89037
      this.endDatetime = endDatetime;
-
 
89038
      setEndDatetimeIsSet(true);
-
 
89039
    }
-
 
89040
 
-
 
89041
    public void unsetEndDatetime() {
-
 
89042
      __isset_bit_vector.clear(__ENDDATETIME_ISSET_ID);
-
 
89043
    }
-
 
89044
 
-
 
89045
    /** Returns true if field endDatetime is set (has been assigned a value) and false otherwise */
-
 
89046
    public boolean isSetEndDatetime() {
-
 
89047
      return __isset_bit_vector.get(__ENDDATETIME_ISSET_ID);
-
 
89048
    }
-
 
89049
 
-
 
89050
    public void setEndDatetimeIsSet(boolean value) {
-
 
89051
      __isset_bit_vector.set(__ENDDATETIME_ISSET_ID, value);
-
 
89052
    }
-
 
89053
 
-
 
89054
    public void setFieldValue(_Fields field, Object value) {
-
 
89055
      switch (field) {
-
 
89056
      case STATUS:
-
 
89057
        if (value == null) {
-
 
89058
          unsetStatus();
-
 
89059
        } else {
-
 
89060
          setStatus((Long)value);
-
 
89061
        }
-
 
89062
        break;
-
 
89063
 
-
 
89064
      case START_DATETIME:
-
 
89065
        if (value == null) {
-
 
89066
          unsetStartDatetime();
-
 
89067
        } else {
-
 
89068
          setStartDatetime((Long)value);
-
 
89069
        }
-
 
89070
        break;
-
 
89071
 
-
 
89072
      case END_DATETIME:
-
 
89073
        if (value == null) {
-
 
89074
          unsetEndDatetime();
-
 
89075
        } else {
-
 
89076
          setEndDatetime((Long)value);
-
 
89077
        }
-
 
89078
        break;
-
 
89079
 
-
 
89080
      }
-
 
89081
    }
-
 
89082
 
-
 
89083
    public Object getFieldValue(_Fields field) {
-
 
89084
      switch (field) {
-
 
89085
      case STATUS:
-
 
89086
        return Long.valueOf(getStatus());
-
 
89087
 
-
 
89088
      case START_DATETIME:
-
 
89089
        return Long.valueOf(getStartDatetime());
-
 
89090
 
-
 
89091
      case END_DATETIME:
-
 
89092
        return Long.valueOf(getEndDatetime());
-
 
89093
 
-
 
89094
      }
-
 
89095
      throw new IllegalStateException();
-
 
89096
    }
-
 
89097
 
-
 
89098
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
89099
    public boolean isSet(_Fields field) {
-
 
89100
      if (field == null) {
-
 
89101
        throw new IllegalArgumentException();
-
 
89102
      }
-
 
89103
 
-
 
89104
      switch (field) {
-
 
89105
      case STATUS:
-
 
89106
        return isSetStatus();
-
 
89107
      case START_DATETIME:
-
 
89108
        return isSetStartDatetime();
-
 
89109
      case END_DATETIME:
-
 
89110
        return isSetEndDatetime();
-
 
89111
      }
-
 
89112
      throw new IllegalStateException();
-
 
89113
    }
-
 
89114
 
-
 
89115
    @Override
-
 
89116
    public boolean equals(Object that) {
-
 
89117
      if (that == null)
-
 
89118
        return false;
-
 
89119
      if (that instanceof getOrderIdsForStatus_args)
-
 
89120
        return this.equals((getOrderIdsForStatus_args)that);
-
 
89121
      return false;
-
 
89122
    }
-
 
89123
 
-
 
89124
    public boolean equals(getOrderIdsForStatus_args that) {
-
 
89125
      if (that == null)
-
 
89126
        return false;
-
 
89127
 
-
 
89128
      boolean this_present_status = true;
-
 
89129
      boolean that_present_status = true;
-
 
89130
      if (this_present_status || that_present_status) {
-
 
89131
        if (!(this_present_status && that_present_status))
-
 
89132
          return false;
-
 
89133
        if (this.status != that.status)
-
 
89134
          return false;
-
 
89135
      }
-
 
89136
 
-
 
89137
      boolean this_present_startDatetime = true;
-
 
89138
      boolean that_present_startDatetime = true;
-
 
89139
      if (this_present_startDatetime || that_present_startDatetime) {
-
 
89140
        if (!(this_present_startDatetime && that_present_startDatetime))
-
 
89141
          return false;
-
 
89142
        if (this.startDatetime != that.startDatetime)
-
 
89143
          return false;
-
 
89144
      }
-
 
89145
 
-
 
89146
      boolean this_present_endDatetime = true;
-
 
89147
      boolean that_present_endDatetime = true;
-
 
89148
      if (this_present_endDatetime || that_present_endDatetime) {
-
 
89149
        if (!(this_present_endDatetime && that_present_endDatetime))
-
 
89150
          return false;
-
 
89151
        if (this.endDatetime != that.endDatetime)
-
 
89152
          return false;
-
 
89153
      }
-
 
89154
 
-
 
89155
      return true;
-
 
89156
    }
-
 
89157
 
-
 
89158
    @Override
-
 
89159
    public int hashCode() {
-
 
89160
      return 0;
-
 
89161
    }
-
 
89162
 
-
 
89163
    public int compareTo(getOrderIdsForStatus_args other) {
-
 
89164
      if (!getClass().equals(other.getClass())) {
-
 
89165
        return getClass().getName().compareTo(other.getClass().getName());
-
 
89166
      }
-
 
89167
 
-
 
89168
      int lastComparison = 0;
-
 
89169
      getOrderIdsForStatus_args typedOther = (getOrderIdsForStatus_args)other;
-
 
89170
 
-
 
89171
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
-
 
89172
      if (lastComparison != 0) {
-
 
89173
        return lastComparison;
-
 
89174
      }
-
 
89175
      if (isSetStatus()) {
-
 
89176
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
-
 
89177
        if (lastComparison != 0) {
-
 
89178
          return lastComparison;
-
 
89179
        }
-
 
89180
      }
-
 
89181
      lastComparison = Boolean.valueOf(isSetStartDatetime()).compareTo(typedOther.isSetStartDatetime());
-
 
89182
      if (lastComparison != 0) {
-
 
89183
        return lastComparison;
-
 
89184
      }
-
 
89185
      if (isSetStartDatetime()) {
-
 
89186
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDatetime, typedOther.startDatetime);
-
 
89187
        if (lastComparison != 0) {
-
 
89188
          return lastComparison;
-
 
89189
        }
-
 
89190
      }
-
 
89191
      lastComparison = Boolean.valueOf(isSetEndDatetime()).compareTo(typedOther.isSetEndDatetime());
-
 
89192
      if (lastComparison != 0) {
-
 
89193
        return lastComparison;
-
 
89194
      }
-
 
89195
      if (isSetEndDatetime()) {
-
 
89196
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDatetime, typedOther.endDatetime);
-
 
89197
        if (lastComparison != 0) {
-
 
89198
          return lastComparison;
-
 
89199
        }
-
 
89200
      }
-
 
89201
      return 0;
-
 
89202
    }
-
 
89203
 
-
 
89204
    public _Fields fieldForId(int fieldId) {
-
 
89205
      return _Fields.findByThriftId(fieldId);
-
 
89206
    }
-
 
89207
 
-
 
89208
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
89209
      org.apache.thrift.protocol.TField field;
-
 
89210
      iprot.readStructBegin();
-
 
89211
      while (true)
-
 
89212
      {
-
 
89213
        field = iprot.readFieldBegin();
-
 
89214
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
89215
          break;
-
 
89216
        }
-
 
89217
        switch (field.id) {
-
 
89218
          case 1: // STATUS
-
 
89219
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
89220
              this.status = iprot.readI64();
-
 
89221
              setStatusIsSet(true);
-
 
89222
            } else { 
-
 
89223
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
89224
            }
-
 
89225
            break;
-
 
89226
          case 2: // START_DATETIME
-
 
89227
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
89228
              this.startDatetime = iprot.readI64();
-
 
89229
              setStartDatetimeIsSet(true);
-
 
89230
            } else { 
-
 
89231
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
89232
            }
-
 
89233
            break;
-
 
89234
          case 3: // END_DATETIME
-
 
89235
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
89236
              this.endDatetime = iprot.readI64();
-
 
89237
              setEndDatetimeIsSet(true);
-
 
89238
            } else { 
-
 
89239
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
89240
            }
-
 
89241
            break;
-
 
89242
          default:
-
 
89243
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
89244
        }
-
 
89245
        iprot.readFieldEnd();
-
 
89246
      }
-
 
89247
      iprot.readStructEnd();
-
 
89248
      validate();
-
 
89249
    }
-
 
89250
 
-
 
89251
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
89252
      validate();
-
 
89253
 
-
 
89254
      oprot.writeStructBegin(STRUCT_DESC);
-
 
89255
      oprot.writeFieldBegin(STATUS_FIELD_DESC);
-
 
89256
      oprot.writeI64(this.status);
-
 
89257
      oprot.writeFieldEnd();
-
 
89258
      oprot.writeFieldBegin(START_DATETIME_FIELD_DESC);
-
 
89259
      oprot.writeI64(this.startDatetime);
-
 
89260
      oprot.writeFieldEnd();
-
 
89261
      oprot.writeFieldBegin(END_DATETIME_FIELD_DESC);
-
 
89262
      oprot.writeI64(this.endDatetime);
-
 
89263
      oprot.writeFieldEnd();
-
 
89264
      oprot.writeFieldStop();
-
 
89265
      oprot.writeStructEnd();
-
 
89266
    }
-
 
89267
 
-
 
89268
    @Override
-
 
89269
    public String toString() {
-
 
89270
      StringBuilder sb = new StringBuilder("getOrderIdsForStatus_args(");
-
 
89271
      boolean first = true;
-
 
89272
 
-
 
89273
      sb.append("status:");
-
 
89274
      sb.append(this.status);
-
 
89275
      first = false;
-
 
89276
      if (!first) sb.append(", ");
-
 
89277
      sb.append("startDatetime:");
-
 
89278
      sb.append(this.startDatetime);
-
 
89279
      first = false;
-
 
89280
      if (!first) sb.append(", ");
-
 
89281
      sb.append("endDatetime:");
-
 
89282
      sb.append(this.endDatetime);
-
 
89283
      first = false;
-
 
89284
      sb.append(")");
-
 
89285
      return sb.toString();
-
 
89286
    }
-
 
89287
 
-
 
89288
    public void validate() throws org.apache.thrift.TException {
-
 
89289
      // check for required fields
-
 
89290
    }
-
 
89291
 
-
 
89292
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
89293
      try {
-
 
89294
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
89295
      } catch (org.apache.thrift.TException te) {
-
 
89296
        throw new java.io.IOException(te);
-
 
89297
      }
-
 
89298
    }
-
 
89299
 
-
 
89300
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
89301
      try {
-
 
89302
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
89303
        __isset_bit_vector = new BitSet(1);
-
 
89304
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
89305
      } catch (org.apache.thrift.TException te) {
-
 
89306
        throw new java.io.IOException(te);
-
 
89307
      }
-
 
89308
    }
-
 
89309
 
-
 
89310
  }
-
 
89311
 
-
 
89312
  public static class getOrderIdsForStatus_result implements org.apache.thrift.TBase<getOrderIdsForStatus_result, getOrderIdsForStatus_result._Fields>, java.io.Serializable, Cloneable   {
-
 
89313
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderIdsForStatus_result");
-
 
89314
 
-
 
89315
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
89316
    private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
89317
 
-
 
89318
    private List<Long> success; // required
-
 
89319
    private TransactionServiceException ex; // required
-
 
89320
 
-
 
89321
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
89322
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
89323
      SUCCESS((short)0, "success"),
-
 
89324
      EX((short)1, "ex");
-
 
89325
 
-
 
89326
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
89327
 
-
 
89328
      static {
-
 
89329
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
89330
          byName.put(field.getFieldName(), field);
-
 
89331
        }
-
 
89332
      }
-
 
89333
 
-
 
89334
      /**
-
 
89335
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
89336
       */
-
 
89337
      public static _Fields findByThriftId(int fieldId) {
-
 
89338
        switch(fieldId) {
-
 
89339
          case 0: // SUCCESS
-
 
89340
            return SUCCESS;
-
 
89341
          case 1: // EX
-
 
89342
            return EX;
-
 
89343
          default:
-
 
89344
            return null;
-
 
89345
        }
-
 
89346
      }
-
 
89347
 
-
 
89348
      /**
-
 
89349
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
89350
       * if it is not found.
-
 
89351
       */
-
 
89352
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
89353
        _Fields fields = findByThriftId(fieldId);
-
 
89354
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
89355
        return fields;
-
 
89356
      }
-
 
89357
 
-
 
89358
      /**
-
 
89359
       * Find the _Fields constant that matches name, or null if its not found.
-
 
89360
       */
-
 
89361
      public static _Fields findByName(String name) {
-
 
89362
        return byName.get(name);
-
 
89363
      }
-
 
89364
 
-
 
89365
      private final short _thriftId;
-
 
89366
      private final String _fieldName;
-
 
89367
 
-
 
89368
      _Fields(short thriftId, String fieldName) {
-
 
89369
        _thriftId = thriftId;
-
 
89370
        _fieldName = fieldName;
-
 
89371
      }
-
 
89372
 
-
 
89373
      public short getThriftFieldId() {
-
 
89374
        return _thriftId;
-
 
89375
      }
-
 
89376
 
-
 
89377
      public String getFieldName() {
-
 
89378
        return _fieldName;
-
 
89379
      }
-
 
89380
    }
-
 
89381
 
-
 
89382
    // isset id assignments
-
 
89383
 
-
 
89384
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
89385
    static {
-
 
89386
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
89387
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
89388
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
89389
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
-
 
89390
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
89391
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
89392
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
89393
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderIdsForStatus_result.class, metaDataMap);
-
 
89394
    }
-
 
89395
 
-
 
89396
    public getOrderIdsForStatus_result() {
-
 
89397
    }
-
 
89398
 
-
 
89399
    public getOrderIdsForStatus_result(
-
 
89400
      List<Long> success,
-
 
89401
      TransactionServiceException ex)
-
 
89402
    {
-
 
89403
      this();
-
 
89404
      this.success = success;
-
 
89405
      this.ex = ex;
-
 
89406
    }
-
 
89407
 
-
 
89408
    /**
-
 
89409
     * Performs a deep copy on <i>other</i>.
-
 
89410
     */
-
 
89411
    public getOrderIdsForStatus_result(getOrderIdsForStatus_result other) {
-
 
89412
      if (other.isSetSuccess()) {
-
 
89413
        List<Long> __this__success = new ArrayList<Long>();
-
 
89414
        for (Long other_element : other.success) {
-
 
89415
          __this__success.add(other_element);
-
 
89416
        }
-
 
89417
        this.success = __this__success;
-
 
89418
      }
-
 
89419
      if (other.isSetEx()) {
-
 
89420
        this.ex = new TransactionServiceException(other.ex);
-
 
89421
      }
-
 
89422
    }
-
 
89423
 
-
 
89424
    public getOrderIdsForStatus_result deepCopy() {
-
 
89425
      return new getOrderIdsForStatus_result(this);
-
 
89426
    }
-
 
89427
 
-
 
89428
    @Override
-
 
89429
    public void clear() {
-
 
89430
      this.success = null;
-
 
89431
      this.ex = null;
-
 
89432
    }
-
 
89433
 
-
 
89434
    public int getSuccessSize() {
-
 
89435
      return (this.success == null) ? 0 : this.success.size();
-
 
89436
    }
-
 
89437
 
-
 
89438
    public java.util.Iterator<Long> getSuccessIterator() {
-
 
89439
      return (this.success == null) ? null : this.success.iterator();
-
 
89440
    }
-
 
89441
 
-
 
89442
    public void addToSuccess(long elem) {
-
 
89443
      if (this.success == null) {
-
 
89444
        this.success = new ArrayList<Long>();
-
 
89445
      }
-
 
89446
      this.success.add(elem);
-
 
89447
    }
-
 
89448
 
-
 
89449
    public List<Long> getSuccess() {
-
 
89450
      return this.success;
-
 
89451
    }
-
 
89452
 
-
 
89453
    public void setSuccess(List<Long> success) {
-
 
89454
      this.success = success;
-
 
89455
    }
-
 
89456
 
-
 
89457
    public void unsetSuccess() {
-
 
89458
      this.success = null;
-
 
89459
    }
-
 
89460
 
-
 
89461
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
89462
    public boolean isSetSuccess() {
-
 
89463
      return this.success != null;
-
 
89464
    }
-
 
89465
 
-
 
89466
    public void setSuccessIsSet(boolean value) {
-
 
89467
      if (!value) {
-
 
89468
        this.success = null;
-
 
89469
      }
-
 
89470
    }
-
 
89471
 
-
 
89472
    public TransactionServiceException getEx() {
-
 
89473
      return this.ex;
-
 
89474
    }
-
 
89475
 
-
 
89476
    public void setEx(TransactionServiceException ex) {
-
 
89477
      this.ex = ex;
-
 
89478
    }
-
 
89479
 
-
 
89480
    public void unsetEx() {
-
 
89481
      this.ex = null;
-
 
89482
    }
-
 
89483
 
-
 
89484
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
89485
    public boolean isSetEx() {
-
 
89486
      return this.ex != null;
-
 
89487
    }
-
 
89488
 
-
 
89489
    public void setExIsSet(boolean value) {
-
 
89490
      if (!value) {
-
 
89491
        this.ex = null;
-
 
89492
      }
-
 
89493
    }
-
 
89494
 
-
 
89495
    public void setFieldValue(_Fields field, Object value) {
-
 
89496
      switch (field) {
-
 
89497
      case SUCCESS:
-
 
89498
        if (value == null) {
-
 
89499
          unsetSuccess();
-
 
89500
        } else {
-
 
89501
          setSuccess((List<Long>)value);
-
 
89502
        }
-
 
89503
        break;
-
 
89504
 
-
 
89505
      case EX:
-
 
89506
        if (value == null) {
-
 
89507
          unsetEx();
-
 
89508
        } else {
-
 
89509
          setEx((TransactionServiceException)value);
-
 
89510
        }
-
 
89511
        break;
-
 
89512
 
-
 
89513
      }
-
 
89514
    }
-
 
89515
 
-
 
89516
    public Object getFieldValue(_Fields field) {
-
 
89517
      switch (field) {
-
 
89518
      case SUCCESS:
-
 
89519
        return getSuccess();
-
 
89520
 
-
 
89521
      case EX:
-
 
89522
        return getEx();
-
 
89523
 
-
 
89524
      }
-
 
89525
      throw new IllegalStateException();
-
 
89526
    }
-
 
89527
 
-
 
89528
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
89529
    public boolean isSet(_Fields field) {
-
 
89530
      if (field == null) {
-
 
89531
        throw new IllegalArgumentException();
-
 
89532
      }
-
 
89533
 
-
 
89534
      switch (field) {
-
 
89535
      case SUCCESS:
-
 
89536
        return isSetSuccess();
-
 
89537
      case EX:
-
 
89538
        return isSetEx();
-
 
89539
      }
-
 
89540
      throw new IllegalStateException();
-
 
89541
    }
-
 
89542
 
-
 
89543
    @Override
-
 
89544
    public boolean equals(Object that) {
-
 
89545
      if (that == null)
-
 
89546
        return false;
-
 
89547
      if (that instanceof getOrderIdsForStatus_result)
-
 
89548
        return this.equals((getOrderIdsForStatus_result)that);
-
 
89549
      return false;
-
 
89550
    }
-
 
89551
 
-
 
89552
    public boolean equals(getOrderIdsForStatus_result that) {
-
 
89553
      if (that == null)
-
 
89554
        return false;
-
 
89555
 
-
 
89556
      boolean this_present_success = true && this.isSetSuccess();
-
 
89557
      boolean that_present_success = true && that.isSetSuccess();
-
 
89558
      if (this_present_success || that_present_success) {
-
 
89559
        if (!(this_present_success && that_present_success))
-
 
89560
          return false;
-
 
89561
        if (!this.success.equals(that.success))
-
 
89562
          return false;
-
 
89563
      }
-
 
89564
 
-
 
89565
      boolean this_present_ex = true && this.isSetEx();
-
 
89566
      boolean that_present_ex = true && that.isSetEx();
-
 
89567
      if (this_present_ex || that_present_ex) {
-
 
89568
        if (!(this_present_ex && that_present_ex))
-
 
89569
          return false;
-
 
89570
        if (!this.ex.equals(that.ex))
-
 
89571
          return false;
-
 
89572
      }
-
 
89573
 
-
 
89574
      return true;
-
 
89575
    }
-
 
89576
 
-
 
89577
    @Override
-
 
89578
    public int hashCode() {
-
 
89579
      return 0;
-
 
89580
    }
-
 
89581
 
-
 
89582
    public int compareTo(getOrderIdsForStatus_result other) {
-
 
89583
      if (!getClass().equals(other.getClass())) {
-
 
89584
        return getClass().getName().compareTo(other.getClass().getName());
-
 
89585
      }
-
 
89586
 
-
 
89587
      int lastComparison = 0;
-
 
89588
      getOrderIdsForStatus_result typedOther = (getOrderIdsForStatus_result)other;
-
 
89589
 
-
 
89590
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
89591
      if (lastComparison != 0) {
-
 
89592
        return lastComparison;
-
 
89593
      }
-
 
89594
      if (isSetSuccess()) {
-
 
89595
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
89596
        if (lastComparison != 0) {
-
 
89597
          return lastComparison;
-
 
89598
        }
-
 
89599
      }
-
 
89600
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
89601
      if (lastComparison != 0) {
-
 
89602
        return lastComparison;
-
 
89603
      }
-
 
89604
      if (isSetEx()) {
-
 
89605
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
89606
        if (lastComparison != 0) {
-
 
89607
          return lastComparison;
-
 
89608
        }
-
 
89609
      }
-
 
89610
      return 0;
-
 
89611
    }
-
 
89612
 
-
 
89613
    public _Fields fieldForId(int fieldId) {
-
 
89614
      return _Fields.findByThriftId(fieldId);
-
 
89615
    }
-
 
89616
 
-
 
89617
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
89618
      org.apache.thrift.protocol.TField field;
-
 
89619
      iprot.readStructBegin();
-
 
89620
      while (true)
-
 
89621
      {
-
 
89622
        field = iprot.readFieldBegin();
-
 
89623
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
89624
          break;
-
 
89625
        }
-
 
89626
        switch (field.id) {
-
 
89627
          case 0: // SUCCESS
-
 
89628
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
89629
              {
-
 
89630
                org.apache.thrift.protocol.TList _list293 = iprot.readListBegin();
-
 
89631
                this.success = new ArrayList<Long>(_list293.size);
-
 
89632
                for (int _i294 = 0; _i294 < _list293.size; ++_i294)
-
 
89633
                {
-
 
89634
                  long _elem295; // required
-
 
89635
                  _elem295 = iprot.readI64();
-
 
89636
                  this.success.add(_elem295);
-
 
89637
                }
-
 
89638
                iprot.readListEnd();
-
 
89639
              }
-
 
89640
            } else { 
-
 
89641
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
89642
            }
-
 
89643
            break;
-
 
89644
          case 1: // EX
-
 
89645
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
89646
              this.ex = new TransactionServiceException();
-
 
89647
              this.ex.read(iprot);
-
 
89648
            } else { 
-
 
89649
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
89650
            }
-
 
89651
            break;
-
 
89652
          default:
-
 
89653
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
89654
        }
-
 
89655
        iprot.readFieldEnd();
-
 
89656
      }
-
 
89657
      iprot.readStructEnd();
-
 
89658
      validate();
-
 
89659
    }
-
 
89660
 
-
 
89661
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
89662
      oprot.writeStructBegin(STRUCT_DESC);
-
 
89663
 
-
 
89664
      if (this.isSetSuccess()) {
-
 
89665
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
89666
        {
-
 
89667
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
-
 
89668
          for (long _iter296 : this.success)
-
 
89669
          {
-
 
89670
            oprot.writeI64(_iter296);
-
 
89671
          }
-
 
89672
          oprot.writeListEnd();
-
 
89673
        }
-
 
89674
        oprot.writeFieldEnd();
-
 
89675
      } else if (this.isSetEx()) {
-
 
89676
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
89677
        this.ex.write(oprot);
-
 
89678
        oprot.writeFieldEnd();
-
 
89679
      }
-
 
89680
      oprot.writeFieldStop();
-
 
89681
      oprot.writeStructEnd();
-
 
89682
    }
-
 
89683
 
-
 
89684
    @Override
-
 
89685
    public String toString() {
-
 
89686
      StringBuilder sb = new StringBuilder("getOrderIdsForStatus_result(");
-
 
89687
      boolean first = true;
-
 
89688
 
-
 
89689
      sb.append("success:");
-
 
89690
      if (this.success == null) {
-
 
89691
        sb.append("null");
88723
      } else {
89692
      } else {
88724
        sb.append(this.success);
89693
        sb.append(this.success);
88725
      }
89694
      }
88726
      first = false;
89695
      first = false;
88727
      if (!first) sb.append(", ");
89696
      if (!first) sb.append(", ");