Subversion Repositories SmartDukaan

Rev

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

Rev 7461 Rev 7530
Line 985... Line 985...
985
 
985
 
986
    public void changeAmazonOrderStatus(String amazonOrderCode, String status) throws org.apache.thrift.TException;
986
    public void changeAmazonOrderStatus(String amazonOrderCode, String status) throws org.apache.thrift.TException;
987
 
987
 
988
    public boolean updateTimestampForAmazonOrder(long orderId, long expectedDelivery, long promisedDelivery, long expectedShipping, long promisedShipping) throws org.apache.thrift.TException;
988
    public boolean updateTimestampForAmazonOrder(long orderId, long expectedDelivery, long promisedDelivery, long expectedShipping, long promisedShipping) throws org.apache.thrift.TException;
989
 
989
 
-
 
990
    public boolean updateSourceDetailTimestamp(long id, long lastUpdatedOn) throws org.apache.thrift.TException;
-
 
991
 
990
  }
992
  }
991
 
993
 
992
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
994
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
993
 
995
 
994
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
996
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1363... Line 1365...
1363
 
1365
 
1364
    public void changeAmazonOrderStatus(String amazonOrderCode, String status, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeAmazonOrderStatus_call> resultHandler) throws org.apache.thrift.TException;
1366
    public void changeAmazonOrderStatus(String amazonOrderCode, String status, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeAmazonOrderStatus_call> resultHandler) throws org.apache.thrift.TException;
1365
 
1367
 
1366
    public void updateTimestampForAmazonOrder(long orderId, long expectedDelivery, long promisedDelivery, long expectedShipping, long promisedShipping, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateTimestampForAmazonOrder_call> resultHandler) throws org.apache.thrift.TException;
1368
    public void updateTimestampForAmazonOrder(long orderId, long expectedDelivery, long promisedDelivery, long expectedShipping, long promisedShipping, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateTimestampForAmazonOrder_call> resultHandler) throws org.apache.thrift.TException;
1367
 
1369
 
-
 
1370
    public void updateSourceDetailTimestamp(long id, long lastUpdatedOn, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateSourceDetailTimestamp_call> resultHandler) throws org.apache.thrift.TException;
-
 
1371
 
1368
  }
1372
  }
1369
 
1373
 
1370
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1374
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1371
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1375
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1372
      public Factory() {}
1376
      public Factory() {}
Line 6046... Line 6050...
6046
        return result.success;
6050
        return result.success;
6047
      }
6051
      }
6048
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateTimestampForAmazonOrder failed: unknown result");
6052
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateTimestampForAmazonOrder failed: unknown result");
6049
    }
6053
    }
6050
 
6054
 
-
 
6055
    public boolean updateSourceDetailTimestamp(long id, long lastUpdatedOn) throws org.apache.thrift.TException
-
 
6056
    {
-
 
6057
      send_updateSourceDetailTimestamp(id, lastUpdatedOn);
-
 
6058
      return recv_updateSourceDetailTimestamp();
-
 
6059
    }
-
 
6060
 
-
 
6061
    public void send_updateSourceDetailTimestamp(long id, long lastUpdatedOn) throws org.apache.thrift.TException
-
 
6062
    {
-
 
6063
      updateSourceDetailTimestamp_args args = new updateSourceDetailTimestamp_args();
-
 
6064
      args.setId(id);
-
 
6065
      args.setLastUpdatedOn(lastUpdatedOn);
-
 
6066
      sendBase("updateSourceDetailTimestamp", args);
-
 
6067
    }
-
 
6068
 
-
 
6069
    public boolean recv_updateSourceDetailTimestamp() throws org.apache.thrift.TException
-
 
6070
    {
-
 
6071
      updateSourceDetailTimestamp_result result = new updateSourceDetailTimestamp_result();
-
 
6072
      receiveBase(result, "updateSourceDetailTimestamp");
-
 
6073
      if (result.isSetSuccess()) {
-
 
6074
        return result.success;
-
 
6075
      }
-
 
6076
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateSourceDetailTimestamp failed: unknown result");
-
 
6077
    }
-
 
6078
 
6051
  }
6079
  }
6052
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
6080
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
6053
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
6081
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
6054
      private org.apache.thrift.async.TAsyncClientManager clientManager;
6082
      private org.apache.thrift.async.TAsyncClientManager clientManager;
6055
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
6083
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 12597... Line 12625...
12597
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
12625
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
12598
        return (new Client(prot)).recv_updateTimestampForAmazonOrder();
12626
        return (new Client(prot)).recv_updateTimestampForAmazonOrder();
