Subversion Repositories SmartDukaan

Rev

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

Rev 3553 Rev 3956
Line 442... Line 442...
442
     * @param orderId
442
     * @param orderId
443
     * @param delayReason
443
     * @param delayReason
444
     */
444
     */
445
    public boolean addDelayReason(long orderId, DelayReason delayReason) throws TransactionServiceException, org.apache.thrift.TException;
445
    public boolean addDelayReason(long orderId, DelayReason delayReason) throws TransactionServiceException, org.apache.thrift.TException;
446
 
446
 
-
 
447
    /**
-
 
448
     * Marks the COD orders with given AWB nos. as having been processed.
-
 
449
     * Updates the captured amount for the corresponding payment.
-
 
450
     * 
-
 
451
     * Returns a map of AWBs which were not processed and the associated reason. An AWB is not processed if:
-
 
452
     * 1. There is no order corresponding to an AWB number.
-
 
453
     * 2. The captured amount for a payment exceeds the total payment.
-
 
454
     * 3. The order corresponding to an AWB no. is in a state prior to DELIVERY_SUCCESS.
-
 
455
     * 
-
 
456
     * @param collectedAmountMap
-
 
457
     * @param xferBy
-
 
458
     * @param xferTxnId
-
 
459
     * @param xferDate
-
 
460
     */
-
 
461
    public Map<String,String> reconcileCodCollection(Map<String,Double> collectedAmountMap, String xferBy, String xferTxnId, long xferDate) throws TransactionServiceException, org.apache.thrift.TException;
-
 
462
 
447
  }
463
  }
448
 
464
 
449
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
465
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
450
 
466
 
451
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
467
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 554... Line 570...
554
 
570
 
555
    public void shiftToWarehouse(long orderId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.shiftToWarehouse_call> resultHandler) throws org.apache.thrift.TException;
571
    public void shiftToWarehouse(long orderId, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.shiftToWarehouse_call> resultHandler) throws org.apache.thrift.TException;
556
 
572
 
557
    public void addDelayReason(long orderId, DelayReason delayReason, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addDelayReason_call> resultHandler) throws org.apache.thrift.TException;
573
    public void addDelayReason(long orderId, DelayReason delayReason, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addDelayReason_call> resultHandler) throws org.apache.thrift.TException;
558
 
574
 
-
 
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;
-
 
576
 
559
  }
577
  }
560
 
578
 
561
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
579
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
562
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
580
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
563
      public Factory() {}
581
      public Factory() {}
Line 1988... Line 2006...
1988
        throw result.ex;
2006
        throw result.ex;
1989
      }
2007
      }
1990
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addDelayReason failed: unknown result");
2008
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addDelayReason failed: unknown result");
1991
    }
2009
    }
1992
 
2010
 
-
 
2011
    public Map<String,String> reconcileCodCollection(Map<String,Double> collectedAmountMap, String xferBy, String xferTxnId, long xferDate) throws TransactionServiceException, org.apache.thrift.TException
-
 
2012
    {
-
 
2013
      send_reconcileCodCollection(collectedAmountMap, xferBy, xferTxnId, xferDate);
-
 
2014
      return recv_reconcileCodCollection();
-
 
2015
    }
-
 
2016
 
-
 
2017
    public void send_reconcileCodCollection(Map<String,Double> collectedAmountMap, String xferBy, String xferTxnId, long xferDate) throws org.apache.thrift.TException
-
 
2018
    {
-
 
2019
      reconcileCodCollection_args args = new reconcileCodCollection_args();
-
 
2020
      args.setCollectedAmountMap(collectedAmountMap);
-
 
2021
      args.setXferBy(xferBy);
-
 
2022
      args.setXferTxnId(xferTxnId);
-
 
2023
      args.setXferDate(xferDate);
-
 
2024
      sendBase("reconcileCodCollection", args);
-
 
2025
    }
-
 
2026
 
-
 
2027
    public Map<String,String> recv_reconcileCodCollection() throws TransactionServiceException, org.apache.thrift.TException
-
 
2028
    {
-
 
2029
      reconcileCodCollection_result result = new reconcileCodCollection_result();
-
 
2030
      receiveBase(result, "reconcileCodCollection");
-
 
2031
      if (result.isSetSuccess()) {
-
 
2032
        return result.success;
-
 
2033
      }
-
 
2034
      if (result.ex != null) {
-
 
2035
        throw result.ex;
-
 
2036
      }
-
 
2037
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "reconcileCodCollection failed: unknown result");
-
 
2038
    }
-
 
2039
 
1993
  }
2040
  }
1994
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2041
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1995
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2042
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1996
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2043
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1997
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2044
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 3884... Line 3931...
3884
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3931
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
3885
        return (new Client(prot)).recv_addDelayReason();
3932
        return (new Client(prot)).recv_addDelayReason();
3886
      }
3933
      }
3887
    }
3934
    }
3888
 
3935
 
-
 
3936
    public void reconcileCodCollection(Map<String,Double> collectedAmountMap, String xferBy, String xferTxnId, long xferDate, org.apache.thrift.async.AsyncMethodCallback<reconcileCodCollection_call> resultHandler) throws org.apache.thrift.TException {
-
 
3937
      checkReady();
-
 
3938
      reconcileCodCollection_call method_call = new reconcileCodCollection_call(collectedAmountMap, xferBy, xferTxnId, xferDate, resultHandler, this, ___protocolFactory, ___transport);
-
 
3939
      this.___currentMethod = method_call;
-
 
3940
      ___manager.call(method_call);
-
 
3941
    }
-
 
3942
 
-
 
3943
    public static class reconcileCodCollection_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
3944
      private Map<String,Double> collectedAmountMap;
-
 
3945
      private String xferBy;
-
 
3946
      private String xferTxnId;
-
 
3947
      private long xferDate;
-
 
3948
      public reconcileCodCollection_call(Map<String,Double> collectedAmountMap, String xferBy, String xferTxnId, long xferDate, org.apache.thrift.async.AsyncMethodCallback<reconcileCodCollection_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 {
-
 
3949
        super(client, protocolFactory, transport, resultHandler, false);
-
 
3950
        this.collectedAmountMap = collectedAmountMap;
-
 
3951
        this.xferBy = xferBy;
-
 
3952
        this.xferTxnId = xferTxnId;
-
 
3953
        this.xferDate = xferDate;
-
 
3954
      }
-
 
3955
 
-
 
3956
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
3957
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("reconcileCodCollection", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
3958
        reconcileCodCollection_args args = new reconcileCodCollection_args();
-
 
3959
        args.setCollectedAmountMap(collectedAmountMap);
-
 
3960
        args.setXferBy(xferBy);
-
 
3961
        args.setXferTxnId(xferTxnId);
-
 
3962
        args.setXferDate(xferDate);
-
 
3963
        args.write(prot);
-
 
3964
        prot.writeMessageEnd();
-
 
3965
      }
-
 
3966
 
-
 
3967
      public Map<String,String> getResult() throws TransactionServiceException, org.apache.thrift.TException {
-
 
3968
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
3969
          throw new IllegalStateException("Method call not finished!");
-
 
3970
        }
-
 
3971
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
3972
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
3973
        return (new Client(prot)).recv_reconcileCodCollection();
-
 
3974
      }
