Subversion Repositories SmartDukaan

Rev

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

Rev 11526 Rev 11896
Line 1066... Line 1066...
1066
 
1066
 
1067
    public void bulkAddOrUpdateAmazonFbaSalesSnapshot(List<AmazonFbaSalesSnapshot> amazonfbasalessnapshotlist) throws org.apache.thrift.TException;
1067
    public void bulkAddOrUpdateAmazonFbaSalesSnapshot(List<AmazonFbaSalesSnapshot> amazonfbasalessnapshotlist) throws org.apache.thrift.TException;
1068
 
1068
 
1069
    public Map<Long,Long> getCreatedOrdersForFlipkart(List<String> flipkartorderids) throws org.apache.thrift.TException;
1069
    public Map<Long,Long> getCreatedOrdersForFlipkart(List<String> flipkartorderids) throws org.apache.thrift.TException;
1070
 
1070
 
-
 
1071
    public boolean isPrivateDealTransaction(long transactionId) throws org.apache.thrift.TException;
-
 
1072
 
1071
  }
1073
  }
1072
 
1074
 
1073
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1075
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1074
 
1076
 
1075
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
1077
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1518... Line 1520...
1518
 
1520
 
1519
    public void bulkAddOrUpdateAmazonFbaSalesSnapshot(List<AmazonFbaSalesSnapshot> amazonfbasalessnapshotlist, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.bulkAddOrUpdateAmazonFbaSalesSnapshot_call> resultHandler) throws org.apache.thrift.TException;
1521
    public void bulkAddOrUpdateAmazonFbaSalesSnapshot(List<AmazonFbaSalesSnapshot> amazonfbasalessnapshotlist, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.bulkAddOrUpdateAmazonFbaSalesSnapshot_call> resultHandler) throws org.apache.thrift.TException;
1520
 
1522
 
1521
    public void getCreatedOrdersForFlipkart(List<String> flipkartorderids, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCreatedOrdersForFlipkart_call> resultHandler) throws org.apache.thrift.TException;
1523
    public void getCreatedOrdersForFlipkart(List<String> flipkartorderids, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCreatedOrdersForFlipkart_call> resultHandler) throws org.apache.thrift.TException;
1522
 
1524
 
-
 
1525
    public void isPrivateDealTransaction(long transactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isPrivateDealTransaction_call> resultHandler) throws org.apache.thrift.TException;
-
 
1526
 
1523
  }
1527
  }
1524
 
1528
 
1525
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1529
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1526
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1530
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1527
      public Factory() {}
1531
      public Factory() {}
Line 7054... Line 7058...
7054
        return result.success;
7058
        return result.success;
7055
      }
7059
      }
7056
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCreatedOrdersForFlipkart failed: unknown result");
7060
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCreatedOrdersForFlipkart failed: unknown result");
7057
    }
7061
    }
7058
 
7062
 
-
 
7063
    public boolean isPrivateDealTransaction(long transactionId) throws org.apache.thrift.TException
-
 
7064
    {
-
 
7065
      send_isPrivateDealTransaction(transactionId);
-
 
7066
      return recv_isPrivateDealTransaction();
-
 
7067
    }
-
 
7068
 
-
 
7069
    public void send_isPrivateDealTransaction(long transactionId) throws org.apache.thrift.TException
-
 
7070
    {
-
 
7071
      isPrivateDealTransaction_args args = new isPrivateDealTransaction_args();
-
 
7072
      args.setTransactionId(transactionId);
-
 
7073
      sendBase("isPrivateDealTransaction", args);
-
 
7074
    }
-
 
7075
 
-
 
7076
    public boolean recv_isPrivateDealTransaction() throws org.apache.thrift.TException
-
 
7077
    {
-
 
7078
      isPrivateDealTransaction_result result = new isPrivateDealTransaction_result();
-
 
7079
      receiveBase(result, "isPrivateDealTransaction");
-
 
7080
      if (result.isSetSuccess()) {
-
 
7081
        return result.success;
-
 
7082
      }
-
 
7083
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isPrivateDealTransaction failed: unknown result");
-
 
7084
    }
