Subversion Repositories SmartDukaan

Rev

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

Rev 1133 Rev 1148
Line 56... Line 56...
56
     */
56
     */
57
    public List<Order> getOrdersByBillingDate(OrderStatus status, long start_billing_date, long end_billing_date, long warehouse_id) throws TransactionServiceException, TException;
57
    public List<Order> getOrdersByBillingDate(OrderStatus status, long start_billing_date, long end_billing_date, long warehouse_id) throws TransactionServiceException, TException;
58
 
58
 
59
    public boolean changeOrderStatus(long orderId, OrderStatus status, String description) throws TransactionServiceException, TException;
59
    public boolean changeOrderStatus(long orderId, OrderStatus status, String description) throws TransactionServiceException, TException;
60
 
60
 
-
 
61
    /**
-
 
62
     * Add billing details such as the bill number and the biller to the Order.
-
 
63
     * 
-
 
64
     * @param orderId
-
 
65
     * @param invoice_number
-
 
66
     * @param billed_by
-
 
67
     */
61
    public boolean addBillingDetails(long orderId, String invoice_number, long jacket_number, String billed_by) throws TransactionServiceException, TException;
68
    public boolean addBillingDetails(long orderId, String invoice_number, String billed_by) throws TransactionServiceException, TException;
-
 
69
 
-
 
70
    /**
-
 
71
     * Adds jacket number to the order. Return false if it doesn't find the order with the given ID.
-
 
72
     * 
-
 
73
     * @param orderId
-
 
74
     * @param jacketNumber
-
 
75
     */
-
 
76
    public boolean addJacketNumber(long orderId, long jacketNumber) throws TransactionServiceException, TException;
62
 
77
 
63
    public boolean acceptOrder(long orderId) throws TransactionServiceException, TException;
78
    public boolean acceptOrder(long orderId) throws TransactionServiceException, TException;
64
 
79
 
65
    public boolean billOrder(long orderId) throws TransactionServiceException, TException;
80
    public boolean billOrder(long orderId) throws TransactionServiceException, TException;
66
 
81
 
Line 508... Line 523...
508
        throw result.ex;
523
        throw result.ex;
509
      }
524
      }
510
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "changeOrderStatus failed: unknown result");
525
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "changeOrderStatus failed: unknown result");
511
    }
526
    }
512
 
527
 
513
    public boolean addBillingDetails(long orderId, String invoice_number, long jacket_number, String billed_by) throws TransactionServiceException, TException
528
    public boolean addBillingDetails(long orderId, String invoice_number, String billed_by) throws TransactionServiceException, TException
514
    {
529
    {
515
      send_addBillingDetails(orderId, invoice_number, jacket_number, billed_by);
530
      send_addBillingDetails(orderId, invoice_number, billed_by);
516
      return recv_addBillingDetails();
531
      return recv_addBillingDetails();
517
    }
532
    }
518
 
533
 
519
    public void send_addBillingDetails(long orderId, String invoice_number, long jacket_number, String billed_by) throws TException
534
    public void send_addBillingDetails(long orderId, String invoice_number, String billed_by) throws TException
520
    {
535
    {
521
      oprot_.writeMessageBegin(new TMessage("addBillingDetails", TMessageType.CALL, seqid_));
536
      oprot_.writeMessageBegin(new TMessage("addBillingDetails", TMessageType.CALL, seqid_));
522
      addBillingDetails_args args = new addBillingDetails_args();
537
      addBillingDetails_args args = new addBillingDetails_args();
523
      args.orderId = orderId;
538
      args.orderId = orderId;
524
      args.invoice_number = invoice_number;
539
      args.invoice_number = invoice_number;
525
      args.jacket_number = jacket_number;
-
 
526
      args.billed_by = billed_by;
540
      args.billed_by = billed_by;
527
      args.write(oprot_);
541
      args.write(oprot_);
528
      oprot_.writeMessageEnd();
542
      oprot_.writeMessageEnd();
529
      oprot_.getTransport().flush();
543
      oprot_.getTransport().flush();
530
    }
544
    }
Line 547... Line 561...
547
        throw result.ex;
561
        throw result.ex;
548
      }
562
      }
549
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "addBillingDetails failed: unknown result");
563
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "addBillingDetails failed: unknown result");
550
    }
564
    }
551
 
565
 
-
 
566
    public boolean addJacketNumber(long orderId, long jacketNumber) throws TransactionServiceException, TException
-
 
567
    {
-
 
568
      send_addJacketNumber(orderId, jacketNumber);
-
 
569
      return recv_addJacketNumber();
-
 
570
    }
-
 
571
 
-
 
572
    public void send_addJacketNumber(long orderId, long jacketNumber) throws TException
-
 
573
    {
-
 
574
      oprot_.writeMessageBegin(new TMessage("addJacketNumber", TMessageType.CALL, seqid_));
-
 
575
      addJacketNumber_args args = new addJacketNumber_args();
-
 
576
      args.orderId = orderId;
-
 
577
      args.jacketNumber = jacketNumber;
-
 
578
      args.write(oprot_);
-
 
579
      oprot_.writeMessageEnd();
-
 
580
      oprot_.getTransport().flush();
-
 
581
    }
-
 
582
 
-
 
583
    public boolean recv_addJacketNumber() throws TransactionServiceException, TException
-
 
584
    {
-
 
585
      TMessage msg = iprot_.readMessageBegin();
-
 
586
      if (msg.type == TMessageType.EXCEPTION) {
-
 
587
        TApplicationException x = TApplicationException.read(iprot_);
-
 
588
        iprot_.readMessageEnd();
-
 
589
        throw x;
-
 
590
      }
-
 
591
      addJacketNumber_result result = new addJacketNumber_result();
-
 
592
      result.read(iprot_);
-
 
593
      iprot_.readMessageEnd();
-
 
594
      if (result.isSetSuccess()) {
-
 
595
        return result.success;
-
 
596
      }
-
 
597
      if (result.ex != null) {
-
 
598
        throw result.ex;
-
 
599
      }
-
 
600
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "addJacketNumber failed: unknown result");
-
 
601
    }
-
 
602
 
552
    public boolean acceptOrder(long orderId) throws TransactionServiceException, TException
603
    public boolean acceptOrder(long orderId) throws TransactionServiceException, TException
553
    {
604
    {
554
      send_acceptOrder(orderId);
605
      send_acceptOrder(orderId);
555
      return recv_acceptOrder();
606
      return recv_acceptOrder();
556
    }
607
    }
Line 1028... Line 1079...
1028
      processMap_.put("changeTransactionStatus", new changeTransactionStatus());
1079
      processMap_.put("changeTransactionStatus", new changeTransactionStatus());
1029
      processMap_.put("getAllOrders", new getAllOrders());
1080
      processMap_.put("getAllOrders", new getAllOrders());
1030
      processMap_.put("getOrdersByBillingDate", new getOrdersByBillingDate());
1081
      processMap_.put("getOrdersByBillingDate", new getOrdersByBillingDate());
1031
      processMap_.put("changeOrderStatus", new changeOrderStatus());
1082
      processMap_.put("changeOrderStatus", new changeOrderStatus());
1032
      processMap_.put("addBillingDetails", new addBillingDetails());