12599
      }
12627
      }
12600
    }
12628
    }
12601
 
12629
 
-
 
12630
    public void updateSourceDetailTimestamp(long id, long lastUpdatedOn, org.apache.thrift.async.AsyncMethodCallback<updateSourceDetailTimestamp_call> resultHandler) throws org.apache.thrift.TException {
-
 
12631
      checkReady();
-
 
12632
      updateSourceDetailTimestamp_call method_call = new updateSourceDetailTimestamp_call(id, lastUpdatedOn, resultHandler, this, ___protocolFactory, ___transport);
-
 
12633
      this.___currentMethod = method_call;
-
 
12634
      ___manager.call(method_call);
-
 
12635
    }
-
 
12636
 
-
 
12637
    public static class updateSourceDetailTimestamp_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
12638
      private long id;
-
 
12639
      private long lastUpdatedOn;
-
 
12640
      public updateSourceDetailTimestamp_call(long id, long lastUpdatedOn, org.apache.thrift.async.AsyncMethodCallback<updateSourceDetailTimestamp_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 {
-
 
12641
        super(client, protocolFactory, transport, resultHandler, false);
-
 
12642
        this.id = id;
-
 
12643
        this.lastUpdatedOn = lastUpdatedOn;
-
 
12644
      }
-
 
12645
 
-
 
12646
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
12647
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateSourceDetailTimestamp", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
12648
        updateSourceDetailTimestamp_args args = new updateSourceDetailTimestamp_args();
-
 
12649
        args.setId(id);
-
 
12650
        args.setLastUpdatedOn(lastUpdatedOn);
-
 
12651
        args.write(prot);
-
 
12652
        prot.writeMessageEnd();
-
 
12653
      }
-
 
12654
 
-
 
12655
      public boolean getResult() throws org.apache.thrift.TException {
-
 
12656
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
12657
          throw new IllegalStateException("Method call not finished!");
-
 
12658
        }
-
 
12659
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
12660
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
12661
        return (new Client(prot)).recv_updateSourceDetailTimestamp();
-
 
12662
      }
-
 
12663
    }
-
 
12664
 
12602
  }
12665
  }
12603
 
12666
 
12604
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
12667
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
12605
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
12668
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
12606
    public Processor(I iface) {
12669
    public Processor(I iface) {
Line 12797... Line 12860...
12797
      processMap.put("saveRefundAmountsForStoreOrder", new saveRefundAmountsForStoreOrder());
12860
      processMap.put("saveRefundAmountsForStoreOrder", new saveRefundAmountsForStoreOrder());
12798
      processMap.put("getCollectionsForStore", new getCollectionsForStore());
12861
      processMap.put("getCollectionsForStore", new getCollectionsForStore());
12799
      processMap.put("getAmazonOrdersToAcknowledge", new getAmazonOrdersToAcknowledge());
12862
      processMap.put("getAmazonOrdersToAcknowledge", new getAmazonOrdersToAcknowledge());
12800
      processMap.put("changeAmazonOrderStatus", new changeAmazonOrderStatus());
12863
      processMap.put("changeAmazonOrderStatus", new changeAmazonOrderStatus());
12801
      processMap.put("updateTimestampForAmazonOrder", new updateTimestampForAmazonOrder());
12864
      processMap.put("updateTimestampForAmazonOrder", new updateTimestampForAmazonOrder());
-
 
12865
      processMap.put("updateSourceDetailTimestamp", new updateSourceDetailTimestamp());
12802
      return processMap;
12866
      return processMap;
12803
    }
12867
    }
12804
 
12868
 
12805
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
12869
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
12806
      public createTransaction() {
12870
      public createTransaction() {
Line 16230... Line 16294...
16230
        result.setSuccessIsSet(true);
16294
        result.setSuccessIsSet(true);
16231
        return result;
16295
        return result;
16232
      }
16296
      }
16233
    }
16297
    }
16234
 
16298
 
-
 
16299
    private static class updateSourceDetailTimestamp<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateSourceDetailTimestamp_args> {
-
 
16300
      public updateSourceDetailTimestamp() {
-
 
16301
        super("updateSourceDetailTimestamp");
-
 
16302
      }
-
 
16303
 
-
 
16304
      protected updateSourceDetailTimestamp_args getEmptyArgsInstance() {
-
 
16305
        return new updateSourceDetailTimestamp_args();
-
 
16306
      }
-
 
16307
 
-
 
16308
      protected updateSourceDetailTimestamp_result getResult(I iface, updateSourceDetailTimestamp_args args) throws org.apache.thrift.TException {
-
 
16309
        updateSourceDetailTimestamp_result result = new updateSourceDetailTimestamp_result();
-
 
16310
        result.success = iface.updateSourceDetailTimestamp(args.id, args.lastUpdatedOn);
-
 
16311
        result.setSuccessIsSet(true);
-
 
16312
        return result;
-
 
16313
      }
-
 
16314
    }