-
 
7085
 
7059
  }
7086
  }
7060
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
7087
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
7061
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
7088
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
7062
      private org.apache.thrift.async.TAsyncClientManager clientManager;
7089
      private org.apache.thrift.async.TAsyncClientManager clientManager;
7063
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
7090
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 14849... Line 14876...
14849
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
14876
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
14850
        return (new Client(prot)).recv_getCreatedOrdersForFlipkart();
14877
        return (new Client(prot)).recv_getCreatedOrdersForFlipkart();
14851
      }
14878
      }
14852
    }
14879
    }
14853
 
14880
 
-
 
14881
    public void isPrivateDealTransaction(long transactionId, org.apache.thrift.async.AsyncMethodCallback<isPrivateDealTransaction_call> resultHandler) throws org.apache.thrift.TException {
-
 
14882
      checkReady();
-
 
14883
      isPrivateDealTransaction_call method_call = new isPrivateDealTransaction_call(transactionId, resultHandler, this, ___protocolFactory, ___transport);
-
 
14884
      this.___currentMethod = method_call;
-
 
14885
      ___manager.call(method_call);
-
 
14886
    }
-
 
14887
 
-
 
14888
    public static class isPrivateDealTransaction_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
14889
      private long transactionId;
-
 
14890
      public isPrivateDealTransaction_call(long transactionId, org.apache.thrift.async.AsyncMethodCallback<isPrivateDealTransaction_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 {
-
 
14891
        super(client, protocolFactory, transport, resultHandler, false);
-
 
14892
        this.transactionId = transactionId;
-
 
14893
      }
-
 
14894
 
-
 
14895
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
14896
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("isPrivateDealTransaction", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
14897
        isPrivateDealTransaction_args args = new isPrivateDealTransaction_args();
-
 
14898
        args.setTransactionId(transactionId);
-
 
14899
        args.write(prot);
-
 
14900
        prot.writeMessageEnd();
-
 
14901
      }
-
 
14902
 
-
 
14903
      public boolean getResult() throws org.apache.thrift.TException {
-
 
14904
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
14905
          throw new IllegalStateException("Method call not finished!");
-
 
14906
        }
-
 
14907
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
14908
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
14909
        return (new Client(prot)).recv_isPrivateDealTransaction();
-
 
14910
      }
-
 
14911
    }
-
 
14912
 
14854
  }
14913
  }
14855
 
14914
 
14856
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
14915
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
14857
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
14916
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
14858
    public Processor(I iface) {
14917
    public Processor(I iface) {
Line 15086... Line 15145...
15086
      processMap.put("getMinCreatedTimeStampUndeliveredOrdersForSource", new getMinCreatedTimeStampUndeliveredOrdersForSource());
15145
      processMap.put("getMinCreatedTimeStampUndeliveredOrdersForSource", new getMinCreatedTimeStampUndeliveredOrdersForSource());
15087
      processMap.put("updateSnapdealOrdersStatus", new updateSnapdealOrdersStatus());
15146
      processMap.put("updateSnapdealOrdersStatus", new updateSnapdealOrdersStatus());
15088
      processMap.put("updateFlipkartOrdersStatus", new updateFlipkartOrdersStatus());
15147
      processMap.put("updateFlipkartOrdersStatus", new updateFlipkartOrdersStatus());
15089
      processMap.put("bulkAddOrUpdateAmazonFbaSalesSnapshot", new bulkAddOrUpdateAmazonFbaSalesSnapshot());
15148
      processMap.put("bulkAddOrUpdateAmazonFbaSalesSnapshot", new bulkAddOrUpdateAmazonFbaSalesSnapshot());
15090
      processMap.put("getCreatedOrdersForFlipkart", new getCreatedOrdersForFlipkart());
15149
      processMap.put("getCreatedOrdersForFlipkart", new getCreatedOrdersForFlipkart());
-
 
15150
      processMap.put("isPrivateDealTransaction", new isPrivateDealTransaction());
15091
      return processMap;
15151
      return processMap;
15092
    }
15152
    }