-
 
3975
    }
-
 
3976
 
3889
  }
3977
  }
3890
 
3978
 
3891
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
3979
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
3892
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
3980
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
3893
    public Processor(I iface) {
3981
    public Processor(I iface) {
Line 3951... Line 4039...
3951
      processMap.put("createPurchaseOrder", new createPurchaseOrder());
4039
      processMap.put("createPurchaseOrder", new createPurchaseOrder());
3952
      processMap.put("updateWeight", new updateWeight());
4040
      processMap.put("updateWeight", new updateWeight());
3953
      processMap.put("changeItem", new changeItem());
4041
      processMap.put("changeItem", new changeItem());
3954
      processMap.put("shiftToWarehouse", new shiftToWarehouse());
4042
      processMap.put("shiftToWarehouse", new shiftToWarehouse());
3955
      processMap.put("addDelayReason", new addDelayReason());
4043
      processMap.put("addDelayReason", new addDelayReason());
-
 
4044
      processMap.put("reconcileCodCollection", new reconcileCodCollection());
3956
      return processMap;
4045
      return processMap;
3957
    }
4046
    }
3958
 
4047
 
3959
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
4048
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
3960
      public createTransaction() {
4049
      public createTransaction() {
Line 5021... Line 5110...
5021
        }
5110
        }
5022
        return result;
5111
        return result;
5023
      }
5112
      }
5024
    }
5113
    }
5025
 
5114
 
-
 
5115
    private static class reconcileCodCollection<I extends Iface> extends org.apache.thrift.ProcessFunction<I, reconcileCodCollection_args> {
-
 
5116
      public reconcileCodCollection() {
-
 
5117
        super("reconcileCodCollection");
-
 
5118
      }
-
 
5119
 
-
 
5120
      protected reconcileCodCollection_args getEmptyArgsInstance() {
-
 
5121
        return new reconcileCodCollection_args();
-
 
5122
      }
-
 
5123
 
-
 
5124
      protected reconcileCodCollection_result getResult(I iface, reconcileCodCollection_args args) throws org.apache.thrift.TException {
-
 
5125
        reconcileCodCollection_result result = new reconcileCodCollection_result();
-
 
5126
        try {
-
 
5127
          result.success = iface.reconcileCodCollection(args.collectedAmountMap, args.xferBy, args.xferTxnId, args.xferDate);
-
 
5128
        } catch (TransactionServiceException ex) {
-
 
5129
          result.ex = ex;
-
 
5130
        }
-
 
5131
        return result;
-
 
5132
      }
-
 
5133
    }
-
 
5134
 
5026
  }
5135
  }
5027
 
5136
 
5028
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
5137
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
5029
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
5138
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
5030
 
5139
 
Line 45410... Line 45519...
45410
      first = false;
45519
      first = false;
45411
      if (!first) sb.append(", ");
45520
      if (!first) sb.append(", ");
45412
      sb.append("ex:");
45521
      sb.append("ex:");
45413
      if (this.ex == null) {
45522
      if (this.ex == null) {
45414
        sb.append("null");
45523
        sb.append("null");
-
 
45524
      } else {
-
 
45525
        sb.append(this.ex);
-
 
45526
      }
-
 
45527
      first = false;
-
 
45528
      sb.append(")");
-
 
45529
      return sb.toString();
-
 
45530
    }
-
 
45531
 
-
 
45532
    public void validate() throws org.apache.thrift.TException {
-
 
45533
      // check for required fields
-
 
45534
    }
-
 
45535
 
-
 
45536
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
45537
      try {
-
 
45538
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
45539
      } catch (org.apache.thrift.TException te) {
-
 
45540
        throw new java.io.IOException(te);
-
 
45541
      }
-
 
45542
    }
-
 
45543
 
-
 
45544
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
45545
      try {
-
 
45546
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
45547
      } catch (org.apache.thrift.TException te) {
-
 
45548
        throw new java.io.IOException(te);
-
 
45549
      }
-
 
45550
    }
-
 
45551
 
-
 
45552
  }
-
 
45553
 
-
 
45554
  public static class reconcileCodCollection_args implements org.apache.thrift.TBase<reconcileCodCollection_args, reconcileCodCollection_args._Fields>, java.io.Serializable, Cloneable   {
-
 
45555
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reconcileCodCollection_args");
-
 
45556
 
-
 
45557
    private static final org.apache.thrift.protocol.TField COLLECTED_AMOUNT_MAP_FIELD_DESC = new org.apache.thrift.protocol.TField("collectedAmountMap", org.apache.thrift.protocol.TType.MAP, (short)1);
-
 
45558
    private static final org.apache.thrift.protocol.TField XFER_BY_FIELD_DESC = new org.apache.thrift.protocol.TField("xferBy", org.apache.thrift.protocol.TType.STRING, (short)2);
-
 
45559
    private static final org.apache.thrift.protocol.TField XFER_TXN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("xferTxnId", org.apache.thrift.protocol.TType.STRING, (short)3);
-
 
45560
    private static final org.apache.thrift.protocol.TField XFER_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("xferDate", org.apache.thrift.protocol.TType.I64, (short)4);
-
 
45561
 
-
 
45562
    private Map<String,Double> collectedAmountMap; // required
-
 
45563
    private String xferBy; // required
-
 
45564
    private String xferTxnId; // required
-
 
45565
    private long xferDate; // required
-
 
45566
 
-
 
45567
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
45568
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
45569
      COLLECTED_AMOUNT_MAP((short)1, "collectedAmountMap"),
-
 
45570
      XFER_BY((short)2, "xferBy"),
-
 
45571
      XFER_TXN_ID((short)3, "xferTxnId"),
-
 
45572
      XFER_DATE((short)4, "xferDate");
-
 
45573
 
-
 
45574
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
45575
 
-
 
45576
      static {
-
 
45577
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
45578
          byName.put(field.getFieldName(), field);
-
 
45579
        }
-
 
45580
      }
-
 
45581
 
-
 
45582
      /**
-
 
45583
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
45584
       */
-
 