1083
      processMap_.put("addBillingDetails", new addBillingDetails());
-
 
1084
      processMap_.put("addJacketNumber", new addJacketNumber());
1033
      processMap_.put("acceptOrder", new acceptOrder());
1085
      processMap_.put("acceptOrder", new acceptOrder());
1034
      processMap_.put("billOrder", new billOrder());
1086
      processMap_.put("billOrder", new billOrder());
1035
      processMap_.put("getOrdersForTransaction", new getOrdersForTransaction());
1087
      processMap_.put("getOrdersForTransaction", new getOrdersForTransaction());
1036
      processMap_.put("getOrdersForCustomer", new getOrdersForCustomer());
1088
      processMap_.put("getOrdersForCustomer", new getOrdersForCustomer());
1037
      processMap_.put("createOrder", new createOrder());
1089
      processMap_.put("createOrder", new createOrder());
Line 1347... Line 1399...
1347
        addBillingDetails_args args = new addBillingDetails_args();
1399
        addBillingDetails_args args = new addBillingDetails_args();
1348
        args.read(iprot);
1400
        args.read(iprot);
1349
        iprot.readMessageEnd();
1401
        iprot.readMessageEnd();
1350
        addBillingDetails_result result = new addBillingDetails_result();
1402
        addBillingDetails_result result = new addBillingDetails_result();
1351
        try {
1403
        try {
1352
          result.success = iface_.addBillingDetails(args.orderId, args.invoice_number, args.jacket_number, args.billed_by);
1404
          result.success = iface_.addBillingDetails(args.orderId, args.invoice_number, args.billed_by);
1353
          result.setSuccessIsSet(true);
1405
          result.setSuccessIsSet(true);
1354
        } catch (TransactionServiceException ex) {
1406
        } catch (TransactionServiceException ex) {
1355
          result.ex = ex;
1407
          result.ex = ex;
1356
        } catch (Throwable th) {
1408
        } catch (Throwable th) {
1357
          LOGGER.error("Internal error processing addBillingDetails", th);
1409
          LOGGER.error("Internal error processing addBillingDetails", th);
Line 1368... Line 1420...
1368
        oprot.getTransport().flush();
1420
        oprot.getTransport().flush();
1369
      }
1421
      }
1370
 
1422
 
1371
    }
1423
    }
1372
 
1424
 
-
 
1425
    private class addJacketNumber implements ProcessFunction {
-
 
1426
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
1427
      {
-
 
1428
        addJacketNumber_args args = new addJacketNumber_args();
-
 
1429
        args.read(iprot);
-
 
1430
        iprot.readMessageEnd();
-
 
1431
        addJacketNumber_result result = new addJacketNumber_result();
-
 
1432
        try {
-
 
1433
          result.success = iface_.addJacketNumber(args.orderId, args.jacketNumber);
-
 
1434
          result.setSuccessIsSet(true);
-
 
1435
        } catch (TransactionServiceException ex) {
-
 
1436
          result.ex = ex;
-
 
1437
        } catch (Throwable th) {
-
 
1438
          LOGGER.error("Internal error processing addJacketNumber", th);
-
 
1439
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing addJacketNumber");
-
 
1440
          oprot.writeMessageBegin(new TMessage("addJacketNumber", TMessageType.EXCEPTION, seqid));
-
 
1441
          x.write(oprot);
-
 
1442
          oprot.writeMessageEnd();
-
 
1443
          oprot.getTransport().flush();
-
 
1444
          return;
-
 
1445
        }
-
 
1446
        oprot.writeMessageBegin(new TMessage("addJacketNumber", TMessageType.REPLY, seqid));
-
 
1447
        result.write(oprot);
-
 
1448
        oprot.writeMessageEnd();
-
 
1449
        oprot.getTransport().flush();
-
 
1450
      }
-
 
1451
 
-
 
1452
    }
-
 
1453
 
1373
    private class acceptOrder implements ProcessFunction {
1454
    private class acceptOrder implements ProcessFunction {
1374
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1455
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1375
      {
1456
      {
1376
        acceptOrder_args args = new acceptOrder_args();
1457
        acceptOrder_args args = new acceptOrder_args();
1377
        args.read(iprot);
1458
        args.read(iprot);
Line 9208... Line 9289...
9208
  public static class addBillingDetails_args implements TBase<addBillingDetails_args._Fields>, java.io.Serializable, Cloneable, Comparable<addBillingDetails_args>   {
9289
  public static class addBillingDetails_args implements TBase<addBillingDetails_args._Fields>, java.io.Serializable, Cloneable, Comparable<addBillingDetails_args>   {
9209
    private static final TStruct STRUCT_DESC = new TStruct("addBillingDetails_args");
9290
    private static final TStruct STRUCT_DESC = new TStruct("addBillingDetails_args");
9210
 
9291
 
9211
    private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)1);
9292
    private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)1);
9212
    private static final TField INVOICE_NUMBER_FIELD_DESC = new TField("invoice_number", TType.STRING, (short)2);
9293
    private static final TField INVOICE_NUMBER_FIELD_DESC = new TField("invoice_number", TType.STRING, (short)2);
9213
    private static final TField JACKET_NUMBER_FIELD_DESC = new TField("jacket_number", TType.I64, (short)3);
-
 
9214
    private static final TField BILLED_BY_FIELD_DESC = new TField("billed_by", TType.STRING, (short)4);
9294
    private static final TField BILLED_BY_FIELD_DESC = new TField("billed_by", TType.STRING, (short)3);
9215
 
9295
 
9216
    private long orderId;
9296
    private long orderId;
9217
    private String invoice_number;
9297
    private String invoice_number;
9218
    private long jacket_number;
-
 
9219
    private String billed_by;
9298
    private String billed_by;
9220
 
9299
 
9221
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9300
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9222
    public enum _Fields implements TFieldIdEnum {
9301
    public enum _Fields implements TFieldIdEnum {
9223
      ORDER_ID((short)1, "orderId"),
9302
      ORDER_ID((short)1, "orderId"),
9224
      INVOICE_NUMBER((short)2, "invoice_number"),
9303
      INVOICE_NUMBER((short)2, "invoice_number"),
9225
      JACKET_NUMBER((short)3, "jacket_number"),
-
 
9226
      BILLED_BY((short)4, "billed_by");
9304
      BILLED_BY((short)3, "billed_by");
9227
 
9305
 
9228
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
9306
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
9229
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9307
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9230
 
9308
 
9231
      static {
9309
      static {
Line 9276... Line 9354...
9276
      }
9354
      }
9277
    }
9355
    }
9278
 
9356
 
9279
    // isset id assignments
9357
    // isset id assignments
9280
    private static final int __ORDERID_ISSET_ID = 0;
9358
    private static final int __ORDERID_ISSET_ID = 0;
9281
    private static final int __JACKET_NUMBER_ISSET_ID = 1;
-
 
9282
    private BitSet __isset_bit_vector = new BitSet(2);
9359
    private BitSet __isset_bit_vector = new BitSet(1);
9283
 
9360
 
9284
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
9361
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
9285
      put(_Fields.ORDER_ID, new FieldMetaData("orderId", TFieldRequirementType.DEFAULT, 
9362
      put(_Fields.ORDER_ID, new FieldMetaData("orderId", TFieldRequirementType.DEFAULT, 
9286
          new FieldValueMetaData(TType.I64)));
9363
          new FieldValueMetaData(TType.I64)));
9287
      put(_Fields.INVOICE_NUMBER, new FieldMetaData("invoice_number", TFieldRequirementType.DEFAULT, 
9364
      put(_Fields.INVOICE_NUMBER, new FieldMetaData("invoice_number", TFieldRequirementType.DEFAULT, 
9288
          new FieldValueMetaData(TType.STRING)));
9365
          new FieldValueMetaData(TType.STRING)));
9289
      put(_Fields.JACKET_NUMBER, new FieldMetaData("jacket_number", TFieldRequirementType.DEFAULT, 
-
 
9290
          new FieldValueMetaData(TType.I64)));
-
 
9291
      put(_Fields.BILLED_BY, new FieldMetaData("billed_by", TFieldRequirementType.DEFAULT, 
9366
      put(_Fields.BILLED_BY, new FieldMetaData("billed_by", TFieldRequirementType.DEFAULT, 
9292
          new FieldValueMetaData(TType.STRING)));
9367
          new FieldValueMetaData(TType.STRING)));
9293
    }});