-
 
16315
 
16235
  }
16316
  }
16236
 
16317
 
16237
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
16318
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
16238
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
16319
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
16239
 
16320
 
Line 150506... Line 150587...
150506
      boolean first = true;
150587
      boolean first = true;
150507
 
150588
 
150508
      sb.append("success:");
150589
      sb.append("success:");
150509
      sb.append(this.success);
150590
      sb.append(this.success);
150510
      first = false;
150591
      first = false;
-
 
150592
      sb.append(")");
-
 
150593
      return sb.toString();
-
 
150594
    }
-
 
150595
 
-
 
150596
    public void validate() throws org.apache.thrift.TException {
-
 
150597
      // check for required fields
-
 
150598
    }
-
 
150599
 
-
 
150600
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
150601
      try {
-
 
150602
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
150603
      } catch (org.apache.thrift.TException te) {
-
 
150604
        throw new java.io.IOException(te);
-
 
150605
      }
-
 
150606
    }
-
 
150607
 
-
 
150608
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
150609
      try {
-
 
150610
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
150611
      } catch (org.apache.thrift.TException te) {
-
 
150612
        throw new java.io.IOException(te);
-
 
150613
      }
-
 
150614
    }
-
 
150615
 
-
 
150616
  }
-
 
150617
 
-
 
150618
  public static class updateSourceDetailTimestamp_args implements org.apache.thrift.TBase<updateSourceDetailTimestamp_args, updateSourceDetailTimestamp_args._Fields>, java.io.Serializable, Cloneable   {
-
 
150619
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateSourceDetailTimestamp_args");
-
 
150620
 
-
 
150621
    private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
150622
    private static final org.apache.thrift.protocol.TField LAST_UPDATED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("lastUpdatedOn", org.apache.thrift.protocol.TType.I64, (short)2);
-
 
150623
 
-
 
150624
    private long id; // required
-
 
150625
    private long lastUpdatedOn; // required
-
 
150626
 
-
 
150627
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
150628
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
150629
      ID((short)1, "id"),
-
 
150630
      LAST_UPDATED_ON((short)2, "lastUpdatedOn");
-
 
150631
 
-
 
150632
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
150633
 
-
 
150634
      static {
-
 
150635
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
150636
          byName.put(field.getFieldName(), field);
-
 
150637
        }
-
 
150638
      }
-
 
150639
 
-
 
150640
      /**
-
 
150641
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
150642
       */
-
 
150643
      public static _Fields findByThriftId(int fieldId) {
-
 
150644
        switch(fieldId) {
-
 
150645
          case 1: // ID
-
 
150646
            return ID;
-
 
150647
          case 2: // LAST_UPDATED_ON
-
 
150648
            return LAST_UPDATED_ON;
-
 
150649
          default:
-
 
150650
            return null;
-
 
150651
        }
-
 
150652
      }
-
 
150653
 
-
 
150654
      /**
-
 
150655
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
150656
       * if it is not found.
-
 
150657
       */
-
 
150658
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
150659
        _Fields fields = findByThriftId(fieldId);
-
 
150660
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
150661
        return fields;
-
 
150662
      }
-
 
150663
 
-
 
150664
      /**
-
 
150665
       * Find the _Fields constant that matches name, or null if its not found.
-
 
150666
       */
-
 
150667
      public static _Fields findByName(String name) {
-
 
150668
        return byName.get(name);
-
 
150669
      }
-
 
150670
 
-
 
150671
      private final short _thriftId;
-
 
150672
      private final String _fieldName;
-
 
150673
 
-
 
150674
      _Fields(short thriftId, String fieldName) {
-
 
150675
        _thriftId = thriftId;
-
 
150676
        _fieldName = fieldName;
-
 
150677
      }
-
 
150678
 
-
 
150679
      public short getThriftFieldId() {
-
 
150680
        return _thriftId;
-
 
150681
      }
-
 
150682
 
-
 
150683
      public String getFieldName() {
-
 
150684
        return _fieldName;
-
 
150685
      }
-
 
150686
    }
-
 
150687
 
-
 
150688
    // isset id assignments
-
 
150689
    private static final int __ID_ISSET_ID = 0;
-
 
