Subversion Repositories SmartDukaan

Rev

Rev 68 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 68 Rev 132
Line 25... Line 25...
25
 
25
 
26
public class TransactionService {
26
public class TransactionService {
27
 
27
 
28
  public interface Iface {
28
  public interface Iface {
29
 
29
 
30
    public void createTransaction(Transaction transaction) throws TransactionServiceException, TException;
30
    public long createTransaction(Transaction transaction) throws TransactionServiceException, TException;
31
 
31
 
32
    /**
32
    /**
33
     * 	Get transaction methods.
33
     * 	Get transaction methods.
34
     * *
34
     * *
35
     * 
35
     * 
36
     * @param id
36
     * @param id
37
     */
37
     */
38
    public Transaction getTransaction(long id) throws TransactionServiceException, TException;
38
    public Transaction getTransaction(long id) throws TransactionServiceException, TException;
39
 
39
 
40
    public List<Transaction> getAllTransactions(TransactionStatus status, long from, long to) throws TransactionServiceException, TException;
40
    public List<Transaction> getAllTransactions(TransactionStatus status, long from_date, long to_date) throws TransactionServiceException, TException;
41
 
41
 
42
    public List<Transaction> getTransactionsForShipmentStatus(ShipmentStatus status, long from, long to) throws TransactionServiceException, TException;
42
    public List<Transaction> getTransactionsForShipmentStatus(ShipmentStatus status, long from_date, long to_date) throws TransactionServiceException, TException;
43
 
43
 
44
    public List<Transaction> getTransactionsForCustomer(long customerId, long from, long to, TransactionStatus status) throws TransactionServiceException, TException;
44
    public List<Transaction> getTransactionsForCustomer(long customerId, long from_date, long to_date, TransactionStatus status) throws TransactionServiceException, TException;
45
 
45
 
46
    public List<Transaction> getTransactionsForCustomerAndShipmentStatus(long customerId, long from, long to, ShipmentStatus status) throws TransactionServiceException, TException;
46
    public List<Transaction> getTransactionsForCustomerAndShipmentStatus(long customerId, long from_date, long to_date, ShipmentStatus status) throws TransactionServiceException, TException;
-
 
47
 
-
 
48
    public List<Transaction> getTransactionsForShoppingCartId(long shoppingCartId) throws TransactionServiceException, TException;
47
 
49
 
48
    public TransactionStatus getTransactionStatus(long transactionId) throws TransactionServiceException, TException;
50
    public TransactionStatus getTransactionStatus(long transactionId) throws TransactionServiceException, TException;
49
 
51
 
50
    public boolean changeTransactionStatus(long transactionId, TransactionStatus status, String description) throws TransactionServiceException, TException;
52
    public boolean changeTransactionStatus(long transactionId, TransactionStatus status, String description) throws TransactionServiceException, TException;
51
 
53
 
Line 100... Line 102...
100
    public TProtocol getOutputProtocol()
102
    public TProtocol getOutputProtocol()
101
    {
103
    {
102
      return this.oprot_;
104
      return this.oprot_;
103
    }
105
    }
104
 
106
 
105
    public void createTransaction(Transaction transaction) throws TransactionServiceException, TException
107
    public long createTransaction(Transaction transaction) throws TransactionServiceException, TException
106
    {
108
    {
107
      send_createTransaction(transaction);
109
      send_createTransaction(transaction);
108
      recv_createTransaction();
110
      return recv_createTransaction();
109
    }
111
    }
110
 
112
 
111
    public void send_createTransaction(Transaction transaction) throws TException
113
    public void send_createTransaction(Transaction transaction) throws TException
112
    {
114
    {
113
      oprot_.writeMessageBegin(new TMessage("createTransaction", TMessageType.CALL, seqid_));
115
      oprot_.writeMessageBegin(new TMessage("createTransaction", TMessageType.CALL, seqid_));
Line 116... Line 118...
116
      args.write(oprot_);
118
      args.write(oprot_);
117
      oprot_.writeMessageEnd();
119
      oprot_.writeMessageEnd();
118
      oprot_.getTransport().flush();
120
      oprot_.getTransport().flush();
119
    }
121
    }
120
 
122
 
121
    public void recv_createTransaction() throws TransactionServiceException, TException
123
    public long recv_createTransaction() throws TransactionServiceException, TException
122
    {
124
    {
123
      TMessage msg = iprot_.readMessageBegin();
125
      TMessage msg = iprot_.readMessageBegin();
124
      if (msg.type == TMessageType.EXCEPTION) {
126
      if (msg.type == TMessageType.EXCEPTION) {
125
        TApplicationException x = TApplicationException.read(iprot_);
127
        TApplicationException x = TApplicationException.read(iprot_);
126
        iprot_.readMessageEnd();
128
        iprot_.readMessageEnd();
127
        throw x;
129
        throw x;
128
      }
130
      }
129
      createTransaction_result result = new createTransaction_result();
131
      createTransaction_result result = new createTransaction_result();
130
      result.read(iprot_);
132
      result.read(iprot_);
131
      iprot_.readMessageEnd();
133
      iprot_.readMessageEnd();
-
 
134
      if (result.isSetSuccess()) {
-
 
135
        return result.success;
-
 
136
      }
132
      if (result.ex != null) {
137
      if (result.ex != null) {
133
        throw result.ex;
138
        throw result.ex;
134
      }
139
      }
135
      return;
140
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "createTransaction failed: unknown result");
136
    }
141
    }
137
 
142
 
138
    public Transaction getTransaction(long id) throws TransactionServiceException, TException
143
    public Transaction getTransaction(long id) throws TransactionServiceException, TException
139
    {
144
    {
140
      send_getTransaction(id);
145
      send_getTransaction(id);
Line 169... Line 174...
169
        throw result.ex;
174
        throw result.ex;
170
      }
175
      }
171
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getTransaction failed: unknown result");
176
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getTransaction failed: unknown result");
172
    }
177
    }
173
 
178
 
174
    public List<Transaction> getAllTransactions(TransactionStatus status, long from, long to) throws TransactionServiceException, TException
179
    public List<Transaction> getAllTransactions(TransactionStatus status, long from_date, long to_date) throws TransactionServiceException, TException
175
    {
180
    {
176
      send_getAllTransactions(status, from, to);
181
      send_getAllTransactions(status, from_date, to_date);
177
      return recv_getAllTransactions();
182
      return recv_getAllTransactions();
178
    }
183
    }
179
 
184
 
180
    public void send_getAllTransactions(TransactionStatus status, long from, long to) throws TException
185
    public void send_getAllTransactions(TransactionStatus status, long from_date, long to_date) throws TException
181
    {
186
    {
182
      oprot_.writeMessageBegin(new TMessage("getAllTransactions", TMessageType.CALL, seqid_));
187
      oprot_.writeMessageBegin(new TMessage("getAllTransactions", TMessageType.CALL, seqid_));
183
      getAllTransactions_args args = new getAllTransactions_args();
188
      getAllTransactions_args args = new getAllTransactions_args();
184
      args.status = status;
189
      args.status = status;
185
      args.from = from;
190
      args.from_date = from_date;
186
      args.to = to;
191
      args.to_date = to_date;
187
      args.write(oprot_);
192
      args.write(oprot_);
188
      oprot_.writeMessageEnd();
193
      oprot_.writeMessageEnd();
189
      oprot_.getTransport().flush();
194
      oprot_.getTransport().flush();
190
    }
195
    }
191
 
196
 
Line 207... Line 212...
207
        throw result.ex;
212
        throw result.ex;
208
      }
213
      }
209
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAllTransactions failed: unknown result");
214
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAllTransactions failed: unknown result");
210
    }
215
    }
211
 
216
 
212
    public List<Transaction> getTransactionsForShipmentStatus(ShipmentStatus status, long from, long to) throws TransactionServiceException, TException
217
    public List<Transaction> getTransactionsForShipmentStatus(ShipmentStatus status, long from_date, long to_date) throws TransactionServiceException, TException
213
    {
218
    {
214
      send_getTransactionsForShipmentStatus(status, from, to);
219
      send_getTransactionsForShipmentStatus(status, from_date, to_date);
215
      return recv_getTransactionsForShipmentStatus();
220
      return recv_getTransactionsForShipmentStatus();
216
    }
221
    }
217
 
222
 
218
    public void send_getTransactionsForShipmentStatus(ShipmentStatus status, long from, long to) throws TException
223
    public void send_getTransactionsForShipmentStatus(ShipmentStatus status, long from_date, long to_date) throws TException
219
    {
224
    {
220
      oprot_.writeMessageBegin(new TMessage("getTransactionsForShipmentStatus", TMessageType.CALL, seqid_));
225
      oprot_.writeMessageBegin(new TMessage("getTransactionsForShipmentStatus", TMessageType.CALL, seqid_));
221
      getTransactionsForShipmentStatus_args args = new getTransactionsForShipmentStatus_args();
226
      getTransactionsForShipmentStatus_args args = new getTransactionsForShipmentStatus_args();
222
      args.status = status;
227
      args.status = status;
223
      args.from = from;
228
      args.from_date = from_date;
224
      args.to = to;
229
      args.to_date = to_date;
225
      args.write(oprot_);
230
      args.write(oprot_);
226
      oprot_.writeMessageEnd();
231
      oprot_.writeMessageEnd();
227
      oprot_.getTransport().flush();
232
      oprot_.getTransport().flush();
228
    }
233
    }
229
 
234
 
Line 245... Line 250...
245
        throw result.ex;
250
        throw result.ex;
246
      }
251
      }
247
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionsForShipmentStatus failed: unknown result");
252
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionsForShipmentStatus failed: unknown result");
248
    }
253
    }
249
 
254
 
250
    public List<Transaction> getTransactionsForCustomer(long customerId, long from, long to, TransactionStatus status) throws TransactionServiceException, TException
255
    public List<Transaction> getTransactionsForCustomer(long customerId, long from_date, long to_date, TransactionStatus status) throws TransactionServiceException, TException
251
    {
256
    {
252
      send_getTransactionsForCustomer(customerId, from, to, status);
257
      send_getTransactionsForCustomer(customerId, from_date, to_date, status);
253
      return recv_getTransactionsForCustomer();
258
      return recv_getTransactionsForCustomer();
254
    }
259
    }
255
 
260
 
256
    public void send_getTransactionsForCustomer(long customerId, long from, long to, TransactionStatus status) throws TException
261
    public void send_getTransactionsForCustomer(long customerId, long from_date, long to_date, TransactionStatus status) throws TException
257
    {
262
    {
258
      oprot_.writeMessageBegin(new TMessage("getTransactionsForCustomer", TMessageType.CALL, seqid_));
263
      oprot_.writeMessageBegin(new TMessage("getTransactionsForCustomer", TMessageType.CALL, seqid_));
259
      getTransactionsForCustomer_args args = new getTransactionsForCustomer_args();
264
      getTransactionsForCustomer_args args = new getTransactionsForCustomer_args();
260
      args.customerId = customerId;
265
      args.customerId = customerId;
261
      args.from = from;
266
      args.from_date = from_date;
262
      args.to = to;
267
      args.to_date = to_date;
263
      args.status = status;
268
      args.status = status;
264
      args.write(oprot_);
269
      args.write(oprot_);
265
      oprot_.writeMessageEnd();
270
      oprot_.writeMessageEnd();
266
      oprot_.getTransport().flush();
271
      oprot_.getTransport().flush();
267
    }
272
    }
Line 284... Line 289...
284
        throw result.ex;
289
        throw result.ex;
285
      }
290
      }
286
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionsForCustomer failed: unknown result");
291
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionsForCustomer failed: unknown result");
287
    }
292
    }
288
 
293
 
289
    public List<Transaction> getTransactionsForCustomerAndShipmentStatus(long customerId, long from, long to, ShipmentStatus status) throws TransactionServiceException, TException
294
    public List<Transaction> getTransactionsForCustomerAndShipmentStatus(long customerId, long from_date, long to_date, ShipmentStatus status) throws TransactionServiceException, TException
290
    {
295
    {
291
      send_getTransactionsForCustomerAndShipmentStatus(customerId, from, to, status);
296
      send_getTransactionsForCustomerAndShipmentStatus(customerId, from_date, to_date, status);
292
      return recv_getTransactionsForCustomerAndShipmentStatus();
297
      return recv_getTransactionsForCustomerAndShipmentStatus();
293
    }
298
    }
294
 
299
 
295
    public void send_getTransactionsForCustomerAndShipmentStatus(long customerId, long from, long to, ShipmentStatus status) throws TException
300
    public void send_getTransactionsForCustomerAndShipmentStatus(long customerId, long from_date, long to_date, ShipmentStatus status) throws TException
296
    {
301
    {
297
      oprot_.writeMessageBegin(new TMessage("getTransactionsForCustomerAndShipmentStatus", TMessageType.CALL, seqid_));
302
      oprot_.writeMessageBegin(new TMessage("getTransactionsForCustomerAndShipmentStatus", TMessageType.CALL, seqid_));
298
      getTransactionsForCustomerAndShipmentStatus_args args = new getTransactionsForCustomerAndShipmentStatus_args();
303
      getTransactionsForCustomerAndShipmentStatus_args args = new getTransactionsForCustomerAndShipmentStatus_args();
299
      args.customerId = customerId;
304
      args.customerId = customerId;
300
      args.from = from;
305
      args.from_date = from_date;
301
      args.to = to;
306
      args.to_date = to_date;
302
      args.status = status;
307
      args.status = status;
303
      args.write(oprot_);
308
      args.write(oprot_);
304
      oprot_.writeMessageEnd();
309
      oprot_.writeMessageEnd();
305
      oprot_.getTransport().flush();
310
      oprot_.getTransport().flush();
306
    }
311
    }
Line 323... Line 328...
323
        throw result.ex;
328
        throw result.ex;
324
      }
329
      }
325
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionsForCustomerAndShipmentStatus failed: unknown result");
330
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionsForCustomerAndShipmentStatus failed: unknown result");
326
    }
331
    }
327
 
332
 
-
 
333
    public List<Transaction> getTransactionsForShoppingCartId(long shoppingCartId) throws TransactionServiceException, TException
-
 
334
    {
-
 
335
      send_getTransactionsForShoppingCartId(shoppingCartId);
-
 
336
      return recv_getTransactionsForShoppingCartId();
-
 
337
    }
-
 
338
 
-
 
339
    public void send_getTransactionsForShoppingCartId(long shoppingCartId) throws TException
-
 
340
    {
-
 
341
      oprot_.writeMessageBegin(new TMessage("getTransactionsForShoppingCartId", TMessageType.CALL, seqid_));
-
 
342
      getTransactionsForShoppingCartId_args args = new getTransactionsForShoppingCartId_args();
-
 
343
      args.shoppingCartId = shoppingCartId;
-
 
344
      args.write(oprot_);
-
 
345
      oprot_.writeMessageEnd();
-
 
346
      oprot_.getTransport().flush();
-
 
347
    }
-
 
348
 
-
 
349
    public List<Transaction> recv_getTransactionsForShoppingCartId() throws TransactionServiceException, TException
-
 
350
    {
-
 
351
      TMessage msg = iprot_.readMessageBegin();
-
 
352
      if (msg.type == TMessageType.EXCEPTION) {
-
 
353
        TApplicationException x = TApplicationException.read(iprot_);
-
 
354
        iprot_.readMessageEnd();
-
 
355
        throw x;
-
 
356
      }
-
 
357
      getTransactionsForShoppingCartId_result result = new getTransactionsForShoppingCartId_result();
-
 
358
      result.read(iprot_);
-
 
359
      iprot_.readMessageEnd();
-
 
360
      if (result.isSetSuccess()) {
-
 
361
        return result.success;
-
 
362
      }
-
 
363
      if (result.ex != null) {
-
 
364
        throw result.ex;
-
 
365
      }
-
 
366
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionsForShoppingCartId failed: unknown result");
-
 
367
    }
-
 
368
 
328
    public TransactionStatus getTransactionStatus(long transactionId) throws TransactionServiceException, TException
369
    public TransactionStatus getTransactionStatus(long transactionId) throws TransactionServiceException, TException
329
    {
370
    {
330
      send_getTransactionStatus(transactionId);
371
      send_getTransactionStatus(transactionId);
331
      return recv_getTransactionStatus();
372
      return recv_getTransactionStatus();
332
    }
373
    }
Line 746... Line 787...
746
      processMap_.put("getTransaction", new getTransaction());
787
      processMap_.put("getTransaction", new getTransaction());
747
      processMap_.put("getAllTransactions", new getAllTransactions());
788
      processMap_.put("getAllTransactions", new getAllTransactions());
748
      processMap_.put("getTransactionsForShipmentStatus", new getTransactionsForShipmentStatus());
789
      processMap_.put("getTransactionsForShipmentStatus", new getTransactionsForShipmentStatus());
749
      processMap_.put("getTransactionsForCustomer", new getTransactionsForCustomer());
790
      processMap_.put("getTransactionsForCustomer", new getTransactionsForCustomer());
750
      processMap_.put("getTransactionsForCustomerAndShipmentStatus", new getTransactionsForCustomerAndShipmentStatus());
791
      processMap_.put("getTransactionsForCustomerAndShipmentStatus", new getTransactionsForCustomerAndShipmentStatus());
-
 
792
      processMap_.put("getTransactionsForShoppingCartId", new getTransactionsForShoppingCartId());
751
      processMap_.put("getTransactionStatus", new getTransactionStatus());
793
      processMap_.put("getTransactionStatus", new getTransactionStatus());
752
      processMap_.put("changeTransactionStatus", new changeTransactionStatus());
794
      processMap_.put("changeTransactionStatus", new changeTransactionStatus());
753
      processMap_.put("getOrderInfo", new getOrderInfo());
795
      processMap_.put("getOrderInfo", new getOrderInfo());
754
      processMap_.put("getShippingInfo", new getShippingInfo());
796
      processMap_.put("getShippingInfo", new getShippingInfo());
755
      processMap_.put("getBillingInfo", new getBillingInfo());
797
      processMap_.put("getBillingInfo", new getBillingInfo());
Line 792... Line 834...
792
        createTransaction_args args = new createTransaction_args();
834
        createTransaction_args args = new createTransaction_args();
793
        args.read(iprot);
835
        args.read(iprot);
794
        iprot.readMessageEnd();
836
        iprot.readMessageEnd();
795
        createTransaction_result result = new createTransaction_result();
837
        createTransaction_result result = new createTransaction_result();