9368
    }});
9294
 
9369
 
9295
    static {
9370
    static {
Line 9300... Line 9375...
9300
    }
9375
    }
9301
 
9376
 
9302
    public addBillingDetails_args(
9377
    public addBillingDetails_args(
9303
      long orderId,
9378
      long orderId,
9304
      String invoice_number,
9379
      String invoice_number,
9305
      long jacket_number,
-
 
9306
      String billed_by)
9380
      String billed_by)
9307
    {
9381
    {
9308
      this();
9382
      this();
9309
      this.orderId = orderId;
9383
      this.orderId = orderId;
9310
      setOrderIdIsSet(true);
9384
      setOrderIdIsSet(true);
9311
      this.invoice_number = invoice_number;
9385
      this.invoice_number = invoice_number;
9312
      this.jacket_number = jacket_number;
-
 
9313
      setJacket_numberIsSet(true);
-
 
9314
      this.billed_by = billed_by;
9386
      this.billed_by = billed_by;
9315
    }
9387
    }
9316
 
9388
 
9317
    /**
9389
    /**
9318
     * Performs a deep copy on <i>other</i>.
9390
     * Performs a deep copy on <i>other</i>.
Line 9322... Line 9394...
9322
      __isset_bit_vector.or(other.__isset_bit_vector);
9394
      __isset_bit_vector.or(other.__isset_bit_vector);
9323
      this.orderId = other.orderId;
9395
      this.orderId = other.orderId;
9324
      if (other.isSetInvoice_number()) {
9396
      if (other.isSetInvoice_number()) {
9325
        this.invoice_number = other.invoice_number;
9397
        this.invoice_number = other.invoice_number;
9326
      }
9398
      }
9327
      this.jacket_number = other.jacket_number;
-
 
9328
      if (other.isSetBilled_by()) {
9399
      if (other.isSetBilled_by()) {
9329
        this.billed_by = other.billed_by;
9400
        this.billed_by = other.billed_by;
9330
      }
9401
      }
9331
    }
9402
    }
9332
 
9403
 
Line 9384... Line 9455...
9384
      if (!value) {
9455
      if (!value) {
9385
        this.invoice_number = null;
9456
        this.invoice_number = null;
9386
      }
9457
      }
9387
    }
9458
    }
9388
 
9459
 
9389
    public long getJacket_number() {
-
 
9390
      return this.jacket_number;
-
 
9391
    }
-
 
9392
 
-
 
9393
    public addBillingDetails_args setJacket_number(long jacket_number) {
-
 
9394
      this.jacket_number = jacket_number;
-
 
9395
      setJacket_numberIsSet(true);
-
 
9396
      return this;
-
 
9397
    }
-
 
9398
 
-
 
9399
    public void unsetJacket_number() {
-
 
9400
      __isset_bit_vector.clear(__JACKET_NUMBER_ISSET_ID);
-
 
9401
    }
-
 
9402
 
-
 
9403
    /** Returns true if field jacket_number is set (has been asigned a value) and false otherwise */
-
 
9404
    public boolean isSetJacket_number() {
-
 
9405
      return __isset_bit_vector.get(__JACKET_NUMBER_ISSET_ID);
-
 
9406
    }
-
 
9407
 
-
 
9408
    public void setJacket_numberIsSet(boolean value) {
-
 
9409
      __isset_bit_vector.set(__JACKET_NUMBER_ISSET_ID, value);
-
 
9410
    }
-
 
9411
 
-
 
9412
    public String getBilled_by() {
9460
    public String getBilled_by() {
9413
      return this.billed_by;
9461
      return this.billed_by;
9414
    }
9462
    }
9415
 
9463
 
9416
    public addBillingDetails_args setBilled_by(String billed_by) {
9464
    public addBillingDetails_args setBilled_by(String billed_by) {
Line 9449... Line 9497...
9449
        } else {
9497
        } else {
9450
          setInvoice_number((String)value);
9498
          setInvoice_number((String)value);
9451
        }
9499
        }
9452
        break;
9500
        break;
9453
 
9501
 
9454
      case JACKET_NUMBER:
-
 
9455
        if (value == null) {
-
 
9456
          unsetJacket_number();
-
 
9457
        } else {
-
 
9458
          setJacket_number((Long)value);
-
 
9459
        }
-
 
9460
        break;
-
 
9461
 
-
 
9462
      case BILLED_BY:
9502
      case BILLED_BY:
9463
        if (value == null) {
9503
        if (value == null) {
9464
          unsetBilled_by();
9504
          unsetBilled_by();
9465
        } else {
9505
        } else {
9466
          setBilled_by((String)value);
9506
          setBilled_by((String)value);
Line 9480... Line 9520...
9480
        return new Long(getOrderId());
9520
        return new Long(getOrderId());
9481
 
9521
 
9482
      case INVOICE_NUMBER:
9522
      case INVOICE_NUMBER:
9483
        return getInvoice_number();
9523
        return getInvoice_number();
9484
 
9524
 
9485
      case JACKET_NUMBER:
-
 
9486
        return new Long(getJacket_number());
-
 
9487
 
-
 
9488
      case BILLED_BY:
9525
      case BILLED_BY:
9489
        return getBilled_by();
9526
        return getBilled_by();
9490
 
9527
 
9491
      }
9528
      }
9492
      throw new IllegalStateException();
9529
      throw new IllegalStateException();
Line 9501... Line 9538...
9501
      switch (field) {
9538
      switch (field) {
9502
      case ORDER_ID:
9539
      case ORDER_ID:
9503
        return isSetOrderId();
9540
        return isSetOrderId();
9504
      case INVOICE_NUMBER:
9541
      case INVOICE_NUMBER:
9505
        return isSetInvoice_number();
9542
        return isSetInvoice_number();
9506
      case JACKET_NUMBER:
-
 
9507
        return isSetJacket_number();
-
 
9508
      case BILLED_BY:
9543
      case BILLED_BY:
9509
        return isSetBilled_by();
9544
        return isSetBilled_by();
9510
      }
9545
      }