150690
    private static final int __LASTUPDATEDON_ISSET_ID = 1;
-
 
150691
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
150692
 
-
 
150693
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
150694
    static {
-
 
150695
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
150696
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
150697
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
150698
      tmpMap.put(_Fields.LAST_UPDATED_ON, new org.apache.thrift.meta_data.FieldMetaData("lastUpdatedOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
150699
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
150700
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
150701
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateSourceDetailTimestamp_args.class, metaDataMap);
-
 
150702
    }
-
 
150703
 
-
 
150704
    public updateSourceDetailTimestamp_args() {
-
 
150705
    }
-
 
150706
 
-
 
150707
    public updateSourceDetailTimestamp_args(
-
 
150708
      long id,
-
 
150709
      long lastUpdatedOn)
-
 
150710
    {
-
 
150711
      this();
-
 
150712
      this.id = id;
-
 
150713
      setIdIsSet(true);
-
 
150714
      this.lastUpdatedOn = lastUpdatedOn;
-
 
150715
      setLastUpdatedOnIsSet(true);
-
 
150716
    }
-
 
150717
 
-
 
150718
    /**
-
 
150719
     * Performs a deep copy on <i>other</i>.
-
 
150720
     */
-
 
150721
    public updateSourceDetailTimestamp_args(updateSourceDetailTimestamp_args other) {
-
 
150722
      __isset_bit_vector.clear();
-
 
150723
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
150724
      this.id = other.id;
-
 
150725
      this.lastUpdatedOn = other.lastUpdatedOn;
-
 
150726
    }
-
 
150727
 
-
 
150728
    public updateSourceDetailTimestamp_args deepCopy() {
-
 
150729
      return new updateSourceDetailTimestamp_args(this);
-
 
150730
    }
-
 
150731
 
-
 
150732
    @Override
-
 
150733
    public void clear() {
-
 
150734
      setIdIsSet(false);
-
 
150735
      this.id = 0;
-
 
150736
      setLastUpdatedOnIsSet(false);
-
 
150737
      this.lastUpdatedOn = 0;
-
 
150738
    }
-
 
150739
 
-
 
150740
    public long getId() {
-
 
150741
      return this.id;
-
 
150742
    }
-
 
150743
 
-
 
150744
    public void setId(long id) {
-
 
150745
      this.id = id;
-
 
150746
      setIdIsSet(true);
-
 
150747
    }
-
 
150748
 
-
 
150749
    public void unsetId() {
-
 
150750
      __isset_bit_vector.clear(__ID_ISSET_ID);
-
 
150751
    }
-
 
150752
 
-
 
150753
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
-
 
150754
    public boolean isSetId() {
-
 
150755
      return __isset_bit_vector.get(__ID_ISSET_ID);
-
 
150756
    }
-
 
150757
 
-
 
150758
    public void setIdIsSet(boolean value) {
-
 
150759
      __isset_bit_vector.set(__ID_ISSET_ID, value);
-
 
150760
    }
-
 
150761
 
-
 
150762
    public long getLastUpdatedOn() {
-
 
150763
      return this.lastUpdatedOn;
-
 
150764
    }
-
 
150765
 
-
 
150766
    public void setLastUpdatedOn(long lastUpdatedOn) {
-
 
150767
      this.lastUpdatedOn = lastUpdatedOn;
-
 
150768
      setLastUpdatedOnIsSet(true);
-
 
150769
    }
-
 
150770
 
-
 
150771
    public void unsetLastUpdatedOn() {
-
 
150772
      __isset_bit_vector.clear(__LASTUPDATEDON_ISSET_ID);
-
 
150773
    }
-
 
150774
 
-
 
150775
    /** Returns true if field lastUpdatedOn is set (has been assigned a value) and false otherwise */
-
 
150776
    public boolean isSetLastUpdatedOn() {
-
 
150777
      return __isset_bit_vector.get(__LASTUPDATEDON_ISSET_ID);
-
 
150778
    }
-
 
150779
 
-
 
150780
    public void setLastUpdatedOnIsSet(boolean value) {
-
 
150781
      __isset_bit_vector.set(__LASTUPDATEDON_ISSET_ID, value);
-
 
150782
    }
-
 
150783
 
-
 
150784
    public void setFieldValue(_Fields field, Object value) {
-
 
150785
      switch (field) {
-
 
150786
      case ID:
-
 
150787
        if (value == null) {
-
 
150788
          unsetId();
-
 
150789
        } else {
-
 
150790
          setId((Long)value);
-
 
150791
        }
-
 
150792
        break;
-
 
150793
 
-
 
150794
      case LAST_UPDATED_ON:
-
 
150795
        if (value == null) {
-
 
150796
          unsetLastUpdatedOn();
-
 
150797
        } else {
-
 
150798
          setLastUpdatedOn((Long)value);
-
 
150799
        }
-
 
150800
        break;
-
 
150801
 
-
 
150802
      }
-
 
150803
    }
-
 
150804
 
-
 
150805
    public Object getFieldValue(_Fields field) {
-
 
150806
      switch (field) {
-
 
150807
      case ID:
-
 
150808
        return Long.valueOf(getId());
-
 
150809
 
-
 
150810
      case LAST_UPDATED_ON:
-
 
150811
        return Long.valueOf(getLastUpdatedOn());
-
 
150812
 
-
 
150813
      }
-
 
150814
      throw new IllegalStateException();
-
 
150815
    }
-
 
150816
 
-
 
150817
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
150818
    public boolean isSet(_Fields field) {
-
 
150819
      if (field == null) {
-
 
150820
        throw new IllegalArgumentException();
-
 
150821
      }
-
 
150822
 
-
 
150823
      switch (field) {
-
 
150824
      case ID:
-
 
150825
        return isSetId();
-
 
150826
      case LAST_UPDATED_ON:
-
 
150827
        return isSetLastUpdatedOn();
-
 
150828
      }
-
 
150829
      throw new IllegalStateException();
-
 
150830
    }
-
 
150831
 
-
 
150832
    @Override
-
 
150833
    public boolean equals(Object that) {
-
 
150834
      if (that == null)
-
 
150835
        return false;
-
 
150836
      if (that instanceof updateSourceDetailTimestamp_args)
-
 
150837
        return this.equals((updateSourceDetailTimestamp_args)that);
-
 
150838
      return false;
-
 
150839
    }
-
 
150840
 
-
 
150841
    public boolean equals(updateSourceDetailTimestamp_args that) {
-
 
150842
      if (that == null)
-
 
150843
        return false;
-
 
150844
 
-
 
150845
      boolean this_present_id = true;
-
 
150846
      boolean that_present_id = true;
-
 
150847
      if (this_present_id || that_present_id) {
-
 
150848
        if (!(this_present_id && that_present_id))
-
 
150849
          return false;
-
 
150850
        if (this.id != that.id)
-
 
150851
          return false;
-
 
150852
      }
-
 
150853
 
-
 
150854
      boolean this_present_lastUpdatedOn = true;
-
 
150855
      boolean that_present_lastUpdatedOn = true;
-
 
150856
      if (this_present_lastUpdatedOn || that_present_lastUpdatedOn) {
-
 
150857
        if (!(this_present_lastUpdatedOn && that_present_lastUpdatedOn))
-
 
150858
          return false;
-
 
150859
        if (this.lastUpdatedOn != that.lastUpdatedOn)
-
 
150860
          return false;
-
 
150861
      }
-
 
150862
 
-
 
150863
      return true;
-
 
150864
    }
-
 
150865
 
-
 
150866
    @Override
-
 
150867
    public int hashCode() {
-
 
150868
      return 0;
-
 
150869
    }
-
 
150870
 
-
 
150871
    public int compareTo(updateSourceDetailTimestamp_args other) {
-
 
150872
      if (!getClass().equals(other.getClass())) {
-
 
150873
        return getClass().getName().compareTo(other.getClass().getName());
-
 
150874
      }
-
 
150875
 
-
 
150876
      int lastComparison = 0;
-
 
150877
      updateSourceDetailTimestamp_args typedOther = (updateSourceDetailTimestamp_args)other;
-
 
150878
 
-
 
150879
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
-
 
150880
      if (lastComparison != 0) {
-
 
150881
        return lastComparison;
-
 
150882
      }
-
 
150883
      if (isSetId()) {
-
 
150884
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
-
 
150885
        if (lastComparison != 0) {
-
 
150886
          return lastComparison;
-
 
150887
        }
-
 
150888
      }
-
 
150889
      lastComparison = Boolean.valueOf(isSetLastUpdatedOn()).compareTo(typedOther.isSetLastUpdatedOn());
-
 
150890
      if (lastComparison != 0) {
-
 
150891
        return lastComparison;
-
 
150892
      }
-
 
150893
      if (isSetLastUpdatedOn()) {
-
 
150894
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastUpdatedOn, typedOther.lastUpdatedOn);
-
 
150895
        if (lastComparison != 0) {
-
 
150896
          return lastComparison;
-
 
150897
        }
-
 
150898
      }
-
 
150899
      return 0;
-
 
150900
    }