15093
 
15153
 
15094
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
15154
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
15095
      public createTransaction() {
15155
      public createTransaction() {
Line 19137... Line 19197...
19137
        result.success = iface.getCreatedOrdersForFlipkart(args.flipkartorderids);
19197
        result.success = iface.getCreatedOrdersForFlipkart(args.flipkartorderids);
19138
        return result;
19198
        return result;
19139
      }
19199
      }
19140
    }
19200
    }
19141
 
19201
 
-
 
19202
    private static class isPrivateDealTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, isPrivateDealTransaction_args> {
-
 
19203
      public isPrivateDealTransaction() {
-
 
19204
        super("isPrivateDealTransaction");
-
 
19205
      }
-
 
19206
 
-
 
19207
      protected isPrivateDealTransaction_args getEmptyArgsInstance() {
-
 
19208
        return new isPrivateDealTransaction_args();
-
 
19209
      }
-
 
19210
 
-
 
19211
      protected isPrivateDealTransaction_result getResult(I iface, isPrivateDealTransaction_args args) throws org.apache.thrift.TException {
-
 
19212
        isPrivateDealTransaction_result result = new isPrivateDealTransaction_result();
-
 
19213
        result.success = iface.isPrivateDealTransaction(args.transactionId);
-
 
19214
        result.setSuccessIsSet(true);
-
 
19215
        return result;
-
 
19216
      }
-
 
19217
    }
-
 
19218
 
19142
  }
19219
  }
19143
 
19220
 
19144
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
19221
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
19145
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
19222
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
19146
 
19223
 
Line 177039... Line 177116...
177039
      first = false;
177116
      first = false;
177040
      sb.append(")");
177117
      sb.append(")");
177041
      return sb.toString();
177118
      return sb.toString();
177042
    }
177119
    }
177043
 
177120
 
-
 
177121
    public void validate() throws org.apache.thrift.TException {
-
 
177122
      // check for required fields
-
 
177123
    }
-
 
177124
 
-
 
177125
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
177126
      try {
-
 
177127
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
177128
      } catch (org.apache.thrift.TException te) {
-
 
177129
        throw new java.io.IOException(te);
-
 
177130
      }
-
 
177131
    }
-
 
177132
 
-
 
177133
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
177134
      try {
-
 
177135
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
177136
      } catch (org.apache.thrift.TException te) {
-
 
177137
        throw new java.io.IOException(te);
-
 
177138
      }
-
 
177139
    }
-
 
177140
 
-
 
177141
  }
-
 
177142
 
-
 
177143
  public static class isPrivateDealTransaction_args implements org.apache.thrift.TBase<isPrivateDealTransaction_args, isPrivateDealTransaction_args._Fields>, java.io.Serializable, Cloneable   {
-
 
177144
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isPrivateDealTransaction_args");
-
 
177145
 
-
 
177146
    private static final org.apache.thrift.protocol.TField TRANSACTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("transactionId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
177147
 
-
 
177148
    private long transactionId; // required
-
 
177149
 
-
 
177150
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
177151
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
177152
      TRANSACTION_ID((short)1, "transactionId");
-
 
177153
 
-
 
177154
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
177155
 
-
 
177156
      static {
-
 
177157
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
177158
          byName.put(field.getFieldName(), field);
-
 
177159
        }
-
 
177160
      }
-
 
177161
 
-
 
177162
      /**
-
 
177163
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
177164
       */
-
 
177165
      public static _Fields findByThriftId(int fieldId) {
-
 
177166
        switch(fieldId) {
-
 
177167
          case 1: // TRANSACTION_ID
-
 
177168
            return TRANSACTION_ID;
-
 
177169
          default:
-
 
177170
            return null;
-
 
177171
        }
-
 
177172
      }
-
 
177173
 
-
 
177174
      /**
-
 
177175
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
177176
       * if it is not found.
-
 
177177
       */
-
 
177178
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
177179
        _Fields fields = findByThriftId(fieldId);
-
 
177180
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
177181
        return fields;
-
 
177182
      }
