Subversion Repositories SmartDukaan

Rev

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

Rev 3956 Rev 3986
Line 435... Line 435...
435
     */
435
     */
436
    public Order shiftToWarehouse(long orderId, long warehouseId) throws TransactionServiceException, org.apache.thrift.TException;
436
    public Order shiftToWarehouse(long orderId, long warehouseId) throws TransactionServiceException, org.apache.thrift.TException;
437
 
437
 
438
    /**
438
    /**
439
     * Adds the given delay reason to the given order.
439
     * Adds the given delay reason to the given order.
-
 
440
     * Increases the expected delivery time of the given order by the given no. of days.
440
     * Raises an exception if no order with the given id can be found.
441
     * Raises an exception if no order with the given id can be found.
441
     * 
442
     * 
442
     * @param orderId
443
     * @param orderId
443
     * @param delayReason
444
     * @param delayReason
-
 
445
     * @param furtherDelay
444
     */
446
     */
445
    public boolean addDelayReason(long orderId, DelayReason delayReason) throws TransactionServiceException, org.apache.thrift.TException;
447
    public boolean addDelayReason(long orderId, DelayReason delayReason, long furtherDelay) throws TransactionServiceException, org.apache.thrift.TException;
446
 
448
 
447
    /**
449
    /**
448
     * Marks the COD orders with given AWB nos. as having been processed.
450
     * Marks the COD orders with given AWB nos. as having been processed.
449
     * Updates the captured amount for the corresponding payment.
451
     * Updates the captured amount for the corresponding payment.
450
     * 
452
     * 
Line 568... Line 570...
568
 
570
 
569
    public void changeItem(long orderId, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeItem_call> resultHandler) throws org.apache.thrift.TException;
571
    public void changeItem(long orderId, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeItem_call> resultHandler) throws org.apache.thrift.TException;
570
 
572
 
571
    public void shiftToWarehouse(long orderId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.shiftToWarehouse_call> resultHandler) throws org.apache.thrift.TException;
573
    public void shiftToWarehouse(long orderId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.shiftToWarehouse_call> resultHandler) throws org.apache.thrift.TException;
572
 
574
 
573
    public void addDelayReason(long orderId, DelayReason delayReason, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addDelayReason_call> resultHandler) throws org.apache.thrift.TException;
575
    public void addDelayReason(long orderId, DelayReason delayReason, long furtherDelay, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addDelayReason_call> resultHandler) throws org.apache.thrift.TException;
574
 
576
 
575
    public void reconcileCodCollection(Map<String,Double> collectedAmountMap, String xferBy, String xferTxnId, long xferDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.reconcileCodCollection_call> resultHandler) throws org.apache.thrift.TException;
577
    public void reconcileCodCollection(Map<String,Double> collectedAmountMap, String xferBy, String xferTxnId, long xferDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.reconcileCodCollection_call> resultHandler) throws org.apache.thrift.TException;
576
 
578
 
577
  }
579
  }
578
 
580
 
Line 1979... Line 1981...
1979
        throw result.ex;
1981
        throw result.ex;
1980
      }
1982
      }
1981
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "shiftToWarehouse failed: unknown result");
1983
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "shiftToWarehouse failed: unknown result");
1982
    }
1984
    }
1983
 
1985
 
1984
    public boolean addDelayReason(long orderId, DelayReason delayReason) throws TransactionServiceException, org.apache.thrift.TException
1986
    public boolean addDelayReason(long orderId, DelayReason delayReason, long furtherDelay) throws TransactionServiceException, org.apache.thrift.TException
1985
    {
1987
    {
1986
      send_addDelayReason(orderId, delayReason);
1988
      send_addDelayReason(orderId, delayReason, furtherDelay);
1987
      return recv_addDelayReason();
1989
      return recv_addDelayReason();
1988
    }
1990
    }
1989
 
1991
 
1990
    public void send_addDelayReason(long orderId, DelayReason delayReason) throws org.apache.thrift.TException
1992
    public void send_addDelayReason(long orderId, DelayReason delayReason, long furtherDelay) throws org.apache.thrift.TException
1991
    {
1993
    {
1992
      addDelayReason_args args = new addDelayReason_args();
1994
      addDelayReason_args args = new addDelayReason_args();
1993
      args.setOrderId(orderId);
1995
      args.setOrderId(orderId);
1994
      args.setDelayReason(delayReason);
1996
      args.setDelayReason(delayReason);
-
 
1997
      args.setFurtherDelay(furtherDelay);
1995
      sendBase("addDelayReason", args);
1998
      sendBase("addDelayReason", args);
1996
    }
1999
    }
1997
 
2000
 
1998
    public boolean recv_addDelayReason() throws TransactionServiceException, org.apache.thrift.TException
2001
    public boolean recv_addDelayReason() throws TransactionServiceException, org.apache.thrift.TException
1999
    {
2002
    {
Line 3896... Line 3899...
3896
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3899
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3897
        return (new Client(prot)).recv_shiftToWarehouse();
3900
        return (new Client(prot)).recv_shiftToWarehouse();
3898
      }
3901
      }
3899
    }
3902
    }
3900
 
3903
 
3901
    public void addDelayReason(long orderId, DelayReason delayReason, org.apache.thrift.async.AsyncMethodCallback<addDelayReason_call> resultHandler) throws org.apache.thrift.TException {
3904
    public void addDelayReason(long orderId, DelayReason delayReason, long furtherDelay, org.apache.thrift.async.AsyncMethodCallback<addDelayReason_call> resultHandler) throws org.apache.thrift.TException {
3902
      checkReady();
3905
      checkReady();
3903
      addDelayReason_call method_call = new addDelayReason_call(orderId, delayReason, resultHandler, this, ___protocolFactory, ___transport);
3906
      addDelayReason_call method_call = new addDelayReason_call(orderId, delayReason, furtherDelay, resultHandler, this, ___protocolFactory, ___transport);
3904
      this.___currentMethod = method_call;
3907
      this.___currentMethod = method_call;
3905
      ___manager.call(method_call);
3908
      ___manager.call(method_call);
3906
    }
3909
    }
3907
 
3910
 
3908
    public static class addDelayReason_call extends org.apache.thrift.async.TAsyncMethodCall {
3911
    public static class addDelayReason_call extends org.apache.thrift.async.TAsyncMethodCall {
3909
      private long orderId;
3912
      private long orderId;
3910
      private DelayReason delayReason;
3913
      private DelayReason delayReason;
-
 
3914
      private long furtherDelay;
3911
      public addDelayReason_call(long orderId, DelayReason delayReason, org.apache.thrift.async.AsyncMethodCallback<addDelayReason_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 {
3915
      public addDelayReason_call(long orderId, DelayReason delayReason, long furtherDelay, org.apache.thrift.async.AsyncMethodCallback<addDelayReason_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 {
3912
        super(client, protocolFactory, transport, resultHandler, false);
3916
        super(client, protocolFactory, transport, resultHandler, false);
3913
        this.orderId = orderId;
3917
        this.orderId = orderId;
3914
        this.delayReason = delayReason;
3918
        this.delayReason = delayReason;
-
 
3919
        this.furtherDelay = furtherDelay;
3915
      }
3920
      }
3916
 
3921
 
3917
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3922
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
3918
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addDelayReason", org.apache.thrift.protocol.TMessageType.CALL, 0));
3923
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addDelayReason", org.apache.thrift.protocol.TMessageType.CALL, 0));
3919
        addDelayReason_args args = new addDelayReason_args();
3924
        addDelayReason_args args = new addDelayReason_args();
3920
        args.setOrderId(orderId);
3925
        args.setOrderId(orderId);
3921
        args.setDelayReason(delayReason);
3926
        args.setDelayReason(delayReason);
-
 
3927
        args.setFurtherDelay(furtherDelay);
3922
        args.write(prot);
3928
        args.write(prot);
3923
        prot.writeMessageEnd();
3929
        prot.writeMessageEnd();
3924
      }
3930
      }
3925
 
3931
 
3926
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
3932
      public boolean getResult() throws TransactionServiceException, org.apache.thrift.TException {
Line 5101... Line 5107...
5101
      }
5107
      }
5102
 
5108
 
5103
      protected addDelayReason_result getResult(I iface, addDelayReason_args args) throws org.apache.thrift.TException {
5109
      protected addDelayReason_result getResult(I iface, addDelayReason_args args) throws org.apache.thrift.TException {
5104
        addDelayReason_result result = new addDelayReason_result();
5110
        addDelayReason_result result = new addDelayReason_result();
5105
        try {
5111
        try {
5106
          result.success = iface.addDelayReason(args.orderId, args.delayReason);
5112
          result.success = iface.addDelayReason(args.orderId, args.delayReason, args.furtherDelay);
5107
          result.setSuccessIsSet(true);
5113
          result.setSuccessIsSet(true);
5108
        } catch (TransactionServiceException ex) {
5114
        } catch (TransactionServiceException ex) {
5109
          result.ex = ex;
5115
          result.ex = ex;
5110
        }
5116
        }
5111
        return result;
5117
        return result;
Line 44781... Line 44787...
44781
  public static class addDelayReason_args implements org.apache.thrift.TBase<addDelayReason_args, addDelayReason_args._Fields>, java.io.Serializable, Cloneable   {
44787
  public static class addDelayReason_args implements org.apache.thrift.TBase<addDelayReason_args, addDelayReason_args._Fields>, java.io.Serializable, Cloneable   {
44782
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addDelayReason_args");
44788
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addDelayReason_args");
44783
 
44789
 
44784
    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);
44790
    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);
44785
    private static final org.apache.thrift.protocol.TField DELAY_REASON_FIELD_DESC = new org.apache.thrift.protocol.TField("delayReason", org.apache.thrift.protocol.TType.I32, (short)2);
44791
    private static final org.apache.thrift.protocol.TField DELAY_REASON_FIELD_DESC = new org.apache.thrift.protocol.TField("delayReason", org.apache.thrift.protocol.TType.I32, (short)2);
-
 
44792
    private static final org.apache.thrift.protocol.TField FURTHER_DELAY_FIELD_DESC = new org.apache.thrift.protocol.TField("furtherDelay", org.apache.thrift.protocol.TType.I64, (short)3);
44786
 
44793
 
44787
    private long orderId; // required
44794
    private long orderId; // required
44788
    private DelayReason delayReason; // required
44795
    private DelayReason delayReason; // required
-
 
44796
    private long furtherDelay; // required
44789
 
44797
 
44790
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
44798
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
44791
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
44799
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
44792
      ORDER_ID((short)1, "orderId"),
44800
      ORDER_ID((short)1, "orderId"),
44793
      /**
44801
      /**
44794
       * 
44802
       * 
44795
       * @see DelayReason
44803
       * @see DelayReason
44796
       */