796
        try {
838
        try {
797
          iface_.createTransaction(args.transaction);
839
          result.success = iface_.createTransaction(args.transaction);
-
 
840
          result.setSuccessIsSet(true);
798
        } catch (TransactionServiceException ex) {
841
        } catch (TransactionServiceException ex) {
799
          result.ex = ex;
842
          result.ex = ex;
800
        } catch (Throwable th) {
843
        } catch (Throwable th) {
801
          LOGGER.error("Internal error processing createTransaction", th);
844
          LOGGER.error("Internal error processing createTransaction", th);
802
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing createTransaction");
845
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing createTransaction");
Line 848... Line 891...
848
        getAllTransactions_args args = new getAllTransactions_args();
891
        getAllTransactions_args args = new getAllTransactions_args();
849
        args.read(iprot);
892
        args.read(iprot);
850
        iprot.readMessageEnd();
893
        iprot.readMessageEnd();
851
        getAllTransactions_result result = new getAllTransactions_result();
894
        getAllTransactions_result result = new getAllTransactions_result();
852
        try {
895
        try {
853
          result.success = iface_.getAllTransactions(args.status, args.from, args.to);
896
          result.success = iface_.getAllTransactions(args.status, args.from_date, args.to_date);
854
        } catch (TransactionServiceException ex) {
897
        } catch (TransactionServiceException ex) {
855
          result.ex = ex;
898
          result.ex = ex;
856
        } catch (Throwable th) {
899
        } catch (Throwable th) {
857
          LOGGER.error("Internal error processing getAllTransactions", th);
900
          LOGGER.error("Internal error processing getAllTransactions", th);
858
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getAllTransactions");
901
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getAllTransactions");
Line 876... Line 919...
876
        getTransactionsForShipmentStatus_args args = new getTransactionsForShipmentStatus_args();
919
        getTransactionsForShipmentStatus_args args = new getTransactionsForShipmentStatus_args();
877
        args.read(iprot);
920
        args.read(iprot);
878
        iprot.readMessageEnd();
921
        iprot.readMessageEnd();
879
        getTransactionsForShipmentStatus_result result = new getTransactionsForShipmentStatus_result();
922
        getTransactionsForShipmentStatus_result result = new getTransactionsForShipmentStatus_result();
880
        try {
923
        try {
881
          result.success = iface_.getTransactionsForShipmentStatus(args.status, args.from, args.to);
924
          result.success = iface_.getTransactionsForShipmentStatus(args.status, args.from_date, args.to_date);
882
        } catch (TransactionServiceException ex) {
925
        } catch (TransactionServiceException ex) {
883
          result.ex = ex;
926
          result.ex = ex;
884
        } catch (Throwable th) {
927
        } catch (Throwable th) {
885
          LOGGER.error("Internal error processing getTransactionsForShipmentStatus", th);
928
          LOGGER.error("Internal error processing getTransactionsForShipmentStatus", th);
886
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getTransactionsForShipmentStatus");
929
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getTransactionsForShipmentStatus");
Line 904... Line 947...
904
        getTransactionsForCustomer_args args = new getTransactionsForCustomer_args();
947
        getTransactionsForCustomer_args args = new getTransactionsForCustomer_args();
905
        args.read(iprot);
948
        args.read(iprot);
906
        iprot.readMessageEnd();
949
        iprot.readMessageEnd();
907
        getTransactionsForCustomer_result result = new getTransactionsForCustomer_result();
950
        getTransactionsForCustomer_result result = new getTransactionsForCustomer_result();
908
        try {
951
        try {
909
          result.success = iface_.getTransactionsForCustomer(args.customerId, args.from, args.to, args.status);
952
          result.success = iface_.getTransactionsForCustomer(args.customerId, args.from_date, args.to_date, args.status);
910
        } catch (TransactionServiceException ex) {
953
        } catch (TransactionServiceException ex) {
911
          result.ex = ex;
954
          result.ex = ex;
912
        } catch (Throwable th) {
955
        } catch (Throwable th) {
913
          LOGGER.error("Internal error processing getTransactionsForCustomer", th);
956
          LOGGER.error("Internal error processing getTransactionsForCustomer", th);
914
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getTransactionsForCustomer");
957
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getTransactionsForCustomer");
Line 932... Line 975...
932
        getTransactionsForCustomerAndShipmentStatus_args args = new getTransactionsForCustomerAndShipmentStatus_args();
975
        getTransactionsForCustomerAndShipmentStatus_args args = new getTransactionsForCustomerAndShipmentStatus_args();
933
        args.read(iprot);
976
        args.read(iprot);
934
        iprot.readMessageEnd();
977
        iprot.readMessageEnd();
935
        getTransactionsForCustomerAndShipmentStatus_result result = new getTransactionsForCustomerAndShipmentStatus_result();
978
        getTransactionsForCustomerAndShipmentStatus_result result = new getTransactionsForCustomerAndShipmentStatus_result();
936
        try {
979
        try {
937
          result.success = iface_.getTransactionsForCustomerAndShipmentStatus(args.customerId, args.from, args.to, args.status);
980
          result.success = iface_.getTransactionsForCustomerAndShipmentStatus(args.customerId, args.from_date, args.to_date, args.status);
938
        } catch (TransactionServiceException ex) {
981
        } catch (TransactionServiceException ex) {
939
          result.ex = ex;
982
          result.ex = ex;
940
        } catch (Throwable th) {
983
        } catch (Throwable th) {
941
          LOGGER.error("Internal error processing getTransactionsForCustomerAndShipmentStatus", th);
984
          LOGGER.error("Internal error processing getTransactionsForCustomerAndShipmentStatus", th);
942
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getTransactionsForCustomerAndShipmentStatus");
985
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getTransactionsForCustomerAndShipmentStatus");
Line 952... Line 995...
952
        oprot.getTransport().flush();
995
        oprot.getTransport().flush();
953
      }
996
      }
954
 
997
 
955
    }
998
    }
956
 
999
 
-
 
1000
    private class getTransactionsForShoppingCartId implements ProcessFunction {
-
 
1001
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
1002
      {
-
 
1003
        getTransactionsForShoppingCartId_args args = new getTransactionsForShoppingCartId_args();
-
 
1004
        args.read(iprot);
-
 
1005
        iprot.readMessageEnd();
-
 
1006
        getTransactionsForShoppingCartId_result result = new getTransactionsForShoppingCartId_result();
-
 
1007
        try {
-
 
1008
          result.success = iface_.getTransactionsForShoppingCartId(args.shoppingCartId);
-
 
1009
        } catch (TransactionServiceException ex) {
-
 
1010
          result.ex = ex;
-
 
1011
        } catch (Throwable th) {
-
 
1012
          LOGGER.error("Internal error processing getTransactionsForShoppingCartId", th);
-
 
1013
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getTransactionsForShoppingCartId");
-
 
1014
          oprot.writeMessageBegin(new TMessage("getTransactionsForShoppingCartId", TMessageType.EXCEPTION, seqid));
-
 
1015
          x.write(oprot);
-
 
1016
          oprot.writeMessageEnd();
-
 
1017
          oprot.getTransport().flush();
-
 
1018
          return;
-
 
1019
        }
-
 
1020
        oprot.writeMessageBegin(new TMessage("getTransactionsForShoppingCartId", TMessageType.REPLY, seqid));
-
 
1021
        result.write(oprot);
-
 
1022
        oprot.writeMessageEnd();
-
 
1023
        oprot.getTransport().flush();
-
 
1024
      }
-
 
1025
 
-
 
1026
    }
-
 
1027
 
957
    private class getTransactionStatus implements ProcessFunction {
1028
    private class getTransactionStatus implements ProcessFunction {
958
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1029
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
959
      {
1030
      {
960
        getTransactionStatus_args args = new getTransactionStatus_args();
1031
        getTransactionStatus_args args = new getTransactionStatus_args();
961
        args.read(iprot);
1032
        args.read(iprot);
Line 1535... Line 1606...
1535
  }
1606
  }
1536
 
1607
 
1537
  public static class createTransaction_result implements TBase<createTransaction_result._Fields>, java.io.Serializable, Cloneable, Comparable<createTransaction_result>   {
1608
  public static class createTransaction_result implements TBase<createTransaction_result._Fields>, java.io.Serializable, Cloneable, Comparable<createTransaction_result>   {
1538
    private static final TStruct STRUCT_DESC = new TStruct("createTransaction_result");
1609
    private static final TStruct STRUCT_DESC = new TStruct("createTransaction_result");
1539
 
1610
 
-
 
1611
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I64, (short)0);
1540
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
1612
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
1541
 
1613
 
-
 
1614
    private long success;
1542
    private TransactionServiceException ex;
1615
    private TransactionServiceException ex;
1543
 
1616
 
1544
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1617
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1545
    public enum _Fields implements TFieldIdEnum {
1618
    public enum _Fields implements TFieldIdEnum {
-
 
1619
      SUCCESS((short)0, "success"),
1546
      EX((short)1, "ex");
1620
      EX((short)1, "ex");
1547
 
1621
 
1548
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
1622
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
1549
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1623
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1550
 
1624
 
Line 1595... Line 1669...
1595
        return _fieldName;
1669
        return _fieldName;
1596
      }
1670
      }
1597
    }
1671
    }
1598
 
1672
 
1599
    // isset id assignments
1673
    // isset id assignments
-
 
1674
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
1675
    private BitSet __isset_bit_vector = new BitSet(1);
1600
 
1676
 
1601
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
1677
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
1678
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
1679
          new FieldValueMetaData(TType.I64)));
1602
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
1680
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
1603
          new FieldValueMetaData(TType.STRUCT)));
1681
          new FieldValueMetaData(TType.STRUCT)));
1604
    }});
1682
    }});
1605
 
1683
 
1606
    static {
1684
    static {
Line 1609... Line 1687...
1609
 
1687
 
1610
    public createTransaction_result() {
1688
    public createTransaction_result() {
1611
    }
1689
    }
1612
 
1690
 
1613
    public createTransaction_result(
1691
    public createTransaction_result(
-
 
1692
      long success,
1614
      TransactionServiceException ex)
1693
      TransactionServiceException ex)
1615
    {
1694
    {
1616
      this();
1695
      this();
-
 
1696
      this.success = success;
-
 
1697
      setSuccessIsSet(true);
1617
      this.ex = ex;
1698
      this.ex = ex;
1618
    }
1699
    }
1619
 
1700
 
1620
    /**
1701
    /**
1621
     * Performs a deep copy on <i>other</i>.
1702
     * Performs a deep copy on <i>other</i>.
1622
     */
1703
     */
1623
    public createTransaction_result(createTransaction_result other) {
1704
    public createTransaction_result(createTransaction_result other) {
-
 
1705
      __isset_bit_vector.clear();
-
 
1706
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
1707
      this.success = other.success;
1624
      if (other.isSetEx()) {
1708
      if (other.isSetEx()) {
1625
        this.ex = new TransactionServiceException(other.ex);
1709
        this.ex = new TransactionServiceException(other.ex);
1626
      }
1710
      }
1627
    }
1711
    }
1628
 
1712
 
Line 1633... Line 1717...
1633
    @Deprecated
1717
    @Deprecated
1634
    public createTransaction_result clone() {
1718
    public createTransaction_result clone() {
1635
      return new createTransaction_result(this);
1719
      return new createTransaction_result(this);
1636
    }
1720
    }
1637
 
1721
 
-
 
1722
    public long getSuccess() {
-
 
1723
      return this.success;
-
 
1724
    }
-
 
1725
 
-
 
1726
    public createTransaction_result setSuccess(long success) {
-
 
1727
      this.success = success;
-
 
1728
      setSuccessIsSet(true);
-
 
1729
      return this;
-
 
1730
    }
-
 
1731
 
-
 
1732
    public void unsetSuccess() {
-
 
1733
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
1734
    }
-
 
1735
 
-
 
1736
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
1737
    public boolean isSetSuccess() {
-
 
1738
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
1739
    }
-
 
1740
 
-
 
1741
    public void setSuccessIsSet(boolean value) {
-
 
1742
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
1743
    }
-
 
1744
 
1638
    public TransactionServiceException getEx() {
1745
    public TransactionServiceException getEx() {
1639
      return this.ex;
1746
      return this.ex;
1640
    }
1747
    }
1641
 
1748
 
1642
    public createTransaction_result setEx(TransactionServiceException ex) {
1749
    public createTransaction_result setEx(TransactionServiceException ex) {
Line 1659... Line 1766...
1659
      }
1766
      }
1660
    }
1767
    }
1661
 
1768
 