9511
      throw new IllegalStateException();
9546
      throw new IllegalStateException();
9512
    }
9547
    }
Line 9544... Line 9579...
9544
          return false;
9579
          return false;
9545
        if (!this.invoice_number.equals(that.invoice_number))
9580
        if (!this.invoice_number.equals(that.invoice_number))
9546
          return false;
9581
          return false;
9547
      }
9582
      }
9548
 
9583
 
9549
      boolean this_present_jacket_number = true;
-
 
9550
      boolean that_present_jacket_number = true;
-
 
9551
      if (this_present_jacket_number || that_present_jacket_number) {
-
 
9552
        if (!(this_present_jacket_number && that_present_jacket_number))
-
 
9553
          return false;
-
 
9554
        if (this.jacket_number != that.jacket_number)
-
 
9555
          return false;
-
 
9556
      }
-
 
9557
 
-
 
9558
      boolean this_present_billed_by = true && this.isSetBilled_by();
9584
      boolean this_present_billed_by = true && this.isSetBilled_by();
9559
      boolean that_present_billed_by = true && that.isSetBilled_by();
9585
      boolean that_present_billed_by = true && that.isSetBilled_by();
9560
      if (this_present_billed_by || that_present_billed_by) {
9586
      if (this_present_billed_by || that_present_billed_by) {
9561
        if (!(this_present_billed_by && that_present_billed_by))
9587
        if (!(this_present_billed_by && that_present_billed_by))
9562
          return false;
9588
          return false;
Line 9594... Line 9620...
9594
      }
9620
      }
9595
      lastComparison = TBaseHelper.compareTo(invoice_number, typedOther.invoice_number);
9621
      lastComparison = TBaseHelper.compareTo(invoice_number, typedOther.invoice_number);
9596
      if (lastComparison != 0) {
9622
      if (lastComparison != 0) {
9597
        return lastComparison;
9623
        return lastComparison;
9598
      }
9624
      }
9599
      lastComparison = Boolean.valueOf(isSetJacket_number()).compareTo(isSetJacket_number());
-
 
9600
      if (lastComparison != 0) {
-
 
9601
        return lastComparison;
-
 
9602
      }
-
 
9603
      lastComparison = TBaseHelper.compareTo(jacket_number, typedOther.jacket_number);
-
 
9604
      if (lastComparison != 0) {
-
 
9605
        return lastComparison;
-
 
9606
      }
-
 
9607
      lastComparison = Boolean.valueOf(isSetBilled_by()).compareTo(isSetBilled_by());
9625
      lastComparison = Boolean.valueOf(isSetBilled_by()).compareTo(isSetBilled_by());
9608
      if (lastComparison != 0) {
9626
      if (lastComparison != 0) {
9609
        return lastComparison;
9627
        return lastComparison;
9610
      }
9628
      }
9611
      lastComparison = TBaseHelper.compareTo(billed_by, typedOther.billed_by);
9629
      lastComparison = TBaseHelper.compareTo(billed_by, typedOther.billed_by);
Line 9642... Line 9660...
9642
                this.invoice_number = iprot.readString();
9660
                this.invoice_number = iprot.readString();
9643
              } else { 
9661
              } else { 
9644
                TProtocolUtil.skip(iprot, field.type);
9662
                TProtocolUtil.skip(iprot, field.type);
9645
              }
9663
              }
9646
              break;
9664
              break;
9647
            case JACKET_NUMBER:
-
 
9648
              if (field.type == TType.I64) {
-
 
9649
                this.jacket_number = iprot.readI64();
-
 
9650
                setJacket_numberIsSet(true);
-
 
9651
              } else { 
-
 
9652
                TProtocolUtil.skip(iprot, field.type);
-
 
9653
              }
-
 
9654
              break;
-
 
9655
            case BILLED_BY:
9665
            case BILLED_BY:
9656
              if (field.type == TType.STRING) {
9666
              if (field.type == TType.STRING) {
9657
                this.billed_by = iprot.readString();
9667
                this.billed_by = iprot.readString();
9658
              } else { 
9668
              } else { 
9659
                TProtocolUtil.skip(iprot, field.type);
9669
                TProtocolUtil.skip(iprot, field.type);
Line 9677... Line 9687...
9677
      if (this.invoice_number != null) {
9687
      if (this.invoice_number != null) {
9678
        oprot.writeFieldBegin(INVOICE_NUMBER_FIELD_DESC);
9688
        oprot.writeFieldBegin(INVOICE_NUMBER_FIELD_DESC);
9679
        oprot.writeString(this.invoice_number);
9689
        oprot.writeString(this.invoice_number);
9680
        oprot.writeFieldEnd();
9690
        oprot.writeFieldEnd();
9681
      }
9691
      }
9682
      oprot.writeFieldBegin(JACKET_NUMBER_FIELD_DESC);
-
 
9683
      oprot.writeI64(this.jacket_number);
-
 
9684
      oprot.writeFieldEnd();
-
 
9685
      if (this.billed_by != null) {
9692
      if (this.billed_by != null) {
9686
        oprot.writeFieldBegin(BILLED_BY_FIELD_DESC);
9693
        oprot.writeFieldBegin(BILLED_BY_FIELD_DESC);
9687
        oprot.writeString(this.billed_by);
9694
        oprot.writeString(this.billed_by);
9688
        oprot.writeFieldEnd();
9695
        oprot.writeFieldEnd();
9689
      }
9696
      }
Line 9706... Line 9713...
9706
      } else {
9713
      } else {
9707
        sb.append(this.invoice_number);
9714
        sb.append(this.invoice_number);
9708
      }
9715
      }
9709
      first = false;
9716
      first = false;
9710
      if (!first) sb.append(", ");
9717
      if (!first) sb.append(", ");
9711
      sb.append("jacket_number:");
-
 
9712
      sb.append(this.jacket_number);
-
 
9713
      first = false;
-
 
9714
      if (!first) sb.append(", ");
-
 
9715
      sb.append("billed_by:");
9718
      sb.append("billed_by:");
9716
      if (this.billed_by == null) {
9719
      if (this.billed_by == null) {
9717
        sb.append("null");
9720
        sb.append("null");
9718
      } else {
9721
      } else {
9719
        sb.append(this.billed_by);
9722
        sb.append(this.billed_by);
Line 10072... Line 10075...
10072
      boolean first = true;
10075
      boolean first = true;
10073
 
10076
 
10074
      sb.append("success:");
10077
      sb.append("success:");
10075
      sb.append(this.success);
10078
      sb.append(this.success);
10076
      first = false;
10079
      first = false;
-
 
10080
      if (!first) sb.append(", ");
-
 
10081
      sb.append("ex:");
-
 
10082
      if (this.ex == null) {
-
 
10083
        sb.append("null");
-
 
10084
      } else {
-
 
10085
        sb.append(this.ex);
-
 
10086
      }
-
 
10087
      first = false;
-
 
10088
      sb.append(")");
-
 
10089
      return sb.toString();
-
 
10090
    }
-
 
10091
 
-
 
10092
    public void validate() throws TException {
-
 
10093
      // check for required fields
-
 
10094
    }
-
 
10095
 
-
 
10096
  }