44804
       */
44797
      DELAY_REASON((short)2, "delayReason");
44805
      DELAY_REASON((short)2, "delayReason"),
-
 
44806
      FURTHER_DELAY((short)3, "furtherDelay");
44798
 
44807
 
44799
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
44808
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
44800
 
44809
 
44801
      static {
44810
      static {
44802
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
44811
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 44811... Line 44820...
44811
        switch(fieldId) {
44820
        switch(fieldId) {
44812
          case 1: // ORDER_ID
44821
          case 1: // ORDER_ID
44813
            return ORDER_ID;
44822
            return ORDER_ID;
44814
          case 2: // DELAY_REASON
44823
          case 2: // DELAY_REASON
44815
            return DELAY_REASON;
44824
            return DELAY_REASON;
-
 
44825
          case 3: // FURTHER_DELAY
-
 
44826
            return FURTHER_DELAY;
44816
          default:
44827
          default:
44817
            return null;
44828
            return null;
44818
        }
44829
        }
44819
      }
44830
      }
44820
 
44831
 
Line 44852... Line 44863...
44852
      }
44863
      }
44853
    }
44864
    }
44854
 
44865
 
44855
    // isset id assignments
44866
    // isset id assignments
44856
    private static final int __ORDERID_ISSET_ID = 0;