45585
      public static _Fields findByThriftId(int fieldId) {
-
 
45586
        switch(fieldId) {
-
 
45587
          case 1: // COLLECTED_AMOUNT_MAP
-
 
45588
            return COLLECTED_AMOUNT_MAP;
-
 
45589
          case 2: // XFER_BY
-
 
45590
            return XFER_BY;
-
 
45591
          case 3: // XFER_TXN_ID
-
 
45592
            return XFER_TXN_ID;
-
 
45593
          case 4: // XFER_DATE
-
 
45594
            return XFER_DATE;
-
 
45595
          default:
-
 
45596
            return null;
-
 
45597
        }
-
 
45598
      }
-
 
45599
 
-
 
45600
      /**
-
 
45601
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
45602
       * if it is not found.
-
 
45603
       */
-
 
45604
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
45605
        _Fields fields = findByThriftId(fieldId);
-
 
45606
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
45607
        return fields;
-
 
45608
      }
-
 
45609
 
-
 
45610
      /**
-
 
45611
       * Find the _Fields constant that matches name, or null if its not found.
-
 
45612
       */
-
 
45613
      public static _Fields findByName(String name) {
-
 
45614
        return byName.get(name);
-
 
45615
      }
-
 
45616
 
-
 
45617
      private final short _thriftId;
-
 
45618
      private final String _fieldName;
-
 
45619
 
-
 
45620
      _Fields(short thriftId, String fieldName) {
-
 
45621
        _thriftId = thriftId;
-
 
45622
        _fieldName = fieldName;
-
 
45623
      }
-
 
45624
 
-
 
45625
      public short getThriftFieldId() {
-
 
45626
        return _thriftId;
-
 
45627
      }
-
 
45628
 
-
 
45629
      public String getFieldName() {
-
 
45630
        return _fieldName;
-
 
45631
      }
-
 
45632
    }
-
 
45633
 
-
 
45634
    // isset id assignments
-
 
45635
    private static final int __XFERDATE_ISSET_ID = 0;
-
 
45636
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
45637
 
-
 
45638
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
45639
    static {
-
 
45640
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
45641
      tmpMap.put(_Fields.COLLECTED_AMOUNT_MAP, new org.apache.thrift.meta_data.FieldMetaData("collectedAmountMap", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
45642
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-
 
45643
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
-
 
45644
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE))));
-
 