-
 
10097
 
-
 
10098
  public static class addJacketNumber_args implements TBase<addJacketNumber_args._Fields>, java.io.Serializable, Cloneable, Comparable<addJacketNumber_args>   {
-
 
10099
    private static final TStruct STRUCT_DESC = new TStruct("addJacketNumber_args");
-
 
10100
 
-
 
10101
    private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)1);
-
 
10102
    private static final TField JACKET_NUMBER_FIELD_DESC = new TField("jacketNumber", TType.I64, (short)2);
-
 
10103
 
-
 
10104
    private long orderId;
-
 
10105
    private long jacketNumber;
-
 
10106
 
-
 
10107
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
10108
    public enum _Fields implements TFieldIdEnum {
-
 
10109
      ORDER_ID((short)1, "orderId"),
-
 
10110
      JACKET_NUMBER((short)2, "jacketNumber");
-
 
10111
 
-
 
10112
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
10113
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
10114
 
-
 
10115
      static {
-
 
10116
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
10117
          byId.put((int)field._thriftId, field);
-
 
10118
          byName.put(field.getFieldName(), field);
-
 
10119
        }
-
 
10120
      }
-
 
10121
 
-
 
10122
      /**
-
 
10123
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
10124
       */
-
 
10125
      public static _Fields findByThriftId(int fieldId) {
-
 
10126
        return byId.get(fieldId);
-
 
10127
      }
-
 
10128
 
-
 
10129
      /**
-
 
10130
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
10131
       * if it is not found.
-
 
10132
       */
-
 
10133
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
10134
        _Fields fields = findByThriftId(fieldId);
-
 
10135
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
10136
        return fields;
-
 
10137
      }
-
 
10138
 
-
 
10139
      /**
-
 
10140
       * Find the _Fields constant that matches name, or null if its not found.
-
 
10141
       */
-
 
10142
      public static _Fields findByName(String name) {
-
 
10143
        return byName.get(name);
-
 
10144
      }
-
 
10145
 
-
 
10146
      private final short _thriftId;
-
 
10147
      private final String _fieldName;
-
 
10148
 
-
 
10149
      _Fields(short thriftId, String fieldName) {
-
 
10150
        _thriftId = thriftId;
-
 
10151
        _fieldName = fieldName;
-
 
10152
      }
-
 
10153
 
-
 
10154
      public short getThriftFieldId() {
-
 
10155
        return _thriftId;
-
 
10156
      }
-
 
10157
 
-
 
10158
      public String getFieldName() {
-
 
10159
        return _fieldName;
-
 
10160
      }
-
 
10161
    }
-
 
10162
 
-
 
10163
    // isset id assignments
-
 
10164
    private static final int __ORDERID_ISSET_ID = 0;
-
 
10165
    private static final int __JACKETNUMBER_ISSET_ID = 1;
-
 
10166
    private BitSet __isset_bit_vector = new BitSet(2);
-
 
10167
 
-
 
10168
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
10169
      put(_Fields.ORDER_ID, new FieldMetaData("orderId", TFieldRequirementType.DEFAULT, 
-
 
10170
          new FieldValueMetaData(TType.I64)));
-
 
10171
      put(_Fields.JACKET_NUMBER, new FieldMetaData("jacketNumber", TFieldRequirementType.DEFAULT, 
-
 
10172
          new FieldValueMetaData(TType.I64)));
-
 
10173
    }});
-
 
10174
 
-
 
10175
    static {
-
 
10176
      FieldMetaData.addStructMetaDataMap(addJacketNumber_args.class, metaDataMap);
-
 
10177
    }
-
 
10178
 
-
 
10179
    public addJacketNumber_args() {
-
 
10180
    }
-
 
10181
 
-
 
10182
    public addJacketNumber_args(
-
 
10183
      long orderId,
-
 
10184
      long jacketNumber)
-
 
10185
    {
-
 
10186
      this();
-
 
10187
      this.orderId = orderId;
-
 
10188
      setOrderIdIsSet(true);
-
 
10189
      this.jacketNumber = jacketNumber;
-
 
10190
      setJacketNumberIsSet(true);
-
 
10191
    }
-
 
10192
 
-
 
10193
    /**
-
 
10194
     * Performs a deep copy on <i>other</i>.
-
 
10195
     */
-
 
10196
    public addJacketNumber_args(addJacketNumber_args other) {
-
 
10197
      __isset_bit_vector.clear();
-
 
10198
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
10199
      this.orderId = other.orderId;
-
 
10200
      this.jacketNumber = other.jacketNumber;
-
 
10201
    }
-
 
10202
 
-
 
10203
    public addJacketNumber_args deepCopy() {
-
 
10204
      return new addJacketNumber_args(this);
-
 
10205
    }
-
 
10206
 
-
 
10207
    @Deprecated
-
 
10208
    public addJacketNumber_args clone() {
-
 
10209
      return new addJacketNumber_args(this);
-
 
10210
    }
-
 
10211
 
-
 
10212
    public long getOrderId() {
-
 
10213
      return this.orderId;
-
 
10214
    }
-
 
10215
 
-
 
10216
    public addJacketNumber_args setOrderId(long orderId) {
-
 
10217
      this.orderId = orderId;
-
 
10218
      setOrderIdIsSet(true);
-
 
10219
      return this;
-
 
10220
    }
-
 
10221
 
-
 
10222
    public void unsetOrderId() {
-
 
10223
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
10224
    }
-
 
10225
 
-
 
10226
    /** Returns true if field orderId is set (has been asigned a value) and false otherwise */
-
 
10227
    public boolean isSetOrderId() {
-
 
10228
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
10229
    }
-
 
10230
 
-
 
10231
    public void setOrderIdIsSet(boolean value) {
-
 
10232
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
10233
    }
-
 
10234
 
-
 
10235
    public long getJacketNumber() {
-
 
10236
      return this.jacketNumber;
-
 
10237
    }
-
 
10238
 
-
 
10239
    public addJacketNumber_args setJacketNumber(long jacketNumber) {
-
 
10240
      this.jacketNumber = jacketNumber;
-
 
10241
      setJacketNumberIsSet(true);
-
 
10242
      return this;
-
 
10243
    }
-
 
10244
 
-
 
10245
    public void unsetJacketNumber() {
-
 
10246
      __isset_bit_vector.clear(__JACKETNUMBER_ISSET_ID);
-
 
10247
    }
-
 
10248
 
-
 
10249
    /** Returns true if field jacketNumber is set (has been asigned a value) and false otherwise */
-
 
10250
    public boolean isSetJacketNumber() {
-
 
10251
      return __isset_bit_vector.get(__JACKETNUMBER_ISSET_ID);
-
 
10252
    }
-
 
10253
 
-
 
10254
    public void setJacketNumberIsSet(boolean value) {
-
 
10255
      __isset_bit_vector.set(__JACKETNUMBER_ISSET_ID, value);
-
 
10256
    }
-
 
10257
 
-
 