1662
    public void setFieldValue(_Fields field, Object value) {
1769
    public void setFieldValue(_Fields field, Object value) {
1663
      switch (field) {
1770
      switch (field) {
-
 
1771
      case SUCCESS:
-
 
1772
        if (value == null) {
-
 
1773
          unsetSuccess();
-
 
1774
        } else {
-
 
1775
          setSuccess((Long)value);
-
 
1776
        }
-
 
1777
        break;
-
 
1778
 
1664
      case EX:
1779
      case EX:
1665
        if (value == null) {
1780
        if (value == null) {
1666
          unsetEx();
1781
          unsetEx();
1667
        } else {
1782
        } else {
1668
          setEx((TransactionServiceException)value);
1783
          setEx((TransactionServiceException)value);
Line 1676... Line 1791...
1676
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
1791
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
1677
    }
1792
    }
1678
 
1793
 
1679
    public Object getFieldValue(_Fields field) {
1794
    public Object getFieldValue(_Fields field) {
1680
      switch (field) {
1795
      switch (field) {
-
 
1796
      case SUCCESS:
-
 
1797
        return new Long(getSuccess());
-
 
1798
 
1681
      case EX:
1799
      case EX:
1682
        return getEx();
1800
        return getEx();
1683
 
1801
 
1684
      }
1802
      }
1685
      throw new IllegalStateException();
1803
      throw new IllegalStateException();
Line 1690... Line 1808...
1690
    }
1808
    }
1691
 
1809
 
1692
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
1810
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
1693
    public boolean isSet(_Fields field) {
1811
    public boolean isSet(_Fields field) {
1694
      switch (field) {
1812
      switch (field) {
-
 
1813
      case SUCCESS:
-
 
1814
        return isSetSuccess();
1695
      case EX:
1815
      case EX:
1696
        return isSetEx();
1816
        return isSetEx();
1697
      }
1817
      }
1698
      throw new IllegalStateException();
1818
      throw new IllegalStateException();
1699
    }
1819
    }
Line 1713... Line 1833...
1713
 
1833
 
1714
    public boolean equals(createTransaction_result that) {
1834
    public boolean equals(createTransaction_result that) {
1715
      if (that == null)
1835
      if (that == null)
1716
        return false;
1836
        return false;
1717
 
1837
 
-
 
1838
      boolean this_present_success = true;
-
 
1839
      boolean that_present_success = true;
-
 
1840
      if (this_present_success || that_present_success) {
-
 
1841
        if (!(this_present_success && that_present_success))
-
 
1842
          return false;
-
 
1843
        if (this.success != that.success)
-
 
1844
          return false;
-
 
1845
      }
-
 
1846
 
1718
      boolean this_present_ex = true && this.isSetEx();
1847
      boolean this_present_ex = true && this.isSetEx();
1719
      boolean that_present_ex = true && that.isSetEx();
1848
      boolean that_present_ex = true && that.isSetEx();
1720
      if (this_present_ex || that_present_ex) {
1849
      if (this_present_ex || that_present_ex) {
1721
        if (!(this_present_ex && that_present_ex))
1850
        if (!(this_present_ex && that_present_ex))
1722
          return false;
1851
          return false;
Line 1738... Line 1867...
1738
      }
1867
      }
1739
 
1868
 
1740
      int lastComparison = 0;
1869
      int lastComparison = 0;
1741
      createTransaction_result typedOther = (createTransaction_result)other;
1870
      createTransaction_result typedOther = (createTransaction_result)other;
1742
 
1871
 
-
 
1872
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
1873
      if (lastComparison != 0) {
-
 
1874
        return lastComparison;
-
 
1875
      }
-
 
1876
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
1877
      if (lastComparison != 0) {
-
 
1878
        return lastComparison;
-
 
1879
      }
1743
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(isSetEx());
1880
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(isSetEx());
1744
      if (lastComparison != 0) {
1881
      if (lastComparison != 0) {
1745
        return lastComparison;
1882
        return lastComparison;
1746
      }
1883
      }
1747
      lastComparison = TBaseHelper.compareTo(ex, typedOther.ex);
1884
      lastComparison = TBaseHelper.compareTo(ex, typedOther.ex);
Line 1763... Line 1900...
1763
        _Fields fieldId = _Fields.findByThriftId(field.id);
1900
        _Fields fieldId = _Fields.findByThriftId(field.id);
1764
        if (fieldId == null) {
1901
        if (fieldId == null) {
1765
          TProtocolUtil.skip(iprot, field.type);
1902
          TProtocolUtil.skip(iprot, field.type);
1766
        } else {
1903
        } else {
1767
          switch (fieldId) {
1904
          switch (fieldId) {
-
 
1905
            case SUCCESS:
-
 
1906
              if (field.type == TType.I64) {
-
 
1907
                this.success = iprot.readI64();
-
 
1908
                setSuccessIsSet(true);
-
 
1909
              } else { 
-
 
1910
                TProtocolUtil.skip(iprot, field.type);
-
 
1911
              }
-
 
1912
              break;
1768
            case EX:
1913
            case EX:
1769
              if (field.type == TType.STRUCT) {
1914
              if (field.type == TType.STRUCT) {
1770
                this.ex = new TransactionServiceException();
1915
                this.ex = new TransactionServiceException();
1771
                this.ex.read(iprot);
1916
                this.ex.read(iprot);
1772
              } else { 
1917
              } else { 
Line 1782... Line 1927...
1782
    }
1927
    }
1783
 
1928
 
1784
    public void write(TProtocol oprot) throws TException {
1929
    public void write(TProtocol oprot) throws TException {
1785
      oprot.writeStructBegin(STRUCT_DESC);
1930
      oprot.writeStructBegin(STRUCT_DESC);
1786
 
1931
 
-
 
1932
      if (this.isSetSuccess()) {
-
 
1933
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
1934
        oprot.writeI64(this.success);
-
 
1935
        oprot.writeFieldEnd();
1787
      if (this.isSetEx()) {
1936
      } else if (this.isSetEx()) {
1788
        oprot.writeFieldBegin(EX_FIELD_DESC);
1937
        oprot.writeFieldBegin(EX_FIELD_DESC);
1789
        this.ex.write(oprot);
1938
        this.ex.write(oprot);
1790
        oprot.writeFieldEnd();
1939
        oprot.writeFieldEnd();
1791
      }
1940
      }
1792
      oprot.writeFieldStop();
1941
      oprot.writeFieldStop();
Line 1796... Line 1945...
1796
    @Override
1945
    @Override
1797
    public String toString() {
1946
    public String toString() {
1798
      StringBuilder sb = new StringBuilder("createTransaction_result(");
1947
      StringBuilder sb = new StringBuilder("createTransaction_result(");
1799
      boolean first = true;
1948
      boolean first = true;
1800
 
1949
 
-
 
1950
      sb.append("success:");
-
 
1951
      sb.append(this.success);
-
 
1952
      first = false;
-
 
1953
      if (!first) sb.append(", ");
1801
      sb.append("ex:");
1954
      sb.append("ex:");
1802
      if (this.ex == null) {
1955
      if (this.ex == null) {
1803
        sb.append("null");
1956
        sb.append("null");
1804
      } else {
1957
      } else {
1805
        sb.append(this.ex);
1958
        sb.append(this.ex);
Line 2433... Line 2586...
2433
 
2586
 
2434
  public static class getAllTransactions_args implements TBase<getAllTransactions_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAllTransactions_args>   {
2587
  public static class getAllTransactions_args implements TBase<getAllTransactions_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAllTransactions_args>   {
2435
    private static final TStruct STRUCT_DESC = new TStruct("getAllTransactions_args");
2588
    private static final TStruct STRUCT_DESC = new TStruct("getAllTransactions_args");
2436
 
2589
 
2437
    private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)1);
2590
    private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)1);
2438
    private static final TField FROM_FIELD_DESC = new TField("from", TType.I64, (short)2);
2591
    private static final TField FROM_DATE_FIELD_DESC = new TField("from_date", TType.I64, (short)2);
2439
    private static final TField TO_FIELD_DESC = new TField("to", TType.I64, (short)3);
2592
    private static final TField TO_DATE_FIELD_DESC = new TField("to_date", TType.I64, (short)3);
2440
 
2593
 
2441
    private TransactionStatus status;
2594
    private TransactionStatus status;
2442
    private long from;
2595
    private long from_date;
2443
    private long to;
2596
    private long to_date;
2444
 
2597
 
2445
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2598
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2446
    public enum _Fields implements TFieldIdEnum {
2599
    public enum _Fields implements TFieldIdEnum {
2447
      /**
2600
      /**
2448
       * 
2601
       * 
2449
       * @see TransactionStatus
2602
       * @see TransactionStatus
2450
       */
2603
       */
2451
      STATUS((short)1, "status"),
2604
      STATUS((short)1, "status"),
2452
      FROM((short)2, "from"),
2605
      FROM_DATE((short)2, "from_date"),
2453
      TO((short)3, "to");
2606
      TO_DATE((short)3, "to_date");
2454
 
2607
 
2455
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
2608
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
2456
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2609
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2457
 
2610
 
2458
      static {
2611
      static {
Line 2502... Line 2655...
2502
        return _fieldName;
2655
        return _fieldName;
2503
      }
2656
      }
2504
    }
2657
    }
2505
 
2658
 
2506
    // isset id assignments
2659
    // isset id assignments
2507
    private static final int __FROM_ISSET_ID = 0;
2660
    private static final int __FROM_DATE_ISSET_ID = 0;
2508
    private static final int __TO_ISSET_ID = 1;
2661
    private static final int __TO_DATE_ISSET_ID = 1;
2509
    private BitSet __isset_bit_vector = new BitSet(2);
2662
    private BitSet __isset_bit_vector = new BitSet(2);
2510
 
2663
 
2511
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
2664
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
2512
      put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, 
2665
      put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, 
2513
          new EnumMetaData(TType.ENUM, TransactionStatus.class)));
2666
          new EnumMetaData(TType.ENUM, TransactionStatus.class)));
2514
      put(_Fields.FROM, new FieldMetaData("from", TFieldRequirementType.DEFAULT, 
2667
      put(_Fields.FROM_DATE, new FieldMetaData("from_date", TFieldRequirementType.DEFAULT, 
2515
          new FieldValueMetaData(TType.I64)));
2668
          new FieldValueMetaData(TType.I64)));
2516
      put(_Fields.TO, new FieldMetaData("to", TFieldRequirementType.DEFAULT, 
2669
      put(_Fields.TO_DATE, new FieldMetaData("to_date", TFieldRequirementType.DEFAULT, 
2517
          new FieldValueMetaData(TType.I64)));
2670
          new FieldValueMetaData(TType.I64)));
2518
    }});
2671
    }});
2519
 
2672
 
2520
    static {
2673
    static {
2521
      FieldMetaData.addStructMetaDataMap(getAllTransactions_args.class, metaDataMap);
2674
      FieldMetaData.addStructMetaDataMap(getAllTransactions_args.class, metaDataMap);
Line 2524... Line 2677...
2524
    public getAllTransactions_args() {
2677
    public getAllTransactions_args() {
2525
    }
2678
    }
2526
 
2679
 
2527
    public getAllTransactions_args(
2680
    public getAllTransactions_args(
2528
      TransactionStatus status,
2681
      TransactionStatus status,
2529
      long from,
2682
      long from_date,
2530
      long to)
2683
      long to_date)
2531
    {
2684
    {
2532
      this();
2685
      this();
2533
      this.status = status;
2686
      this.status = status;
2534
      this.from = from;
2687
      this.from_date = from_date;
2535
      setFromIsSet(true);
2688
      setFrom_dateIsSet(true);
2536
      this.to = to;
2689
      this.to_date = to_date;
2537
      setToIsSet(true);
2690
      setTo_dateIsSet(true);
2538
    }
2691
    }
2539
 
2692
 
2540
    /**
2693
    /**
2541
     * Performs a deep copy on <i>other</i>.
2694
     * Performs a deep copy on <i>other</i>.
2542
     */
2695
     */
Line 2544... Line 2697...
2544
      __isset_bit_vector.clear();
2697
      __isset_bit_vector.clear();
2545
      __isset_bit_vector.or(other.__isset_bit_vector);
2698
      __isset_bit_vector.or(other.__isset_bit_vector);
2546
      if (other.isSetStatus()) {
2699
      if (other.isSetStatus()) {
2547
        this.status = other.status;
2700
        this.status = other.status;
2548
      }
2701
      }
2549
      this.from = other.from;
2702
      this.from_date = other.from_date;
2550
      this.to = other.to;
2703
      this.to_date = other.to_date;
2551
    }
2704
    }
2552
 
2705
 
2553
    public getAllTransactions_args deepCopy() {
2706
    public getAllTransactions_args deepCopy() {
2554
      return new getAllTransactions_args(this);
2707
      return new getAllTransactions_args(this);
2555
    }
2708
    }
Line 2589... Line 2742...
2589
      if (!value) {
2742
      if (!value) {
2590
        this.status = null;
2743
        this.status = null;
2591
      }
2744
      }
2592
    }
2745
    }
2593
 
2746
 
2594
    public long getFrom() {
2747
    public long getFrom_date() {
2595
      return this.from;
2748
      return this.from_date;
2596
    }
2749
    }
2597
 
2750
 
2598
    public getAllTransactions_args setFrom(long from) {
2751
    public getAllTransactions_args setFrom_date(long from_date) {
2599
      this.from = from;
2752
      this.from_date = from_date;
2600
      setFromIsSet(true);
2753
      setFrom_dateIsSet(true);
2601
      return this;
2754
      return this;
2602
    }
2755
    }
2603
 
2756
 
2604
    public void unsetFrom() {
2757
    public void unsetFrom_date() {
2605
      __isset_bit_vector.clear(__FROM_ISSET_ID);
2758
      __isset_bit_vector.clear(__FROM_DATE_ISSET_ID);
2606
    }
2759
    }
2607
 
2760
 
2608
    /** Returns true if field from is set (has been asigned a value) and false otherwise */
2761
    /** Returns true if field from_date is set (has been asigned a value) and false otherwise */
2609
    public boolean isSetFrom() {
2762
    public boolean isSetFrom_date() {
2610
      return __isset_bit_vector.get(__FROM_ISSET_ID);
2763
      return __isset_bit_vector.get(__FROM_DATE_ISSET_ID);
2611
    }
2764
    }
2612
 
2765
 
2613
    public void setFromIsSet(boolean value) {
2766
    public void setFrom_dateIsSet(boolean value) {
2614
      __isset_bit_vector.set(__FROM_ISSET_ID, value);
2767
      __isset_bit_vector.set(__FROM_DATE_ISSET_ID, value);
2615
    }
2768
    }
2616
 
2769
 
2617
    public long getTo() {
2770
    public long getTo_date() {
2618
      return this.to;
2771
      return this.to_date;
2619
    }
2772
    }
2620
 
2773
 
2621
    public getAllTransactions_args setTo(long to) {
2774
    public getAllTransactions_args setTo_date(long to_date) {
2622
      this.to = to;
2775
      this.to_date = to_date;
2623
      setToIsSet(true);
2776
      setTo_dateIsSet(true);
2624
      return this;
2777
      return this;
2625
    }
2778
    }
2626
 
2779
 
2627
    public void unsetTo() {
2780
    public void unsetTo_date() {
2628
      __isset_bit_vector.clear(__TO_ISSET_ID);
2781
      __isset_bit_vector.clear(__TO_DATE_ISSET_ID);
2629
    }
2782
    }
2630
 
2783
 
2631
    /** Returns true if field to is set (has been asigned a value) and false otherwise */
2784
    /** Returns true if field to_date is set (has been asigned a value) and false otherwise */
2632
    public boolean isSetTo() {
2785
    public boolean isSetTo_date() {
2633
      return __isset_bit_vector.get(__TO_ISSET_ID);
2786
      return __isset_bit_vector.get(__TO_DATE_ISSET_ID);
2634
    }
2787
    }
2635
 
2788
 
2636
    public void setToIsSet(boolean value) {
2789
    public void setTo_dateIsSet(boolean value) {
2637
      __isset_bit_vector.set(__TO_ISSET_ID, value);
2790
      __isset_bit_vector.set(__TO_DATE_ISSET_ID, value);
2638
    }
2791
    }
2639
 
2792
 
2640
    public void setFieldValue(_Fields field, Object value) {
2793
    public void setFieldValue(_Fields field, Object value) {
2641
      switch (field) {
2794
      switch (field) {
2642
      case STATUS:
2795
      case STATUS:
Line 2645... Line 2798...
2645
        } else {
2798
        } else {
2646
          setStatus((TransactionStatus)value);
2799
          setStatus((TransactionStatus)value);
2647
        }
2800
        }
2648
        break;
2801
        break;
2649
 
2802
 
2650
      case FROM:
2803
      case FROM_DATE:
2651
        if (value == null) {
2804
        if (value == null) {
2652
          unsetFrom();
2805
          unsetFrom_date();
2653
        } else {
2806
        } else {
2654
          setFrom((Long)value);
2807
          setFrom_date((Long)value);
2655
        }
2808
        }
2656
        break;
2809
        break;
2657
 
2810
 
2658
      case TO:
2811
      case TO_DATE:
2659
        if (value == null) {
2812
        if (value == null) {
2660
          unsetTo();
2813
          unsetTo_date();
2661
        } else {
2814
        } else {
2662
          setTo((Long)value);
2815
          setTo_date((Long)value);
2663
        }
2816
        }
2664
        break;
2817
        break;
2665
 
2818
 
2666
      }
2819
      }
2667
    }
2820
    }
Line 2673... Line 2826...
2673
    public Object getFieldValue(_Fields field) {
2826
    public Object getFieldValue(_Fields field) {
2674
      switch (field) {
2827
      switch (field) {
2675
      case STATUS:
2828
      case STATUS:
2676
        return getStatus();
2829
        return getStatus();
2677
 
2830
 
2678
      case FROM:
2831
      case FROM_DATE:
2679
        return new Long(getFrom());
2832
        return new Long(getFrom_date());
2680
 
2833
 
2681
      case TO:
2834
      case TO_DATE:
2682
        return new Long(getTo());
2835
        return new Long(getTo_date());
2683
 
2836
 
2684
      }
2837
      }
2685
      throw new IllegalStateException();
2838
      throw new IllegalStateException();
2686
    }
2839
    }
2687
 
2840
 
Line 2692... Line 2845...
2692
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
2845
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
2693
    public boolean isSet(_Fields field) {
2846
    public boolean isSet(_Fields field) {
2694
      switch (field) {
2847
      switch (field) {
2695
      case STATUS:
2848
      case STATUS:
2696
        return isSetStatus();
2849
        return isSetStatus();
2697
      case FROM:
2850
      case FROM_DATE:
2698
        return isSetFrom();
2851
        return isSetFrom_date();
2699
      case TO:
2852
      case TO_DATE:
2700
        return isSetTo();
2853
        return isSetTo_date();
2701
      }
2854
      }
2702
      throw new IllegalStateException();
2855
      throw new IllegalStateException();
2703
    }
2856
    }
2704
 
2857
 
2705
    public boolean isSet(int fieldID) {
2858
    public boolean isSet(int fieldID) {
Line 2726... Line 2879...
2726
          return false;
2879
          return false;
2727
        if (!this.status.equals(that.status))
2880
        if (!this.status.equals(that.status))
2728
          return false;
2881
          return false;
2729
      }
2882
      }
2730
 
2883
 
2731
      boolean this_present_from = true;
2884
      boolean this_present_from_date = true;
2732
      boolean that_present_from = true;
2885
      boolean that_present_from_date = true;
2733
      if (this_present_from || that_present_from) {
2886
      if (this_present_from_date || that_present_from_date) {
2734
        if (!(this_present_from && that_present_from))
2887
        if (!(this_present_from_date && that_present_from_date))
2735
          return false;
2888
          return false;
2736
        if (this.from != that.from)
2889
        if (this.from_date != that.from_date)
2737
          return false;
2890
          return false;
2738
      }
2891
      }
2739
 
2892
 
2740
      boolean this_present_to = true;
2893
      boolean this_present_to_date = true;
2741
      boolean that_present_to = true;
2894
      boolean that_present_to_date = true;
2742
      if (this_present_to || that_present_to) {
2895
      if (this_present_to_date || that_present_to_date) {
2743
        if (!(this_present_to && that_present_to))
2896
        if (!(this_present_to_date && that_present_to_date))
2744
          return false;
2897
          return false;
2745
        if (this.to != that.to)
2898
        if (this.to_date != that.to_date)
2746
          return false;
2899
          return false;
2747
      }
2900
      }
2748
 
2901
 
2749
      return true;
2902
      return true;
2750
    }
2903
    }
Line 2768... Line 2921...
2768
      }
2921
      }
2769
      lastComparison = TBaseHelper.compareTo(status, typedOther.status);
2922
      lastComparison = TBaseHelper.compareTo(status, typedOther.status);
2770
      if (lastComparison != 0) {
2923
      if (lastComparison != 0) {
2771
        return lastComparison;
2924
        return lastComparison;
2772
      }
2925
      }
2773
      lastComparison = Boolean.valueOf(isSetFrom()).compareTo(isSetFrom());
2926
      lastComparison = Boolean.valueOf(isSetFrom_date()).compareTo(isSetFrom_date());
2774
      if (lastComparison != 0) {
2927
      if (lastComparison != 0) {
2775
        return lastComparison;
2928
        return lastComparison;
2776
      }
2929
      }
2777
      lastComparison = TBaseHelper.compareTo(from, typedOther.from);
2930
      lastComparison = TBaseHelper.compareTo(from_date, typedOther.from_date);
2778
      if (lastComparison != 0) {
2931
      if (lastComparison != 0) {
2779
        return lastComparison;
2932
        return lastComparison;
2780
      }
2933
      }
2781
      lastComparison = Boolean.valueOf(isSetTo()).compareTo(isSetTo());
2934
      lastComparison = Boolean.valueOf(isSetTo_date()).compareTo(isSetTo_date());
2782
      if (lastComparison != 0) {
2935
      if (lastComparison != 0) {
2783
        return lastComparison;
2936
        return lastComparison;
2784
      }
2937
      }
2785
      lastComparison = TBaseHelper.compareTo(to, typedOther.to);
2938
      lastComparison = TBaseHelper.compareTo(to_date, typedOther.to_date);
2786
      if (lastComparison != 0) {
2939
      if (lastComparison != 0) {
2787
        return lastComparison;
2940
        return lastComparison;
2788
      }
2941
      }
2789
      return 0;
2942
      return 0;
2790
    }
2943
    }
Line 2808... Line 2961...
2808
                this.status = TransactionStatus.findByValue(iprot.readI32());
2961
                this.status = TransactionStatus.findByValue(iprot.readI32());
2809
              } else { 
2962
              } else { 
2810
                TProtocolUtil.skip(iprot, field.type);
2963
                TProtocolUtil.skip(iprot, field.type);
2811
              }
2964
              }
2812
              break;
2965
              break;
2813
            case FROM:
2966
            case FROM_DATE:
2814
              if (field.type == TType.I64) {
2967
              if (field.type == TType.I64) {
2815
                this.from = iprot.readI64();
2968
                this.from_date = iprot.readI64();
2816
                setFromIsSet(true);
2969
                setFrom_dateIsSet(true);
2817
              } else { 
2970
              } else { 
2818
                TProtocolUtil.skip(iprot, field.type);
2971
                TProtocolUtil.skip(iprot, field.type);
2819
              }
2972
              }
2820
              break;
2973
              break;
2821
            case TO:
2974
            case TO_DATE:
2822
              if (field.type == TType.I64) {
2975
              if (field.type == TType.I64) {
2823
                this.to = iprot.readI64();
2976
                this.to_date = iprot.readI64();
2824
                setToIsSet(true);
2977
                setTo_dateIsSet(true);
2825
              } else { 
2978
              } else { 
2826
                TProtocolUtil.skip(iprot, field.type);
2979
                TProtocolUtil.skip(iprot, field.type);
2827
              }
2980
              }
2828
              break;
2981
              break;
2829
          }
2982
          }
Line 2841... Line 2994...
2841
      if (this.status != null) {
2994
      if (this.status != null) {
2842
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
2995
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
2843
        oprot.writeI32(this.status.getValue());
2996
        oprot.writeI32(this.status.getValue());
2844
        oprot.writeFieldEnd();
2997
        oprot.writeFieldEnd();
2845
      }
2998
      }
2846
      oprot.writeFieldBegin(FROM_FIELD_DESC);
2999
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
2847
      oprot.writeI64(this.from);
3000
      oprot.writeI64(this.from_date);
2848
      oprot.writeFieldEnd();
3001
      oprot.writeFieldEnd();
2849
      oprot.writeFieldBegin(TO_FIELD_DESC);
3002
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
2850
      oprot.writeI64(this.to);
3003
      oprot.writeI64(this.to_date);
2851
      oprot.writeFieldEnd();
3004
      oprot.writeFieldEnd();
2852
      oprot.writeFieldStop();
3005
      oprot.writeFieldStop();
2853
      oprot.writeStructEnd();
3006
      oprot.writeStructEnd();
2854
    }
3007
    }
2855
 
3008
 
Line 2872... Line 3025...
2872
          sb.append(")");
3025
          sb.append(")");
2873
        }
3026
        }
2874
      }
3027
      }
2875
      first = false;
3028
      first = false;
2876
      if (!first) sb.append(", ");
3029
      if (!first) sb.append(", ");
2877
      sb.append("from:");
3030
      sb.append("from_date:");
2878
      sb.append(this.from);
3031
      sb.append(this.from_date);
2879
      first = false;
3032
      first = false;
2880
      if (!first) sb.append(", ");
3033
      if (!first) sb.append(", ");
2881
      sb.append("to:");
3034
      sb.append("to_date:");
2882
      sb.append(this.to);
3035
      sb.append(this.to_date);
2883
      first = false;
3036
      first = false;
2884
      sb.append(")");
3037
      sb.append(")");
2885
      return sb.toString();
3038
      return sb.toString();
2886
    }
3039
    }
2887
 
3040
 