45645
      tmpMap.put(_Fields.XFER_BY, new org.apache.thrift.meta_data.FieldMetaData("xferBy", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
45646
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
45647
      tmpMap.put(_Fields.XFER_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("xferTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
45648
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
45649
      tmpMap.put(_Fields.XFER_DATE, new org.apache.thrift.meta_data.FieldMetaData("xferDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
45650
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
45651
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
45652
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reconcileCodCollection_args.class, metaDataMap);
-
 
45653
    }
-
 
45654
 
-
 
45655
    public reconcileCodCollection_args() {
-
 
45656
    }
-
 
45657
 
-
 
45658
    public reconcileCodCollection_args(
-
 
45659
      Map<String,Double> collectedAmountMap,
-
 
45660
      String xferBy,
-
 
45661
      String xferTxnId,
-
 
45662
      long xferDate)
-
 
45663
    {
-
 
45664
      this();
-
 
45665
      this.collectedAmountMap = collectedAmountMap;
-
 
45666
      this.xferBy = xferBy;
-
 
45667
      this.xferTxnId = xferTxnId;
-
 
45668
      this.xferDate = xferDate;
-
 
45669
      setXferDateIsSet(true);
-
 
45670
    }
-
 
45671
 
-
 
45672
    /**
-
 
45673
     * Performs a deep copy on <i>other</i>.
-
 
45674
     */
-
 
45675
    public reconcileCodCollection_args(reconcileCodCollection_args other) {
-
 
45676
      __isset_bit_vector.clear();
-
 
45677
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
45678
      if (other.isSetCollectedAmountMap()) {
-
 
45679
        Map<String,Double> __this__collectedAmountMap = new HashMap<String,Double>();
-
 
45680
        for (Map.Entry<String, Double> other_element : other.collectedAmountMap.entrySet()) {
-
 
45681
 
-
 
45682
          String other_element_key = other_element.getKey();
-
 
45683
          Double other_element_value = other_element.getValue();
-
 
45684
 
-
 
45685
          String __this__collectedAmountMap_copy_key = other_element_key;
-
 
45686
 
-
 
45687
          Double __this__collectedAmountMap_copy_value = other_element_value;
-
 
45688
 
-
 
45689
          __this__collectedAmountMap.put(__this__collectedAmountMap_copy_key, __this__collectedAmountMap_copy_value);
-
 
45690
        }
-
 
45691
        this.collectedAmountMap = __this__collectedAmountMap;
-
 
45692
      }
-
 
45693
      if (other.isSetXferBy()) {
-
 
45694
        this.xferBy = other.xferBy;
-
 
45695
      }
-
 
45696
      if (other.isSetXferTxnId()) {
-
 
45697
        this.xferTxnId = other.xferTxnId;
-
 
45698
      }
-
 
45699
      this.xferDate = other.xferDate;
-
 
45700
    }
-
 
45701
 
-
 
45702
    public reconcileCodCollection_args deepCopy() {
-
 
45703
      return new reconcileCodCollection_args(this);
-
 
45704
    }
-
 
45705
 
-
 
45706
    @Override
-
 
45707
    public void clear() {
-
 
45708
      this.collectedAmountMap = null;
-
 
45709
      this.xferBy = null;
-
 
45710
      this.xferTxnId = null;
-
 
45711
      setXferDateIsSet(false);
-
 
45712
      this.xferDate = 0;
-
 
45713
    }
-
 
45714
 
-
 
45715
    public int getCollectedAmountMapSize() {
-
 
45716
      return (this.collectedAmountMap == null) ? 0 : this.collectedAmountMap.size();
-
 
45717
    }
-
 
45718
 
-
 
45719
    public void putToCollectedAmountMap(String key, double val) {
-
 
45720
      if (this.collectedAmountMap == null) {
-
 
45721
        this.collectedAmountMap = new HashMap<String,Double>();
-
 
45722
      }
-
 
45723
      this.collectedAmountMap.put(key, val);
-
 
45724
    }
-
 
45725
 
-
 
45726
    public Map<String,Double> getCollectedAmountMap() {
-
 
45727
      return this.collectedAmountMap;
-
 
45728
    }
-
 
45729
 
-
 
45730
    public void setCollectedAmountMap(Map<String,Double> collectedAmountMap) {
-
 
45731
      this.collectedAmountMap = collectedAmountMap;
-
 
45732
    }
-
 
45733
 
-
 
45734
    public void unsetCollectedAmountMap() {
-
 
45735
      this.collectedAmountMap = null;
-
 
45736
    }
-
 
45737
 
-
 
45738
    /** Returns true if field collectedAmountMap is set (has been assigned a value) and false otherwise */
-
 
45739
    public boolean isSetCollectedAmountMap() {
-
 
45740
      return this.collectedAmountMap != null;
-
 
45741
    }
-
 
45742
 
-
 
45743
    public void setCollectedAmountMapIsSet(boolean value) {
-
 
45744
      if (!value) {
-
 
45745
        this.collectedAmountMap = null;
-
 
45746
      }
-
 
45747
    }
-
 
45748
 
-
 
45749
    public String getXferBy() {
-
 
45750
      return this.xferBy;
-
 
45751
    }
-
 
45752
 
-
 
45753
    public void setXferBy(String xferBy) {
-
 
45754
      this.xferBy = xferBy;
-
 
45755
    }
-
 
45756
 
-
 
45757
    public void unsetXferBy() {
-
 
45758
      this.xferBy = null;
-
 
45759
    }
-
 
45760
 
-
 
45761
    /** Returns true if field xferBy is set (has been assigned a value) and false otherwise */
-
 
45762
    public boolean isSetXferBy() {
-
 
45763
      return this.xferBy != null;
-
 
45764
    }
-
 
45765
 
-
 
45766
    public void setXferByIsSet(boolean value) {
-
 
45767
      if (!value) {
-
 
45768
        this.xferBy = null;
-
 
45769
      }
-
 
45770
    }
-
 
45771
 
-
 
45772
    public String getXferTxnId() {
-
 
45773
      return this.xferTxnId;
-
 
45774
    }
-
 
45775
 
-
 
45776
    public void setXferTxnId(String xferTxnId) {
-
 
45777
      this.xferTxnId = xferTxnId;
-
 
45778
    }
-
 
45779
 
-
 
45780
    public void unsetXferTxnId() {
-
 
45781
      this.xferTxnId = null;
-
 
45782
    }
-
 
45783
 
-
 
45784
    /** Returns true if field xferTxnId is set (has been assigned a value) and false otherwise */
-
 
45785
    public boolean isSetXferTxnId() {
-
 
45786
      return this.xferTxnId != null;
-
 
45787
    }
-
 
45788
 
-
 
45789
    public void setXferTxnIdIsSet(boolean value) {
-
 
45790
      if (!value) {
-
 
45791
        this.xferTxnId = null;
-
 
45792
      }
-
 
45793
    }
-
 
45794
 
-
 
45795
    public long getXferDate() {
-
 
45796
      return this.xferDate;
-
 
45797
    }
-
 
45798
 
-
 
45799
    public void setXferDate(long xferDate) {
-
 
45800
      this.xferDate = xferDate;
-
 
45801
      setXferDateIsSet(true);
-
 
45802
    }
-
 
45803
 
-
 
45804
    public void unsetXferDate() {
-
 
45805
      __isset_bit_vector.clear(__XFERDATE_ISSET_ID);
-
 
45806
    }
-
 
45807
 
-
 
45808
    /** Returns true if field xferDate is set (has been assigned a value) and false otherwise */
-
 
45809
    public boolean isSetXferDate() {
-
 
45810
      return __isset_bit_vector.get(__XFERDATE_ISSET_ID);
-
 
45811
    }
-
 
45812
 
-
 
45813
    public void setXferDateIsSet(boolean value) {
-
 
45814
      __isset_bit_vector.set(__XFERDATE_ISSET_ID, value);
-
 
45815
    }
-
 
45816
 
-
 
45817
    public void setFieldValue(_Fields field, Object value) {
-
 
45818
      switch (field) {
-
 
45819
      case COLLECTED_AMOUNT_MAP:
-
 
45820
        if (value == null) {
-
 
45821
          unsetCollectedAmountMap();
-
 
45822
        } else {
-
 
45823
          setCollectedAmountMap((Map<String,Double>)value);
-
 
45824
        }
-
 
45825
        break;
-
 
45826
 
-
 
45827
      case XFER_BY:
-
 
45828
        if (value == null) {
-
 
45829
          unsetXferBy();
-
 
45830
        } else {
-
 
45831
          setXferBy((String)value);
-
 
45832
        }
-
 
45833
        break;
-
 
45834
 
-
 
45835
      case XFER_TXN_ID:
-
 
45836
        if (value == null) {
-
 
45837
          unsetXferTxnId();
-
 
45838
        } else {
-
 
45839
          setXferTxnId((String)value);
-
 
45840
        }
-
 
45841
        break;
-
 
45842
 
-
 
45843
      case XFER_DATE:
-
 
45844
        if (value == null) {
-
 
45845
          unsetXferDate();
-
 
45846
        } else {
-
 
45847
          setXferDate((Long)value);
-
 
45848
        }
-
 
45849
        break;
-
 
45850
 
-
 
45851
      }
-
 
45852
    }
-
 
45853
 
-
 
45854
    public Object getFieldValue(_Fields field) {
-
 
45855
      switch (field) {
-
 
45856
      case COLLECTED_AMOUNT_MAP:
-
 
45857
        return getCollectedAmountMap();
-
 
45858
 
-
 
45859
      case XFER_BY:
-
 
45860
        return getXferBy();
-
 
45861
 
-
 
45862
      case XFER_TXN_ID:
-
 
45863
        return getXferTxnId();
-
 
45864
 
-
 
45865
      case XFER_DATE:
-
 
45866
        return Long.valueOf(getXferDate());
-
 
45867
 
-
 
45868
      }
-
 
45869
      throw new IllegalStateException();
-
 
45870
    }
-
 
45871
 
-
 
45872
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
45873
    public boolean isSet(_Fields field) {
-
 
45874
      if (field == null) {
-
 
45875
        throw new IllegalArgumentException();
-
 
45876
      }
-
 
45877
 
-
 
45878
      switch (field) {
-
 
45879
      case COLLECTED_AMOUNT_MAP:
-
 
45880
        return isSetCollectedAmountMap();
-
 
45881
      case XFER_BY:
-
 
45882
        return isSetXferBy();
-
 
45883
      case XFER_TXN_ID:
-
 
45884
        return isSetXferTxnId();
-
 
45885
      case XFER_DATE:
-
 
45886
        return isSetXferDate();
-
 
45887
      }
-
 
45888
      throw new IllegalStateException();
-
 
45889
    }
-
 
45890
 
-
 
45891
    @Override
-
 
45892
    public boolean equals(Object that) {
-
 
45893
      if (that == null)
-
 
45894
        return false;
-
 
45895
      if (that instanceof reconcileCodCollection_args)
-
 
45896
        return this.equals((reconcileCodCollection_args)that);
-
 
45897
      return false;
-
 
45898
    }
-
 
45899
 
-
 
45900
    public boolean equals(reconcileCodCollection_args that) {
-
 
45901
      if (that == null)
-
 
45902
        return false;
-
 
45903
 
-
 
45904
      boolean this_present_collectedAmountMap = true && this.isSetCollectedAmountMap();
-
 
45905
      boolean that_present_collectedAmountMap = true && that.isSetCollectedAmountMap();
-
 
45906
      if (this_present_collectedAmountMap || that_present_collectedAmountMap) {
-
 
45907
        if (!(this_present_collectedAmountMap && that_present_collectedAmountMap))
-
 
45908
          return false;
-
 
45909
        if (!this.collectedAmountMap.equals(that.collectedAmountMap))
-
 
45910
          return false;
-
 
45911
      }
-
 
45912
 
-
 
45913
      boolean this_present_xferBy = true && this.isSetXferBy();
-
 
45914
      boolean that_present_xferBy = true && that.isSetXferBy();
-
 
45915
      if (this_present_xferBy || that_present_xferBy) {
-
 
45916
        if (!(this_present_xferBy && that_present_xferBy))
-
 
45917
          return false;
-
 
45918
        if (!this.xferBy.equals(that.xferBy))
-
 
45919
          return false;
-
 
45920
      }
-
 
45921
 
-
 
45922
      boolean this_present_xferTxnId = true && this.isSetXferTxnId();
-
 
45923
      boolean that_present_xferTxnId = true && that.isSetXferTxnId();
-
 
45924
      if (this_present_xferTxnId || that_present_xferTxnId) {
-
 
45925
        if (!(this_present_xferTxnId && that_present_xferTxnId))
-
 
45926
          return false;
-
 
45927
        if (!this.xferTxnId.equals(that.xferTxnId))
-
 
45928
          return false;
-
 
45929
      }
-
 
45930
 
-
 
45931
      boolean this_present_xferDate = true;
-
 
45932
      boolean that_present_xferDate = true;
-
 
45933
      if (this_present_xferDate || that_present_xferDate) {
-
 
45934
        if (!(this_present_xferDate && that_present_xferDate))
-
 
45935
          return false;
-
 
45936
        if (this.xferDate != that.xferDate)
-
 
45937
          return false;
-
 
45938
      }
-
 
45939
 
-
 
45940
      return true;
-
 
45941
    }
-
 
45942
 
-
 
45943
    @Override
-
 
45944
    public int hashCode() {
-
 
45945
      return 0;
-
 
45946
    }
-
 
45947
 
-
 
45948
    public int compareTo(reconcileCodCollection_args other) {
-
 
45949
      if (!getClass().equals(other.getClass())) {
-
 
45950
        return getClass().getName().compareTo(other.getClass().getName());
-
 
45951
      }
-
 
45952
 
-
 
45953
      int lastComparison = 0;
-
 
45954
      reconcileCodCollection_args typedOther = (reconcileCodCollection_args)other;
-
 
45955
 
-
 
45956
      lastComparison = Boolean.valueOf(isSetCollectedAmountMap()).compareTo(typedOther.isSetCollectedAmountMap());
-
 
45957
      if (lastComparison != 0) {
-
 
45958
        return lastComparison;
-
 
45959
      }
-
 
45960
      if (isSetCollectedAmountMap()) {
-
 
45961
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.collectedAmountMap, typedOther.collectedAmountMap);
-
 
45962
        if (lastComparison != 0) {
-
 
45963
          return lastComparison;
-
 
45964
        }
-
 
45965
      }
-
 
45966
      lastComparison = Boolean.valueOf(isSetXferBy()).compareTo(typedOther.isSetXferBy());
-
 
45967
      if (lastComparison != 0) {
-
 
45968
        return lastComparison;
-
 
45969
      }
-
 
45970
      if (isSetXferBy()) {
-
 
45971
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.xferBy, typedOther.xferBy);
-
 
45972
        if (lastComparison != 0) {
-
 
45973
          return lastComparison;
-
 
45974
        }
-
 
45975
      }
-
 
45976
      lastComparison = Boolean.valueOf(isSetXferTxnId()).compareTo(typedOther.isSetXferTxnId());
-
 
45977
      if (lastComparison != 0) {
-
 
45978
        return lastComparison;
-
 
45979
      }
-
 
45980
      if (isSetXferTxnId()) {
-
 
45981
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.xferTxnId, typedOther.xferTxnId);
-
 
45982
        if (lastComparison != 0) {
-
 
45983
          return lastComparison;
-
 
45984
        }
-
 
45985
      }
-
 
45986
      lastComparison = Boolean.valueOf(isSetXferDate()).compareTo(typedOther.isSetXferDate());
-
 
45987
      if (lastComparison != 0) {
-
 
45988
        return lastComparison;
-
 
45989
      }
-
 
45990
      if (isSetXferDate()) {
-
 
45991
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.xferDate, typedOther.xferDate);
-
 
45992
        if (lastComparison != 0) {
-
 
45993
          return lastComparison;
-
 
45994
        }
-
 
45995
      }
-
 
45996
      return 0;
-
 
45997
    }