10258
    public void setFieldValue(_Fields field, Object value) {
-
 
10259
      switch (field) {
-
 
10260
      case ORDER_ID:
-
 
10261
        if (value == null) {
-
 
10262
          unsetOrderId();
-
 
10263
        } else {
-
 
10264
          setOrderId((Long)value);
-
 
10265
        }
-
 
10266
        break;
-
 
10267
 
-
 
10268
      case JACKET_NUMBER:
-
 
10269
        if (value == null) {
-
 
10270
          unsetJacketNumber();
-
 
10271
        } else {
-
 
10272
          setJacketNumber((Long)value);
-
 
10273
        }
-
 
10274
        break;
-
 
10275
 
-
 
10276
      }
-
 
10277
    }
-
 
10278
 
-
 
10279
    public void setFieldValue(int fieldID, Object value) {
-
 
10280
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
10281
    }
-
 
10282
 
-
 
10283
    public Object getFieldValue(_Fields field) {
-
 
10284
      switch (field) {
-
 
10285
      case ORDER_ID:
-
 
10286
        return new Long(getOrderId());
-
 
10287
 
-
 
10288
      case JACKET_NUMBER:
-
 
10289
        return new Long(getJacketNumber());
-
 
10290
 
-
 
10291
      }
-
 
10292
      throw new IllegalStateException();
-
 
10293
    }
-
 
10294
 
-
 
10295
    public Object getFieldValue(int fieldId) {
-
 
10296
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
10297
    }
-
 
10298
 
-
 
10299
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
10300
    public boolean isSet(_Fields field) {
-
 
10301
      switch (field) {
-
 
10302
      case ORDER_ID:
-
 
10303
        return isSetOrderId();
-
 
10304
      case JACKET_NUMBER:
-
 
10305
        return isSetJacketNumber();
-
 
10306
      }
-
 
10307
      throw new IllegalStateException();
-
 
10308
    }
-
 
10309
 
-
 
10310
    public boolean isSet(int fieldID) {
-
 
10311
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
10312
    }
-
 
10313
 
-
 
10314
    @Override
-
 
10315
    public boolean equals(Object that) {
-
 
10316
      if (that == null)
-
 
10317
        return false;
-
 
10318
      if (that instanceof addJacketNumber_args)
-
 
10319
        return this.equals((addJacketNumber_args)that);
-
 
10320
      return false;
-
 
10321
    }
-
 
10322
 
-
 
10323
    public boolean equals(addJacketNumber_args that) {
-
 
10324
      if (that == null)
-
 
10325
        return false;
-
 
10326
 
-
 
10327
      boolean this_present_orderId = true;
-
 
10328
      boolean that_present_orderId = true;
-
 
10329
      if (this_present_orderId || that_present_orderId) {
-
 
10330
        if (!(this_present_orderId && that_present_orderId))
-
 
10331
          return false;
-
 
10332
        if (this.orderId != that.orderId)
-
 
10333
          return false;
-
 
10334
      }
-
 
10335
 
-
 
10336
      boolean this_present_jacketNumber = true;
-
 
10337
      boolean that_present_jacketNumber = true;
-
 
10338
      if (this_present_jacketNumber || that_present_jacketNumber) {
-
 
10339
        if (!(this_present_jacketNumber && that_present_jacketNumber))
-
 
10340
          return false;
-
 
10341
        if (this.jacketNumber != that.jacketNumber)
-
 
10342
          return false;
-
 
10343
      }
-
 
10344
 
-
 
10345
      return true;
-
 
10346
    }
-
 
10347
 
-
 
10348
    @Override
-
 
10349
    public int hashCode() {
-
 
10350
      return 0;
-
 
10351
    }
-
 
10352
 
-
 
10353
    public int compareTo(addJacketNumber_args other) {
-
 
10354
      if (!getClass().equals(other.getClass())) {
-
 
10355
        return getClass().getName().compareTo(other.getClass().getName());
-
 
10356
      }
-
 
10357
 
-
 
10358
      int lastComparison = 0;
-
 
10359
      addJacketNumber_args typedOther = (addJacketNumber_args)other;
-
 
10360
 
-
 
10361
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(isSetOrderId());
-
 
10362
      if (lastComparison != 0) {
-
 
10363
        return lastComparison;
-
 
10364
      }
-
 
10365
      lastComparison = TBaseHelper.compareTo(orderId, typedOther.orderId);
-
 
10366
      if (lastComparison != 0) {
-
 
10367
        return lastComparison;
-
 
10368
      }
-
 
10369
      lastComparison = Boolean.valueOf(isSetJacketNumber()).compareTo(isSetJacketNumber());
-
 
10370
      if (lastComparison != 0) {
-
 
10371
        return lastComparison;
-
 
10372
      }
-
 
10373
      lastComparison = TBaseHelper.compareTo(jacketNumber, typedOther.jacketNumber);
-
 
10374
      if (lastComparison != 0) {
-
 
10375
        return lastComparison;
-
 
10376
      }
-
 
10377
      return 0;
-
 
10378
    }
-
 
10379
 
-
 
10380
    public void read(TProtocol iprot) throws TException {
-
 
10381
      TField field;
-
 
10382
      iprot.readStructBegin();
-
 
10383
      while (true)
-
 
10384
      {
-
 
10385
        field = iprot.readFieldBegin();
-
 
10386
        if (field.type == TType.STOP) { 
-
 
10387
          break;
-
 
10388
        }
-
 
10389
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
10390
        if (fieldId == null) {
-
 
10391
          TProtocolUtil.skip(iprot, field.type);
-
 
10392
        } else {
-
 
10393
          switch (fieldId) {
-
 
10394
            case ORDER_ID:
-
 
10395
              if (field.type == TType.I64) {
-
 
10396
                this.orderId = iprot.readI64();
-
 
10397
                setOrderIdIsSet(true);
-
 
10398
              } else { 
-
 
10399
                TProtocolUtil.skip(iprot, field.type);
-
 
10400
              }
-
 
10401
              break;
-
 
10402
            case JACKET_NUMBER:
-
 
10403
              if (field.type == TType.I64) {
-
 
10404
                this.jacketNumber = iprot.readI64();
-
 
10405
                setJacketNumberIsSet(true);
-
 
10406
              } else { 
-
 
10407
                TProtocolUtil.skip(iprot, field.type);
-
 
10408
              }
-
 
10409
              break;
-
 
10410
          }
-
 
10411
          iprot.readFieldEnd();
-
 
10412
        }
-
 
10413
      }
-
 
10414
      iprot.readStructEnd();
-
 
10415
      validate();
-
 
10416
    }
-
 
10417
 
-
 
10418
    public void write(TProtocol oprot) throws TException {
-
 
10419
      validate();
-
 
10420
 
-
 
10421
      oprot.writeStructBegin(STRUCT_DESC);
-
 
10422
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
10423
      oprot.writeI64(this.orderId);
-
 
10424
      oprot.writeFieldEnd();
-
 
10425
      oprot.writeFieldBegin(JACKET_NUMBER_FIELD_DESC);
-
 
10426
      oprot.writeI64(this.jacketNumber);
-
 
10427
      oprot.writeFieldEnd();
-
 
10428
      oprot.writeFieldStop();
-
 
10429
      oprot.writeStructEnd();
-
 
10430
    }
-
 
10431
 
-
 
10432
    @Override
-
 