44867
    private static final int __ORDERID_ISSET_ID = 0;
-
 
44868
    private static final int __FURTHERDELAY_ISSET_ID = 1;
44857
    private BitSet __isset_bit_vector = new BitSet(1);
44869
    private BitSet __isset_bit_vector = new BitSet(2);
44858
 
44870
 
44859
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
44871
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
44860
    static {
44872
    static {
44861
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
44873
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
44862
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
44874
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
44863
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
44875
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
44864
      tmpMap.put(_Fields.DELAY_REASON, new org.apache.thrift.meta_data.FieldMetaData("delayReason", org.apache.thrift.TFieldRequirementType.DEFAULT, 
44876
      tmpMap.put(_Fields.DELAY_REASON, new org.apache.thrift.meta_data.FieldMetaData("delayReason", org.apache.thrift.TFieldRequirementType.DEFAULT, 
44865
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DelayReason.class)));
44877
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DelayReason.class)));
-
 
44878
      tmpMap.put(_Fields.FURTHER_DELAY, new org.apache.thrift.meta_data.FieldMetaData("furtherDelay", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
44879
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
44866
      metaDataMap = Collections.unmodifiableMap(tmpMap);
44880
      metaDataMap = Collections.unmodifiableMap(tmpMap);
44867
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addDelayReason_args.class, metaDataMap);
44881
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addDelayReason_args.class, metaDataMap);
44868
    }