-
 
150901
 
-
 
150902
    public _Fields fieldForId(int fieldId) {
-
 
150903
      return _Fields.findByThriftId(fieldId);
-
 
150904
    }
-
 
150905
 
-
 
150906
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
150907
      org.apache.thrift.protocol.TField field;
-
 
150908
      iprot.readStructBegin();
-
 
150909
      while (true)
-
 
150910
      {
-
 
150911
        field = iprot.readFieldBegin();
-
 
150912
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
150913
          break;
-
 
150914
        }
-
 
150915
        switch (field.id) {
-
 
150916
          case 1: // ID
-
 
150917
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
150918
              this.id = iprot.readI64();
-
 
150919
              setIdIsSet(true);
-
 
150920
            } else { 
-
 
150921
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
150922
            }
-
 
150923
            break;
-
 
150924
          case 2: // LAST_UPDATED_ON
-
 
150925
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
150926
              this.lastUpdatedOn = iprot.readI64();
-
 
150927
              setLastUpdatedOnIsSet(true);
-
 
150928
            } else { 
-
 
150929
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
150930
            }
-
 
150931
            break;
-
 
150932
          default:
-
 
150933
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
150934
        }
-
 
150935
        iprot.readFieldEnd();
-
 
150936
      }
-
 
150937
      iprot.readStructEnd();