Line 3180... Line 3333...
3180
        } else {
3333
        } else {
3181
          switch (fieldId) {
3334
          switch (fieldId) {
3182
            case SUCCESS:
3335
            case SUCCESS:
3183
              if (field.type == TType.LIST) {
3336
              if (field.type == TType.LIST) {
3184
                {
3337
                {
3185
                  TList _list26 = iprot.readListBegin();
3338
                  TList _list30 = iprot.readListBegin();
3186
                  this.success = new ArrayList<Transaction>(_list26.size);
3339
                  this.success = new ArrayList<Transaction>(_list30.size);
3187
                  for (int _i27 = 0; _i27 < _list26.size; ++_i27)
3340
                  for (int _i31 = 0; _i31 < _list30.size; ++_i31)
3188
                  {
3341
                  {
3189
                    Transaction _elem28;
3342
                    Transaction _elem32;
3190
                    _elem28 = new Transaction();
3343
                    _elem32 = new Transaction();
3191
                    _elem28.read(iprot);
3344
                    _elem32.read(iprot);
3192
                    this.success.add(_elem28);
3345
                    this.success.add(_elem32);
3193
                  }
3346
                  }
3194
                  iprot.readListEnd();
3347
                  iprot.readListEnd();
3195
                }
3348
                }
3196
              } else { 
3349
              } else { 
3197
                TProtocolUtil.skip(iprot, field.type);
3350
                TProtocolUtil.skip(iprot, field.type);
Line 3218... Line 3371...
3218
 
3371
 
3219
      if (this.isSetSuccess()) {
3372
      if (this.isSetSuccess()) {
3220
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3373
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3221
        {
3374
        {
3222
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
3375
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
3223
          for (Transaction _iter29 : this.success)
3376
          for (Transaction _iter33 : this.success)
3224
          {
3377
          {
3225
            _iter29.write(oprot);
3378
            _iter33.write(oprot);
3226
          }
3379
          }
3227
          oprot.writeListEnd();
3380
          oprot.writeListEnd();
3228
        }
3381
        }
3229
        oprot.writeFieldEnd();
3382
        oprot.writeFieldEnd();
3230
      } else if (this.isSetEx()) {
3383
      } else if (this.isSetEx()) {
Line 3268... Line 3421...
3268
 
3421
 
3269
  public static class getTransactionsForShipmentStatus_args implements TBase<getTransactionsForShipmentStatus_args._Fields>, java.io.Serializable, Cloneable, Comparable<getTransactionsForShipmentStatus_args>   {
3422
  public static class getTransactionsForShipmentStatus_args implements TBase<getTransactionsForShipmentStatus_args._Fields>, java.io.Serializable, Cloneable, Comparable<getTransactionsForShipmentStatus_args>   {
3270
    private static final TStruct STRUCT_DESC = new TStruct("getTransactionsForShipmentStatus_args");
3423
    private static final TStruct STRUCT_DESC = new TStruct("getTransactionsForShipmentStatus_args");
3271
 
3424
 
3272
    private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)1);
3425
    private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)1);
3273
    private static final TField FROM_FIELD_DESC = new TField("from", TType.I64, (short)2);
3426
    private static final TField FROM_DATE_FIELD_DESC = new TField("from_date", TType.I64, (short)2);
3274
    private static final TField TO_FIELD_DESC = new TField("to", TType.I64, (short)3);
3427
    private static final TField TO_DATE_FIELD_DESC = new TField("to_date", TType.I64, (short)3);
3275
 
3428
 
3276
    private ShipmentStatus status;
3429
    private ShipmentStatus status;
3277
    private long from;
3430
    private long from_date;
3278
    private long to;
3431
    private long to_date;
3279
 
3432
 
3280
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3433
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3281
    public enum _Fields implements TFieldIdEnum {
3434
    public enum _Fields implements TFieldIdEnum {
3282
      /**
3435
      /**
3283
       * 
3436
       * 
3284
       * @see ShipmentStatus
3437
       * @see ShipmentStatus
3285
       */
3438
       */
3286
      STATUS((short)1, "status"),
3439
      STATUS((short)1, "status"),
3287
      FROM((short)2, "from"),
3440
      FROM_DATE((short)2, "from_date"),
3288
      TO((short)3, "to");
3441
      TO_DATE((short)3, "to_date");
3289
 
3442
 
3290
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
3443
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
3291
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3444
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3292
 
3445
 
3293
      static {
3446
      static {
Line 3337... Line 3490...
3337
        return _fieldName;
3490
        return _fieldName;
3338
      }
3491
      }
3339
    }
3492
    }
3340
 
3493
 
3341
    // isset id assignments
3494
    // isset id assignments
3342
    private static final int __FROM_ISSET_ID = 0;
3495
    private static final int __FROM_DATE_ISSET_ID = 0;
3343
    private static final int __TO_ISSET_ID = 1;
3496
    private static final int __TO_DATE_ISSET_ID = 1;
3344
    private BitSet __isset_bit_vector = new BitSet(2);
3497
    private BitSet __isset_bit_vector = new BitSet(2);
3345
 
3498
 
3346
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
3499
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
3347
      put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, 
3500
      put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, 
3348
          new EnumMetaData(TType.ENUM, ShipmentStatus.class)));
3501
          new EnumMetaData(TType.ENUM, ShipmentStatus.class)));
3349
      put(_Fields.FROM, new FieldMetaData("from", TFieldRequirementType.DEFAULT, 
3502
      put(_Fields.FROM_DATE, new FieldMetaData("from_date", TFieldRequirementType.DEFAULT, 
3350
          new FieldValueMetaData(TType.I64)));
3503
          new FieldValueMetaData(TType.I64)));
3351
      put(_Fields.TO, new FieldMetaData("to", TFieldRequirementType.DEFAULT, 
3504
      put(_Fields.TO_DATE, new FieldMetaData("to_date", TFieldRequirementType.DEFAULT, 
3352
          new FieldValueMetaData(TType.I64)));
3505
          new FieldValueMetaData(TType.I64)));
3353
    }});
3506
    }});
3354
 
3507
 
3355
    static {
3508
    static {
3356
      FieldMetaData.addStructMetaDataMap(getTransactionsForShipmentStatus_args.class, metaDataMap);
3509
      FieldMetaData.addStructMetaDataMap(getTransactionsForShipmentStatus_args.class, metaDataMap);
Line 3359... Line 3512...
3359
    public getTransactionsForShipmentStatus_args() {
3512
    public getTransactionsForShipmentStatus_args() {
3360
    }
3513
    }
3361
 
3514
 
3362
    public getTransactionsForShipmentStatus_args(
3515
    public getTransactionsForShipmentStatus_args(
3363
      ShipmentStatus status,
3516
      ShipmentStatus status,
3364
      long from,
3517
      long from_date,
3365
      long to)
3518
      long to_date)
3366
    {
3519
    {
3367
      this();
3520
      this();
3368
      this.status = status;
3521
      this.status = status;
3369
      this.from = from;
3522
      this.from_date = from_date;
3370
      setFromIsSet(true);
3523
      setFrom_dateIsSet(true);
3371
      this.to = to;
3524
      this.to_date = to_date;
3372
      setToIsSet(true);
3525
      setTo_dateIsSet(true);
3373
    }
3526
    }
3374
 
3527
 
3375
    /**
3528
    /**
3376
     * Performs a deep copy on <i>other</i>.
3529
     * Performs a deep copy on <i>other</i>.
3377
     */
3530
     */
Line 3379... Line 3532...
3379
      __isset_bit_vector.clear();
3532
      __isset_bit_vector.clear();
3380
      __isset_bit_vector.or(other.__isset_bit_vector);
3533
      __isset_bit_vector.or(other.__isset_bit_vector);
3381
      if (other.isSetStatus()) {
3534
      if (other.isSetStatus()) {
3382
        this.status = other.status;
3535
        this.status = other.status;
3383
      }
3536
      }
3384
      this.from = other.from;
3537
      this.from_date = other.from_date;
3385
      this.to = other.to;
3538
      this.to_date = other.to_date;
3386
    }
3539
    }
3387
 
3540
 
3388
    public getTransactionsForShipmentStatus_args deepCopy() {
3541
    public getTransactionsForShipmentStatus_args deepCopy() {
3389
      return new getTransactionsForShipmentStatus_args(this);
3542
      return new getTransactionsForShipmentStatus_args(this);
3390
    }
3543
    }
Line 3424... Line 3577...
3424
      if (!value) {
3577
      if (!value) {
3425
        this.status = null;
3578
        this.status = null;
3426
      }
3579
      }
3427
    }
3580
    }
3428
 
3581
 
3429
    public long getFrom() {
3582
    public long getFrom_date() {
3430
      return this.from;
3583
      return this.from_date;
3431
    }
3584
    }
3432
 
3585
 
3433
    public getTransactionsForShipmentStatus_args setFrom(long from) {
3586
    public getTransactionsForShipmentStatus_args setFrom_date(long from_date) {
3434
      this.from = from;
3587
      this.from_date = from_date;
3435
      setFromIsSet(true);
3588
      setFrom_dateIsSet(true);
3436
      return this;
3589
      return this;
3437
    }
3590
    }
3438
 
3591
 
3439
    public void unsetFrom() {
3592
    public void unsetFrom_date() {
3440
      __isset_bit_vector.clear(__FROM_ISSET_ID);
3593
      __isset_bit_vector.clear(__FROM_DATE_ISSET_ID);
3441
    }
3594
    }
3442
 
3595
 
3443
    /** Returns true if field from is set (has been asigned a value) and false otherwise */
3596
    /** Returns true if field from_date is set (has been asigned a value) and false otherwise */
3444
    public boolean isSetFrom() {
3597
    public boolean isSetFrom_date() {
3445
      return __isset_bit_vector.get(__FROM_ISSET_ID);
3598
      return __isset_bit_vector.get(__FROM_DATE_ISSET_ID);
3446
    }
3599
    }
3447
 
3600
 
3448
    public void setFromIsSet(boolean value) {
3601
    public void setFrom_dateIsSet(boolean value) {
3449
      __isset_bit_vector.set(__FROM_ISSET_ID, value);
3602
      __isset_bit_vector.set(__FROM_DATE_ISSET_ID, value);
3450
    }
3603
    }
3451
 
3604
 
3452
    public long getTo() {
3605
    public long getTo_date() {
3453
      return this.to;
3606
      return this.to_date;
3454
    }
3607
    }
3455
 
3608
 
3456
    public getTransactionsForShipmentStatus_args setTo(long to) {
3609
    public getTransactionsForShipmentStatus_args setTo_date(long to_date) {
3457
      this.to = to;
3610
      this.to_date = to_date;
3458
      setToIsSet(true);
3611
      setTo_dateIsSet(true);
3459
      return this;
3612
      return this;
3460
    }
3613
    }
3461
 
3614
 
3462
    public void unsetTo() {
3615
    public void unsetTo_date() {
3463
      __isset_bit_vector.clear(__TO_ISSET_ID);
3616
      __isset_bit_vector.clear(__TO_DATE_ISSET_ID);
3464
    }
3617
    }
3465
 
3618
 
3466
    /** Returns true if field to is set (has been asigned a value) and false otherwise */
3619
    /** Returns true if field to_date is set (has been asigned a value) and false otherwise */
3467
    public boolean isSetTo() {
3620
    public boolean isSetTo_date() {
3468
      return __isset_bit_vector.get(__TO_ISSET_ID);
3621
      return __isset_bit_vector.get(__TO_DATE_ISSET_ID);
3469
    }
3622
    }
3470
 
3623
 
3471
    public void setToIsSet(boolean value) {
3624
    public void setTo_dateIsSet(boolean value) {
3472
      __isset_bit_vector.set(__TO_ISSET_ID, value);
3625
      __isset_bit_vector.set(__TO_DATE_ISSET_ID, value);
3473
    }
3626
    }
3474
 
3627
 
3475
    public void setFieldValue(_Fields field, Object value) {
3628
    public void setFieldValue(_Fields field, Object value) {
3476
      switch (field) {
3629
      switch (field) {
3477
      case STATUS:
3630
      case STATUS:
Line 3480... Line 3633...
3480
        } else {
3633
        } else {
3481
          setStatus((ShipmentStatus)value);
3634
          setStatus((ShipmentStatus)value);
3482
        }
3635
        }
3483
        break;
3636
        break;
3484
 
3637
 
3485
      case FROM:
3638
      case FROM_DATE:
3486
        if (value == null) {
3639
        if (value == null) {
3487
          unsetFrom();
3640
          unsetFrom_date();
3488
        } else {
3641
        } else {
3489
          setFrom((Long)value);
3642
          setFrom_date((Long)value);
3490
        }
3643
        }
3491
        break;
3644
        break;
3492
 
3645
 
3493
      case TO:
3646
      case TO_DATE:
3494
        if (value == null) {
3647
        if (value == null) {
3495
          unsetTo();
3648
          unsetTo_date();
3496
        } else {
3649
        } else {
3497
          setTo((Long)value);
3650
          setTo_date((Long)value);
3498
        }
3651
        }
3499
        break;
3652
        break;
3500
 
3653
 
3501
      }
3654
      }
3502
    }
3655
    }
Line 3508... Line 3661...
3508
    public Object getFieldValue(_Fields field) {
3661
    public Object getFieldValue(_Fields field) {
3509
      switch (field) {
3662
      switch (field) {
3510
      case STATUS:
3663
      case STATUS:
3511
        return getStatus();
3664
        return getStatus();
3512
 
3665
 
3513
      case FROM:
3666
      case FROM_DATE:
3514
        return new Long(getFrom());
3667
        return new Long(getFrom_date());
3515
 
3668
 
3516
      case TO:
3669
      case TO_DATE:
3517
        return new Long(getTo());
3670
        return new Long(getTo_date());
3518
 
3671
 
3519
      }
3672
      }
3520
      throw new IllegalStateException();
3673
      throw new IllegalStateException();
3521
    }
3674
    }
3522
 
3675
 
Line 3527... Line 3680...
3527
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
3680
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
3528
    public boolean isSet(_Fields field) {
3681
    public boolean isSet(_Fields field) {
3529
      switch (field) {
3682
      switch (field) {
3530
      case STATUS:
3683
      case STATUS:
3531
        return isSetStatus();
3684
        return isSetStatus();
3532
      case FROM:
3685
      case FROM_DATE:
3533
        return isSetFrom();
3686
        return isSetFrom_date();
3534
      case TO:
3687
      case TO_DATE:
3535
        return isSetTo();
3688
        return isSetTo_date();
3536
      }
3689
      }
3537
      throw new IllegalStateException();
3690
      throw new IllegalStateException();
3538
    }
3691
    }
3539
 
3692
 
3540
    public boolean isSet(int fieldID) {
3693
    public boolean isSet(int fieldID) {
Line 3561... Line 3714...
3561
          return false;
3714
          return false;
3562
        if (!this.status.equals(that.status))
3715
        if (!this.status.equals(that.status))
3563
          return false;
3716
          return false;
3564
      }
3717
      }
3565
 
3718
 
3566
      boolean this_present_from = true;
3719
      boolean this_present_from_date = true;
3567
      boolean that_present_from = true;
3720
      boolean that_present_from_date = true;
3568
      if (this_present_from || that_present_from) {
3721
      if (this_present_from_date || that_present_from_date) {
3569
        if (!(this_present_from && that_present_from))
3722
        if (!(this_present_from_date && that_present_from_date))
3570
          return false;
3723
          return false;
3571
        if (this.from != that.from)
3724
        if (this.from_date != that.from_date)
3572
          return false;
3725
          return false;
3573
      }
3726
      }
3574
 
3727
 
3575
      boolean this_present_to = true;
3728
      boolean this_present_to_date = true;
3576
      boolean that_present_to = true;
3729
      boolean that_present_to_date = true;
3577
      if (this_present_to || that_present_to) {
3730
      if (this_present_to_date || that_present_to_date) {
3578
        if (!(this_present_to && that_present_to))
3731
        if (!(this_present_to_date && that_present_to_date))
3579
          return false;
3732
          return false;
3580
        if (this.to != that.to)
3733
        if (this.to_date != that.to_date)
3581
          return false;
3734
          return false;
3582
      }
3735
      }
3583
 
3736
 
3584
      return true;
3737
      return true;
3585
    }
3738
    }
Line 3603... Line 3756...
3603
      }
3756
      }
3604
      lastComparison = TBaseHelper.compareTo(status, typedOther.status);
3757
      lastComparison = TBaseHelper.compareTo(status, typedOther.status);
3605
      if (lastComparison != 0) {
3758
      if (lastComparison != 0) {
3606
        return lastComparison;
3759
        return lastComparison;
3607
      }
3760
      }
3608
      lastComparison = Boolean.valueOf(isSetFrom()).compareTo(isSetFrom());
3761
      lastComparison = Boolean.valueOf(isSetFrom_date()).compareTo(isSetFrom_date());
3609
      if (lastComparison != 0) {
3762
      if (lastComparison != 0) {
3610
        return lastComparison;
3763
        return lastComparison;
3611
      }
3764
      }
3612
      lastComparison = TBaseHelper.compareTo(from, typedOther.from);
3765
      lastComparison = TBaseHelper.compareTo(from_date, typedOther.from_date);
3613
      if (lastComparison != 0) {
3766
      if (lastComparison != 0) {
3614
        return lastComparison;
3767
        return lastComparison;
3615
      }
3768
      }
3616
      lastComparison = Boolean.valueOf(isSetTo()).compareTo(isSetTo());
3769
      lastComparison = Boolean.valueOf(isSetTo_date()).compareTo(isSetTo_date());
3617
      if (lastComparison != 0) {
3770
      if (lastComparison != 0) {
3618
        return lastComparison;
3771
        return lastComparison;
3619
      }
3772
      }
3620
      lastComparison = TBaseHelper.compareTo(to, typedOther.to);
3773
      lastComparison = TBaseHelper.compareTo(to_date, typedOther.to_date);
3621
      if (lastComparison != 0) {
3774
      if (lastComparison != 0) {
3622
        return lastComparison;
3775
        return lastComparison;
3623
      }
3776
      }
3624
      return 0;
3777
      return 0;
3625
    }
3778
    }
Line 3643... Line 3796...
3643
                this.status = ShipmentStatus.findByValue(iprot.readI32());
3796
                this.status = ShipmentStatus.findByValue(iprot.readI32());
3644
              } else { 
3797
              } else { 
3645
                TProtocolUtil.skip(iprot, field.type);
3798
                TProtocolUtil.skip(iprot, field.type);
3646
              }
3799
              }
3647
              break;
3800
              break;
3648
            case FROM:
3801
            case FROM_DATE:
3649
              if (field.type == TType.I64) {
3802
              if (field.type == TType.I64) {
3650
                this.from = iprot.readI64();
3803
                this.from_date = iprot.readI64();
3651
                setFromIsSet(true);
3804
                setFrom_dateIsSet(true);
3652
              } else { 
3805
              } else { 
3653
                TProtocolUtil.skip(iprot, field.type);
3806
                TProtocolUtil.skip(iprot, field.type);
3654
              }
3807
              }
3655
              break;
3808
              break;
3656
            case TO:
3809
            case TO_DATE:
3657
              if (field.type == TType.I64) {
3810
              if (field.type == TType.I64) {
3658
                this.to = iprot.readI64();
3811
                this.to_date = iprot.readI64();
3659
                setToIsSet(true);
3812
                setTo_dateIsSet(true);
3660
              } else { 
3813
              } else { 
3661
                TProtocolUtil.skip(iprot, field.type);
3814
                TProtocolUtil.skip(iprot, field.type);
3662
              }
3815
              }
3663
              break;
3816
              break;
3664
          }
3817
          }
Line 3676... Line 3829...
3676
      if (this.status != null) {
3829
      if (this.status != null) {
3677
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
3830
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
3678
        oprot.writeI32(this.status.getValue());
3831
        oprot.writeI32(this.status.getValue());
3679
        oprot.writeFieldEnd();
3832
        oprot.writeFieldEnd();
3680
      }
3833
      }