-
 
45998
 
-
 
45999
    public _Fields fieldForId(int fieldId) {
-
 
46000
      return _Fields.findByThriftId(fieldId);
-
 
46001
    }
-
 
46002
 
-
 
46003
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
46004
      org.apache.thrift.protocol.TField field;
-
 
46005
      iprot.readStructBegin();
-
 
46006
      while (true)
-
 
46007
      {
-
 
46008
        field = iprot.readFieldBegin();
-
 
46009
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
46010
          break;
-
 
46011
        }
-
 
46012
        switch (field.id) {
-
 
46013
          case 1: // COLLECTED_AMOUNT_MAP
-
 
46014
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
-
 
46015
              {
-
 
46016
                org.apache.thrift.protocol.TMap _map109 = iprot.readMapBegin();
-
 
46017
                this.collectedAmountMap = new HashMap<String,Double>(2*_map109.size);
-
 
46018
                for (int _i110 = 0; _i110 < _map109.size; ++_i110)
-
 
46019
                {
-
 
46020
                  String _key111; // required
-
 
46021
                  double _val112; // required
-
 
46022
                  _key111 = iprot.readString();
-
 
46023
                  _val112 = iprot.readDouble();
-
 
46024
                  this.collectedAmountMap.put(_key111, _val112);
-
 
46025
                }
-
 
46026
                iprot.readMapEnd();
-
 
46027
              }
-
 
46028
            } else { 
-
 
46029
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
46030
            }
-
 
46031
            break;
-
 
46032
          case 2: // XFER_BY
-
 
46033
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
46034
              this.xferBy = iprot.readString();
-
 
46035
            } else { 
-
 
46036
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
46037
            }