-
 
150938
      validate();
-
 
150939
    }
-
 
150940
 
-
 
150941
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
150942
      validate();
-
 
150943
 
-
 
150944
      oprot.writeStructBegin(STRUCT_DESC);
-
 
150945
      oprot.writeFieldBegin(ID_FIELD_DESC);
-
 
150946
      oprot.writeI64(this.id);
-
 
150947
      oprot.writeFieldEnd();
-
 
150948
      oprot.writeFieldBegin(LAST_UPDATED_ON_FIELD_DESC);
-
 
150949
      oprot.writeI64(this.lastUpdatedOn);
-
 
150950
      oprot.writeFieldEnd();
-
 
150951
      oprot.writeFieldStop();
-
 
150952
      oprot.writeStructEnd();
-
 
150953
    }
-
 
150954
 
-
 
150955
    @Override
-
 
150956
    public String toString() {
-
 
150957
      StringBuilder sb = new StringBuilder("updateSourceDetailTimestamp_args(");
-
 
150958
      boolean first = true;
-
 
150959
 
-
 
150960
      sb.append("id:");
-
 
150961
      sb.append(this.id);
-
 
150962
      first = false;
-
 
150963
      if (!first) sb.append(", ");
-
 
150964
      sb.append("lastUpdatedOn:");
-
 
150965
      sb.append(this.lastUpdatedOn);
-
 
150966
      first = false;
-
 
150967
      sb.append(")");
-
 
150968
      return sb.toString();
-
 
150969
    }
-
 
150970
 
-
 
150971
    public void validate() throws org.apache.thrift.TException {
-
 
150972
      // check for required fields
-
 
150973
    }
-
 
150974
 
-
 
150975
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
150976
      try {
-
 
150977
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
150978
      } catch (org.apache.thrift.TException te) {
-
 
150979
        throw new java.io.IOException(te);
-
 
150980
      }
-
 
150981
    }
-
 
150982
 
-
 
150983
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
150984
      try {
-
 
150985
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
150986
        __isset_bit_vector = new BitSet(1);
-
 
150987
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
150988
      } catch (org.apache.thrift.TException te) {
-
 
150989
        throw new java.io.IOException(te);
-
 
150990
      }
-
 
150991
    }
-
 
150992
 
-
 
150993
  }
-
 
150994
 
-
 
150995
  public static class updateSourceDetailTimestamp_result implements org.apache.thrift.TBase<updateSourceDetailTimestamp_result, updateSourceDetailTimestamp_result._Fields>, java.io.Serializable, Cloneable   {
-
 
150996
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateSourceDetailTimestamp_result");
-
 
150997
 
-
 
150998
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
-
 
150999
 
-
 
151000
    private boolean success; // required
-
 
151001
 
-
 
151002
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
151003
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
151004
      SUCCESS((short)0, "success");
-
 
151005
 
-
 
151006
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
151007
 
-
 
151008
      static {
-
 
151009
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
151010
          byName.put(field.getFieldName(), field);
-
 
151011
        }
-
 
151012
      }
-
 
151013
 
-
 
151014
      /**
-
 
151015
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
151016
       */
-
 