-
 
177183
 
-
 
177184
      /**
-
 
177185
       * Find the _Fields constant that matches name, or null if its not found.
-
 
177186
       */
-
 
177187
      public static _Fields findByName(String name) {
-
 
177188
        return byName.get(name);
-
 
177189
      }
-
 
177190
 
-
 
177191
      private final short _thriftId;
-
 
177192
      private final String _fieldName;
-
 
177193
 
-
 
177194
      _Fields(short thriftId, String fieldName) {
-
 
177195
        _thriftId = thriftId;
-
 
177196
        _fieldName = fieldName;
-
 
177197
      }
-
 
177198
 
-
 
177199
      public short getThriftFieldId() {
-
 
177200
        return _thriftId;
-
 
177201
      }
-
 
177202
 
-
 
177203
      public String getFieldName() {
-
 
177204
        return _fieldName;
-
 
177205
      }
-
 
177206
    }
-
 
177207
 
-
 
177208
    // isset id assignments
-
 
177209
    private static final int __TRANSACTIONID_ISSET_ID = 0;
-
 
177210
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
177211
 
-
 
177212
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
177213
    static {
-
 
177214
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
177215
      tmpMap.put(_Fields.TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("transactionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
177216
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
177217
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
177218
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isPrivateDealTransaction_args.class, metaDataMap);
-
 
177219
    }
-
 
177220
 
-
 
177221
    public isPrivateDealTransaction_args() {
-
 
177222
    }
-
 
177223
 
-
 
177224
    public isPrivateDealTransaction_args(
-
 
177225
      long transactionId)
-
 
177226
    {
-
 
177227
      this();
-
 
177228
      this.transactionId = transactionId;
-
 
177229
      setTransactionIdIsSet(true);
-
 
177230
    }
-
 
177231
 
-
 
177232
    /**
-
 
177233
     * Performs a deep copy on <i>other</i>.
-
 
177234
     */
-
 
177235
    public isPrivateDealTransaction_args(isPrivateDealTransaction_args other) {
-
 
177236
      __isset_bit_vector.clear();
-
 
177237
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
177238
      this.transactionId = other.transactionId;
-
 
177239
    }
-
 
177240
 
-
 
177241
    public isPrivateDealTransaction_args deepCopy() {
-
 
177242
      return new isPrivateDealTransaction_args(this);
-
 
177243
    }
-
 
177244
 
-
 
177245
    @Override
-
 
177246
    public void clear() {
-
 
177247
      setTransactionIdIsSet(false);
-
 
177248
      this.transactionId = 0;
-
 
177249
    }
-
 
177250
 
-
 
177251
    public long getTransactionId() {
-
 
177252
      return this.transactionId;
-
 
177253
    }
-
 
177254
 
-
 
177255
    public void setTransactionId(long transactionId) {
-
 
177256
      this.transactionId = transactionId;
-
 
177257
      setTransactionIdIsSet(true);
-
 
177258
    }
-
 
177259
 
-
 
177260
    public void unsetTransactionId() {
-
 
177261
      __isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);
-
 
177262
    }
-
 
177263
 
-
 
177264
    /** Returns true if field transactionId is set (has been assigned a value) and false otherwise */
-
 
177265
    public boolean isSetTransactionId() {
-
 
177266
      return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);
-
 
177267
    }
-
 
177268
 
-
 
177269
    public void setTransactionIdIsSet(boolean value) {
-
 
177270
      __isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);
-
 
177271
    }
-
 
177272
 
-
 
177273
    public void setFieldValue(_Fields field, Object value) {
-
 
177274
      switch (field) {
-
 
177275
      case TRANSACTION_ID:
-
 
177276
        if (value == null) {
-
 
177277
          unsetTransactionId();
-
 
177278
        } else {
-
 
177279
          setTransactionId((Long)value);
-
 
177280
        }
-
 
177281
        break;
-
 
177282
 
-
 
177283
      }
-
 
177284
    }