-
 
46038
            break;
-
 
46039
          case 3: // XFER_TXN_ID
-
 
46040
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
46041
              this.xferTxnId = iprot.readString();
-
 
46042
            } else { 
-
 
46043
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
46044
            }
-
 
46045
            break;
-
 
46046
          case 4: // XFER_DATE
-
 
46047
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
46048
              this.xferDate = iprot.readI64();
-
 
46049
              setXferDateIsSet(true);
-
 
46050
            } else { 
-
 
46051
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
46052
            }
-
 
46053
            break;
-
 
46054
          default:
-
 
46055
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
46056
        }
-
 
46057
        iprot.readFieldEnd();
-
 
46058
      }
-
 
46059
      iprot.readStructEnd();
-
 
46060
      validate();
-
 
46061
    }
-
 
46062
 
-
 
46063
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
46064
      validate();
-
 
46065
 
-
 
46066
      oprot.writeStructBegin(STRUCT_DESC);
-
 
46067
      if (this.collectedAmountMap != null) {
-
 
46068
        oprot.writeFieldBegin(COLLECTED_AMOUNT_MAP_FIELD_DESC);
-
 
46069
        {
-
 
46070
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.DOUBLE, this.collectedAmountMap.size()));
-
 
46071
          for (Map.Entry<String, Double> _iter113 : this.collectedAmountMap.entrySet())
-
 
46072
          {
-
 
46073
            oprot.writeString(_iter113.getKey());
-
 
46074
            oprot.writeDouble(_iter113.getValue());
-
 
46075
          }
-
 
46076
          oprot.writeMapEnd();
-
 
46077
        }
-
 
46078
        oprot.writeFieldEnd();
-
 
46079
      }
-
 
46080
      if (this.xferBy != null) {
-
 
46081
        oprot.writeFieldBegin(XFER_BY_FIELD_DESC);
-
 
46082
        oprot.writeString(this.xferBy);
-
 
46083
        oprot.writeFieldEnd();
-
 
46084
      }
-
 
46085
      if (this.xferTxnId != null) {
-
 
46086
        oprot.writeFieldBegin(XFER_TXN_ID_FIELD_DESC);
-
 
46087
        oprot.writeString(this.xferTxnId);
-
 
46088
        oprot.writeFieldEnd();
-
 
46089
      }
-
 
46090
      oprot.writeFieldBegin(XFER_DATE_FIELD_DESC);
-
 
46091
      oprot.writeI64(this.xferDate);
-
 
46092
      oprot.writeFieldEnd();
-
 
46093
      oprot.writeFieldStop();
-
 
46094
      oprot.writeStructEnd();
-
 
46095
    }
-
 
46096
 
-
 
46097
    @Override
-
 
46098
    public String toString() {
-
 
46099
      StringBuilder sb = new StringBuilder("reconcileCodCollection_args(");
-
 
46100
      boolean first = true;
-
 
46101
 
-
 
46102
      sb.append("collectedAmountMap:");
-
 
46103
      if (this.collectedAmountMap == null) {
-
 
46104
        sb.append("null");
-
 
46105
      } else {
-
 
46106
        sb.append(this.collectedAmountMap);
-
 
46107
      }
-
 
46108
      first = false;
-
 
46109
      if (!first) sb.append(", ");
-
 
46110
      sb.append("xferBy:");
-
 
46111
      if (this.xferBy == null) {
-
 
46112
        sb.append("null");
-
 
46113
      } else {
-
 
46114
        sb.append(this.xferBy);
-
 
46115
      }
-
 
46116
      first = false;
-
 
46117
      if (!first) sb.append(", ");
-
 
46118
      sb.append("xferTxnId:");
-
 
46119
      if (this.xferTxnId == null) {
-
 
46120
        sb.append("null");
-
 
46121
      } else {
-
 
46122
        sb.append(this.xferTxnId);
-
 
46123
      }
-
 
46124
      first = false;
-
 
46125
      if (!first) sb.append(", ");
-
 
46126
      sb.append("xferDate:");
-
 
46127
      sb.append(this.xferDate);
-
 
46128
      first = false;
-
 
46129
      sb.append(")");
-
 
46130
      return sb.toString();
-
 
46131
    }
-
 
46132
 
-
 
46133
    public void validate() throws org.apache.thrift.TException {
-
 
46134
      // check for required fields
-
 
46135
    }
-
 
46136
 
-
 
46137
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
46138
      try {
-
 
46139
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
46140
      } catch (org.apache.thrift.TException te) {
-
 
46141
        throw new java.io.IOException(te);
-
 
46142
      }
-
 
46143
    }
-
 
46144
 
-
 
46145
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
46146
      try {
-
 
46147
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
46148
      } catch (org.apache.thrift.TException te) {
-
 
46149
        throw new java.io.IOException(te);
-
 
46150
      }
-
 
46151
    }
-
 
46152
 
-
 
46153
  }
-
 
46154
 
-
 
46155
  public static class reconcileCodCollection_result implements org.apache.thrift.TBase<reconcileCodCollection_result, reconcileCodCollection_result._Fields>, java.io.Serializable, Cloneable   {
-
 
46156
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reconcileCodCollection_result");
-
 
46157
 
-
 
46158
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);
-
 
46159
    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);
-
 
46160
 
-
 
46161
    private Map<String,String> success; // required
-
 
46162
    private TransactionServiceException ex; // required
-
 
46163
 
-
 
46164
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
46165
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
46166
      SUCCESS((short)0, "success"),
-
 
46167
      EX((short)1, "ex");
-
 
46168
 
-
 
46169
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
46170
 
-
 
46171
      static {
-
 
46172
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
46173
          byName.put(field.getFieldName(), field);
-
 
46174
        }
-
 
46175
      }
-
 
46176
 
-
 
46177
      /**
-
 
46178
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
46179
       */
-
 
46180
      public static _Fields findByThriftId(int fieldId) {
-
 
46181
        switch(fieldId) {
-
 
46182
          case 0: // SUCCESS
-
 
46183
            return SUCCESS;
-
 
46184
          case 1: // EX
-
 
46185
            return EX;
-
 
46186
          default:
-
 
46187
            return null;
-
 
46188
        }
-
 
46189
      }
-
 
46190
 
-
 
46191
      /**
-
 
46192
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
46193
       * if it is not found.
-
 
46194
       */
-
 
46195
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
46196
        _Fields fields = findByThriftId(fieldId);
-
 
46197
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
46198
        return fields;
-
 
46199
      }
-
 
46200
 
-
 
46201
      /**
-
 
46202
       * Find the _Fields constant that matches name, or null if its not found.
-
 
46203
       */
-
 