44882
    }
44869
 
44883
 
44870
    public addDelayReason_args() {
44884
    public addDelayReason_args() {
44871
    }
44885
    }
44872
 
44886
 
44873
    public addDelayReason_args(
44887
    public addDelayReason_args(
44874
      long orderId,
44888
      long orderId,
44875
      DelayReason delayReason)
44889
      DelayReason delayReason,
-
 
44890
      long furtherDelay)
44876
    {
44891
    {
44877
      this();
44892
      this();
44878
      this.orderId = orderId;
44893
      this.orderId = orderId;
44879
      setOrderIdIsSet(true);
44894
      setOrderIdIsSet(true);
44880
      this.delayReason = delayReason;
44895
      this.delayReason = delayReason;
-
 
44896
      this.furtherDelay = furtherDelay;
-
 
44897
      setFurtherDelayIsSet(true);
44881
    }
44898
    }
44882
 
44899
 
44883
    /**
44900
    /**
44884
     * Performs a deep copy on <i>other</i>.
44901
     * Performs a deep copy on <i>other</i>.
44885
     */
44902
     */
Line 44888... Line 44905...
44888
      __isset_bit_vector.or(other.__isset_bit_vector);
44905
      __isset_bit_vector.or(other.__isset_bit_vector);
44889
      this.orderId = other.orderId;
44906
      this.orderId = other.orderId;
44890
      if (other.isSetDelayReason()) {
44907
      if (other.isSetDelayReason()) {
44891
        this.delayReason = other.delayReason;
44908
        this.delayReason = other.delayReason;
44892
      }
44909
      }
-
 
44910
      this.furtherDelay = other.furtherDelay;
44893
    }
44911
    }
44894
 
44912
 
44895
    public addDelayReason_args deepCopy() {
44913
    public addDelayReason_args deepCopy() {
44896
      return new addDelayReason_args(this);
44914
      return new addDelayReason_args(this);
44897
    }
44915
    }
Line 44899... Line 44917...
44899
    @Override
44917
    @Override
44900
    public void clear() {
44918
    public void clear() {
44901
      setOrderIdIsSet(false);
44919
      setOrderIdIsSet(false);
44902
      this.orderId = 0;
44920
      this.orderId = 0;
44903
      this.delayReason = null;
44921
      this.delayReason = null;
-
 
44922
      setFurtherDelayIsSet(false);
-
 
44923
      this.furtherDelay = 0;
44904
    }
44924
    }
44905
 
44925
 
44906
    public long getOrderId() {
44926
    public long getOrderId() {
44907
      return this.orderId;
44927
      return this.orderId;
44908
    }
44928
    }
Line 44954... Line 44974...
44954
      if (!value) {
44974
      if (!value) {
44955
        this.delayReason = null;
44975
        this.delayReason = null;
44956
      }
44976
      }
44957
    }
44977
    }
44958
 
44978
 
-
 
44979
    public long getFurtherDelay() {
-
 
44980
      return this.furtherDelay;
-
 
44981
    }
-
 
44982
 
-
 