3681
      oprot.writeFieldBegin(FROM_FIELD_DESC);
3834
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
3682
      oprot.writeI64(this.from);
3835
      oprot.writeI64(this.from_date);
3683
      oprot.writeFieldEnd();
3836
      oprot.writeFieldEnd();
3684
      oprot.writeFieldBegin(TO_FIELD_DESC);
3837
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
3685
      oprot.writeI64(this.to);
3838
      oprot.writeI64(this.to_date);
3686
      oprot.writeFieldEnd();
3839
      oprot.writeFieldEnd();
3687
      oprot.writeFieldStop();
3840
      oprot.writeFieldStop();
3688
      oprot.writeStructEnd();
3841
      oprot.writeStructEnd();
3689
    }
3842
    }
3690
 
3843
 
Line 3707... Line 3860...
3707
          sb.append(")");
3860
          sb.append(")");
3708
        }
3861
        }
3709
      }
3862
      }
3710
      first = false;
3863
      first = false;
3711
      if (!first) sb.append(", ");
3864
      if (!first) sb.append(", ");
3712
      sb.append("from:");
3865
      sb.append("from_date:");
3713
      sb.append(this.from);
3866
      sb.append(this.from_date);
3714
      first = false;
3867
      first = false;
3715
      if (!first) sb.append(", ");
3868
      if (!first) sb.append(", ");
3716
      sb.append("to:");
3869
      sb.append("to_date:");
3717
      sb.append(this.to);
3870
      sb.append(this.to_date);
3718
      first = false;
3871
      first = false;
3719
      sb.append(")");
3872
      sb.append(")");
3720
      return sb.toString();
3873
      return sb.toString();
3721
    }
3874
    }
3722
 
3875
 
Line 4015... Line 4168...
4015
        } else {
4168
        } else {
4016
          switch (fieldId) {
4169
          switch (fieldId) {
4017
            case SUCCESS:
4170
            case SUCCESS:
4018
              if (field.type == TType.LIST) {
4171
              if (field.type == TType.LIST) {
4019
                {
4172
                {
4020
                  TList _list30 = iprot.readListBegin();
4173
                  TList _list34 = iprot.readListBegin();
4021
                  this.success = new ArrayList<Transaction>(_list30.size);
4174
                  this.success = new ArrayList<Transaction>(_list34.size);
4022
                  for (int _i31 = 0; _i31 < _list30.size; ++_i31)
4175
                  for (int _i35 = 0; _i35 < _list34.size; ++_i35)
4023
                  {
4176
                  {
4024
                    Transaction _elem32;
4177
                    Transaction _elem36;
4025
                    _elem32 = new Transaction();
4178
                    _elem36 = new Transaction();
4026
                    _elem32.read(iprot);
4179
                    _elem36.read(iprot);
4027
                    this.success.add(_elem32);
4180
                    this.success.add(_elem36);
4028
                  }
4181
                  }
4029
                  iprot.readListEnd();
4182
                  iprot.readListEnd();
4030
                }
4183
                }
4031
              } else { 
4184
              } else { 
4032
                TProtocolUtil.skip(iprot, field.type);
4185
                TProtocolUtil.skip(iprot, field.type);
Line 4053... Line 4206...
4053
 
4206
 
4054
      if (this.isSetSuccess()) {
4207
      if (this.isSetSuccess()) {
4055
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4208
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4056
        {
4209
        {
4057
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
4210
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
4058
          for (Transaction _iter33 : this.success)
4211
          for (Transaction _iter37 : this.success)
4059
          {
4212
          {
4060
            _iter33.write(oprot);
4213
            _iter37.write(oprot);
4061
          }
4214
          }
4062
          oprot.writeListEnd();
4215
          oprot.writeListEnd();
4063
        }
4216
        }
4064
        oprot.writeFieldEnd();
4217
        oprot.writeFieldEnd();
4065
      } else if (this.isSetEx()) {
4218
      } else if (this.isSetEx()) {
Line 4103... Line 4256...
4103
 
4256
 
4104
  public static class getTransactionsForCustomer_args implements TBase<getTransactionsForCustomer_args._Fields>, java.io.Serializable, Cloneable, Comparable<getTransactionsForCustomer_args>   {
4257
  public static class getTransactionsForCustomer_args implements TBase<getTransactionsForCustomer_args._Fields>, java.io.Serializable, Cloneable, Comparable<getTransactionsForCustomer_args>   {
4105
    private static final TStruct STRUCT_DESC = new TStruct("getTransactionsForCustomer_args");
4258
    private static final TStruct STRUCT_DESC = new TStruct("getTransactionsForCustomer_args");
4106
 
4259
 
4107
    private static final TField CUSTOMER_ID_FIELD_DESC = new TField("customerId", TType.I64, (short)1);
4260
    private static final TField CUSTOMER_ID_FIELD_DESC = new TField("customerId", TType.I64, (short)1);
4108
    private static final TField FROM_FIELD_DESC = new TField("from", TType.I64, (short)2);
4261
    private static final TField FROM_DATE_FIELD_DESC = new TField("from_date", TType.I64, (short)2);
4109
    private static final TField TO_FIELD_DESC = new TField("to", TType.I64, (short)3);
4262
    private static final TField TO_DATE_FIELD_DESC = new TField("to_date", TType.I64, (short)3);
4110
    private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)4);
4263
    private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)4);
4111
 
4264
 
4112
    private long customerId;
4265
    private long customerId;
4113
    private long from;
4266
    private long from_date;
4114
    private long to;
4267
    private long to_date;
4115
    private TransactionStatus status;
4268
    private TransactionStatus status;
4116
 
4269
 
4117
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4270
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4118
    public enum _Fields implements TFieldIdEnum {
4271
    public enum _Fields implements TFieldIdEnum {
4119
      CUSTOMER_ID((short)1, "customerId"),
4272
      CUSTOMER_ID((short)1, "customerId"),
4120
      FROM((short)2, "from"),
4273
      FROM_DATE((short)2, "from_date"),
4121
      TO((short)3, "to"),
4274
      TO_DATE((short)3, "to_date"),
4122
      /**
4275
      /**
4123
       * 
4276
       * 
4124
       * @see TransactionStatus
4277
       * @see TransactionStatus
4125
       */
4278
       */
4126
      STATUS((short)4, "status");
4279
      STATUS((short)4, "status");
Line 4176... Line 4329...
4176
      }
4329
      }
4177
    }
4330
    }
4178
 
4331
 
4179
    // isset id assignments
4332
    // isset id assignments
4180
    private static final int __CUSTOMERID_ISSET_ID = 0;
4333
    private static final int __CUSTOMERID_ISSET_ID = 0;
4181
    private static final int __FROM_ISSET_ID = 1;
4334
    private static final int __FROM_DATE_ISSET_ID = 1;
4182
    private static final int __TO_ISSET_ID = 2;
4335
    private static final int __TO_DATE_ISSET_ID = 2;
4183
    private BitSet __isset_bit_vector = new BitSet(3);
4336
    private BitSet __isset_bit_vector = new BitSet(3);
4184
 
4337
 
4185
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
4338
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
4186
      put(_Fields.CUSTOMER_ID, new FieldMetaData("customerId", TFieldRequirementType.DEFAULT, 
4339
      put(_Fields.CUSTOMER_ID, new FieldMetaData("customerId", TFieldRequirementType.DEFAULT, 
4187
          new FieldValueMetaData(TType.I64)));
4340
          new FieldValueMetaData(TType.I64)));
4188
      put(_Fields.FROM, new FieldMetaData("from", TFieldRequirementType.DEFAULT, 
4341
      put(_Fields.FROM_DATE, new FieldMetaData("from_date", TFieldRequirementType.DEFAULT, 
4189
          new FieldValueMetaData(TType.I64)));
4342
          new FieldValueMetaData(TType.I64)));
4190
      put(_Fields.TO, new FieldMetaData("to", TFieldRequirementType.DEFAULT, 
4343
      put(_Fields.TO_DATE, new FieldMetaData("to_date", TFieldRequirementType.DEFAULT, 
4191
          new FieldValueMetaData(TType.I64)));
4344
          new FieldValueMetaData(TType.I64)));
4192
      put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, 
4345
      put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, 
4193
          new EnumMetaData(TType.ENUM, TransactionStatus.class)));
4346
          new EnumMetaData(TType.ENUM, TransactionStatus.class)));
4194
    }});
4347
    }});
4195
 
4348
 
Line 4200... Line 4353...
4200
    public getTransactionsForCustomer_args() {
4353
    public getTransactionsForCustomer_args() {
4201
    }
4354
    }
4202
 
4355
 
4203
    public getTransactionsForCustomer_args(
4356
    public getTransactionsForCustomer_args(
4204
      long customerId,
4357
      long customerId,
4205
      long from,
4358
      long from_date,
4206
      long to,
4359
      long to_date,
4207
      TransactionStatus status)
4360
      TransactionStatus status)
4208
    {
4361
    {
4209
      this();
4362
      this();
4210
      this.customerId = customerId;
4363
      this.customerId = customerId;
4211
      setCustomerIdIsSet(true);
4364
      setCustomerIdIsSet(true);
4212
      this.from = from;
4365
      this.from_date = from_date;
4213
      setFromIsSet(true);
4366
      setFrom_dateIsSet(true);
4214
      this.to = to;
4367
      this.to_date = to_date;
4215
      setToIsSet(true);
4368
      setTo_dateIsSet(true);
4216
      this.status = status;
4369
      this.status = status;
4217
    }
4370
    }
4218
 
4371
 
4219
    /**
4372
    /**
4220
     * Performs a deep copy on <i>other</i>.
4373
     * Performs a deep copy on <i>other</i>.
4221
     */
4374
     */
4222
    public getTransactionsForCustomer_args(getTransactionsForCustomer_args other) {
4375
    public getTransactionsForCustomer_args(getTransactionsForCustomer_args other) {
4223
      __isset_bit_vector.clear();
4376
      __isset_bit_vector.clear();
4224
      __isset_bit_vector.or(other.__isset_bit_vector);
4377
      __isset_bit_vector.or(other.__isset_bit_vector);
4225
      this.customerId = other.customerId;
4378
      this.customerId = other.customerId;
4226
      this.from = other.from;
4379
      this.from_date = other.from_date;
4227
      this.to = other.to;
4380
      this.to_date = other.to_date;
4228
      if (other.isSetStatus()) {
4381
      if (other.isSetStatus()) {
4229
        this.status = other.status;
4382
        this.status = other.status;
4230
      }
4383
      }
4231
    }
4384
    }
4232
 
4385
 
Line 4260... Line 4413...
4260
 
4413
 
4261
    public void setCustomerIdIsSet(boolean value) {
4414
    public void setCustomerIdIsSet(boolean value) {
4262
      __isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);
4415
      __isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);
4263
    }
4416
    }
4264
 
4417
 
4265
    public long getFrom() {
4418
    public long getFrom_date() {
4266
      return this.from;
4419
      return this.from_date;
4267
    }
4420
    }
4268
 
4421
 
4269
    public getTransactionsForCustomer_args setFrom(long from) {
4422
    public getTransactionsForCustomer_args setFrom_date(long from_date) {
4270
      this.from = from;
4423
      this.from_date = from_date;
4271
      setFromIsSet(true);
4424
      setFrom_dateIsSet(true);
4272
      return this;
4425
      return this;
4273
    }
4426
    }
4274
 
4427
 
4275
    public void unsetFrom() {
4428
    public void unsetFrom_date() {
4276
      __isset_bit_vector.clear(__FROM_ISSET_ID);
4429
      __isset_bit_vector.clear(__FROM_DATE_ISSET_ID);
4277
    }
4430
    }
4278
 
4431
 
4279
    /** Returns true if field from is set (has been asigned a value) and false otherwise */
4432
    /** Returns true if field from_date is set (has been asigned a value) and false otherwise */
4280
    public boolean isSetFrom() {
4433
    public boolean isSetFrom_date() {
4281
      return __isset_bit_vector.get(__FROM_ISSET_ID);
4434
      return __isset_bit_vector.get(__FROM_DATE_ISSET_ID);
4282
    }
4435
    }
4283
 
4436
 
4284
    public void setFromIsSet(boolean value) {
4437
    public void setFrom_dateIsSet(boolean value) {
4285
      __isset_bit_vector.set(__FROM_ISSET_ID, value);
4438
      __isset_bit_vector.set(__FROM_DATE_ISSET_ID, value);
4286
    }
4439
    }
4287
 
4440
 
4288
    public long getTo() {
4441
    public long getTo_date() {
4289
      return this.to;
4442
      return this.to_date;
4290
    }
4443
    }
4291
 
4444
 
4292
    public getTransactionsForCustomer_args setTo(long to) {
4445
    public getTransactionsForCustomer_args setTo_date(long to_date) {
4293
      this.to = to;
4446
      this.to_date = to_date;
4294
      setToIsSet(true);
4447
      setTo_dateIsSet(true);
4295
      return this;
4448
      return this;
4296
    }
4449
    }
4297
 
4450
 
4298
    public void unsetTo() {
4451
    public void unsetTo_date() {
4299
      __isset_bit_vector.clear(__TO_ISSET_ID);
4452
      __isset_bit_vector.clear(__TO_DATE_ISSET_ID);
4300
    }
4453
    }
4301
 
4454
 
4302
    /** Returns true if field to is set (has been asigned a value) and false otherwise */
4455
    /** Returns true if field to_date is set (has been asigned a value) and false otherwise */
4303
    public boolean isSetTo() {
4456
    public boolean isSetTo_date() {
4304
      return __isset_bit_vector.get(__TO_ISSET_ID);
4457
      return __isset_bit_vector.get(__TO_DATE_ISSET_ID);
4305
    }
4458
    }
4306
 
4459
 
4307
    public void setToIsSet(boolean value) {
4460
    public void setTo_dateIsSet(boolean value) {
4308
      __isset_bit_vector.set(__TO_ISSET_ID, value);
4461
      __isset_bit_vector.set(__TO_DATE_ISSET_ID, value);
4309
    }
4462
    }
4310
 
4463
 