10433
    public String toString() {
-
 
10434
      StringBuilder sb = new StringBuilder("addJacketNumber_args(");
-
 
10435
      boolean first = true;
-
 
10436
 
-
 
10437
      sb.append("orderId:");
-
 
10438
      sb.append(this.orderId);
-
 
10439
      first = false;
-
 
10440
      if (!first) sb.append(", ");
-
 
10441
      sb.append("jacketNumber:");
-
 
10442
      sb.append(this.jacketNumber);
-
 
10443
      first = false;
-
 
10444
      sb.append(")");
-
 
10445
      return sb.toString();
-
 
10446
    }
-
 
10447
 
-
 
10448
    public void validate() throws TException {
-
 
10449
      // check for required fields
-
 
10450
    }
-
 
10451
 
-
 
10452
  }
-
 
10453
 
-
 
10454
  public static class addJacketNumber_result implements TBase<addJacketNumber_result._Fields>, java.io.Serializable, Cloneable, Comparable<addJacketNumber_result>   {
-
 
10455
    private static final TStruct STRUCT_DESC = new TStruct("addJacketNumber_result");
-
 
10456
 
-
 
10457
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
-
 
10458
    private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);
-
 
10459
 
-
 
10460
    private boolean success;
-
 
10461
    private TransactionServiceException ex;
-
 
10462
 
-
 
10463
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
10464
    public enum _Fields implements TFieldIdEnum {
-
 
10465
      SUCCESS((short)0, "success"),
-
 
10466
      EX((short)1, "ex");
-
 
10467
 
-
 
10468
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
10469
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
10470
 
-
 
10471
      static {
-
 
10472
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
10473
          byId.put((int)field._thriftId, field);
-
 
10474
          byName.put(field.getFieldName(), field);
-
 
10475
        }
-
 
10476
      }
-
 
10477
 
-
 
10478
      /**
-
 
10479
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
10480
       */
-
 
10481
      public static _Fields findByThriftId(int fieldId) {
-
 
10482
        return byId.get(fieldId);
-
 
10483
      }
-
 
10484
 
-
 
10485
      /**
-
 
10486
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
10487
       * if it is not found.
-
 
10488
       */
-
 
10489
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
10490
        _Fields fields = findByThriftId(fieldId);
-
 
10491
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
10492
        return fields;
-
 
10493
      }
-
 
10494
 
-
 
10495
      /**
-
 
10496
       * Find the _Fields constant that matches name, or null if its not found.
-
 
10497
       */
-
 
10498
      public static _Fields findByName(String name) {
-
 
10499
        return byName.get(name);
-
 
10500
      }
-
 
10501
 
-
 
10502
      private final short _thriftId;
-
 
10503
      private final String _fieldName;
-
 
10504
 
-
 
10505
      _Fields(short thriftId, String fieldName) {
-
 
10506
        _thriftId = thriftId;
-
 
10507
        _fieldName = fieldName;
-
 
10508
      }
-
 
10509
 
-
 
10510
      public short getThriftFieldId() {
-
 
10511
        return _thriftId;
-
 
10512
      }
-
 
10513
 
-
 
10514
      public String getFieldName() {
-
 
10515
        return _fieldName;
-
 
10516
      }
-
 
10517
    }
-
 
10518
 
-
 
10519
    // isset id assignments
-
 
10520
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
10521
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
10522
 
-
 
10523
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
10524
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
10525
          new FieldValueMetaData(TType.BOOL)));
-
 
10526
      put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT, 
-
 
10527
          new FieldValueMetaData(TType.STRUCT)));
-
 
10528
    }});
-
 
10529
 
-
 
10530
    static {
-
 
10531
      FieldMetaData.addStructMetaDataMap(addJacketNumber_result.class, metaDataMap);
-
 
10532
    }
-
 
10533
 
-
 
10534
    public addJacketNumber_result() {
-
 
10535
    }
-
 
10536
 
-
 
10537
    public addJacketNumber_result(
-
 
10538
      boolean success,
-
 
10539
      TransactionServiceException ex)
-
 
10540
    {
-
 
10541
      this();
-
 
10542
      this.success = success;
-
 
10543
      setSuccessIsSet(true);
-
 
10544
      this.ex = ex;
-
 
10545
    }
-
 
10546
 
-
 
10547
    /**
-
 
10548
     * Performs a deep copy on <i>other</i>.
-
 
10549
     */
-
 
10550
    public addJacketNumber_result(addJacketNumber_result other) {
-
 
10551
      __isset_bit_vector.clear();
-
 
10552
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
10553
      this.success = other.success;
-
 
10554
      if (other.isSetEx()) {
-
 
10555
        this.ex = new TransactionServiceException(other.ex);
-
 
10556
      }
-
 
10557
    }
-
 
10558
 
-
 
10559
    public addJacketNumber_result deepCopy() {
-
 
10560
      return new addJacketNumber_result(this);
-
 
10561
    }
-
 
10562
 
-
 
10563
    @Deprecated
-
 
10564
    public addJacketNumber_result clone() {
-
 
10565
      return new addJacketNumber_result(this);
-
 
10566
    }
-
 
10567
 
-
 
10568
    public boolean isSuccess() {
-
 
10569
      return this.success;
-
 
10570
    }
-
 
10571
 
-
 
10572
    public addJacketNumber_result setSuccess(boolean success) {
-
 
10573
      this.success = success;
-
 
10574
      setSuccessIsSet(true);
-
 
10575
      return this;
-
 
10576
    }
-
 
10577
 
-
 
10578
    public void unsetSuccess() {
-
 
10579
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
10580
    }
-
 
10581
 
-
 
10582
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
10583
    public boolean isSetSuccess() {
-
 
10584
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
10585
    }
-
 
10586
 
-
 
10587
    public void setSuccessIsSet(boolean value) {
-
 
10588
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
10589
    }
-
 
10590
 
-
 
10591
    public TransactionServiceException getEx() {
-
 
10592
      return this.ex;
-
 
10593
    }
-
 
10594
 
-
 
10595
    public addJacketNumber_result setEx(TransactionServiceException ex) {
-
 
10596
      this.ex = ex;
-
 
10597
      return this;
-
 
10598
    }
-
 
10599
 
-
 
10600
    public void unsetEx() {
-
 
10601
      this.ex = null;
-
 
10602
    }
-
 
10603
 
-
 
10604
    /** Returns true if field ex is set (has been asigned a value) and false otherwise */
-
 
10605
    public boolean isSetEx() {
-
 
10606
      return this.ex != null;
-
 
10607
    }
-
 
10608
 
-
 
10609
    public void setExIsSet(boolean value) {
-
 
10610
      if (!value) {
-
 
10611
        this.ex = null;
-
 
10612
      }
-
 
10613
    }
-
 
10614
 
-
 
10615
    public void setFieldValue(_Fields field, Object value) {
-
 
10616
      switch (field) {
-
 
10617
      case SUCCESS:
-
 
10618
        if (value == null) {
-
 
10619
          unsetSuccess();
-
 
10620
        } else {
-
 
10621
          setSuccess((Boolean)value);
-
 
10622
        }
-
 
10623
        break;
-
 
10624
 
-
 
10625
      case EX:
-
 
10626
        if (value == null) {
-
 
10627
          unsetEx();
-
 
10628
        } else {
-
 
10629
          setEx((TransactionServiceException)value);
-
 
10630
        }
-
 
10631
        break;
-
 
10632
 
-
 
10633
      }
-
 
10634
    }