-
 
177285
 
-
 
177286
    public Object getFieldValue(_Fields field) {
-
 
177287
      switch (field) {
-
 
177288
      case TRANSACTION_ID:
-
 
177289
        return Long.valueOf(getTransactionId());
-
 
177290
 
-
 
177291
      }
-
 
177292
      throw new IllegalStateException();
-
 
177293
    }
-
 
177294
 
-
 
177295
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
177296
    public boolean isSet(_Fields field) {
-
 
177297
      if (field == null) {
-
 
177298
        throw new IllegalArgumentException();
-
 
177299
      }
-
 
177300
 
-
 
177301
      switch (field) {
-
 
177302
      case TRANSACTION_ID:
-
 
177303
        return isSetTransactionId();
-
 
177304
      }
-
 
177305
      throw new IllegalStateException();
-
 
177306
    }
-
 
177307
 
-
 
177308
    @Override
-
 
177309
    public boolean equals(Object that) {
-
 
177310
      if (that == null)
-
 
177311
        return false;
-
 
177312
      if (that instanceof isPrivateDealTransaction_args)
-
 
177313
        return this.equals((isPrivateDealTransaction_args)that);
-
 
177314
      return false;
-
 
177315
    }
-
 
177316
 
-
 
177317
    public boolean equals(isPrivateDealTransaction_args that) {
-
 
177318
      if (that == null)
-
 
177319
        return false;
-
 
177320
 
-
 
177321
      boolean this_present_transactionId = true;
-
 
177322
      boolean that_present_transactionId = true;
-
 
177323
      if (this_present_transactionId || that_present_transactionId) {
-
 
177324
        if (!(this_present_transactionId && that_present_transactionId))
-
 
177325
          return false;
-
 
177326
        if (this.transactionId != that.transactionId)
-
 
177327
          return false;
-
 
177328
      }
-
 
177329
 
-
 
177330
      return true;
-
 
177331
    }
-
 
177332
 
-
 
177333
    @Override
-
 
177334
    public int hashCode() {
-
 
177335
      return 0;
-
 
177336
    }
-
 
177337
 
-
 
177338
    public int compareTo(isPrivateDealTransaction_args other) {
-
 
177339
      if (!getClass().equals(other.getClass())) {
-
 
177340
        return getClass().getName().compareTo(other.getClass().getName());
-
 
177341
      }
-
 
177342
 
-
 
177343
      int lastComparison = 0;
-
 
177344
      isPrivateDealTransaction_args typedOther = (isPrivateDealTransaction_args)other;
-
 
177345
 
-
 
177346
      lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(typedOther.isSetTransactionId());
-
 
177347
      if (lastComparison != 0) {
-
 
177348
        return lastComparison;
-
 
177349
      }
-
 
177350
      if (isSetTransactionId()) {
-
 
177351
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionId, typedOther.transactionId);
-
 
177352
        if (lastComparison != 0) {
-
 
177353
          return lastComparison;
-
 
177354
        }
-
 
177355
      }
-
 
177356
      return 0;
-
 
177357
    }
-
 
177358
 
-
 
177359
    public _Fields fieldForId(int fieldId) {
-
 
177360
      return _Fields.findByThriftId(fieldId);
-
 
177361
    }
-
 
177362
 
-
 
177363
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
177364
      org.apache.thrift.protocol.TField field;
-
 
177365
      iprot.readStructBegin();
-
 
177366
      while (true)
-
 
177367
      {
-
 
177368
        field = iprot.readFieldBegin();
-
 
177369
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
177370
          break;
-
 
177371
        }
-
 
177372
        switch (field.id) {
-
 
177373
          case 1: // TRANSACTION_ID
-
 
177374
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
177375
              this.transactionId = iprot.readI64();
-
 
177376
              setTransactionIdIsSet(true);
-
 
177377
            } else { 
-
 
177378
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
177379
            }
-
 
177380
            break;
-
 
177381
          default:
-
 
177382
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
177383
        }
-
 