46204
      public static _Fields findByName(String name) {
-
 
46205
        return byName.get(name);
-
 
46206
      }
-
 
46207
 
-
 
46208
      private final short _thriftId;
-
 
46209
      private final String _fieldName;
-
 
46210
 
-
 
46211
      _Fields(short thriftId, String fieldName) {
-
 
46212
        _thriftId = thriftId;
-
 
46213
        _fieldName = fieldName;
-
 
46214
      }
-
 
46215
 
-
 
46216
      public short getThriftFieldId() {
-
 
46217
        return _thriftId;
-
 
46218
      }
-
 
46219
 
-
 
46220
      public String getFieldName() {
-
 
46221
        return _fieldName;
-
 
46222
      }
-
 
46223
    }
-
 
46224
 
-
 
46225
    // isset id assignments
-
 
46226
 
-
 
46227
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
46228
    static {
-
 
46229
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
46230
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
46231
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-
 
46232
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
-
 
46233
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
-
 
46234
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
46235
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
46236
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
46237
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reconcileCodCollection_result.class, metaDataMap);
-
 
46238
    }
-
 
46239
 
-
 
46240
    public reconcileCodCollection_result() {
-
 
46241
    }
-
 
46242
 
-
 
46243
    public reconcileCodCollection_result(
-
 
46244
      Map<String,String> success,
-
 
46245
      TransactionServiceException ex)
-
 
46246
    {
-
 
46247
      this();
-
 
46248
      this.success = success;
-
 
46249
      this.ex = ex;
-
 
46250
    }
-
 
46251
 
-
 
46252
    /**
-
 
46253
     * Performs a deep copy on <i>other</i>.
-
 
46254
     */
-
 
46255
    public reconcileCodCollection_result(reconcileCodCollection_result other) {
-
 
46256
      if (other.isSetSuccess()) {
-
 
46257
        Map<String,String> __this__success = new HashMap<String,String>();
-
 
46258
        for (Map.Entry<String, String> other_element : other.success.entrySet()) {
-
 
46259
 
-
 
46260
          String other_element_key = other_element.getKey();
-
 
46261
          String other_element_value = other_element.getValue();
-
 
46262
 
-
 
46263
          String __this__success_copy_key = other_element_key;
-
 
46264
 
-
 
46265
          String __this__success_copy_value = other_element_value;
-
 
46266
 
-
 
46267
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
-
 
46268
        }
-
 
46269
        this.success = __this__success;
-
 
46270
      }
-
 
46271
      if (other.isSetEx()) {
-
 
46272
        this.ex = new TransactionServiceException(other.ex);
-
 
46273
      }
-
 
46274
    }
-
 
46275
 
-
 
46276
    public reconcileCodCollection_result deepCopy() {
-
 
46277
      return new reconcileCodCollection_result(this);
-
 
46278
    }
-
 
46279
 
-
 
46280
    @Override
-
 
46281
    public void clear() {
-
 
46282
      this.success = null;
-
 
46283
      this.ex = null;
-
 
46284
    }
-
 
46285
 
-
 
46286
    public int getSuccessSize() {
-
 
46287
      return (this.success == null) ? 0 : this.success.size();
-
 
46288
    }
-
 
46289
 
-
 
46290
    public void putToSuccess(String key, String val) {
-
 
46291
      if (this.success == null) {
-
 
46292
        this.success = new HashMap<String,String>();
-
 
46293
      }
-
 
46294
      this.success.put(key, val);
-
 
46295
    }
-
 
46296
 
-
 
46297
    public Map<String,String> getSuccess() {
-
 
46298
      return this.success;
-
 
46299
    }
-
 
46300
 
-
 
46301
    public void setSuccess(Map<String,String> success) {
-
 
46302
      this.success = success;
-
 
46303
    }
-
 
46304
 
-
 
46305
    public void unsetSuccess() {
-
 
46306
      this.success = null;
-
 
46307
    }
-
 
46308
 
-
 
46309
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
46310
    public boolean isSetSuccess() {
-
 
46311
      return this.success != null;
-
 
46312
    }
-
 
46313
 
-
 
46314
    public void setSuccessIsSet(boolean value) {
-
 
46315
      if (!value) {
-
 
46316
        this.success = null;
-
 
46317
      }
-
 
46318
    }
-
 
46319
 
-
 
46320
    public TransactionServiceException getEx() {
-
 
46321
      return this.ex;
-
 
46322
    }
-
 
46323
 
-
 
46324
    public void setEx(TransactionServiceException ex) {
-
 
46325
      this.ex = ex;
-
 
46326
    }
-
 
46327
 
-
 
46328
    public void unsetEx() {
-
 
46329
      this.ex = null;
-
 
46330
    }
-
 
46331
 
-
 
46332
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
-
 
46333
    public boolean isSetEx() {
-
 
46334
      return this.ex != null;
-
 
46335
    }
-
 
46336
 
-
 
46337
    public void setExIsSet(boolean value) {
-
 
46338
      if (!value) {
-
 
46339
        this.ex = null;
-
 
46340
      }
-
 
46341
    }
-
 
46342
 
-
 
46343
    public void setFieldValue(_Fields field, Object value) {
-
 
46344
      switch (field) {
-
 
46345
      case SUCCESS:
-
 
46346
        if (value == null) {
-
 
46347
          unsetSuccess();
-
 
46348
        } else {
-
 
46349
          setSuccess((Map<String,String>)value);
-
 
46350
        }
-
 
46351
        break;
-
 
46352
 
-
 
46353
      case EX:
-
 
46354
        if (value == null) {
-
 
46355
          unsetEx();
-
 
46356
        } else {
-
 
46357
          setEx((TransactionServiceException)value);
-
 
46358
        }
-
 
46359
        break;
-
 
46360
 
-
 
46361
      }
-
 
46362
    }
-
 
46363
 
-
 
46364
    public Object getFieldValue(_Fields field) {
-
 
46365
      switch (field) {
-
 
46366
      case SUCCESS:
-
 
46367
        return getSuccess();
-
 
46368
 
-
 
46369
      case EX:
-
 
46370
        return getEx();
-
 
46371
 
-
 
46372
      }
-
 
46373
      throw new IllegalStateException();
-
 
46374
    }
-
 
46375
 
-
 
46376
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
46377
    public boolean isSet(_Fields field) {
-
 
46378
      if (field == null) {
-
 
46379
        throw new IllegalArgumentException();
-
 
46380
      }
-
 
46381
 
-
 
46382
      switch (field) {
-
 
46383
      case SUCCESS:
-
 
46384
        return isSetSuccess();
-
 
46385
      case EX:
-
 
46386
        return isSetEx();
-
 
46387
      }
-
 
46388
      throw new IllegalStateException();
-
 
46389
    }