4311
    /**
4464
    /**
4312
     * 
4465
     * 
4313
     * @see TransactionStatus
4466
     * @see TransactionStatus
Line 4348... Line 4501...
4348
        } else {
4501
        } else {
4349
          setCustomerId((Long)value);
4502
          setCustomerId((Long)value);
4350
        }
4503
        }
4351
        break;
4504
        break;
4352
 
4505
 
4353
      case FROM:
4506
      case FROM_DATE:
4354
        if (value == null) {
4507
        if (value == null) {
4355
          unsetFrom();
4508
          unsetFrom_date();
4356
        } else {
4509
        } else {
4357
          setFrom((Long)value);
4510
          setFrom_date((Long)value);
4358
        }
4511
        }
4359
        break;
4512
        break;
4360
 
4513
 
4361
      case TO:
4514
      case TO_DATE:
4362
        if (value == null) {
4515
        if (value == null) {
4363
          unsetTo();
4516
          unsetTo_date();
4364
        } else {
4517
        } else {
4365
          setTo((Long)value);
4518
          setTo_date((Long)value);
4366
        }
4519
        }
4367
        break;
4520
        break;
4368
 
4521
 
4369
      case STATUS:
4522
      case STATUS:
4370
        if (value == null) {
4523
        if (value == null) {
Line 4384... Line 4537...
4384
    public Object getFieldValue(_Fields field) {
4537
    public Object getFieldValue(_Fields field) {
4385
      switch (field) {
4538
      switch (field) {
4386
      case CUSTOMER_ID:
4539
      case CUSTOMER_ID:
4387
        return new Long(getCustomerId());
4540
        return new Long(getCustomerId());
4388
 
4541
 
4389
      case FROM:
4542
      case FROM_DATE:
4390
        return new Long(getFrom());
4543
        return new Long(getFrom_date());
4391
 
4544
 
4392
      case TO:
4545
      case TO_DATE:
4393
        return new Long(getTo());
4546
        return new Long(getTo_date());
4394
 
4547
 
4395
      case STATUS:
4548
      case STATUS:
4396
        return getStatus();
4549
        return getStatus();
4397
 
4550
 
4398
      }
4551
      }
Line 4406... Line 4559...
4406
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
4559
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
4407
    public boolean isSet(_Fields field) {
4560
    public boolean isSet(_Fields field) {
4408
      switch (field) {
4561
      switch (field) {
4409
      case CUSTOMER_ID:
4562
      case CUSTOMER_ID:
4410
        return isSetCustomerId();
4563
        return isSetCustomerId();
4411
      case FROM:
4564
      case FROM_DATE:
4412
        return isSetFrom();
4565
        return isSetFrom_date();
4413
      case TO:
4566
      case TO_DATE:
4414
        return isSetTo();
4567
        return isSetTo_date();
4415
      case STATUS:
4568
      case STATUS:
4416
        return isSetStatus();
4569
        return isSetStatus();
4417
      }
4570
      }
4418
      throw new IllegalStateException();
4571
      throw new IllegalStateException();
4419
    }
4572
    }
Line 4442... Line 4595...
4442
          return false;
4595
          return false;
4443
        if (this.customerId != that.customerId)
4596
        if (this.customerId != that.customerId)
4444
          return false;
4597
          return false;
4445
      }
4598
      }
4446
 
4599
 
4447
      boolean this_present_from = true;
4600
      boolean this_present_from_date = true;
4448
      boolean that_present_from = true;
4601
      boolean that_present_from_date = true;
4449
      if (this_present_from || that_present_from) {
4602
      if (this_present_from_date || that_present_from_date) {
4450
        if (!(this_present_from && that_present_from))
4603
        if (!(this_present_from_date && that_present_from_date))
4451
          return false;
4604
          return false;
4452
        if (this.from != that.from)
4605
        if (this.from_date != that.from_date)
4453
          return false;
4606
          return false;
4454
      }
4607
      }
4455
 
4608
 
4456
      boolean this_present_to = true;
4609
      boolean this_present_to_date = true;
4457
      boolean that_present_to = true;
4610
      boolean that_present_to_date = true;
4458
      if (this_present_to || that_present_to) {
4611
      if (this_present_to_date || that_present_to_date) {
4459
        if (!(this_present_to && that_present_to))
4612
        if (!(this_present_to_date && that_present_to_date))
4460
          return false;
4613
          return false;
4461
        if (this.to != that.to)
4614
        if (this.to_date != that.to_date)
4462
          return false;
4615
          return false;
4463
      }
4616
      }
4464
 
4617
 
4465
      boolean this_present_status = true && this.isSetStatus();
4618
      boolean this_present_status = true && this.isSetStatus();
4466
      boolean that_present_status = true && that.isSetStatus();
4619
      boolean that_present_status = true && that.isSetStatus();
Line 4493... Line 4646...
4493
      }
4646
      }
4494
      lastComparison = TBaseHelper.compareTo(customerId, typedOther.customerId);
4647
      lastComparison = TBaseHelper.compareTo(customerId, typedOther.customerId);
4495
      if (lastComparison != 0) {
4648
      if (lastComparison != 0) {
4496
        return lastComparison;
4649
        return lastComparison;
4497
      }
4650
      }
4498
      lastComparison = Boolean.valueOf(isSetFrom()).compareTo(isSetFrom());
4651
      lastComparison = Boolean.valueOf(isSetFrom_date()).compareTo(isSetFrom_date());
4499
      if (lastComparison != 0) {
4652
      if (lastComparison != 0) {
4500
        return lastComparison;
4653
        return lastComparison;
4501
      }
4654
      }
4502
      lastComparison = TBaseHelper.compareTo(from, typedOther.from);
4655
      lastComparison = TBaseHelper.compareTo(from_date, typedOther.from_date);
4503
      if (lastComparison != 0) {
4656
      if (lastComparison != 0) {
4504
        return lastComparison;
4657
        return lastComparison;
4505
      }
4658
      }
4506
      lastComparison = Boolean.valueOf(isSetTo()).compareTo(isSetTo());
4659
      lastComparison = Boolean.valueOf(isSetTo_date()).compareTo(isSetTo_date());
4507
      if (lastComparison != 0) {
4660
      if (lastComparison != 0) {
4508
        return lastComparison;
4661
        return lastComparison;
4509
      }
4662
      }
4510
      lastComparison = TBaseHelper.compareTo(to, typedOther.to);
4663
      lastComparison = TBaseHelper.compareTo(to_date, typedOther.to_date);
4511
      if (lastComparison != 0) {
4664
      if (lastComparison != 0) {
4512
        return lastComparison;
4665
        return lastComparison;
4513
      }
4666
      }
4514
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());
4667
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());
4515
      if (lastComparison != 0) {
4668
      if (lastComparison != 0) {
Line 4542... Line 4695...
4542
                setCustomerIdIsSet(true);
4695
                setCustomerIdIsSet(true);
4543
              } else { 
4696
              } else { 
4544
                TProtocolUtil.skip(iprot, field.type);
4697
                TProtocolUtil.skip(iprot, field.type);
4545
              }
4698
              }
4546
              break;
4699
              break;
4547
            case FROM:
4700
            case FROM_DATE:
4548
              if (field.type == TType.I64) {
4701
              if (field.type == TType.I64) {
4549
                this.from = iprot.readI64();
4702
                this.from_date = iprot.readI64();
4550
                setFromIsSet(true);
4703
                setFrom_dateIsSet(true);
4551
              } else { 
4704
              } else { 
4552
                TProtocolUtil.skip(iprot, field.type);
4705
                TProtocolUtil.skip(iprot, field.type);
4553
              }
4706
              }
4554
              break;
4707
              break;
4555
            case TO:
4708
            case TO_DATE:
4556
              if (field.type == TType.I64) {
4709
              if (field.type == TType.I64) {
4557
                this.to = iprot.readI64();
4710
                this.to_date = iprot.readI64();
4558
                setToIsSet(true);
4711
                setTo_dateIsSet(true);
4559
              } else { 
4712
              } else { 
4560
                TProtocolUtil.skip(iprot, field.type);
4713
                TProtocolUtil.skip(iprot, field.type);
4561
              }
4714
              }
4562
              break;
4715
              break;
4563
            case STATUS:
4716
            case STATUS:
Line 4580... Line 4733...
4580
 
4733
 
4581
      oprot.writeStructBegin(STRUCT_DESC);
4734
      oprot.writeStructBegin(STRUCT_DESC);
4582
      oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
4735
      oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
4583
      oprot.writeI64(this.customerId);
4736
      oprot.writeI64(this.customerId);
4584
      oprot.writeFieldEnd();
4737
      oprot.writeFieldEnd();
4585
      oprot.writeFieldBegin(FROM_FIELD_DESC);
4738
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
4586
      oprot.writeI64(this.from);
4739
      oprot.writeI64(this.from_date);
4587
      oprot.writeFieldEnd();
4740
      oprot.writeFieldEnd();
4588
      oprot.writeFieldBegin(TO_FIELD_DESC);
4741
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
4589
      oprot.writeI64(this.to);
4742
      oprot.writeI64(this.to_date);
4590
      oprot.writeFieldEnd();
4743
      oprot.writeFieldEnd();
4591
      if (this.status != null) {
4744
      if (this.status != null) {
4592
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
4745
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
4593
        oprot.writeI32(this.status.getValue());
4746
        oprot.writeI32(this.status.getValue());
4594
        oprot.writeFieldEnd();
4747
        oprot.writeFieldEnd();
Line 4604... Line 4757...
4604
 
4757
 
4605
      sb.append("customerId:");
4758
      sb.append("customerId:");
4606
      sb.append(this.customerId);
4759
      sb.append(this.customerId);
4607
      first = false;
4760
      first = false;
4608
      if (!first) sb.append(", ");
4761
      if (!first) sb.append(", ");
4609
      sb.append("from:");
4762
      sb.append("from_date:");
4610
      sb.append(this.from);
4763
      sb.append(this.from_date);
4611
      first = false;
4764
      first = false;
4612
      if (!first) sb.append(", ");
4765
      if (!first) sb.append(", ");
4613
      sb.append("to:");
4766
      sb.append("to_date:");
4614
      sb.append(this.to);
4767
      sb.append(this.to_date);
4615
      first = false;
4768
      first = false;
4616
      if (!first) sb.append(", ");
4769
      if (!first) sb.append(", ");
4617
      sb.append("status:");
4770
      sb.append("status:");
4618
      if (this.status == null) {
4771
      if (this.status == null) {
4619
        sb.append("null");
4772
        sb.append("null");
Line 4928... Line 5081...
4928
        } else {
5081
        } else {
4929
          switch (fieldId) {
5082
          switch (fieldId) {
4930
            case SUCCESS:
5083
            case SUCCESS:
4931
              if (field.type == TType.LIST) {
5084
              if (field.type == TType.LIST) {
4932
                {
5085
                {
4933
                  TList _list34 = iprot.readListBegin();
5086
                  TList _list38 = iprot.readListBegin();
4934
                  this.success = new ArrayList<Transaction>(_list34.size);
5087
                  this.success = new ArrayList<Transaction>(_list38.size);
4935
                  for (int _i35 = 0; _i35 < _list34.size; ++_i35)
5088
                  for (int _i39 = 0; _i39 < _list38.size; ++_i39)
4936
                  {
5089
                  {
4937
                    Transaction _elem36;
5090
                    Transaction _elem40;
4938
                    _elem36 = new Transaction();
5091
                    _elem40 = new Transaction();
4939
                    _elem36.read(iprot);
5092
                    _elem40.read(iprot);
4940
                    this.success.add(_elem36);
5093
                    this.success.add(_elem40);
4941
                  }
5094
                  }
4942
                  iprot.readListEnd();
5095
                  iprot.readListEnd();
4943
                }
5096
                }
4944
              } else { 
5097
              } else { 
4945
                TProtocolUtil.skip(iprot, field.type);
5098
                TProtocolUtil.skip(iprot, field.type);
Line 4966... Line 5119...
4966
 
5119
 
4967
      if (this.isSetSuccess()) {
5120
      if (this.isSetSuccess()) {
4968
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5121
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4969
        {
5122
        {
4970
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
5123
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
4971
          for (Transaction _iter37 : this.success)
5124
          for (Transaction _iter41 : this.success)
4972
          {
5125
          {
4973
            _iter37.write(oprot);
5126
            _iter41.write(oprot);
4974
          }
5127
          }
4975
          oprot.writeListEnd();
5128
          oprot.writeListEnd();
4976
        }
5129
        }
4977
        oprot.writeFieldEnd();
5130
        oprot.writeFieldEnd();
4978
      } else if (this.isSetEx()) {
5131
      } else if (this.isSetEx()) {
Line 5016... Line 5169...
5016
 
5169
 
5017
  public static class getTransactionsForCustomerAndShipmentStatus_args implements TBase<getTransactionsForCustomerAndShipmentStatus_args._Fields>, java.io.Serializable, Cloneable, Comparable<getTransactionsForCustomerAndShipmentStatus_args>   {
5170
  public static class getTransactionsForCustomerAndShipmentStatus_args implements TBase<getTransactionsForCustomerAndShipmentStatus_args._Fields>, java.io.Serializable, Cloneable, Comparable<getTransactionsForCustomerAndShipmentStatus_args>   {
5018
    private static final TStruct STRUCT_DESC = new TStruct("getTransactionsForCustomerAndShipmentStatus_args");
5171
    private static final TStruct STRUCT_DESC = new TStruct("getTransactionsForCustomerAndShipmentStatus_args");
5019
 
5172
 
5020
    private static final TField CUSTOMER_ID_FIELD_DESC = new TField("customerId", TType.I64, (short)1);
5173
    private static final TField CUSTOMER_ID_FIELD_DESC = new TField("customerId", TType.I64, (short)1);
5021
    private static final TField FROM_FIELD_DESC = new TField("from", TType.I64, (short)2);
5174
    private static final TField FROM_DATE_FIELD_DESC = new TField("from_date", TType.I64, (short)2);
5022
    private static final TField TO_FIELD_DESC = new TField("to", TType.I64, (short)3);
5175
    private static final TField TO_DATE_FIELD_DESC = new TField("to_date", TType.I64, (short)3);
5023
    private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)4);
5176
    private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)4);
5024
 
5177
 
5025
    private long customerId;
5178
    private long customerId;
5026
    private long from;
5179
    private long from_date;
5027
    private long to;
5180
    private long to_date;
5028
    private ShipmentStatus status;
5181
    private ShipmentStatus status;
5029
 
5182
 
5030
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5183
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5031
    public enum _Fields implements TFieldIdEnum {
5184
    public enum _Fields implements TFieldIdEnum {
5032
      CUSTOMER_ID((short)1, "customerId"),
5185
      CUSTOMER_ID((short)1, "customerId"),
5033
      FROM((short)2, "from"),
5186
      FROM_DATE((short)2, "from_date"),
5034
      TO((short)3, "to"),
5187
      TO_DATE((short)3, "to_date"),
5035
      /**
5188
      /**
5036
       * 
5189
       * 
5037
       * @see ShipmentStatus
5190
       * @see ShipmentStatus
5038
       */
5191
       */
5039
      STATUS((short)4, "status");
5192
      STATUS((short)4, "status");
Line 5089... Line 5242...
5089
      }
5242
      }
5090
    }
5243
    }
5091
 
5244
 
5092
    // isset id assignments
5245
    // isset id assignments
5093
    private static final int __CUSTOMERID_ISSET_ID = 0;
5246
    private static final int __CUSTOMERID_ISSET_ID = 0;
5094
    private static final int __FROM_ISSET_ID = 1;
5247
    private static final int __FROM_DATE_ISSET_ID = 1;
5095
    private static final int __TO_ISSET_ID = 2;
5248
    private static final int __TO_DATE_ISSET_ID = 2;
5096
    private BitSet __isset_bit_vector = new BitSet(3);
5249
    private BitSet __isset_bit_vector = new BitSet(3);
5097
 
5250
 
5098
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
5251
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
5099
      put(_Fields.CUSTOMER_ID, new FieldMetaData("customerId", TFieldRequirementType.DEFAULT, 
5252
      put(_Fields.CUSTOMER_ID, new FieldMetaData("customerId", TFieldRequirementType.DEFAULT, 
5100
          new FieldValueMetaData(TType.I64)));
5253
          new FieldValueMetaData(TType.I64)));
5101
      put(_Fields.FROM, new FieldMetaData("from", TFieldRequirementType.DEFAULT, 
5254
      put(_Fields.FROM_DATE, new FieldMetaData("from_date", TFieldRequirementType.DEFAULT, 
5102
          new FieldValueMetaData(TType.I64)));
5255
          new FieldValueMetaData(TType.I64)));
5103
      put(_Fields.TO, new FieldMetaData("to", TFieldRequirementType.DEFAULT, 
5256
      put(_Fields.TO_DATE, new FieldMetaData("to_date", TFieldRequirementType.DEFAULT, 
5104
          new FieldValueMetaData(TType.I64)));
5257
          new FieldValueMetaData(TType.I64)));
5105
      put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, 
5258
      put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, 
5106
          new EnumMetaData(TType.ENUM, ShipmentStatus.class)));
5259
          new EnumMetaData(TType.ENUM, ShipmentStatus.class)));
5107
    }});
5260
    }});
5108
 
5261
 
Line 5113... Line 5266...
5113
    public getTransactionsForCustomerAndShipmentStatus_args() {
5266
    public getTransactionsForCustomerAndShipmentStatus_args() {
5114
    }
5267
    }
5115
 
5268
 
5116
    public getTransactionsForCustomerAndShipmentStatus_args(
5269
    public getTransactionsForCustomerAndShipmentStatus_args(
5117
      long customerId,
5270
      long customerId,
5118
      long from,
5271
      long from_date,
5119
      long to,
5272
      long to_date,
5120
      ShipmentStatus status)
5273
      ShipmentStatus status)
5121
    {
5274
    {
5122
      this();
5275
      this();
5123
      this.customerId = customerId;
5276
      this.customerId = customerId;
5124
      setCustomerIdIsSet(true);
5277
      setCustomerIdIsSet(true);
5125
      this.from = from;
5278
      this.from_date = from_date;
5126
      setFromIsSet(true);
5279
      setFrom_dateIsSet(true);
5127
      this.to = to;
5280
      this.to_date = to_date;
5128
      setToIsSet(true);
5281
      setTo_dateIsSet(true);
5129
      this.status = status;
5282
      this.status = status;
5130
    }
5283
    }
5131
 
5284
 
5132
    /**
5285
    /**
5133
     * Performs a deep copy on <i>other</i>.
5286
     * Performs a deep copy on <i>other</i>.
5134
     */
5287
     */
5135
    public getTransactionsForCustomerAndShipmentStatus_args(getTransactionsForCustomerAndShipmentStatus_args other) {
5288
    public getTransactionsForCustomerAndShipmentStatus_args(getTransactionsForCustomerAndShipmentStatus_args other) {
5136
      __isset_bit_vector.clear();
5289
      __isset_bit_vector.clear();
5137
      __isset_bit_vector.or(other.__isset_bit_vector);
5290
      __isset_bit_vector.or(other.__isset_bit_vector);
5138
      this.customerId = other.customerId;
5291
      this.customerId = other.customerId;
5139
      this.from = other.from;
5292
      this.from_date = other.from_date;
5140
      this.to = other.to;
5293
      this.to_date = other.to_date;
5141
      if (other.isSetStatus()) {
5294
      if (other.isSetStatus()) {
5142
        this.status = other.status;
5295
        this.status = other.status;
5143
      }
5296
      }
5144
    }
5297
    }
5145
 
5298
 
Line 5173... Line 5326...
5173
 
5326
 
5174
    public void setCustomerIdIsSet(boolean value) {
5327
    public void setCustomerIdIsSet(boolean value) {
5175
      __isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);
5328
      __isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);
5176
    }
5329
    }
5177
 
5330
 
5178
    public long getFrom() {
5331
    public long getFrom_date() {
5179
      return this.from;
5332
      return this.from_date;
5180
    }
5333
    }
5181
 
5334
 
5182
    public getTransactionsForCustomerAndShipmentStatus_args setFrom(long from) {
5335
    public getTransactionsForCustomerAndShipmentStatus_args setFrom_date(long from_date) {
5183
      this.from = from;
5336
      this.from_date = from_date;
5184
      setFromIsSet(true);
5337
      setFrom_dateIsSet(true);
5185
      return this;
5338
      return this;
5186
    }
5339
    }
5187
 
5340
 
5188
    public void unsetFrom() {
5341
    public void unsetFrom_date() {
5189
      __isset_bit_vector.clear(__FROM_ISSET_ID);
5342
      __isset_bit_vector.clear(__FROM_DATE_ISSET_ID);
5190
    }
5343
    }
5191
 
5344
 
5192
    /** Returns true if field from is set (has been asigned a value) and false otherwise */
5345
    /** Returns true if field from_date is set (has been asigned a value) and false otherwise */
5193
    public boolean isSetFrom() {
5346
    public boolean isSetFrom_date() {
5194
      return __isset_bit_vector.get(__FROM_ISSET_ID);
5347
      return __isset_bit_vector.get(__FROM_DATE_ISSET_ID);
5195
    }
5348
    }
5196
 
5349
 
5197
    public void setFromIsSet(boolean value) {
5350
    public void setFrom_dateIsSet(boolean value) {
5198
      __isset_bit_vector.set(__FROM_ISSET_ID, value);
5351
      __isset_bit_vector.set(__FROM_DATE_ISSET_ID, value);
5199
    }
5352
    }
5200
 
5353
 
5201
    public long getTo() {
5354
    public long getTo_date() {
5202
      return this.to;
5355
      return this.to_date;
5203
    }
5356
    }
5204
 
5357
 
5205
    public getTransactionsForCustomerAndShipmentStatus_args setTo(long to) {
5358
    public getTransactionsForCustomerAndShipmentStatus_args setTo_date(long to_date) {
5206
      this.to = to;
5359
      this.to_date = to_date;
5207
      setToIsSet(true);
5360
      setTo_dateIsSet(true);
5208
      return this;
5361
      return this;
5209
    }
5362
    }
5210
 
5363
 
5211
    public void unsetTo() {
5364
    public void unsetTo_date() {
5212
      __isset_bit_vector.clear(__TO_ISSET_ID);
5365
      __isset_bit_vector.clear(__TO_DATE_ISSET_ID);
5213
    }
5366
    }
5214
 
5367
 
5215
    /** Returns true if field to is set (has been asigned a value) and false otherwise */
5368
    /** Returns true if field to_date is set (has been asigned a value) and false otherwise */
5216
    public boolean isSetTo() {
5369
    public boolean isSetTo_date() {
5217
      return __isset_bit_vector.get(__TO_ISSET_ID);
5370
      return __isset_bit_vector.get(__TO_DATE_ISSET_ID);
5218
    }
5371
    }
5219
 
5372
 
5220
    public void setToIsSet(boolean value) {
5373
    public void setTo_dateIsSet(boolean value) {
5221
      __isset_bit_vector.set(__TO_ISSET_ID, value);
5374
      __isset_bit_vector.set(__TO_DATE_ISSET_ID, value);
5222
    }
5375
    }
5223
 
5376
 