-
 
10635
 
-
 
10636
    public void setFieldValue(int fieldID, Object value) {
-
 
10637
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
10638
    }
-
 
10639
 
-
 
10640
    public Object getFieldValue(_Fields field) {
-
 
10641
      switch (field) {
-
 
10642
      case SUCCESS:
-
 
10643
        return new Boolean(isSuccess());
-
 
10644
 
-
 
10645
      case EX:
-
 
10646
        return getEx();
-
 
10647
 
-
 
10648
      }
-
 
10649
      throw new IllegalStateException();
-
 
10650
    }
-
 
10651
 
-
 
10652
    public Object getFieldValue(int fieldId) {
-
 
10653
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
10654
    }
-
 
10655
 
-
 
10656
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
10657
    public boolean isSet(_Fields field) {
-
 
10658
      switch (field) {
-
 
10659
      case SUCCESS:
-
 
10660
        return isSetSuccess();
-
 
10661
      case EX:
-
 
10662
        return isSetEx();
-
 
10663
      }
-
 
10664
      throw new IllegalStateException();
-
 
10665
    }
-
 
10666
 
-
 
10667
    public boolean isSet(int fieldID) {
-
 
10668
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
10669
    }
-
 
10670
 
-
 
10671
    @Override
-
 
10672
    public boolean equals(Object that) {
-
 
10673
      if (that == null)
-
 
10674
        return false;
-
 
10675
      if (that instanceof addJacketNumber_result)
-
 
10676
        return this.equals((addJacketNumber_result)that);
-
 
10677
      return false;
-
 
10678
    }
-
 
10679
 
-
 
10680
    public boolean equals(addJacketNumber_result that) {
-
 
10681
      if (that == null)
-
 
10682
        return false;
-
 
10683
 
-
 
10684
      boolean this_present_success = true;
-
 
10685
      boolean that_present_success = true;
-
 
10686
      if (this_present_success || that_present_success) {
-
 
10687
        if (!(this_present_success && that_present_success))
-
 
10688
          return false;
-
 
10689
        if (this.success != that.success)
-
 
10690
          return false;
-
 
10691
      }
-
 
10692
 
-
 
10693
      boolean this_present_ex = true && this.isSetEx();
-
 
10694
      boolean that_present_ex = true && that.isSetEx();
-
 
10695
      if (this_present_ex || that_present_ex) {
-
 
10696
        if (!(this_present_ex && that_present_ex))
-
 
10697
          return false;
-
 
10698
        if (!this.ex.equals(that.ex))
-
 
10699
          return false;
-
 
10700
      }
-
 
10701
 
-
 
10702
      return true;
-
 
10703
    }
-
 
10704
 
-
 
10705
    @Override
-
 
10706
    public int hashCode() {
-
 
10707
      return 0;
-
 
10708
    }
-
 
10709
 
-
 
10710
    public int compareTo(addJacketNumber_result other) {
-
 
10711
      if (!getClass().equals(other.getClass())) {
-
 
10712
        return getClass().getName().compareTo(other.getClass().getName());
-
 
10713
      }
-
 
10714
 
-
 
10715
      int lastComparison = 0;
-
 
10716
      addJacketNumber_result typedOther = (addJacketNumber_result)other;
-
 
10717
 
-
 
10718
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
10719
      if (lastComparison != 0) {
-
 
10720
        return lastComparison;
-
 
10721
      }
-
 
10722
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
10723
      if (lastComparison != 0) {
-
 
10724
        return lastComparison;
-
 
10725
      }
-
 
10726
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(isSetEx());
-
 
10727
      if (lastComparison != 0) {
-
 
10728
        return lastComparison;
-
 
10729
      }
-
 
10730
      lastComparison = TBaseHelper.compareTo(ex, typedOther.ex);
-
 
10731
      if (lastComparison != 0) {
-
 
10732
        return lastComparison;
-
 
10733
      }
-
 
10734
      return 0;
-
 
10735
    }
-
 
10736
 
-
 
10737
    public void read(TProtocol iprot) throws TException {
-
 
10738
      TField field;
-
 
10739
      iprot.readStructBegin();
-
 
10740
      while (true)
-
 
10741
      {
-
 
10742
        field = iprot.readFieldBegin();
-
 
10743
        if (field.type == TType.STOP) { 
-
 
10744
          break;
-
 
10745
        }
-
 
10746
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
10747
        if (fieldId == null) {
-
 
10748
          TProtocolUtil.skip(iprot, field.type);
-
 
10749
        } else {
-
 
10750
          switch (fieldId) {
-
 
10751
            case SUCCESS:
-
 
10752
              if (field.type == TType.BOOL) {
-
 
10753
                this.success = iprot.readBool();
-
 
10754
                setSuccessIsSet(true);
-
 
10755
              } else { 
-
 
10756
                TProtocolUtil.skip(iprot, field.type);
-
 
10757
              }
-
 
10758
              break;
-
 
10759
            case EX:
-
 
10760
              if (field.type == TType.STRUCT) {
-
 
10761
                this.ex = new TransactionServiceException();
-
 
10762
                this.ex.read(iprot);
-
 
10763
              } else { 
-
 
10764
                TProtocolUtil.skip(iprot, field.type);
-
 
10765
              }
-
 
10766
              break;
-
 
10767
          }
-
 
10768
          iprot.readFieldEnd();
-
 
10769
        }
-
 
10770
      }
-
 
10771
      iprot.readStructEnd();
-
 
10772
      validate();
-
 
10773
    }
-
 
10774
 
-
 
10775
    public void write(TProtocol oprot) throws TException {
-
 
10776
      oprot.writeStructBegin(STRUCT_DESC);
-
 
10777
 
-
 
10778
      if (this.isSetSuccess()) {
-
 
10779
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
10780
        oprot.writeBool(this.success);
-
 
10781
        oprot.writeFieldEnd();
-
 
10782
      } else if (this.isSetEx()) {
-
 
10783
        oprot.writeFieldBegin(EX_FIELD_DESC);
-
 
10784
        this.ex.write(oprot);
-
 
10785
        oprot.writeFieldEnd();
-
 
10786
      }
-
 
10787
      oprot.writeFieldStop();
-
 
10788
      oprot.writeStructEnd();
-
 
10789
    }
-
 
10790
 
-
 
10791
    @Override
-
 
10792
    public String toString() {
-
 
10793
      StringBuilder sb = new StringBuilder("addJacketNumber_result(");
-
 
10794
      boolean first = true;
-
 
10795
 
-
 
10796
      sb.append("success:");
-
 
10797
      sb.append(this.success);
-
 
10798
      first = false;
10077
      if (!first) sb.append(", ");
10799
      if (!first) sb.append(", ");
10078
      sb.append("ex:");
10800
      sb.append("ex:");
10079
      if (this.ex == null) {
10801
      if (this.ex == null) {
10080
        sb.append("null");
10802
        sb.append("null");
10081
      } else {
10803
      } else {