-
 
46390
 
-
 
46391
    @Override
-
 
46392
    public boolean equals(Object that) {
-
 
46393
      if (that == null)
-
 
46394
        return false;
-
 
46395
      if (that instanceof reconcileCodCollection_result)
-
 
46396
        return this.equals((reconcileCodCollection_result)that);
-
 
46397
      return false;
-
 
46398
    }
-
 
46399
 
-
 
46400
    public boolean equals(reconcileCodCollection_result that) {
-
 
46401
      if (that == null)
-
 
46402
        return false;
-
 
46403
 
-
 
46404
      boolean this_present_success = true && this.isSetSuccess();
-
 
46405
      boolean that_present_success = true && that.isSetSuccess();
-
 
46406
      if (this_present_success || that_present_success) {
-
 
46407
        if (!(this_present_success && that_present_success))
-
 
46408
          return false;
-
 
46409
        if (!this.success.equals(that.success))
-
 
46410
          return false;
-
 
46411
      }
-
 
46412
 
-
 
46413
      boolean this_present_ex = true && this.isSetEx();
-
 
46414
      boolean that_present_ex = true && that.isSetEx();
-
 
46415
      if (this_present_ex || that_present_ex) {
-
 
46416
        if (!(this_present_ex && that_present_ex))
-
 
46417
          return false;
-
 
46418
        if (!this.ex.equals(that.ex))
-
 
46419
          return false;
-
 
46420
      }
-
 
46421
 
-
 
46422
      return true;
-
 
46423
    }
-
 
46424
 
-
 
46425
    @Override
-
 
46426
    public int hashCode() {
-
 
46427
      return 0;
-
 
46428
    }
-
 
46429
 
-
 
46430
    public int compareTo(reconcileCodCollection_result other) {
-
 
46431
      if (!getClass().equals(other.getClass())) {
-
 
46432
        return getClass().getName().compareTo(other.getClass().getName());
-
 
46433
      }
-
 
46434
 
-
 
46435
      int lastComparison = 0;
-
 
46436
      reconcileCodCollection_result typedOther = (reconcileCodCollection_result)other;
-
 
46437
 
-
 
46438
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
46439
      if (lastComparison != 0) {
-
 
46440
        return lastComparison;
-
 
46441
      }
-
 
46442
      if (isSetSuccess()) {
-
 
46443
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
46444
        if (lastComparison != 0) {
-
 
46445
          return lastComparison;
-
 
46446
        }
-
 
46447
      }
-
 
46448
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
-
 
46449
      if (lastComparison != 0) {
-
 
46450
        return lastComparison;
-
 
46451
      }
-
 
46452
      if (isSetEx()) {
-
 
46453
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
-
 
46454
        if (lastComparison != 0) {
-
 
46455
          return lastComparison;
-
 
46456
        }
-
 
46457
      }
-
 
46458
      return 0;
-
 
46459
    }
-
 
46460
 
-
 
46461
    public _Fields fieldForId(int fieldId) {
-
 
46462
      return _Fields.findByThriftId(fieldId);
-
 
46463
    }
-
 
46464
 
-
 
46465
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
46466
      org.apache.thrift.protocol.TField field;
-
 
46467
      iprot.readStructBegin();
-
 
46468
      while (true)
-
 
46469
      {
-
 
46470
        field = iprot.readFieldBegin();
-
 
46471
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
46472
          break;
-
 
46473
        }
-
 
46474
        switch (field.id) {
-
 
46475
          case 0: // SUCCESS
-
 
46476
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
-
 
46477
              {
-
 
46478
                org.apache.thrift.protocol.TMap _map114 = iprot.readMapBegin();
-
 
46479
                this.success = new HashMap<String,String>(2*_map114.size);
-
 
46480
                for (int _i115 = 0; _i115 < _map114.size; ++_i115)
-
 
46481
                {
-
 
46482
                  String _key116; // required
-
 
46483
                  String _val117; // required
-
 
46484
                  _key116 = iprot.readString();
-
 
46485
                  _val117 = iprot.readString();
-
 
46486
                  this.success.put(_key116, _val117);
-
 
46487
                }
-
 
46488
                iprot.readMapEnd();
-
 
46489
              }
-
 
46490
            } else { 
-
 
46491
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
46492
            }
-
 
46493
            break;
-
 
46494
          case 1: // EX
-
 
46495
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
46496
              this.ex = new TransactionServiceException();
-
 
46497
              this.ex.read(iprot);
-
 
46498
            } else { 
-
 
46499
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
46500
            }
-
 
46501
            break;
-
 
46502
          default:
-
 
46503
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
46504
        }
-
 
46505
        iprot.readFieldEnd();
-
 
46506
      }
-
 
46507
      iprot.readStructEnd();
-
 
46508
      validate();
-
 
46509
    }
-
 
46510
 
-
 
46511
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
46512
      oprot.writeStructBegin(STRUCT_DESC);
-
 
46513
 
-
 
46514
      if (this.isSetSuccess()) {
-
 
46515
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
46516
        {
-
 
46517
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.success.size()));
-
 
46518
          for (Map.Entry<String, String> _iter118 : this.success.entrySet())
-
 
46519
          {
-
 
46520
            oprot.writeString(_iter118.getKey());
-
 
46521
            oprot.writeString(_iter118.getValue());
-
 
46522
          }
-
 
46523
          oprot.writeMapEnd();
-
 
46524
        }
-
 
46525
        oprot.writeFieldEnd();
-
 
46526
      } else if (this.isSetEx()) {
-
 
46527
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
46528
        this.ex.write(oprot);
-
 
46529
        oprot.writeFieldEnd();
-
 
46530
      }
-
 
46531
      oprot.writeFieldStop();
-
 
46532
      oprot.writeStructEnd();
-
 
46533
    }
-
 
46534
 
-
 
46535
    @Override
-
 
46536
    public String toString() {
-
 
46537
      StringBuilder sb = new StringBuilder("reconcileCodCollection_result(");
-
 
46538
      boolean first = true;
-
 
46539
 
-
 
46540
      sb.append("success:");
-
 
46541
      if (this.success == null) {
-
 
46542
        sb.append("null");
-
 
46543
      } else {
-
 
46544
        sb.append(this.success);
-
 
46545
      }
-
 
46546
      first = false;
-
 
46547
      if (!first) sb.append(", ");
-
 
46548
      sb.append("ex:");
-
 
46549
      if (this.ex == null) {
-
 
46550
        sb.append("null");
45415
      } else {
46551
      } else {
45416
        sb.append(this.ex);
46552
        sb.append(this.ex);
45417
      }
46553
      }
45418
      first = false;
46554
      first = false;
45419
      sb.append(")");
46555
      sb.append(")");