44983
    public void setFurtherDelay(long furtherDelay) {
-
 
44984
      this.furtherDelay = furtherDelay;
-
 
44985
      setFurtherDelayIsSet(true);
-
 
44986
    }
-
 
44987
 
-
 
44988
    public void unsetFurtherDelay() {
-
 
44989
      __isset_bit_vector.clear(__FURTHERDELAY_ISSET_ID);
-
 
44990
    }
-
 
44991
 
-
 
44992
    /** Returns true if field furtherDelay is set (has been assigned a value) and false otherwise */
-
 
44993
    public boolean isSetFurtherDelay() {
-
 
44994
      return __isset_bit_vector.get(__FURTHERDELAY_ISSET_ID);
-
 
44995
    }
-
 
44996
 
-
 
44997
    public void setFurtherDelayIsSet(boolean value) {
-
 
44998
      __isset_bit_vector.set(__FURTHERDELAY_ISSET_ID, value);
-
 
44999
    }
-
 
45000
 
44959
    public void setFieldValue(_Fields field, Object value) {
45001
    public void setFieldValue(_Fields field, Object value) {
44960
      switch (field) {
45002
      switch (field) {
44961
      case ORDER_ID:
45003
      case ORDER_ID:
44962
        if (value == null) {
45004
        if (value == null) {
44963
          unsetOrderId();
45005
          unsetOrderId();
Line 44972... Line 45014...
44972
        } else {
45014
        } else {
44973
          setDelayReason((DelayReason)value);
45015
          setDelayReason((DelayReason)value);
44974
        }
45016
        }
44975
        break;
45017
        break;
44976
 
45018
 
-
 
45019
      case FURTHER_DELAY:
-
 
45020
        if (value == null) {
-
 
45021
          unsetFurtherDelay();
-
 
45022
        } else {
-
 
45023
          setFurtherDelay((Long)value);
-
 
45024
        }
-
 
45025
        break;
-
 
45026
 
44977
      }
45027
      }
44978
    }
45028
    }
44979
 
45029
 
44980
    public Object getFieldValue(_Fields field) {
45030
    public Object getFieldValue(_Fields field) {
44981
      switch (field) {
45031
      switch (field) {
Line 44983... Line 45033...
44983
        return Long.valueOf(getOrderId());
45033
        return Long.valueOf(getOrderId());
44984
 
45034
 
44985
      case DELAY_REASON:
45035
      case DELAY_REASON:
44986
        return getDelayReason();
45036
        return getDelayReason();
44987
 
45037
 
-
 
45038
      case FURTHER_DELAY:
-
 
45039
        return Long.valueOf(getFurtherDelay());
-
 
45040
 
44988
      }
45041
      }
44989
      throw new IllegalStateException();
45042
      throw new IllegalStateException();
44990
    }
45043
    }
44991
 
45044
 
44992
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
45045
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 44998... Line 45051...
44998
      switch (field) {
45051
      switch (field) {
44999
      case ORDER_ID:
45052
      case ORDER_ID:
45000
        return isSetOrderId();
45053
        return isSetOrderId();
45001
      case DELAY_REASON:
45054
      case DELAY_REASON:
45002
        return isSetDelayReason();
45055
        return isSetDelayReason();
-
 
45056
      case FURTHER_DELAY:
-
 
45057
        return isSetFurtherDelay();
45003
      }
45058
      }
45004
      throw new IllegalStateException();
45059
      throw new IllegalStateException();
45005
    }
45060
    }
45006
 
45061
 
45007
    @Override
45062
    @Override
Line 45033... Line 45088...
45033
          return false;
45088
          return false;
45034
        if (!this.delayReason.equals(that.delayReason))
45089
        if (!this.delayReason.equals(that.delayReason))
45035
          return false;
45090
          return false;
45036
      }
45091
      }
45037
 
45092
 
-
 
45093
      boolean this_present_furtherDelay = true;
-
 
45094
      boolean that_present_furtherDelay = true;
-
 
45095
      if (this_present_furtherDelay || that_present_furtherDelay) {
-
 
45096
        if (!(this_present_furtherDelay && that_present_furtherDelay))
-
 
45097
          return false;
-
 
45098
        if (this.furtherDelay != that.furtherDelay)
-
 
45099
          return false;
-
 
45100
      }