5224
    /**
5377
    /**
5225
     * 
5378
     * 
5226
     * @see ShipmentStatus
5379
     * @see ShipmentStatus
Line 5261... Line 5414...
5261
        } else {
5414
        } else {
5262
          setCustomerId((Long)value);
5415
          setCustomerId((Long)value);
5263
        }
5416
        }
5264
        break;
5417
        break;
5265
 
5418
 
5266
      case FROM:
5419
      case FROM_DATE:
5267
        if (value == null) {
5420
        if (value == null) {
5268
          unsetFrom();
5421
          unsetFrom_date();
5269
        } else {
5422
        } else {
5270
          setFrom((Long)value);
5423
          setFrom_date((Long)value);
5271
        }
5424
        }
5272
        break;
5425
        break;
5273
 
5426
 
5274
      case TO:
5427
      case TO_DATE:
5275
        if (value == null) {
5428
        if (value == null) {
5276
          unsetTo();
5429
          unsetTo_date();
5277
        } else {
5430
        } else {
5278
          setTo((Long)value);
5431
          setTo_date((Long)value);
5279
        }
5432
        }
5280
        break;
5433
        break;
5281
 
5434
 
5282
      case STATUS:
5435
      case STATUS:
5283
        if (value == null) {
5436
        if (value == null) {
Line 5297... Line 5450...
5297
    public Object getFieldValue(_Fields field) {
5450
    public Object getFieldValue(_Fields field) {
5298
      switch (field) {
5451
      switch (field) {
5299
      case CUSTOMER_ID:
5452
      case CUSTOMER_ID:
5300
        return new Long(getCustomerId());
5453
        return new Long(getCustomerId());
5301
 
5454
 
5302
      case FROM:
5455
      case FROM_DATE:
5303
        return new Long(getFrom());
5456
        return new Long(getFrom_date());
5304
 
5457
 
5305
      case TO:
5458
      case TO_DATE:
5306
        return new Long(getTo());
5459
        return new Long(getTo_date());
5307
 
5460
 
5308
      case STATUS:
5461
      case STATUS:
5309
        return getStatus();
5462
        return getStatus();
5310
 
5463
 
5311
      }
5464
      }
Line 5319... Line 5472...
5319
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
5472
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
5320
    public boolean isSet(_Fields field) {
5473
    public boolean isSet(_Fields field) {
5321
      switch (field) {
5474
      switch (field) {
5322
      case CUSTOMER_ID:
5475
      case CUSTOMER_ID:
5323
        return isSetCustomerId();
5476
        return isSetCustomerId();
5324
      case FROM:
5477
      case FROM_DATE:
5325
        return isSetFrom();
5478
        return isSetFrom_date();
5326
      case TO:
5479
      case TO_DATE:
5327
        return isSetTo();
5480
        return isSetTo_date();
5328
      case STATUS:
5481
      case STATUS:
5329
        return isSetStatus();
5482
        return isSetStatus();
5330
      }
5483
      }
5331
      throw new IllegalStateException();
5484
      throw new IllegalStateException();
5332
    }
5485
    }
Line 5355... Line 5508...
5355
          return false;
5508
          return false;
5356
        if (this.customerId != that.customerId)
5509
        if (this.customerId != that.customerId)
5357
          return false;
5510
          return false;
5358
      }
5511
      }
5359
 
5512
 
5360
      boolean this_present_from = true;
5513
      boolean this_present_from_date = true;
5361
      boolean that_present_from = true;
5514
      boolean that_present_from_date = true;
5362
      if (this_present_from || that_present_from) {
5515
      if (this_present_from_date || that_present_from_date) {
5363
        if (!(this_present_from && that_present_from))
5516
        if (!(this_present_from_date && that_present_from_date))
5364
          return false;
5517
          return false;
5365
        if (this.from != that.from)
5518
        if (this.from_date != that.from_date)
5366
          return false;
5519
          return false;
5367
      }
5520
      }
5368
 
5521
 
5369
      boolean this_present_to = true;
5522
      boolean this_present_to_date = true;
5370
      boolean that_present_to = true;
5523
      boolean that_present_to_date = true;
5371
      if (this_present_to || that_present_to) {
5524
      if (this_present_to_date || that_present_to_date) {
5372
        if (!(this_present_to && that_present_to))
5525
        if (!(this_present_to_date && that_present_to_date))
5373
          return false;
5526
          return false;
5374
        if (this.to != that.to)
5527
        if (this.to_date != that.to_date)
5375
          return false;
5528
          return false;
5376
      }
5529
      }
5377
 
5530
 
5378
      boolean this_present_status = true && this.isSetStatus();
5531
      boolean this_present_status = true && this.isSetStatus();
5379
      boolean that_present_status = true && that.isSetStatus();
5532
      boolean that_present_status = true && that.isSetStatus();
Line 5406... Line 5559...
5406
      }
5559
      }
5407
      lastComparison = TBaseHelper.compareTo(customerId, typedOther.customerId);
5560
      lastComparison = TBaseHelper.compareTo(customerId, typedOther.customerId);
5408
      if (lastComparison != 0) {
5561
      if (lastComparison != 0) {
5409
        return lastComparison;
5562
        return lastComparison;
5410
      }
5563
      }
5411
      lastComparison = Boolean.valueOf(isSetFrom()).compareTo(isSetFrom());
5564
      lastComparison = Boolean.valueOf(isSetFrom_date()).compareTo(isSetFrom_date());
5412
      if (lastComparison != 0) {
5565
      if (lastComparison != 0) {
5413
        return lastComparison;
5566
        return lastComparison;
5414
      }
5567
      }
5415
      lastComparison = TBaseHelper.compareTo(from, typedOther.from);
5568
      lastComparison = TBaseHelper.compareTo(from_date, typedOther.from_date);
5416
      if (lastComparison != 0) {
5569
      if (lastComparison != 0) {
5417
        return lastComparison;
5570
        return lastComparison;
5418
      }
5571
      }
5419
      lastComparison = Boolean.valueOf(isSetTo()).compareTo(isSetTo());
5572
      lastComparison = Boolean.valueOf(isSetTo_date()).compareTo(isSetTo_date());
5420
      if (lastComparison != 0) {
5573
      if (lastComparison != 0) {
5421
        return lastComparison;
5574
        return lastComparison;
5422
      }
5575
      }
5423
      lastComparison = TBaseHelper.compareTo(to, typedOther.to);
5576
      lastComparison = TBaseHelper.compareTo(to_date, typedOther.to_date);
5424
      if (lastComparison != 0) {
5577
      if (lastComparison != 0) {
5425
        return lastComparison;
5578
        return lastComparison;
5426
      }
5579
      }
5427
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());
5580
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());
5428
      if (lastComparison != 0) {
5581
      if (lastComparison != 0) {
Line 5455... Line 5608...
5455
                setCustomerIdIsSet(true);
5608
                setCustomerIdIsSet(true);
5456
              } else { 
5609
              } else { 
5457
                TProtocolUtil.skip(iprot, field.type);
5610
                TProtocolUtil.skip(iprot, field.type);
5458
              }
5611
              }
5459
              break;
5612
              break;
5460
            case FROM:
5613
            case FROM_DATE:
5461
              if (field.type == TType.I64) {
5614
              if (field.type == TType.I64) {
5462
                this.from = iprot.readI64();
5615
                this.from_date = iprot.readI64();
5463
                setFromIsSet(true);
5616
                setFrom_dateIsSet(true);
5464
              } else { 
5617
              } else { 
5465
                TProtocolUtil.skip(iprot, field.type);
5618
                TProtocolUtil.skip(iprot, field.type);
5466
              }
5619
              }
5467
              break;
5620
              break;
5468
            case TO:
5621
            case TO_DATE:
5469
              if (field.type == TType.I64) {
5622
              if (field.type == TType.I64) {
5470
                this.to = iprot.readI64();
5623
                this.to_date = iprot.readI64();
5471
                setToIsSet(true);
5624
                setTo_dateIsSet(true);
5472
              } else { 
5625
              } else { 
5473
                TProtocolUtil.skip(iprot, field.type);
5626
                TProtocolUtil.skip(iprot, field.type);
5474
              }
5627
              }
5475
              break;
5628
              break;
5476
            case STATUS:
5629
            case STATUS:
Line 5493... Line 5646...
5493
 
5646
 
5494
      oprot.writeStructBegin(STRUCT_DESC);
5647
      oprot.writeStructBegin(STRUCT_DESC);
5495
      oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
5648
      oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
5496
      oprot.writeI64(this.customerId);
5649
      oprot.writeI64(this.customerId);
5497
      oprot.writeFieldEnd();
5650
      oprot.writeFieldEnd();
5498
      oprot.writeFieldBegin(FROM_FIELD_DESC);
5651
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
5499
      oprot.writeI64(this.from);
5652
      oprot.writeI64(this.from_date);
5500
      oprot.writeFieldEnd();
5653
      oprot.writeFieldEnd();
5501
      oprot.writeFieldBegin(TO_FIELD_DESC);
5654
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
5502
      oprot.writeI64(this.to);
5655
      oprot.writeI64(this.to_date);
5503
      oprot.writeFieldEnd();
5656
      oprot.writeFieldEnd();
5504
      if (this.status != null) {
5657
      if (this.status != null) {
5505
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
5658
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
5506
        oprot.writeI32(this.status.getValue());
5659
        oprot.writeI32(this.status.getValue());
5507
        oprot.writeFieldEnd();
5660
        oprot.writeFieldEnd();
Line 5517... Line 5670...
5517
 
5670
 
5518
      sb.append("customerId:");
5671
      sb.append("customerId:");
5519
      sb.append(this.customerId);
5672
      sb.append(this.customerId);
5520
      first = false;
5673
      first = false;
5521
      if (!first) sb.append(", ");
5674
      if (!first) sb.append(", ");
5522
      sb.append("from:");
5675
      sb.append("from_date:");
5523
      sb.append(this.from);
5676
      sb.append(this.from_date);
5524
      first = false;
5677
      first = false;
5525
      if (!first) sb.append(", ");
5678
      if (!first) sb.append(", ");
5526
      sb.append("to:");
5679
      sb.append("to_date:");
5527
      sb.append(this.to);
5680
      sb.append(this.to_date);
5528
      first = false;
5681
      first = false;
5529
      if (!first) sb.append(", ");
5682
      if (!first) sb.append(", ");
5530
      sb.append("status:");
5683
      sb.append("status:");
5531
      if (this.status == null) {
5684
      if (this.status == null) {
5532
        sb.append("null");
5685
        sb.append("null");
Line 5841... Line 5994...
5841
        } else {
5994
        } else {
5842
          switch (fieldId) {
5995
          switch (fieldId) {
5843
            case SUCCESS:
5996
            case SUCCESS:
5844
              if (field.type == TType.LIST) {
5997
              if (field.type == TType.LIST) {
5845
                {
5998
                {
5846
                  TList _list38 = iprot.readListBegin();
5999
                  TList _list42 = iprot.readListBegin();
5847
                  this.success = new ArrayList<Transaction>(_list38.size);
6000
                  this.success = new ArrayList<Transaction>(_list42.size);
5848
                  for (int _i39 = 0; _i39 < _list38.size; ++_i39)
6001
                  for (int _i43 = 0; _i43 < _list42.size; ++_i43)
5849
                  {
6002
                  {
5850
                    Transaction _elem40;
6003
                    Transaction _elem44;
5851
                    _elem40 = new Transaction();
6004
                    _elem44 = new Transaction();
5852
                    _elem40.read(iprot);
6005
                    _elem44.read(iprot);
5853
                    this.success.add(_elem40);
6006
                    this.success.add(_elem44);
5854
                  }
6007
                  }
5855
                  iprot.readListEnd();
6008
                  iprot.readListEnd();
5856
                }
6009
                }
5857
              } else { 
6010
              } else { 
5858
                TProtocolUtil.skip(iprot, field.type);
6011
                TProtocolUtil.skip(iprot, field.type);
Line 5879... Line 6032...
5879
 
6032
 
5880
      if (this.isSetSuccess()) {
6033
      if (this.isSetSuccess()) {
5881
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6034
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5882
        {
6035
        {
5883
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
6036
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
5884
          for (Transaction _iter41 : this.success)
6037
          for (Transaction _iter45 : this.success)
5885
          {
6038
          {
5886
            _iter41.write(oprot);
6039
            _iter45.write(oprot);
5887
          }
6040
          }
5888
          oprot.writeListEnd();
6041
          oprot.writeListEnd();
5889
        }
6042
        }
5890
        oprot.writeFieldEnd();
6043
        oprot.writeFieldEnd();
5891
      } else if (this.isSetEx()) {
6044
      } else if (this.isSetEx()) {
Line 5903... Line 6056...
5903
      boolean first = true;
6056
      boolean first = true;
5904
 
6057
 
5905
      sb.append("success:");
6058
      sb.append("success:");
5906
      if (this.success == null) {
6059
      if (this.success == null) {
5907
        sb.append("null");
6060
        sb.append("null");
-
 
6061
      } else {
-
 
6062
        sb.append(this.success);
-
 
6063
      }
-
 
6064
      first = false;
-
 
6065
      if (!first) sb.append(", ");
-
 
6066
      sb.append("ex:");
-
 
6067
      if (this.ex == null) {
-
 
6068
        sb.append("null");
-
 
6069
      } else {
-
 
6070
        sb.append(this.ex);
-
 
6071
      }
-
 
6072
      first = false;
-
 
6073
      sb.append(")");
-
 
6074
      return sb.toString();
-
 
6075
    }
-
 
6076
 
-
 
6077
    public void validate() throws TException {
-
 
6078
      // check for required fields
-
 
6079
    }
-
 
6080
 
-
 
6081
  }
-
 
6082
 
-
 
6083
  public static class getTransactionsForShoppingCartId_args implements TBase<getTransactionsForShoppingCartId_args._Fields>, java.io.Serializable, Cloneable, Comparable<getTransactionsForShoppingCartId_args>   {
-
 
6084
    private static final TStruct STRUCT_DESC = new TStruct("getTransactionsForShoppingCartId_args");
-
 
6085
 
-
 
6086
    private static final TField SHOPPING_CART_ID_FIELD_DESC = new TField("shoppingCartId", TType.I64, (short)1);
-
 
6087
 
-
 
6088
    private long shoppingCartId;
-
 
6089
 
-
 
6090
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
6091
    public enum _Fields implements TFieldIdEnum {
-
 
6092
      SHOPPING_CART_ID((short)1, "shoppingCartId");
-
 
6093
 
-
 
6094
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
6095
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
6096
 
-
 
6097
      static {
-
 
6098
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
6099
          byId.put((int)field._thriftId, field);
-
 
6100
          byName.put(field.getFieldName(), field);
-
 
6101
        }
-
 
6102
      }
-
 
6103
 
-
 
6104
      /**
-
 
6105
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
6106
       */
-
 
6107
      public static _Fields findByThriftId(int fieldId) {
-
 
6108
        return byId.get(fieldId);
-
 
6109
      }
-
 
6110
 
-
 
6111
      /**
-
 
6112
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
6113
       * if it is not found.
-
 
6114
       */
-
 
6115
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
6116
        _Fields fields = findByThriftId(fieldId);
-
 
6117
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
6118
        return fields;
-
 
6119
      }
-
 
6120
 
-
 
6121
      /**
-
 
6122
       * Find the _Fields constant that matches name, or null if its not found.
-
 
6123
       */
-
 
6124
      public static _Fields findByName(String name) {
-
 
6125
        return byName.get(name);
-
 
6126
      }
-
 
6127
 
-
 
6128
      private final short _thriftId;
-
 
6129
      private final String _fieldName;
-
 
6130
 
-
 
6131
      _Fields(short thriftId, String fieldName) {
-
 
6132
        _thriftId = thriftId;
-
 
6133
        _fieldName = fieldName;
-
 
6134
      }
-
 
6135
 
-
 
6136
      public short getThriftFieldId() {
-
 
6137
        return _thriftId;
-
 
6138
      }
-
 
6139
 
-
 
6140
      public String getFieldName() {
-
 
6141
        return _fieldName;
-
 
6142
      }
-
 
6143
    }
-
 
6144
 
-
 
6145
    // isset id assignments
-
 
6146
    private static final int __SHOPPINGCARTID_ISSET_ID = 0;
-
 
6147
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
6148
 
-
 
6149
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
6150
      put(_Fields.SHOPPING_CART_ID, new FieldMetaData("shoppingCartId", TFieldRequirementType.DEFAULT, 
-
 
6151
          new FieldValueMetaData(TType.I64)));
-
 
6152
    }});
-
 
6153
 
-
 
6154
    static {
-
 
6155
      FieldMetaData.addStructMetaDataMap(getTransactionsForShoppingCartId_args.class, metaDataMap);
-
 
6156
    }
-
 
6157
 
-
 
6158
    public getTransactionsForShoppingCartId_args() {
-
 
6159
    }
-
 
6160
 
-
 
6161
    public getTransactionsForShoppingCartId_args(
-
 
6162
      long shoppingCartId)
-
 
6163
    {
-
 
6164
      this();
-
 
6165
      this.shoppingCartId = shoppingCartId;
-
 
6166
      setShoppingCartIdIsSet(true);
-
 
6167
    }
-
 
6168
 
-
 
6169
    /**
-
 
6170
     * Performs a deep copy on <i>other</i>.
-
 
6171
     */
-
 
6172
    public getTransactionsForShoppingCartId_args(getTransactionsForShoppingCartId_args other) {
-
 
6173
      __isset_bit_vector.clear();
-
 
6174
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
6175
      this.shoppingCartId = other.shoppingCartId;
-
 
6176
    }
-
 
6177
 
-
 
6178
    public getTransactionsForShoppingCartId_args deepCopy() {
-
 
6179
      return new getTransactionsForShoppingCartId_args(this);
-
 
6180
    }
-
 
6181
 
-
 
6182
    @Deprecated
-
 
6183
    public getTransactionsForShoppingCartId_args clone() {
-
 
6184
      return new getTransactionsForShoppingCartId_args(this);
-
 
6185
    }
-
 
6186
 
-
 
6187
    public long getShoppingCartId() {
-
 
6188
      return this.shoppingCartId;
-
 
6189
    }
-
 
6190
 
-
 
6191
    public getTransactionsForShoppingCartId_args setShoppingCartId(long shoppingCartId) {
-
 
6192
      this.shoppingCartId = shoppingCartId;
-
 
6193
      setShoppingCartIdIsSet(true);
-
 
6194
      return this;
-
 
6195
    }
-
 
6196
 
-
 
6197
    public void unsetShoppingCartId() {
-
 
6198
      __isset_bit_vector.clear(__SHOPPINGCARTID_ISSET_ID);
-
 
6199
    }
-
 
6200
 
-
 
6201
    /** Returns true if field shoppingCartId is set (has been asigned a value) and false otherwise */
-
 
6202
    public boolean isSetShoppingCartId() {
-
 
6203
      return __isset_bit_vector.get(__SHOPPINGCARTID_ISSET_ID);
-
 
6204
    }
-
 
6205
 
-
 
6206
    public void setShoppingCartIdIsSet(boolean value) {
-
 
6207
      __isset_bit_vector.set(__SHOPPINGCARTID_ISSET_ID, value);
-
 
6208
    }
-
 
6209
 
-
 
6210
    public void setFieldValue(_Fields field, Object value) {
-
 
6211
      switch (field) {
-
 
6212
      case SHOPPING_CART_ID:
-
 
6213
        if (value == null) {
-
 
6214
          unsetShoppingCartId();
-
 
6215
        } else {
-
 
6216
          setShoppingCartId((Long)value);
-
 
6217
        }
-
 
6218
        break;
-
 
6219
 
-
 
6220
      }
-
 
6221
    }
-
 
6222
 
-
 
6223
    public void setFieldValue(int fieldID, Object value) {
-
 
6224
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
6225
    }
-
 
6226
 
-
 
6227
    public Object getFieldValue(_Fields field) {
-
 
6228
      switch (field) {
-
 
6229
      case SHOPPING_CART_ID:
-
 
6230
        return new Long(getShoppingCartId());
-
 
6231
 
-
 
6232
      }
-
 
6233
      throw new IllegalStateException();
-
 
6234
    }
-
 
6235
 
-
 
6236
    public Object getFieldValue(int fieldId) {
-
 
6237
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
6238
    }
-
 
6239
 
-
 