177384
        iprot.readFieldEnd();
-
 
177385
      }
-
 
177386
      iprot.readStructEnd();
-
 
177387
      validate();
-
 
177388
    }
-
 
177389
 
-
 
177390
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
177391
      validate();
-
 
177392
 
-
 
177393
      oprot.writeStructBegin(STRUCT_DESC);
-
 
177394
      oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
-
 
177395
      oprot.writeI64(this.transactionId);
-
 
177396
      oprot.writeFieldEnd();
-
 
177397
      oprot.writeFieldStop();
-
 
177398
      oprot.writeStructEnd();
-
 
177399
    }
-
 
177400
 
-
 
177401
    @Override
-
 
177402
    public String toString() {
-
 
177403
      StringBuilder sb = new StringBuilder("isPrivateDealTransaction_args(");
-
 
177404
      boolean first = true;
-
 
177405
 
-
 
177406
      sb.append("transactionId:");
-
 
177407
      sb.append(this.transactionId);
-
 
177408
      first = false;
-
 
177409
      sb.append(")");
-
 
177410
      return sb.toString();
-
 
177411
    }
-
 
177412
 
-
 
177413
    public void validate() throws org.apache.thrift.TException {
-
 
177414
      // check for required fields
-
 
177415
    }
-
 
177416
 
-
 
177417
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
177418
      try {
-
 
177419
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
177420
      } catch (org.apache.thrift.TException te) {
-
 
177421
        throw new java.io.IOException(te);
-
 
177422
      }
-
 
177423
    }
-
 
177424
 
-
 
177425
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
177426
      try {
-
 
177427
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
177428
        __isset_bit_vector = new BitSet(1);
-
 
177429
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
177430
      } catch (org.apache.thrift.TException te) {
-
 
177431
        throw new java.io.IOException(te);
-
 
177432
      }
-
 
177433
    }
-
 
177434
 
-
 
177435
  }
-
 
177436
 
-
 
177437
  public static class isPrivateDealTransaction_result implements org.apache.thrift.TBase<isPrivateDealTransaction_result, isPrivateDealTransaction_result._Fields>, java.io.Serializable, Cloneable   {
-
 
177438
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isPrivateDealTransaction_result");
-
 
177439
 
-
 
177440
    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);
-
 
177441
 
-
 
177442
    private boolean success; // required
-
 
177443
 
-
 
177444
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
177445
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
177446
      SUCCESS((short)0, "success");
-
 
177447
 
-
 
177448
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
177449
 
-
 
177450
      static {
-
 
177451
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
177452
          byName.put(field.getFieldName(), field);
-
 
177453
        }
-
 
177454
      }
-
 
177455
 
-
 
177456
      /**
-
 
177457
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
177458
       */
-
 
177459
      public static _Fields findByThriftId(int fieldId) {
-
 
177460
        switch(fieldId) {
-
 
177461
          case 0: // SUCCESS
-
 
177462
            return SUCCESS;
-
 
177463
          default:
-
 
177464
            return null;
-
 
177465
        }
-
 
177466
      }
-
 
177467
 
-
 
177468
      /**
-
 
177469
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
177470
       * if it is not found.
-
 
177471
       */
-
 
177472
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
177473
        _Fields fields = findByThriftId(fieldId);
-
 
177474
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
177475
        return fields;
-
 
177476
      }
-
 
177477
 
-
 
177478
      /**
-
 
177479
       * Find the _Fields constant that matches name, or null if its not found.
-
 
177480
       */
-
 
177481
      public static _Fields findByName(String name) {
-
 
177482
        return byName.get(name);
-
 
177483
      }
-
 
177484
 
-
 
177485
      private final short _thriftId;
-
 
177486
      private final String _fieldName;
-
 
177487
 
-
 
177488
      _Fields(short thriftId, String fieldName) {
-
 
177489
        _thriftId = thriftId;
-
 
177490
        _fieldName = fieldName;
-
 
177491
      }
-
 
177492
 
-
 
177493
      public short getThriftFieldId() {
-
 
177494
        return _thriftId;
-
 
177495
      }