-
 
45101
 
45038
      return true;
45102
      return true;
45039
    }
45103
    }
45040
 
45104
 
45041
    @Override
45105
    @Override
45042
    public int hashCode() {
45106
    public int hashCode() {
Line 45069... Line 45133...
45069
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delayReason, typedOther.delayReason);
45133
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delayReason, typedOther.delayReason);
45070
        if (lastComparison != 0) {
45134
        if (lastComparison != 0) {
45071
          return lastComparison;
45135
          return lastComparison;
45072
        }
45136
        }
45073
      }
45137
      }
-
 
45138
      lastComparison = Boolean.valueOf(isSetFurtherDelay()).compareTo(typedOther.isSetFurtherDelay());
-
 
45139
      if (lastComparison != 0) {
-
 
45140
        return lastComparison;
-
 
45141
      }
-
 
45142
      if (isSetFurtherDelay()) {
-
 
45143
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.furtherDelay, typedOther.furtherDelay);
-
 
45144
        if (lastComparison != 0) {
-
 
45145
          return lastComparison;
-
 
45146
        }
-
 
45147
      }
45074
      return 0;
45148
      return 0;
45075
    }
45149
    }
45076
 
45150
 
45077
    public _Fields fieldForId(int fieldId) {
45151
    public _Fields fieldForId(int fieldId) {
45078
      return _Fields.findByThriftId(fieldId);
45152
      return _Fields.findByThriftId(fieldId);
Line 45101... Line 45175...
45101
              this.delayReason = DelayReason.findByValue(iprot.readI32());
45175
              this.delayReason = DelayReason.findByValue(iprot.readI32());
45102
            } else { 
45176
            } else { 
45103
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45177
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45104
            }
45178
            }
45105
            break;
45179
            break;
-
 
45180
          case 3: // FURTHER_DELAY
-
 
45181
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
45182
              this.furtherDelay = iprot.readI64();
-
 
45183
              setFurtherDelayIsSet(true);
-
 
45184
            } else { 
-
 
45185
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
45186
            }
-
 
45187
            break;
45106
          default:
45188
          default:
45107
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45189
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
45108
        }
45190
        }
45109
        iprot.readFieldEnd();
45191
        iprot.readFieldEnd();
45110
      }
45192
      }
Line 45122... Line 45204...
45122
      if (this.delayReason != null) {
45204
      if (this.delayReason != null) {
45123
        oprot.writeFieldBegin(DELAY_REASON_FIELD_DESC);
45205
        oprot.writeFieldBegin(DELAY_REASON_FIELD_DESC);
45124
        oprot.writeI32(this.delayReason.getValue());
45206
        oprot.writeI32(this.delayReason.getValue());
45125
        oprot.writeFieldEnd();
45207
        oprot.writeFieldEnd();
45126
      }
45208
      }
-
 
45209
      oprot.writeFieldBegin(FURTHER_DELAY_FIELD_DESC);
-
 
45210
      oprot.writeI64(this.furtherDelay);
-
 
45211
      oprot.writeFieldEnd();
45127
      oprot.writeFieldStop();
45212
      oprot.writeFieldStop();
45128
      oprot.writeStructEnd();
45213
      oprot.writeStructEnd();
45129
    }
45214
    }
45130
 
45215
 
45131
    @Override
45216
    @Override
Line 45142... Line 45227...
45142
        sb.append("null");
45227
        sb.append("null");
45143
      } else {
45228
      } else {
45144
        sb.append(this.delayReason);
45229
        sb.append(this.delayReason);
45145
      }
45230
      }
45146
      first = false;
45231
      first = false;
-
 
45232
      if (!first) sb.append(", ");
-
 
45233
      sb.append("furtherDelay:");
-
 
45234
      sb.append(this.furtherDelay);
-
 
45235
      first = false;
45147
      sb.append(")");
45236
      sb.append(")");
45148
      return sb.toString();
45237
      return sb.toString();
45149
    }
45238
    }
45150
 
45239
 
45151
    public void validate() throws org.apache.thrift.TException {
45240
    public void validate() throws org.apache.thrift.TException {