151017
      public static _Fields findByThriftId(int fieldId) {
-
 
151018
        switch(fieldId) {
-
 
151019
          case 0: // SUCCESS
-
 
151020
            return SUCCESS;
-
 
151021
          default:
-
 
151022
            return null;
-
 
151023
        }
-
 
151024
      }
-
 
151025
 
-
 
151026
      /**
-
 
151027
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
151028
       * if it is not found.
-
 
151029
       */
-
 
151030
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
151031
        _Fields fields = findByThriftId(fieldId);
-
 
151032
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
151033
        return fields;
-
 
151034
      }
-
 
151035
 
-
 
151036
      /**
-
 
151037
       * Find the _Fields constant that matches name, or null if its not found.
-
 
151038
       */
-
 
151039
      public static _Fields findByName(String name) {
-
 
151040
        return byName.get(name);
-
 
151041
      }
-
 
151042
 
-
 
151043
      private final short _thriftId;
-
 
151044
      private final String _fieldName;
-
 
151045
 
-
 
151046
      _Fields(short thriftId, String fieldName) {
-
 
151047
        _thriftId = thriftId;
-
 
151048
        _fieldName = fieldName;
-
 
151049
      }
-
 
151050
 
-
 
151051
      public short getThriftFieldId() {
-
 
151052
        return _thriftId;
-
 
151053
      }
-
 
151054
 
-
 
151055
      public String getFieldName() {
-
 
151056
        return _fieldName;
-
 
151057
      }
-
 
151058
    }
-
 
151059
 
-
 
151060
    // isset id assignments
-
 
151061
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
151062
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
151063
 
-
 
151064
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
151065
    static {
-
 
151066
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
151067
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
151068
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
151069
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
151070
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateSourceDetailTimestamp_result.class, metaDataMap);
-
 
151071
    }
-
 
151072
 
-
 
151073
    public updateSourceDetailTimestamp_result() {
-
 
151074
    }
-
 
151075
 
-
 
151076
    public updateSourceDetailTimestamp_result(
-
 
151077
      boolean success)
-
 
151078
    {
-
 
151079
      this();
-
 
151080
      this.success = success;
-
 
151081
      setSuccessIsSet(true);
-
 
151082
    }
-
 
151083
 
-
 
151084
    /**
-
 
151085
     * Performs a deep copy on <i>other</i>.
-
 
151086
     */
-
 
151087
    public updateSourceDetailTimestamp_result(updateSourceDetailTimestamp_result other) {
-
 
151088
      __isset_bit_vector.clear();
-
 
151089
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
151090
      this.success = other.success;
-
 
151091
    }
-
 
151092
 
-
 
151093
    public updateSourceDetailTimestamp_result deepCopy() {
-
 
151094
      return new updateSourceDetailTimestamp_result(this);
-
 
151095
    }
-
 
151096
 
-
 
151097
    @Override
-
 
151098
    public void clear() {
-
 
151099
      setSuccessIsSet(false);
-
 
151100
      this.success = false;
-
 
151101
    }
-
 
151102
 
-
 
151103
    public boolean isSuccess() {
-
 
151104
      return this.success;
-
 
151105
    }
-
 
151106
 
-
 
151107
    public void setSuccess(boolean success) {
-
 
151108
      this.success = success;
-
 
151109
      setSuccessIsSet(true);
-
 
151110
    }
-
 
151111
 
-
 
151112
    public void unsetSuccess() {
-
 
151113
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
151114
    }
-
 
151115
 
-
 
151116
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
151117
    public boolean isSetSuccess() {
-
 
151118
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
151119
    }
-
 
151120
 
-
 
151121
    public void setSuccessIsSet(boolean value) {
-
 
151122
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
151123
    }
-
 
151124
 
-
 
151125
    public void setFieldValue(_Fields field, Object value) {
-
 
151126
      switch (field) {
-
 
151127
      case SUCCESS:
-
 
151128
        if (value == null) {
-
 
151129
          unsetSuccess();
-
 
151130
        } else {
-
 
151131
          setSuccess((Boolean)value);
-
 
151132
        }
-
 
151133
        break;
-
 
151134
 
-
 
151135
      }
-
 
151136
    }
-
 
151137
 
-
 
151138
    public Object getFieldValue(_Fields field) {
-
 
151139
      switch (field) {
-
 
151140
      case SUCCESS:
-
 
151141
        return Boolean.valueOf(isSuccess());
-
 
151142
 
-
 
151143
      }
-
 
151144
      throw new IllegalStateException();
-
 
151145
    }
-
 
151146
 
-
 