-
 
177496
 
-
 
177497
      public String getFieldName() {
-
 
177498
        return _fieldName;
-
 
177499
      }
-
 
177500
    }
-
 
177501
 
-
 
177502
    // isset id assignments
-
 
177503
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
177504
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
177505
 
-
 
177506
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
177507
    static {
-
 
177508
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
177509
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
177510
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
177511
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
177512
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isPrivateDealTransaction_result.class, metaDataMap);
-
 
177513
    }
-
 
177514
 
-
 
177515
    public isPrivateDealTransaction_result() {
-
 
177516
    }
-
 
177517
 
-
 
177518
    public isPrivateDealTransaction_result(
-
 
177519
      boolean success)
-
 
177520
    {
-
 
177521
      this();
-
 
177522
      this.success = success;
-
 
177523
      setSuccessIsSet(true);
-
 
177524
    }
-
 
177525
 
-
 
177526
    /**
-
 
177527
     * Performs a deep copy on <i>other</i>.
-
 
177528
     */
-
 
177529
    public isPrivateDealTransaction_result(isPrivateDealTransaction_result other) {
-
 
177530
      __isset_bit_vector.clear();
-
 
177531
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
177532
      this.success = other.success;
-
 
177533
    }
-
 
177534
 
-
 
177535
    public isPrivateDealTransaction_result deepCopy() {
-
 
177536
      return new isPrivateDealTransaction_result(this);
-
 
177537
    }
-
 
177538
 
-
 
177539
    @Override
-
 
177540
    public void clear() {
-
 
177541
      setSuccessIsSet(false);
-
 
177542
      this.success = false;
-
 
177543
    }
-
 
177544
 
-
 
177545
    public boolean isSuccess() {
-
 
177546
      return this.success;
-
 
177547
    }
-
 
177548
 
-
 
177549
    public void setSuccess(boolean success) {
-
 
177550
      this.success = success;
-
 
177551
      setSuccessIsSet(true);
-
 
177552
    }
-
 
177553
 
-
 
177554
    public void unsetSuccess() {
-
 
177555
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
177556
    }
-
 
177557
 
-
 
177558
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
177559
    public boolean isSetSuccess() {
-
 
177560
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
177561
    }
-
 
177562
 
-
 
177563
    public void setSuccessIsSet(boolean value) {
-
 
177564
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
177565
    }
-
 
177566
 
-
 
177567
    public void setFieldValue(_Fields field, Object value) {
-
 
177568
      switch (field) {
-
 
177569
      case SUCCESS:
-
 
177570
        if (value == null) {
-
 
177571
          unsetSuccess();
-
 
177572
        } else {
-
 
177573
          setSuccess((Boolean)value);
-
 
177574
        }
-
 
177575
        break;
-
 
177576
 
-
 
177577
      }
-
 
177578
    }
-
 
177579
 
-
 
177580
    public Object getFieldValue(_Fields field) {
-
 
177581
      switch (field) {
-
 
177582
      case SUCCESS:
-
 
177583
        return Boolean.valueOf(isSuccess());
-
 
177584
 
-
 
177585
      }
-
 
177586
      throw new IllegalStateException();
-
 
177587
    }
-
 
177588
 
-
 
177589
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
177590
    public boolean isSet(_Fields field) {
-
 
177591
      if (field == null) {
-
 
177592
        throw new IllegalArgumentException();
-
 
177593
      }
-
 
177594
 
-
 
177595
      switch (field) {
-
 
177596
      case SUCCESS:
-
 
177597
        return isSetSuccess();
-
 
177598
      }
-
 
177599
      throw new IllegalStateException();
-
 
177600
    }
-
 
177601
 
-
 
177602
    @Override
-
 
177603
    public boolean equals(Object that) {
-
 
177604
      if (that == null)
-
 
177605
        return false;
-
 
177606
      if (that instanceof isPrivateDealTransaction_result)
-
 
177607
        return this.equals((isPrivateDealTransaction_result)that);
-
 
177608
      return false;
-
 
177609
    }