6240
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
6241
    public boolean isSet(_Fields field) {
-
 
6242
      switch (field) {
-
 
6243
      case SHOPPING_CART_ID:
-
 
6244
        return isSetShoppingCartId();
-
 
6245
      }
-
 
6246
      throw new IllegalStateException();
-
 
6247
    }
-
 
6248
 
-
 
6249
    public boolean isSet(int fieldID) {
-
 
6250
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
6251
    }
-
 
6252
 
-
 
6253
    @Override
-
 
6254
    public boolean equals(Object that) {
-
 
6255
      if (that == null)
-
 
6256
        return false;
-
 
6257
      if (that instanceof getTransactionsForShoppingCartId_args)
-
 
6258
        return this.equals((getTransactionsForShoppingCartId_args)that);
-
 
6259
      return false;
-
 
6260
    }
-
 
6261
 
-
 
6262
    public boolean equals(getTransactionsForShoppingCartId_args that) {
-
 
6263
      if (that == null)
-
 
6264
        return false;
-
 
6265
 
-
 
6266
      boolean this_present_shoppingCartId = true;
-
 
6267
      boolean that_present_shoppingCartId = true;
-
 
6268
      if (this_present_shoppingCartId || that_present_shoppingCartId) {
-
 
6269
        if (!(this_present_shoppingCartId && that_present_shoppingCartId))
-
 
6270
          return false;
-
 
6271
        if (this.shoppingCartId != that.shoppingCartId)
-
 
6272
          return false;
-
 
6273
      }
-
 
6274
 
-
 
6275
      return true;
-
 
6276
    }
-
 
6277
 
-
 
6278
    @Override
-
 
6279
    public int hashCode() {
-
 
6280
      return 0;
-
 
6281
    }
-
 
6282
 
-
 
6283
    public int compareTo(getTransactionsForShoppingCartId_args other) {
-
 
6284
      if (!getClass().equals(other.getClass())) {
-
 
6285
        return getClass().getName().compareTo(other.getClass().getName());
-
 
6286
      }
-
 
6287
 
-
 
6288
      int lastComparison = 0;
-
 
6289
      getTransactionsForShoppingCartId_args typedOther = (getTransactionsForShoppingCartId_args)other;
-
 
6290
 
-
 
6291
      lastComparison = Boolean.valueOf(isSetShoppingCartId()).compareTo(isSetShoppingCartId());
-
 
6292
      if (lastComparison != 0) {
-
 
6293
        return lastComparison;
-
 
6294
      }
-
 
6295
      lastComparison = TBaseHelper.compareTo(shoppingCartId, typedOther.shoppingCartId);
-
 
6296
      if (lastComparison != 0) {
-
 
6297
        return lastComparison;
-
 
6298
      }
-
 
6299
      return 0;
-
 
6300
    }
-
 
6301
 
-
 
6302
    public void read(TProtocol iprot) throws TException {
-
 
6303
      TField field;
-
 
6304
      iprot.readStructBegin();
-
 
6305
      while (true)
-
 
6306
      {
-
 
6307
        field = iprot.readFieldBegin();
-
 
6308
        if (field.type == TType.STOP) { 
-
 
6309
          break;
-
 
6310
        }
-
 
6311
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
6312
        if (fieldId == null) {
-
 
6313
          TProtocolUtil.skip(iprot, field.type);
-
 
6314
        } else {
-
 
6315
          switch (fieldId) {
-
 
6316
            case SHOPPING_CART_ID:
-
 
6317
              if (field.type == TType.I64) {
-
 
6318
                this.shoppingCartId = iprot.readI64();
-
 
6319
                setShoppingCartIdIsSet(true);
-
 
6320
              } else { 
-
 
6321
                TProtocolUtil.skip(iprot, field.type);
-
 
6322
              }
-
 
6323
              break;
-
 
6324
          }
-
 
6325
          iprot.readFieldEnd();
-
 
6326
        }
-
 
6327
      }
-
 
6328
      iprot.readStructEnd();
-
 
6329
      validate();
-
 
6330
    }
-
 
6331
 
-
 
6332
    public void write(TProtocol oprot) throws TException {
-
 
6333
      validate();
-
 
6334
 
-
 
6335
      oprot.writeStructBegin(STRUCT_DESC);
-
 
6336
      oprot.writeFieldBegin(SHOPPING_CART_ID_FIELD_DESC);
-
 
6337
      oprot.writeI64(this.shoppingCartId);
-
 
6338
      oprot.writeFieldEnd();
-
 
6339
      oprot.writeFieldStop();
-
 
6340
      oprot.writeStructEnd();
-
 
6341
    }
-
 
6342
 
-
 
6343
    @Override
-
 
6344
    public String toString() {
-
 
6345
      StringBuilder sb = new StringBuilder("getTransactionsForShoppingCartId_args(");
-
 
6346
      boolean first = true;
-
 
6347
 
-
 
6348
      sb.append("shoppingCartId:");
-
 
6349
      sb.append(this.shoppingCartId);
-
 
6350
      first = false;
-
 
6351
      sb.append(")");
-
 
6352
      return sb.toString();
-
 
6353
    }
-
 
6354
 
-
 
6355
    public void validate() throws TException {
-
 
6356
      // check for required fields
-
 
6357
    }
-
 
6358
 
-
 
6359
  }
-
 
6360
 
-
 
6361
  public static class getTransactionsForShoppingCartId_result implements TBase<getTransactionsForShoppingCartId_result._Fields>, java.io.Serializable, Cloneable   {
-
 
6362
    private static final TStruct STRUCT_DESC = new TStruct("getTransactionsForShoppingCartId_result");
-
 
6363
 
-
 
6364
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
-
 
6365
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
-
 
6366
 
-
 
6367
    private List<Transaction> success;
-
 
6368
    private TransactionServiceException ex;
-
 
6369
 
-
 
6370
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
6371
    public enum _Fields implements TFieldIdEnum {
-
 
6372
      SUCCESS((short)0, "success"),
-
 
6373
      EX((short)1, "ex");
-
 
6374
 
-
 
6375
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
6376
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
6377
 
-
 
6378
      static {
-
 
6379
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
6380
          byId.put((int)field._thriftId, field);
-
 
6381
          byName.put(field.getFieldName(), field);
-
 
6382
        }
-
 
6383
      }
-
 
6384
 
-
 
6385
      /**
-
 
6386
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
6387
       */
-
 
6388
      public static _Fields findByThriftId(int fieldId) {
-
 
6389
        return byId.get(fieldId);
-
 
6390
      }
-
 
6391
 
-
 
6392
      /**
-
 
6393
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
6394
       * if it is not found.
-
 
6395
       */
-
 
6396
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
6397
        _Fields fields = findByThriftId(fieldId);
-
 
6398
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
6399
        return fields;
-
 
6400
      }
-
 
6401
 
-
 
6402
      /**
-
 
6403
       * Find the _Fields constant that matches name, or null if its not found.
-
 
6404
       */
-
 
6405
      public static _Fields findByName(String name) {
-
 
6406
        return byName.get(name);
-
 
6407
      }
-
 
6408
 
-
 
6409
      private final short _thriftId;
-
 
6410
      private final String _fieldName;
-
 
6411
 
-
 
6412
      _Fields(short thriftId, String fieldName) {
-
 
6413
        _thriftId = thriftId;
-
 
6414
        _fieldName = fieldName;
-
 
6415
      }
-
 
6416
 
-
 
6417
      public short getThriftFieldId() {
-
 
6418
        return _thriftId;
-
 
6419
      }
-
 
6420
 
-
 
6421
      public String getFieldName() {
-
 
6422
        return _fieldName;
-
 
6423
      }
-
 
6424
    }
-
 
6425
 
-
 
6426
    // isset id assignments
-
 
6427
 
-
 
6428
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
6429
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
6430
          new ListMetaData(TType.LIST, 
-
 
6431
              new StructMetaData(TType.STRUCT, Transaction.class))));
-
 
6432
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
-
 
6433
          new FieldValueMetaData(TType.STRUCT)));
-
 
6434
    }});
-
 
6435
 
-
 
6436
    static {
-
 
6437
      FieldMetaData.addStructMetaDataMap(getTransactionsForShoppingCartId_result.class, metaDataMap);
-
 
6438
    }
-
 
6439
 
-
 
6440
    public getTransactionsForShoppingCartId_result() {
-
 
6441
    }
-
 
6442
 
-
 
6443
    public getTransactionsForShoppingCartId_result(
-
 
6444
      List<Transaction> success,
-
 
6445
      TransactionServiceException ex)
-
 
6446
    {
-
 
6447
      this();
-
 
6448
      this.success = success;
-
 
6449
      this.ex = ex;
-
 
6450
    }
-
 
6451
 
-
 
6452
    /**
-
 
6453
     * Performs a deep copy on <i>other</i>.
-
 
6454
     */
-
 
6455
    public getTransactionsForShoppingCartId_result(getTransactionsForShoppingCartId_result other) {
-
 
6456
      if (other.isSetSuccess()) {
-
 
6457
        List<Transaction> __this__success = new ArrayList<Transaction>();
-
 
6458
        for (Transaction other_element : other.success) {
-
 
6459
          __this__success.add(new Transaction(other_element));
-
 
6460
        }
-
 
6461
        this.success = __this__success;
-
 
6462
      }
-
 
6463
      if (other.isSetEx()) {
-
 
6464
        this.ex = new TransactionServiceException(other.ex);
-
 
6465
      }
-
 
6466
    }
-
 
6467
 
-
 
6468
    public getTransactionsForShoppingCartId_result deepCopy() {
-
 
6469
      return new getTransactionsForShoppingCartId_result(this);
-
 
6470
    }
-
 
6471
 
-
 
6472
    @Deprecated
-
 
6473
    public getTransactionsForShoppingCartId_result clone() {
-
 
6474
      return new getTransactionsForShoppingCartId_result(this);
-
 
6475
    }
-
 
6476
 
-
 
6477
    public int getSuccessSize() {
-
 
6478
      return (this.success == null) ? 0 : this.success.size();
-
 
6479
    }
-
 
6480
 
-
 
6481
    public java.util.Iterator<Transaction> getSuccessIterator() {
-
 
6482
      return (this.success == null) ? null : this.success.iterator();
-
 
6483
    }
-
 
6484
 
-
 
6485
    public void addToSuccess(Transaction elem) {
-
 
6486
      if (this.success == null) {
-
 
6487
        this.success = new ArrayList<Transaction>();
-
 
6488
      }
-
 
6489
      this.success.add(elem);
-
 
6490
    }
-
 
6491
 
-
 
6492
    public List<Transaction> getSuccess() {
-
 
6493
      return this.success;
-
 
6494
    }
-
 
6495
 
-
 
6496
    public getTransactionsForShoppingCartId_result setSuccess(List<Transaction> success) {
-
 
6497
      this.success = success;
-
 
6498
      return this;
-
 
6499
    }
-
 
6500
 
-
 
6501
    public void unsetSuccess() {
-
 
6502
      this.success = null;
-
 
6503
    }
-
 
6504
 
-
 
6505
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
6506
    public boolean isSetSuccess() {
-
 
6507
      return this.success != null;
-
 
6508
    }
-
 
6509
 
-
 
6510
    public void setSuccessIsSet(boolean value) {
-
 
6511
      if (!value) {
-
 
6512
        this.success = null;
-
 
6513
      }
-
 
6514
    }
-
 
6515
 
-
 
6516
    public TransactionServiceException getEx() {
-
 
6517
      return this.ex;
-
 
6518
    }
-
 
6519
 
-
 
6520
    public getTransactionsForShoppingCartId_result setEx(TransactionServiceException ex) {
-
 
6521
      this.ex = ex;
-
 
6522
      return this;
-
 
6523
    }
-
 
6524
 
-
 
6525
    public void unsetEx() {
-
 
6526
      this.ex = null;
-
 
6527
    }
-
 
6528
 
-
 
6529
    /** Returns true if field ex is set (has been asigned a value) and false otherwise */
-
 
6530
    public boolean isSetEx() {
-
 
6531
      return this.ex != null;
-
 
6532
    }
-
 
6533
 
-
 
6534
    public void setExIsSet(boolean value) {
-
 
6535
      if (!value) {
-
 
6536
        this.ex = null;
-
 
6537
      }
-
 
6538
    }
-
 
6539
 
-
 
6540
    public void setFieldValue(_Fields field, Object value) {
-
 
6541
      switch (field) {
-
 
6542
      case SUCCESS:
-
 
6543
        if (value == null) {
-
 
6544
          unsetSuccess();
-
 
6545
        } else {
-
 
6546
          setSuccess((List<Transaction>)value);
-
 
6547
        }
-
 
6548
        break;
-
 
6549
 
-
 
6550
      case EX:
-
 
6551
        if (value == null) {
-
 
6552
          unsetEx();
-
 
6553
        } else {
-
 
6554
          setEx((TransactionServiceException)value);
-
 
6555
        }
-
 
6556
        break;
-
 
6557
 
-
 
6558
      }
-
 
6559
    }
-
 
6560
 
-
 
6561
    public void setFieldValue(int fieldID, Object value) {
-
 
6562
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
6563
    }
-
 
6564
 
-
 
6565
    public Object getFieldValue(_Fields field) {
-
 
6566
      switch (field) {
-
 
6567
      case SUCCESS:
-
 
6568
        return getSuccess();
-
 
6569
 
-
 
6570
      case EX:
-
 
6571
        return getEx();
-
 
6572
 
-
 
6573
      }
-
 
6574
      throw new IllegalStateException();
-
 
6575
    }
-
 
6576
 
-
 
6577
    public Object getFieldValue(int fieldId) {
-
 
6578
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
6579
    }
-
 
6580
 
-
 
6581
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
6582
    public boolean isSet(_Fields field) {
-
 
6583
      switch (field) {
-
 
6584
      case SUCCESS:
-
 
6585
        return isSetSuccess();
-
 
6586
      case EX:
-
 
6587
        return isSetEx();
-
 
6588
      }
-
 
6589
      throw new IllegalStateException();
-
 
6590
    }
-
 
6591
 
-
 
6592
    public boolean isSet(int fieldID) {
-
 
6593
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
6594
    }
-
 
6595
 
-
 
6596
    @Override
-
 
6597
    public boolean equals(Object that) {
-
 
6598
      if (that == null)
-
 
6599
        return false;
-
 
6600
      if (that instanceof getTransactionsForShoppingCartId_result)
-
 
6601
        return this.equals((getTransactionsForShoppingCartId_result)that);
-
 
6602
      return false;
-
 
6603
    }
-
 
6604
 
-
 
6605
    public boolean equals(getTransactionsForShoppingCartId_result that) {
-
 
6606
      if (that == null)
-
 
6607
        return false;
-
 
6608
 
-
 
6609
      boolean this_present_success = true && this.isSetSuccess();
-
 
6610
      boolean that_present_success = true && that.isSetSuccess();
-
 
6611
      if (this_present_success || that_present_success) {
-
 
6612
        if (!(this_present_success && that_present_success))
-
 
6613
          return false;
-
 
6614
        if (!this.success.equals(that.success))
-
 
6615
          return false;
-
 
6616
      }
-
 
6617
 
-
 
6618
      boolean this_present_ex = true && this.isSetEx();
-
 
6619
      boolean that_present_ex = true && that.isSetEx();
-
 
6620
      if (this_present_ex || that_present_ex) {
-
 
6621
        if (!(this_present_ex && that_present_ex))
-
 
6622
          return false;
-
 
6623
        if (!this.ex.equals(that.ex))
-
 
6624
          return false;
-
 
6625
      }
-
 
6626
 
-
 
6627
      return true;
-
 
6628
    }
-
 
6629
 
-
 
6630
    @Override
-
 
6631
    public int hashCode() {
-
 
6632
      return 0;
-
 
6633
    }
-
 
6634
 
-
 
6635
    public void read(TProtocol iprot) throws TException {
-
 
6636
      TField field;
-
 
6637
      iprot.readStructBegin();
-
 
6638
      while (true)
-
 
6639
      {
-
 
6640
        field = iprot.readFieldBegin();
-
 
6641
        if (field.type == TType.STOP) { 
-
 
6642
          break;
-
 
6643
        }
-
 
6644
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
6645
        if (fieldId == null) {
-
 
6646
          TProtocolUtil.skip(iprot, field.type);
-
 
6647
        } else {
-
 
6648
          switch (fieldId) {
-
 
6649
            case SUCCESS:
-
 
6650
              if (field.type == TType.LIST) {
-
 
6651
                {
-
 
6652
                  TList _list46 = iprot.readListBegin();
-
 
6653
                  this.success = new ArrayList<Transaction>(_list46.size);
-
 
6654
                  for (int _i47 = 0; _i47 < _list46.size; ++_i47)
-
 
6655
                  {
-
 
6656
                    Transaction _elem48;
-
 
6657
                    _elem48 = new Transaction();
-
 
6658
                    _elem48.read(iprot);
-
 
6659
                    this.success.add(_elem48);
-
 
6660
                  }
-
 
6661
                  iprot.readListEnd();
-
 
6662
                }
-
 
6663
              } else { 
-
 
6664
                TProtocolUtil.skip(iprot, field.type);
-
 
6665
              }
-
 
6666
              break;
-
 
6667
            case EX:
-
 
6668
              if (field.type == TType.STRUCT) {
-
 
6669
                this.ex = new TransactionServiceException();
-
 
6670
                this.ex.read(iprot);
-
 
6671
              } else { 
-
 
6672
                TProtocolUtil.skip(iprot, field.type);
-
 
6673
              }
-
 
6674
              break;
-
 
6675
          }
-
 
6676
          iprot.readFieldEnd();
-
 
6677
        }
-
 
6678
      }
-
 
6679
      iprot.readStructEnd();
-
 
6680
      validate();
-
 
6681
    }
-
 
6682
 
-
 
6683
    public void write(TProtocol oprot) throws TException {
-
 
6684
      oprot.writeStructBegin(STRUCT_DESC);
-
 
6685
 
-
 
6686
      if (this.isSetSuccess()) {
-
 
6687
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
6688
        {
-
 
6689
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
-
 
6690
          for (Transaction _iter49 : this.success)
-
 
6691
          {
-
 
6692
            _iter49.write(oprot);
-
 
6693
          }
-
 
6694
          oprot.writeListEnd();
-
 
6695
        }
-
 
6696
        oprot.writeFieldEnd();
-
 
6697
      } else if (this.isSetEx()) {
-
 
6698
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
6699
        this.ex.write(oprot);
-
 
6700
        oprot.writeFieldEnd();
-
 
6701
      }
-
 
6702
      oprot.writeFieldStop();
-
 
6703
      oprot.writeStructEnd();
-
 
6704
    }
-
 
6705
 
-
 
6706
    @Override
-
 
6707
    public String toString() {
-
 
6708
      StringBuilder sb = new StringBuilder("getTransactionsForShoppingCartId_result(");
-
 
6709
      boolean first = true;
-
 
6710
 
-
 
6711
      sb.append("success:");
-
 
6712
      if (this.success == null) {
-
 
6713
        sb.append("null");
5908
      } else {
6714
      } else {
5909
        sb.append(this.success);
6715
        sb.append(this.success);
5910
      }
6716
      }
5911
      first = false;
6717
      first = false;
5912
      if (!first) sb.append(", ");
6718
      if (!first) sb.append(", ");