151147
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
151148
    public boolean isSet(_Fields field) {
-
 
151149
      if (field == null) {
-
 
151150
        throw new IllegalArgumentException();
-
 
151151
      }
-
 
151152
 
-
 
151153
      switch (field) {
-
 
151154
      case SUCCESS:
-
 
151155
        return isSetSuccess();
-
 
151156
      }
-
 
151157
      throw new IllegalStateException();
-
 
151158
    }
-
 
151159
 
-
 
151160
    @Override
-
 
151161
    public boolean equals(Object that) {
-
 
151162
      if (that == null)
-
 
151163
        return false;
-
 
151164
      if (that instanceof updateSourceDetailTimestamp_result)
-
 
151165
        return this.equals((updateSourceDetailTimestamp_result)that);
-
 
151166
      return false;
-
 
151167
    }
-
 
151168
 
-
 
151169
    public boolean equals(updateSourceDetailTimestamp_result that) {
-
 
151170
      if (that == null)
-
 
151171
        return false;
-
 
151172
 
-
 
151173
      boolean this_present_success = true;
-
 
151174
      boolean that_present_success = true;
-
 
151175
      if (this_present_success || that_present_success) {
-
 
151176
        if (!(this_present_success && that_present_success))
-
 
151177
          return false;
-
 
151178
        if (this.success != that.success)
-
 
151179
          return false;
-
 
151180
      }
-
 
151181
 
-
 
151182
      return true;
-
 
151183
    }
-
 
151184
 
-
 
151185
    @Override
-
 
151186
    public int hashCode() {
-
 
151187
      return 0;
-
 
151188
    }
-
 
151189
 
-
 
151190
    public int compareTo(updateSourceDetailTimestamp_result other) {
-
 
151191
      if (!getClass().equals(other.getClass())) {
-
 
151192
        return getClass().getName().compareTo(other.getClass().getName());
-
 
151193
      }
-
 
151194
 
-
 
151195
      int lastComparison = 0;
-
 
151196
      updateSourceDetailTimestamp_result typedOther = (updateSourceDetailTimestamp_result)other;
-
 
151197
 
-
 
151198
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
151199
      if (lastComparison != 0) {
-
 
151200
        return lastComparison;
-
 
151201
      }
-
 
151202
      if (isSetSuccess()) {
-
 
151203
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
151204
        if (lastComparison != 0) {
-
 
151205
          return lastComparison;
-
 
151206
        }
-
 
151207
      }
-
 
151208
      return 0;
-
 
151209
    }
-
 
151210
 
-
 
151211
    public _Fields fieldForId(int fieldId) {
-
 
151212
      return _Fields.findByThriftId(fieldId);
-
 
151213
    }
-
 
151214
 
-
 
151215
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
151216
      org.apache.thrift.protocol.TField field;
-
 
151217
      iprot.readStructBegin();
-
 
151218
      while (true)
-
 
151219
      {
-
 
151220
        field = iprot.readFieldBegin();
-
 
151221
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
151222
          break;
-
 
151223
        }
-
 
151224
        switch (field.id) {
-
 
151225
          case 0: // SUCCESS
-
 
151226
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
151227
              this.success = iprot.readBool();
-
 
151228
              setSuccessIsSet(true);
-
 
151229
            } else { 
-
 
151230
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
151231
            }
-
 
151232
            break;
-
 
151233
          default:
-
 
151234
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
151235
        }
-
 
151236
        iprot.readFieldEnd();
-
 
151237
      }
-
 
151238
      iprot.readStructEnd();
-
 
151239
      validate();
-
 
151240
    }
-
 
151241
 
-
 
151242
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
151243
      oprot.writeStructBegin(STRUCT_DESC);
-
 
151244
 
-
 
151245
      if (this.isSetSuccess()) {
-
 
151246
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
151247
        oprot.writeBool(this.success);
-
 
151248
        oprot.writeFieldEnd();
-
 
151249
      }
-
 
151250
      oprot.writeFieldStop();
-
 
151251
      oprot.writeStructEnd();
-
 
151252
    }
-
 
151253
 
-
 
151254
    @Override
-
 
151255
    public String toString() {
-
 
151256
      StringBuilder sb = new StringBuilder("updateSourceDetailTimestamp_result(");
-
 
151257
      boolean first = true;
-
 
151258
 
-
 
151259
      sb.append("success:");
-
 
151260
      sb.append(this.success);
-
 
151261
      first = false;
150511
      sb.append(")");
151262
      sb.append(")");
150512
      return sb.toString();
151263
      return sb.toString();
150513
    }
151264
    }
150514
 
151265
 
150515
    public void validate() throws org.apache.thrift.TException {
151266
    public void validate() throws org.apache.thrift.TException {