-
 
177610
 
-
 
177611
    public boolean equals(isPrivateDealTransaction_result that) {
-
 
177612
      if (that == null)
-
 
177613
        return false;
-
 
177614
 
-
 
177615
      boolean this_present_success = true;
-
 
177616
      boolean that_present_success = true;
-
 
177617
      if (this_present_success || that_present_success) {
-
 
177618
        if (!(this_present_success && that_present_success))
-
 
177619
          return false;
-
 
177620
        if (this.success != that.success)
-
 
177621
          return false;
-
 
177622
      }
-
 
177623
 
-
 
177624
      return true;
-
 
177625
    }
-
 
177626
 
-
 
177627
    @Override
-
 
177628
    public int hashCode() {
-
 
177629
      return 0;
-
 
177630
    }
-
 
177631
 
-
 
177632
    public int compareTo(isPrivateDealTransaction_result other) {
-
 
177633
      if (!getClass().equals(other.getClass())) {
-
 
177634
        return getClass().getName().compareTo(other.getClass().getName());
-
 
177635
      }
-
 
177636
 
-
 
177637
      int lastComparison = 0;
-
 
177638
      isPrivateDealTransaction_result typedOther = (isPrivateDealTransaction_result)other;
-
 
177639
 
-
 
177640
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
177641
      if (lastComparison != 0) {
-
 
177642
        return lastComparison;
-
 
177643
      }
-
 
177644
      if (isSetSuccess()) {
-
 
177645
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
177646
        if (lastComparison != 0) {
-
 
177647
          return lastComparison;
-
 
177648
        }
-
 
177649
      }
-
 
177650
      return 0;
-
 
177651
    }
-
 
177652
 
-
 
177653
    public _Fields fieldForId(int fieldId) {
-
 
177654
      return _Fields.findByThriftId(fieldId);
-
 
177655
    }
-
 
177656
 
-
 
177657
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
177658
      org.apache.thrift.protocol.TField field;
-
 
177659
      iprot.readStructBegin();
-
 
177660
      while (true)
-
 
177661
      {
-
 
177662
        field = iprot.readFieldBegin();
-
 
177663
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
177664
          break;
-
 
177665
        }
-
 
177666
        switch (field.id) {
-
 
177667
          case 0: // SUCCESS
-
 
177668
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
177669
              this.success = iprot.readBool();
-
 
177670
              setSuccessIsSet(true);
-
 
177671
            } else { 
-
 
177672
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
177673
            }
-
 
177674
            break;
-
 
177675
          default:
-
 
177676
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
177677
        }
-
 
177678
        iprot.readFieldEnd();
-
 
177679
      }
-
 
177680
      iprot.readStructEnd();
-
 
177681
      validate();
-
 
177682
    }
-
 
177683
 
-
 
177684
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
177685
      oprot.writeStructBegin(STRUCT_DESC);
-
 
177686
 
-
 
177687
      if (this.isSetSuccess()) {
-
 
177688
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
177689
        oprot.writeBool(this.success);
-
 
177690
        oprot.writeFieldEnd();
-
 
177691
      }
-
 
177692
      oprot.writeFieldStop();
-
 
177693
      oprot.writeStructEnd();
-
 
177694
    }
-
 
177695
 
-
 
177696
    @Override
-
 
177697
    public String toString() {
-
 
177698
      StringBuilder sb = new StringBuilder("isPrivateDealTransaction_result(");
-
 
177699
      boolean first = true;
-
 
177700
 
-
 
177701
      sb.append("success:");
-
 
177702
      sb.append(this.success);
-
 
177703
      first = false;
-
 
177704
      sb.append(")");
-
 
177705
      return sb.toString();
-
 
177706
    }
-
 
177707
 
177044
    public void validate() throws org.apache.thrift.TException {
177708
    public void validate() throws org.apache.thrift.TException {
177045
      // check for required fields
177709
      // check for required fields
177046
    }
177710
    }
177047
 
177711
 
177048
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
177712
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {