Subversion Repositories SmartDukaan

Rev

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

Rev 5530 Rev 5591
Line 135... Line 135...
135
     * 
135
     * 
136
     * @param invoice
136
     * @param invoice
137
     */
137
     */
138
    public void createInvoice(Invoice invoice) throws PurchaseServiceException, org.apache.thrift.TException;
138
    public void createInvoice(Invoice invoice) throws PurchaseServiceException, org.apache.thrift.TException;
139
 
139
 
-
 
140
    /**
-
 
141
     * Creates a supplier
-
 
142
     * 
-
 
143
     * @param supplier
-
 
144
     */
-
 
145
    public Supplier addSupplier(Supplier supplier) throws org.apache.thrift.TException;
-
 
146
 
-
 
147
    /**
-
 
148
     * Updates a supplier
-
 
149
     * 
-
 
150
     * @param supplier
-
 
151
     */
-
 
152
    public void updateSupplier(Supplier supplier) throws org.apache.thrift.TException;
-
 
153
 
140
  }
154
  }
141
 
155
 
142
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
156
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
143
 
157
 
144
    public void createPurchaseOrder(PurchaseOrder purchaseOrder, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createPurchaseOrder_call> resultHandler) throws org.apache.thrift.TException;
158
    public void createPurchaseOrder(PurchaseOrder purchaseOrder, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createPurchaseOrder_call> resultHandler) throws org.apache.thrift.TException;
Line 169... Line 183...
169
 
183
 
170
    public void getInvoices(long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInvoices_call> resultHandler) throws org.apache.thrift.TException;
184
    public void getInvoices(long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInvoices_call> resultHandler) throws org.apache.thrift.TException;
171
 
185
 
172
    public void createInvoice(Invoice invoice, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createInvoice_call> resultHandler) throws org.apache.thrift.TException;
186
    public void createInvoice(Invoice invoice, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createInvoice_call> resultHandler) throws org.apache.thrift.TException;
173
 
187
 
-
 
188
    public void addSupplier(Supplier supplier, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addSupplier_call> resultHandler) throws org.apache.thrift.TException;
-
 
189
 
-
 
190
    public void updateSupplier(Supplier supplier, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateSupplier_call> resultHandler) throws org.apache.thrift.TException;
-
 
191
 
174
  }
192
  }
175
 
193
 
176
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
194
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
177
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
195
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
178
      public Factory() {}
196
      public Factory() {}
Line 569... Line 587...
569
        throw result.e;
587
        throw result.e;
570
      }
588
      }
571
      return;
589
      return;
572
    }
590
    }
573
 
591
 
-
 
592
    public Supplier addSupplier(Supplier supplier) throws org.apache.thrift.TException
-
 
593
    {
-
 
594
      send_addSupplier(supplier);
-
 
595
      return recv_addSupplier();
-
 
596
    }
-
 
597
 
-
 
598
    public void send_addSupplier(Supplier supplier) throws org.apache.thrift.TException
-
 
599
    {
-
 
600
      addSupplier_args args = new addSupplier_args();
-
 
601
      args.setSupplier(supplier);
-
 
602
      sendBase("addSupplier", args);
-
 
603
    }
-
 
604
 
-
 
605
    public Supplier recv_addSupplier() throws org.apache.thrift.TException
-
 
606
    {
-
 
607
      addSupplier_result result = new addSupplier_result();
-
 
608
      receiveBase(result, "addSupplier");
-
 
609
      if (result.isSetSuccess()) {
-
 
610
        return result.success;
-
 
611
      }
-
 
612
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addSupplier failed: unknown result");
-
 
613
    }
-
 
614
 
-
 
615
    public void updateSupplier(Supplier supplier) throws org.apache.thrift.TException
-
 
616
    {
-
 
617
      send_updateSupplier(supplier);
-
 
618
      recv_updateSupplier();
-
 
619
    }
-
 
620
 
-
 
621
    public void send_updateSupplier(Supplier supplier) throws org.apache.thrift.TException
-
 
622
    {
-
 
623
      updateSupplier_args args = new updateSupplier_args();
-
 
624
      args.setSupplier(supplier);
-
 
625
      sendBase("updateSupplier", args);
-
 
626
    }
-
 
627
 
-
 
628
    public void recv_updateSupplier() throws org.apache.thrift.TException
-
 
629
    {
-
 
630
      updateSupplier_result result = new updateSupplier_result();
-
 
631
      receiveBase(result, "updateSupplier");
-
 
632
      return;
-
 
633
    }
-
 
634
 
574
  }
635
  }
575
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
636
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
576
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
637
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
577
      private org.apache.thrift.async.TAsyncClientManager clientManager;
638
      private org.apache.thrift.async.TAsyncClientManager clientManager;
578
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
639
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 1085... Line 1146...
1085
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1146
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1086
        (new Client(prot)).recv_createInvoice();
1147
        (new Client(prot)).recv_createInvoice();
1087
      }
1148
      }
1088
    }
1149
    }
1089
 
1150
 
-
 
1151
    public void addSupplier(Supplier supplier, org.apache.thrift.async.AsyncMethodCallback<addSupplier_call> resultHandler) throws org.apache.thrift.TException {
-
 
1152
      checkReady();
-
 
1153
      addSupplier_call method_call = new addSupplier_call(supplier, resultHandler, this, ___protocolFactory, ___transport);
-
 
1154
      this.___currentMethod = method_call;
-
 
1155
      ___manager.call(method_call);
-
 
1156
    }
-
 
1157
 
-
 
1158
    public static class addSupplier_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1159
      private Supplier supplier;
-
 
1160
      public addSupplier_call(Supplier supplier, org.apache.thrift.async.AsyncMethodCallback<addSupplier_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
1161
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1162
        this.supplier = supplier;
-
 
1163
      }
-
 
1164
 
-
 
1165
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1166
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addSupplier", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1167
        addSupplier_args args = new addSupplier_args();
-
 
1168
        args.setSupplier(supplier);
-
 
1169
        args.write(prot);
-
 
1170
        prot.writeMessageEnd();
-
 
1171
      }
-
 
1172
 
-
 
1173
      public Supplier getResult() throws org.apache.thrift.TException {
-
 
1174
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1175
          throw new IllegalStateException("Method call not finished!");
-
 
1176
        }
-
 
1177
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1178
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1179
        return (new Client(prot)).recv_addSupplier();
-
 
1180
      }
-
 
1181
    }
-
 
1182
 
-
 
1183
    public void updateSupplier(Supplier supplier, org.apache.thrift.async.AsyncMethodCallback<updateSupplier_call> resultHandler) throws org.apache.thrift.TException {
-
 
1184
      checkReady();
-
 
1185
      updateSupplier_call method_call = new updateSupplier_call(supplier, resultHandler, this, ___protocolFactory, ___transport);
-
 
1186
      this.___currentMethod = method_call;
-
 
1187
      ___manager.call(method_call);
-
 
1188
    }
-
 
1189
 
-
 
1190
    public static class updateSupplier_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1191
      private Supplier supplier;
-
 
1192
      public updateSupplier_call(Supplier supplier, org.apache.thrift.async.AsyncMethodCallback<updateSupplier_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
1193
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1194
        this.supplier = supplier;
-
 
1195
      }
-
 
1196
 
-
 
1197
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1198
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateSupplier", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1199
        updateSupplier_args args = new updateSupplier_args();
-
 
1200
        args.setSupplier(supplier);
-
 
1201
        args.write(prot);
-
 
1202
        prot.writeMessageEnd();
-
 
1203
      }
-
 
1204
 
-
 
1205
      public void getResult() throws org.apache.thrift.TException {
-
 
1206
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1207
          throw new IllegalStateException("Method call not finished!");
-
 
1208
        }
-
 
1209
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1210
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1211
        (new Client(prot)).recv_updateSupplier();
-
 
1212
      }
-
 
1213
    }
-
 
1214
 
1090
  }
1215
  }
1091
 
1216
 
1092
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1217
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1093
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1218
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1094
    public Processor(I iface) {
1219
    public Processor(I iface) {
Line 1113... Line 1238...
1113
      processMap.put("fulfillPO", new fulfillPO());
1238
      processMap.put("fulfillPO", new fulfillPO());
1114
      processMap.put("updatePurchaseOrder", new updatePurchaseOrder());
1239
      processMap.put("updatePurchaseOrder", new updatePurchaseOrder());
1115
      processMap.put("unFulfillPO", new unFulfillPO());
1240
      processMap.put("unFulfillPO", new unFulfillPO());
1116
      processMap.put("getInvoices", new getInvoices());
1241
      processMap.put("getInvoices", new getInvoices());
1117
      processMap.put("createInvoice", new createInvoice());
1242
      processMap.put("createInvoice", new createInvoice());
-
 
1243
      processMap.put("addSupplier", new addSupplier());
-
 
1244
      processMap.put("updateSupplier", new updateSupplier());
1118
      return processMap;
1245
      return processMap;
1119
    }
1246
    }
1120
 
1247
 
1121
    private static class createPurchaseOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createPurchaseOrder_args> {
1248
    private static class createPurchaseOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createPurchaseOrder_args> {
1122
      public createPurchaseOrder() {
1249
      public createPurchaseOrder() {
Line 1411... Line 1538...
1411
        }
1538
        }
1412
        return result;
1539
        return result;
1413
      }
1540
      }
1414
    }
1541
    }
1415
 
1542
 
-
 
1543
    private static class addSupplier<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addSupplier_args> {
-
 
1544
      public addSupplier() {
-
 
1545
        super("addSupplier");
-
 
1546
      }
-
 
1547
 
-
 
1548
      protected addSupplier_args getEmptyArgsInstance() {
-
 
1549
        return new addSupplier_args();
-
 
1550
      }
-
 
1551
 
-
 
1552
      protected addSupplier_result getResult(I iface, addSupplier_args args) throws org.apache.thrift.TException {
-
 
1553
        addSupplier_result result = new addSupplier_result();
-
 
1554
        result.success = iface.addSupplier(args.supplier);
-
 
1555
        return result;
-
 
1556
      }
-
 
1557
    }
-
 
1558
 
-
 
1559
    private static class updateSupplier<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateSupplier_args> {
-
 
1560
      public updateSupplier() {
-
 
1561
        super("updateSupplier");
-
 
1562
      }
-
 
1563
 
-
 
1564
      protected updateSupplier_args getEmptyArgsInstance() {
-
 
1565
        return new updateSupplier_args();
-
 
1566
      }
-
 
1567
 
-
 
1568
      protected updateSupplier_result getResult(I iface, updateSupplier_args args) throws org.apache.thrift.TException {
-
 
1569
        updateSupplier_result result = new updateSupplier_result();
-
 
1570
        iface.updateSupplier(args.supplier);
-
 
1571
        return result;
-
 
1572
      }
-
 
1573
    }
-
 
1574
 
1416
  }
1575
  }
1417
 
1576
 
1418
  public static class createPurchaseOrder_args implements org.apache.thrift.TBase<createPurchaseOrder_args, createPurchaseOrder_args._Fields>, java.io.Serializable, Cloneable   {
1577
  public static class createPurchaseOrder_args implements org.apache.thrift.TBase<createPurchaseOrder_args, createPurchaseOrder_args._Fields>, java.io.Serializable, Cloneable   {
1419
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPurchaseOrder_args");
1578
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPurchaseOrder_args");
1420
 
1579
 
Line 11685... Line 11844...
11685
      sb.append(")");
11844
      sb.append(")");
11686
      return sb.toString();
11845
      return sb.toString();
11687
    }
11846
    }
11688
 
11847
 
11689
    public void validate() throws org.apache.thrift.TException {
11848
    public void validate() throws org.apache.thrift.TException {
-
 
11849
      // check for required fields
-
 
11850
    }
-
 
11851
 
-
 
11852
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
11853
      try {
-
 
11854
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
11855
      } catch (org.apache.thrift.TException te) {
-
 
11856
        throw new java.io.IOException(te);
-
 
11857
      }
-
 
11858
    }
-
 
11859
 
-
 
11860
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
11861
      try {
-
 
11862
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
11863
      } catch (org.apache.thrift.TException te) {
-
 
11864
        throw new java.io.IOException(te);
-
 
11865
      }
-
 
11866
    }
-
 
11867
 
-
 
11868
  }
-
 
11869
 
-
 
11870
  public static class addSupplier_args implements org.apache.thrift.TBase<addSupplier_args, addSupplier_args._Fields>, java.io.Serializable, Cloneable   {
-
 
11871
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addSupplier_args");
-
 
11872
 
-
 
11873
    private static final org.apache.thrift.protocol.TField SUPPLIER_FIELD_DESC = new org.apache.thrift.protocol.TField("supplier", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
11874
 
-
 
11875
    private Supplier supplier; // required
-
 
11876
 
-
 
11877
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
11878
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
11879
      SUPPLIER((short)1, "supplier");
-
 
11880
 
-
 
11881
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
11882
 
-
 
11883
      static {
-
 
11884
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
11885
          byName.put(field.getFieldName(), field);
-
 
11886
        }
-
 
11887
      }
-
 
11888
 
-
 
11889
      /**
-
 
11890
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
11891
       */
-
 
11892
      public static _Fields findByThriftId(int fieldId) {
-
 
11893
        switch(fieldId) {
-
 
11894
          case 1: // SUPPLIER
-
 
11895
            return SUPPLIER;
-
 
11896
          default:
-
 
11897
            return null;
-
 
11898
        }
-
 
11899
      }
-
 
11900
 
-
 
11901
      /**
-
 
11902
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
11903
       * if it is not found.
-
 
11904
       */
-
 
11905
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
11906
        _Fields fields = findByThriftId(fieldId);
-
 
11907
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
11908
        return fields;
-
 
11909
      }
-
 
11910
 
-
 
11911
      /**
-
 
11912
       * Find the _Fields constant that matches name, or null if its not found.
-
 
11913
       */
-
 
11914
      public static _Fields findByName(String name) {
-
 
11915
        return byName.get(name);
-
 
11916
      }
-
 
11917
 
-
 
11918
      private final short _thriftId;
-
 
11919
      private final String _fieldName;
-
 
11920
 
-
 
11921
      _Fields(short thriftId, String fieldName) {
-
 
11922
        _thriftId = thriftId;
-
 
11923
        _fieldName = fieldName;
-
 
11924
      }
-
 
11925
 
-
 
11926
      public short getThriftFieldId() {
-
 
11927
        return _thriftId;
-
 
11928
      }
-
 
11929
 
-
 
11930
      public String getFieldName() {
-
 
11931
        return _fieldName;
-
 
11932
      }
-
 
11933
    }
-
 
11934
 
-
 
11935
    // isset id assignments
-
 
11936
 
-
 
11937
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
11938
    static {
-
 
11939
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
11940
      tmpMap.put(_Fields.SUPPLIER, new org.apache.thrift.meta_data.FieldMetaData("supplier", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
11941
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Supplier.class)));
-
 
11942
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
11943
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addSupplier_args.class, metaDataMap);
-
 
11944
    }
-
 
11945
 
-
 
11946
    public addSupplier_args() {
-
 
11947
    }
-
 
11948
 
-
 
11949
    public addSupplier_args(
-
 
11950
      Supplier supplier)
-
 
11951
    {
-
 
11952
      this();
-
 
11953
      this.supplier = supplier;
-
 
11954
    }
-
 
11955
 
-
 
11956
    /**
-
 
11957
     * Performs a deep copy on <i>other</i>.
-
 
11958
     */
-
 
11959
    public addSupplier_args(addSupplier_args other) {
-
 
11960
      if (other.isSetSupplier()) {
-
 
11961
        this.supplier = new Supplier(other.supplier);
-
 
11962
      }
-
 
11963
    }
-
 
11964
 
-
 
11965
    public addSupplier_args deepCopy() {
-
 
11966
      return new addSupplier_args(this);
-
 
11967
    }
-
 
11968
 
-
 
11969
    @Override
-
 
11970
    public void clear() {
-
 
11971
      this.supplier = null;
-
 
11972
    }
-
 
11973
 
-
 
11974
    public Supplier getSupplier() {
-
 
11975
      return this.supplier;
-
 
11976
    }
-
 
11977
 
-
 
11978
    public void setSupplier(Supplier supplier) {
-
 
11979
      this.supplier = supplier;
-
 
11980
    }
-
 
11981
 
-
 
11982
    public void unsetSupplier() {
-
 
11983
      this.supplier = null;
-
 
11984
    }
-
 
11985
 
-
 
11986
    /** Returns true if field supplier is set (has been assigned a value) and false otherwise */
-
 
11987
    public boolean isSetSupplier() {
-
 
11988
      return this.supplier != null;
-
 
11989
    }
-
 
11990
 
-
 
11991
    public void setSupplierIsSet(boolean value) {
-
 
11992
      if (!value) {
-
 
11993
        this.supplier = null;
-
 
11994
      }
-
 
11995
    }
-
 
11996
 
-
 
11997
    public void setFieldValue(_Fields field, Object value) {
-
 
11998
      switch (field) {
-
 
11999
      case SUPPLIER:
-
 
12000
        if (value == null) {
-
 
12001
          unsetSupplier();
-
 
12002
        } else {
-
 
12003
          setSupplier((Supplier)value);
-
 
12004
        }
-
 
12005
        break;
-
 
12006
 
-
 
12007
      }
-
 
12008
    }
-
 
12009
 
-
 
12010
    public Object getFieldValue(_Fields field) {
-
 
12011
      switch (field) {
-
 
12012
      case SUPPLIER:
-
 
12013
        return getSupplier();
-
 
12014
 
-
 
12015
      }
-
 
12016
      throw new IllegalStateException();
-
 
12017
    }
-
 
12018
 
-
 
12019
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
12020
    public boolean isSet(_Fields field) {
-
 
12021
      if (field == null) {
-
 
12022
        throw new IllegalArgumentException();
-
 
12023
      }
-
 
12024
 
-
 
12025
      switch (field) {
-
 
12026
      case SUPPLIER:
-
 
12027
        return isSetSupplier();
-
 
12028
      }
-
 
12029
      throw new IllegalStateException();
-
 
12030
    }
-
 
12031
 
-
 
12032
    @Override
-
 
12033
    public boolean equals(Object that) {
-
 
12034
      if (that == null)
-
 
12035
        return false;
-
 
12036
      if (that instanceof addSupplier_args)
-
 
12037
        return this.equals((addSupplier_args)that);
-
 
12038
      return false;
-
 
12039
    }
-
 
12040
 
-
 
12041
    public boolean equals(addSupplier_args that) {
-
 
12042
      if (that == null)
-
 
12043
        return false;
-
 
12044
 
-
 
12045
      boolean this_present_supplier = true && this.isSetSupplier();
-
 
12046
      boolean that_present_supplier = true && that.isSetSupplier();
-
 
12047
      if (this_present_supplier || that_present_supplier) {
-
 
12048
        if (!(this_present_supplier && that_present_supplier))
-
 
12049
          return false;
-
 
12050
        if (!this.supplier.equals(that.supplier))
-
 
12051
          return false;
-
 
12052
      }
-
 
12053
 
-
 
12054
      return true;
-
 
12055
    }
-
 
12056
 
-
 
12057
    @Override
-
 
12058
    public int hashCode() {
-
 
12059
      return 0;
-
 
12060
    }
-
 
12061
 
-
 
12062
    public int compareTo(addSupplier_args other) {
-
 
12063
      if (!getClass().equals(other.getClass())) {
-
 
12064
        return getClass().getName().compareTo(other.getClass().getName());
-
 
12065
      }
-
 
12066
 
-
 
12067
      int lastComparison = 0;
-
 
12068
      addSupplier_args typedOther = (addSupplier_args)other;
-
 
12069
 
-
 
12070
      lastComparison = Boolean.valueOf(isSetSupplier()).compareTo(typedOther.isSetSupplier());
-
 
12071
      if (lastComparison != 0) {
-
 
12072
        return lastComparison;
-
 
12073
      }
-
 
12074
      if (isSetSupplier()) {
-
 
12075
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.supplier, typedOther.supplier);
-
 
12076
        if (lastComparison != 0) {
-
 
12077
          return lastComparison;
-
 
12078
        }
-
 
12079
      }
-
 
12080
      return 0;
-
 
12081
    }
-
 
12082
 
-
 
12083
    public _Fields fieldForId(int fieldId) {
-
 
12084
      return _Fields.findByThriftId(fieldId);
-
 
12085
    }
-
 
12086
 
-
 
12087
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
12088
      org.apache.thrift.protocol.TField field;
-
 
12089
      iprot.readStructBegin();
-
 
12090
      while (true)
-
 
12091
      {
-
 
12092
        field = iprot.readFieldBegin();
-
 
12093
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
12094
          break;
-
 
12095
        }
-
 
12096
        switch (field.id) {
-
 
12097
          case 1: // SUPPLIER
-
 
12098
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
12099
              this.supplier = new Supplier();
-
 
12100
              this.supplier.read(iprot);
-
 
12101
            } else { 
-
 
12102
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
12103
            }
-
 
12104
            break;
-
 
12105
          default:
-
 
12106
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
12107
        }
-
 
12108
        iprot.readFieldEnd();
-
 
12109
      }
-
 
12110
      iprot.readStructEnd();
-
 
12111
      validate();
-
 
12112
    }
-
 
12113
 
-
 
12114
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
12115
      validate();
-
 
12116
 
-
 
12117
      oprot.writeStructBegin(STRUCT_DESC);
-
 
12118
      if (this.supplier != null) {
-
 
12119
        oprot.writeFieldBegin(SUPPLIER_FIELD_DESC);
-
 
12120
        this.supplier.write(oprot);
-
 
12121
        oprot.writeFieldEnd();
-
 
12122
      }
-
 
12123
      oprot.writeFieldStop();
-
 
12124
      oprot.writeStructEnd();
-
 
12125
    }
-
 
12126
 
-
 
12127
    @Override
-
 
12128
    public String toString() {
-
 
12129
      StringBuilder sb = new StringBuilder("addSupplier_args(");
-
 
12130
      boolean first = true;
-
 
12131
 
-
 
12132
      sb.append("supplier:");
-
 
12133
      if (this.supplier == null) {
-
 
12134
        sb.append("null");
-
 
12135
      } else {
-
 
12136
        sb.append(this.supplier);
-
 
12137
      }
-
 
12138
      first = false;
-
 
12139
      sb.append(")");
-
 
12140
      return sb.toString();
-
 
12141
    }
-
 
12142
 
-
 
12143
    public void validate() throws org.apache.thrift.TException {
-
 
12144
      // check for required fields
-
 
12145
    }
-
 
12146
 
-
 
12147
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
12148
      try {
-
 
12149
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
12150
      } catch (org.apache.thrift.TException te) {
-
 
12151
        throw new java.io.IOException(te);
-
 
12152
      }
-
 
12153
    }
-
 
12154
 
-
 
12155
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
12156
      try {
-
 
12157
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
12158
      } catch (org.apache.thrift.TException te) {
-
 
12159
        throw new java.io.IOException(te);
-
 
12160
      }
-
 
12161
    }
-
 
12162
 
-
 
12163
  }
-
 
12164
 
-
 
12165
  public static class addSupplier_result implements org.apache.thrift.TBase<addSupplier_result, addSupplier_result._Fields>, java.io.Serializable, Cloneable   {
-
 
12166
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addSupplier_result");
-
 
12167
 
-
 
12168
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
-
 
12169
 
-
 
12170
    private Supplier success; // required
-
 
12171
 
-
 
12172
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
12173
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
12174
      SUCCESS((short)0, "success");
-
 
12175
 
-
 
12176
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
12177
 
-
 
12178
      static {
-
 
12179
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
12180
          byName.put(field.getFieldName(), field);
-
 
12181
        }
-
 
12182
      }
-
 
12183
 
-
 
12184
      /**
-
 
12185
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
12186
       */
-
 
12187
      public static _Fields findByThriftId(int fieldId) {
-
 
12188
        switch(fieldId) {
-
 
12189
          case 0: // SUCCESS
-
 
12190
            return SUCCESS;
-
 
12191
          default:
-
 
12192
            return null;
-
 
12193
        }
-
 
12194
      }
-
 
12195
 
-
 
12196
      /**
-
 
12197
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
12198
       * if it is not found.
-
 
12199
       */
-
 
12200
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
12201
        _Fields fields = findByThriftId(fieldId);
-
 
12202
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
12203
        return fields;
-
 
12204
      }
-
 
12205
 
-
 
12206
      /**
-
 
12207
       * Find the _Fields constant that matches name, or null if its not found.
-
 
12208
       */
-
 
12209
      public static _Fields findByName(String name) {
-
 
12210
        return byName.get(name);
-
 
12211
      }
-
 
12212
 
-
 
12213
      private final short _thriftId;
-
 
12214
      private final String _fieldName;
-
 
12215
 
-
 
12216
      _Fields(short thriftId, String fieldName) {
-
 
12217
        _thriftId = thriftId;
-
 
12218
        _fieldName = fieldName;
-
 
12219
      }
-
 
12220
 
-
 
12221
      public short getThriftFieldId() {
-
 
12222
        return _thriftId;
-
 
12223
      }
-
 
12224
 
-
 
12225
      public String getFieldName() {
-
 
12226
        return _fieldName;
-
 
12227
      }
-
 
12228
    }
-
 
12229
 
-
 
12230
    // isset id assignments
-
 
12231
 
-
 
12232
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
12233
    static {
-
 
12234
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
12235
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
12236
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Supplier.class)));
-
 
12237
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
12238
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addSupplier_result.class, metaDataMap);
-
 
12239
    }
-
 
12240
 
-
 
12241
    public addSupplier_result() {
-
 
12242
    }
-
 
12243
 
-
 
12244
    public addSupplier_result(
-
 
12245
      Supplier success)
-
 
12246
    {
-
 
12247
      this();
-
 
12248
      this.success = success;
-
 
12249
    }
-
 
12250
 
-
 
12251
    /**
-
 
12252
     * Performs a deep copy on <i>other</i>.
-
 
12253
     */
-
 
12254
    public addSupplier_result(addSupplier_result other) {
-
 
12255
      if (other.isSetSuccess()) {
-
 
12256
        this.success = new Supplier(other.success);
-
 
12257
      }
-
 
12258
    }
-
 
12259
 
-
 
12260
    public addSupplier_result deepCopy() {
-
 
12261
      return new addSupplier_result(this);
-
 
12262
    }
-
 
12263
 
-
 
12264
    @Override
-
 
12265
    public void clear() {
-
 
12266
      this.success = null;
-
 
12267
    }
-
 
12268
 
-
 
12269
    public Supplier getSuccess() {
-
 
12270
      return this.success;
-
 
12271
    }
-
 
12272
 
-
 
12273
    public void setSuccess(Supplier success) {
-
 
12274
      this.success = success;
-
 
12275
    }
-
 
12276
 
-
 
12277
    public void unsetSuccess() {
-
 
12278
      this.success = null;
-
 
12279
    }
-
 
12280
 
-
 
12281
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
12282
    public boolean isSetSuccess() {
-
 
12283
      return this.success != null;
-
 
12284
    }
-
 
12285
 
-
 
12286
    public void setSuccessIsSet(boolean value) {
-
 
12287
      if (!value) {
-
 
12288
        this.success = null;
-
 
12289
      }
-
 
12290
    }
-
 
12291
 
-
 
12292
    public void setFieldValue(_Fields field, Object value) {
-
 
12293
      switch (field) {
-
 
12294
      case SUCCESS:
-
 
12295
        if (value == null) {
-
 
12296
          unsetSuccess();
-
 
12297
        } else {
-
 
12298
          setSuccess((Supplier)value);
-
 
12299
        }
-
 
12300
        break;
-
 
12301
 
-
 
12302
      }
-
 
12303
    }
-
 
12304
 
-
 
12305
    public Object getFieldValue(_Fields field) {
-
 
12306
      switch (field) {
-
 
12307
      case SUCCESS:
-
 
12308
        return getSuccess();
-
 
12309
 
-
 
12310
      }
-
 
12311
      throw new IllegalStateException();
-
 
12312
    }
-
 
12313
 
-
 
12314
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
12315
    public boolean isSet(_Fields field) {
-
 
12316
      if (field == null) {
-
 
12317
        throw new IllegalArgumentException();
-
 
12318
      }
-
 
12319
 
-
 
12320
      switch (field) {
-
 
12321
      case SUCCESS:
-
 
12322
        return isSetSuccess();
-
 
12323
      }
-
 
12324
      throw new IllegalStateException();
-
 
12325
    }
-
 
12326
 
-
 
12327
    @Override
-
 
12328
    public boolean equals(Object that) {
-
 
12329
      if (that == null)
-
 
12330
        return false;
-
 
12331
      if (that instanceof addSupplier_result)
-
 
12332
        return this.equals((addSupplier_result)that);
-
 
12333
      return false;
-
 
12334
    }
-
 
12335
 
-
 
12336
    public boolean equals(addSupplier_result that) {
-
 
12337
      if (that == null)
-
 
12338
        return false;
-
 
12339
 
-
 
12340
      boolean this_present_success = true && this.isSetSuccess();
-
 
12341
      boolean that_present_success = true && that.isSetSuccess();
-
 
12342
      if (this_present_success || that_present_success) {
-
 
12343
        if (!(this_present_success && that_present_success))
-
 
12344
          return false;
-
 
12345
        if (!this.success.equals(that.success))
-
 
12346
          return false;
-
 
12347
      }
-
 
12348
 
-
 
12349
      return true;
-
 
12350
    }
-
 
12351
 
-
 
12352
    @Override
-
 
12353
    public int hashCode() {
-
 
12354
      return 0;
-
 
12355
    }
-
 
12356
 
-
 
12357
    public int compareTo(addSupplier_result other) {
-
 
12358
      if (!getClass().equals(other.getClass())) {
-
 
12359
        return getClass().getName().compareTo(other.getClass().getName());
-
 
12360
      }
-
 
12361
 
-
 
12362
      int lastComparison = 0;
-
 
12363
      addSupplier_result typedOther = (addSupplier_result)other;
-
 
12364
 
-
 
12365
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
12366
      if (lastComparison != 0) {
-
 
12367
        return lastComparison;
-
 
12368
      }
-
 
12369
      if (isSetSuccess()) {
-
 
12370
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
12371
        if (lastComparison != 0) {
-
 
12372
          return lastComparison;
-
 
12373
        }
-
 
12374
      }
-
 
12375
      return 0;
-
 
12376
    }
-
 
12377
 
-
 
12378
    public _Fields fieldForId(int fieldId) {
-
 
12379
      return _Fields.findByThriftId(fieldId);
-
 
12380
    }
-
 
12381
 
-
 
12382
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
12383
      org.apache.thrift.protocol.TField field;
-
 
12384
      iprot.readStructBegin();
-
 
12385
      while (true)
-
 
12386
      {
-
 
12387
        field = iprot.readFieldBegin();
-
 
12388
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
12389
          break;
-
 
12390
        }
-
 
12391
        switch (field.id) {
-
 
12392
          case 0: // SUCCESS
-
 
12393
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
12394
              this.success = new Supplier();
-
 
12395
              this.success.read(iprot);
-
 
12396
            } else { 
-
 
12397
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
12398
            }
-
 
12399
            break;
-
 
12400
          default:
-
 
12401
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
12402
        }
-
 
12403
        iprot.readFieldEnd();
-
 
12404
      }
-
 
12405
      iprot.readStructEnd();
-
 
12406
      validate();
-
 
12407
    }
-
 
12408
 
-
 
12409
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
12410
      oprot.writeStructBegin(STRUCT_DESC);
-
 
12411
 
-
 
12412
      if (this.isSetSuccess()) {
-
 
12413
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
12414
        this.success.write(oprot);
-
 
12415
        oprot.writeFieldEnd();
-
 
12416
      }
-
 
12417
      oprot.writeFieldStop();
-
 
12418
      oprot.writeStructEnd();
-
 
12419
    }
-
 
12420
 
-
 
12421
    @Override
-
 
12422
    public String toString() {
-
 
12423
      StringBuilder sb = new StringBuilder("addSupplier_result(");
-
 
12424
      boolean first = true;
-
 
12425
 
-
 
12426
      sb.append("success:");
-
 
12427
      if (this.success == null) {
-
 
12428
        sb.append("null");
-
 
12429
      } else {
-
 
12430
        sb.append(this.success);
-
 
12431
      }
-
 
12432
      first = false;
-
 
12433
      sb.append(")");
-
 
12434
      return sb.toString();
-
 
12435
    }
-
 
12436
 
-
 
12437
    public void validate() throws org.apache.thrift.TException {
-
 
12438
      // check for required fields
-
 
12439
    }
-
 
12440
 
-
 
12441
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
12442
      try {
-
 
12443
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
12444
      } catch (org.apache.thrift.TException te) {
-
 
12445
        throw new java.io.IOException(te);
-
 
12446
      }
-
 
12447
    }
-
 
12448
 
-
 
12449
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
12450
      try {
-
 
12451
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
12452
      } catch (org.apache.thrift.TException te) {
-
 
12453
        throw new java.io.IOException(te);
-
 
12454
      }
-
 
12455
    }
-
 
12456
 
-
 
12457
  }
-
 
12458
 
-
 
12459
  public static class updateSupplier_args implements org.apache.thrift.TBase<updateSupplier_args, updateSupplier_args._Fields>, java.io.Serializable, Cloneable   {
-
 
12460
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateSupplier_args");
-
 
12461
 
-
 
12462
    private static final org.apache.thrift.protocol.TField SUPPLIER_FIELD_DESC = new org.apache.thrift.protocol.TField("supplier", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
12463
 
-
 
12464
    private Supplier supplier; // required
-
 
12465
 
-
 
12466
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
12467
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
12468
      SUPPLIER((short)1, "supplier");
-
 
12469
 
-
 
12470
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
12471
 
-
 
12472
      static {
-
 
12473
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
12474
          byName.put(field.getFieldName(), field);
-
 
12475
        }
-
 
12476
      }
-
 
12477
 
-
 
12478
      /**
-
 
12479
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
12480
       */
-
 
12481
      public static _Fields findByThriftId(int fieldId) {
-
 
12482
        switch(fieldId) {
-
 
12483
          case 1: // SUPPLIER
-
 
12484
            return SUPPLIER;
-
 
12485
          default:
-
 
12486
            return null;
-
 
12487
        }
-
 
12488
      }
-
 
12489
 
-
 
12490
      /**
-
 
12491
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
12492
       * if it is not found.
-
 
12493
       */
-
 
12494
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
12495
        _Fields fields = findByThriftId(fieldId);
-
 
12496
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
12497
        return fields;
-
 
12498
      }
-
 
12499
 
-
 
12500
      /**
-
 
12501
       * Find the _Fields constant that matches name, or null if its not found.
-
 
12502
       */
-
 
12503
      public static _Fields findByName(String name) {
-
 
12504
        return byName.get(name);
-
 
12505
      }
-
 
12506
 
-
 
12507
      private final short _thriftId;
-
 
12508
      private final String _fieldName;
-
 
12509
 
-
 
12510
      _Fields(short thriftId, String fieldName) {
-
 
12511
        _thriftId = thriftId;
-
 
12512
        _fieldName = fieldName;
-
 
12513
      }
-
 
12514
 
-
 
12515
      public short getThriftFieldId() {
-
 
12516
        return _thriftId;
-
 
12517
      }
-
 
12518
 
-
 
12519
      public String getFieldName() {
-
 
12520
        return _fieldName;
-
 
12521
      }
-
 
12522
    }
-
 
12523
 
-
 
12524
    // isset id assignments
-
 
12525
 
-
 
12526
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
12527
    static {
-
 
12528
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
12529
      tmpMap.put(_Fields.SUPPLIER, new org.apache.thrift.meta_data.FieldMetaData("supplier", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
12530
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Supplier.class)));
-
 
12531
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
12532
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateSupplier_args.class, metaDataMap);
-
 
12533
    }
-
 
12534
 
-
 
12535
    public updateSupplier_args() {
-
 
12536
    }
-
 
12537
 
-
 
12538
    public updateSupplier_args(
-
 
12539
      Supplier supplier)
-
 
12540
    {
-
 
12541
      this();
-
 
12542
      this.supplier = supplier;
-
 
12543
    }
-
 
12544
 
-
 
12545
    /**
-
 
12546
     * Performs a deep copy on <i>other</i>.
-
 
12547
     */
-
 
12548
    public updateSupplier_args(updateSupplier_args other) {
-
 
12549
      if (other.isSetSupplier()) {
-
 
12550
        this.supplier = new Supplier(other.supplier);
-
 
12551
      }
-
 
12552
    }
-
 
12553
 
-
 
12554
    public updateSupplier_args deepCopy() {
-
 
12555
      return new updateSupplier_args(this);
-
 
12556
    }
-
 
12557
 
-
 
12558
    @Override
-
 
12559
    public void clear() {
-
 
12560
      this.supplier = null;
-
 
12561
    }
-
 
12562
 
-
 
12563
    public Supplier getSupplier() {
-
 
12564
      return this.supplier;
-
 
12565
    }
-
 
12566
 
-
 
12567
    public void setSupplier(Supplier supplier) {
-
 
12568
      this.supplier = supplier;
-
 
12569
    }
-
 
12570
 
-
 
12571
    public void unsetSupplier() {
-
 
12572
      this.supplier = null;
-
 
12573
    }
-
 
12574
 
-
 
12575
    /** Returns true if field supplier is set (has been assigned a value) and false otherwise */
-
 
12576
    public boolean isSetSupplier() {
-
 
12577
      return this.supplier != null;
-
 
12578
    }
-
 
12579
 
-
 
12580
    public void setSupplierIsSet(boolean value) {
-
 
12581
      if (!value) {
-
 
12582
        this.supplier = null;
-
 
12583
      }
-
 
12584
    }
-
 
12585
 
-
 
12586
    public void setFieldValue(_Fields field, Object value) {
-
 
12587
      switch (field) {
-
 
12588
      case SUPPLIER:
-
 
12589
        if (value == null) {
-
 
12590
          unsetSupplier();
-
 
12591
        } else {
-
 
12592
          setSupplier((Supplier)value);
-
 
12593
        }
-
 
12594
        break;
-
 
12595
 
-
 
12596
      }
-
 
12597
    }
-
 
12598
 
-
 
12599
    public Object getFieldValue(_Fields field) {
-
 
12600
      switch (field) {
-
 
12601
      case SUPPLIER:
-
 
12602
        return getSupplier();
-
 
12603
 
-
 
12604
      }
-
 
12605
      throw new IllegalStateException();
-
 
12606
    }
-
 
12607
 
-
 
12608
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
12609
    public boolean isSet(_Fields field) {
-
 
12610
      if (field == null) {
-
 
12611
        throw new IllegalArgumentException();
-
 
12612
      }
-
 
12613
 
-
 
12614
      switch (field) {
-
 
12615
      case SUPPLIER:
-
 
12616
        return isSetSupplier();
-
 
12617
      }
-
 
12618
      throw new IllegalStateException();
-
 
12619
    }
-
 
12620
 
-
 
12621
    @Override
-
 
12622
    public boolean equals(Object that) {
-
 
12623
      if (that == null)
-
 
12624
        return false;
-
 
12625
      if (that instanceof updateSupplier_args)
-
 
12626
        return this.equals((updateSupplier_args)that);
-
 
12627
      return false;
-
 
12628
    }
-
 
12629
 
-
 
12630
    public boolean equals(updateSupplier_args that) {
-
 
12631
      if (that == null)
-
 
12632
        return false;
-
 
12633
 
-
 
12634
      boolean this_present_supplier = true && this.isSetSupplier();
-
 
12635
      boolean that_present_supplier = true && that.isSetSupplier();
-
 
12636
      if (this_present_supplier || that_present_supplier) {
-
 
12637
        if (!(this_present_supplier && that_present_supplier))
-
 
12638
          return false;
-
 
12639
        if (!this.supplier.equals(that.supplier))
-
 
12640
          return false;
-
 
12641
      }
-
 
12642
 
-
 
12643
      return true;
-
 
12644
    }
-
 
12645
 
-
 
12646
    @Override
-
 
12647
    public int hashCode() {
-
 
12648
      return 0;
-
 
12649
    }
-
 
12650
 
-
 
12651
    public int compareTo(updateSupplier_args other) {
-
 
12652
      if (!getClass().equals(other.getClass())) {
-
 
12653
        return getClass().getName().compareTo(other.getClass().getName());
-
 
12654
      }
-
 
12655
 
-
 
12656
      int lastComparison = 0;
-
 
12657
      updateSupplier_args typedOther = (updateSupplier_args)other;
-
 
12658
 
-
 
12659
      lastComparison = Boolean.valueOf(isSetSupplier()).compareTo(typedOther.isSetSupplier());
-
 
12660
      if (lastComparison != 0) {
-
 
12661
        return lastComparison;
-
 
12662
      }
-
 
12663
      if (isSetSupplier()) {
-
 
12664
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.supplier, typedOther.supplier);
-
 
12665
        if (lastComparison != 0) {
-
 
12666
          return lastComparison;
-
 
12667
        }
-
 
12668
      }
-
 
12669
      return 0;
-
 
12670
    }
-
 
12671
 
-
 
12672
    public _Fields fieldForId(int fieldId) {
-
 
12673
      return _Fields.findByThriftId(fieldId);
-
 
12674
    }
-
 
12675
 
-
 
12676
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
12677
      org.apache.thrift.protocol.TField field;
-
 
12678
      iprot.readStructBegin();
-
 
12679
      while (true)
-
 
12680
      {
-
 
12681
        field = iprot.readFieldBegin();
-
 
12682
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
12683
          break;
-
 
12684
        }
-
 
12685
        switch (field.id) {
-
 
12686
          case 1: // SUPPLIER
-
 
12687
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
12688
              this.supplier = new Supplier();
-
 
12689
              this.supplier.read(iprot);
-
 
12690
            } else { 
-
 
12691
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
12692
            }
-
 
12693
            break;
-
 
12694
          default:
-
 
12695
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
12696
        }
-
 
12697
        iprot.readFieldEnd();
-
 
12698
      }
-
 
12699
      iprot.readStructEnd();
-
 
12700
      validate();
-
 
12701
    }
-
 
12702
 
-
 
12703
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
12704
      validate();
-
 
12705
 
-
 
12706
      oprot.writeStructBegin(STRUCT_DESC);
-
 
12707
      if (this.supplier != null) {
-
 
12708
        oprot.writeFieldBegin(SUPPLIER_FIELD_DESC);
-
 
12709
        this.supplier.write(oprot);
-
 
12710
        oprot.writeFieldEnd();
-
 
12711
      }
-
 
12712
      oprot.writeFieldStop();
-
 
12713
      oprot.writeStructEnd();
-
 
12714
    }
-
 
12715
 
-
 
12716
    @Override
-
 
12717
    public String toString() {
-
 
12718
      StringBuilder sb = new StringBuilder("updateSupplier_args(");
-
 
12719
      boolean first = true;
-
 
12720
 
-
 
12721
      sb.append("supplier:");
-
 
12722
      if (this.supplier == null) {
-
 
12723
        sb.append("null");
-
 
12724
      } else {
-
 
12725
        sb.append(this.supplier);
-
 
12726
      }
-
 
12727
      first = false;
-
 
12728
      sb.append(")");
-
 
12729
      return sb.toString();
-
 
12730
    }
-
 
12731
 
-
 
12732
    public void validate() throws org.apache.thrift.TException {
-
 
12733
      // check for required fields
-
 
12734
    }
-
 
12735
 
-
 
12736
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
12737
      try {
-
 
12738
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
12739
      } catch (org.apache.thrift.TException te) {
-
 
12740
        throw new java.io.IOException(te);
-
 
12741
      }
-
 
12742
    }
-
 
12743
 
-
 
12744
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
12745
      try {
-
 
12746
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
12747
      } catch (org.apache.thrift.TException te) {
-
 
12748
        throw new java.io.IOException(te);
-
 
12749
      }
-
 
12750
    }
-
 
12751
 
-
 
12752
  }
-
 
12753
 
-
 
12754
  public static class updateSupplier_result implements org.apache.thrift.TBase<updateSupplier_result, updateSupplier_result._Fields>, java.io.Serializable, Cloneable   {
-
 
12755
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateSupplier_result");
-
 
12756
 
-
 
12757
 
-
 
12758
 
-
 
12759
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
12760
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
12761
;
-
 
12762
 
-
 
12763
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
12764
 
-
 
12765
      static {
-
 
12766
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
12767
          byName.put(field.getFieldName(), field);
-
 
12768
        }
-
 
12769
      }
-
 
12770
 
-
 
12771
      /**
-
 
12772
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
12773
       */
-
 
12774
      public static _Fields findByThriftId(int fieldId) {
-
 
12775
        switch(fieldId) {
-
 
12776
          default:
-
 
12777
            return null;
-
 
12778
        }
-
 
12779
      }
-
 
12780
 
-
 
12781
      /**
-
 
12782
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
12783
       * if it is not found.
-
 
12784
       */
-
 
12785
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
12786
        _Fields fields = findByThriftId(fieldId);
-
 
12787
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
12788
        return fields;
-
 
12789
      }
-
 
12790
 
-
 
12791
      /**
-
 
12792
       * Find the _Fields constant that matches name, or null if its not found.
-
 
12793
       */
-
 
12794
      public static _Fields findByName(String name) {
-
 
12795
        return byName.get(name);
-
 
12796
      }
-
 
12797
 
-
 
12798
      private final short _thriftId;
-
 
12799
      private final String _fieldName;
-
 
12800
 
-
 
12801
      _Fields(short thriftId, String fieldName) {
-
 
12802
        _thriftId = thriftId;
-
 
12803
        _fieldName = fieldName;
-
 
12804
      }
-
 
12805
 
-
 
12806
      public short getThriftFieldId() {
-
 
12807
        return _thriftId;
-
 
12808
      }
-
 
12809
 
-
 
12810
      public String getFieldName() {
-
 
12811
        return _fieldName;
-
 
12812
      }
-
 
12813
    }
-
 
12814
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
12815
    static {
-
 
12816
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
12817
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
12818
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateSupplier_result.class, metaDataMap);
-
 
12819
    }
-
 
12820
 
-
 
12821
    public updateSupplier_result() {
-
 
12822
    }
-
 
12823
 
-
 
12824
    /**
-
 
12825
     * Performs a deep copy on <i>other</i>.
-
 
12826
     */
-
 
12827
    public updateSupplier_result(updateSupplier_result other) {
-
 
12828
    }
-
 
12829
 
-
 
12830
    public updateSupplier_result deepCopy() {
-
 
12831
      return new updateSupplier_result(this);
-
 
12832
    }
-
 
12833
 
-
 
12834
    @Override
-
 
12835
    public void clear() {
-
 
12836
    }
-
 
12837
 
-
 
12838
    public void setFieldValue(_Fields field, Object value) {
-
 
12839
      switch (field) {
-
 
12840
      }
-
 
12841
    }
-
 
12842
 
-
 
12843
    public Object getFieldValue(_Fields field) {
-
 
12844
      switch (field) {
-
 
12845
      }
-
 
12846
      throw new IllegalStateException();
-
 
12847
    }
-
 
12848
 
-
 
12849
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
12850
    public boolean isSet(_Fields field) {
-
 
12851
      if (field == null) {
-
 
12852
        throw new IllegalArgumentException();
-
 
12853
      }
-
 
12854
 
-
 
12855
      switch (field) {
-
 
12856
      }
-
 
12857
      throw new IllegalStateException();
-
 
12858
    }
-
 
12859
 
-
 
12860
    @Override
-
 
12861
    public boolean equals(Object that) {
-
 
12862
      if (that == null)
-
 
12863
        return false;
-
 
12864
      if (that instanceof updateSupplier_result)
-
 
12865
        return this.equals((updateSupplier_result)that);
-
 
12866
      return false;
-
 
12867
    }
-
 
12868
 
-
 
12869
    public boolean equals(updateSupplier_result that) {
-
 
12870
      if (that == null)
-
 
12871
        return false;
-
 
12872
 
-
 
12873
      return true;
-
 
12874
    }
-
 
12875
 
-
 
12876
    @Override
-
 
12877
    public int hashCode() {
-
 
12878
      return 0;
-
 
12879
    }
-
 
12880
 
-
 
12881
    public int compareTo(updateSupplier_result other) {
-
 
12882
      if (!getClass().equals(other.getClass())) {
-
 
12883
        return getClass().getName().compareTo(other.getClass().getName());
-
 
12884
      }
-
 
12885
 
-
 
12886
      int lastComparison = 0;
-
 
12887
      updateSupplier_result typedOther = (updateSupplier_result)other;
-
 
12888
 
-
 
12889
      return 0;
-
 
12890
    }
-
 
12891
 
-
 
12892
    public _Fields fieldForId(int fieldId) {
-
 
12893
      return _Fields.findByThriftId(fieldId);
-
 
12894
    }
-
 
12895
 
-
 
12896
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
12897
      org.apache.thrift.protocol.TField field;
-
 
12898
      iprot.readStructBegin();
-
 
12899
      while (true)
-
 
12900
      {
-
 
12901
        field = iprot.readFieldBegin();
-
 
12902
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
12903
          break;
-
 
12904
        }
-
 
12905
        switch (field.id) {
-
 
12906
          default:
-
 
12907
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
12908
        }
-
 
12909
        iprot.readFieldEnd();
-
 
12910
      }
-
 
12911
      iprot.readStructEnd();
-
 
12912
      validate();
-
 
12913
    }
-
 
12914
 
-
 
12915
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
12916
      oprot.writeStructBegin(STRUCT_DESC);
-
 
12917
 
-
 
12918
      oprot.writeFieldStop();
-
 
12919
      oprot.writeStructEnd();
-
 
12920
    }
-
 
12921
 
-
 
12922
    @Override
-
 
12923
    public String toString() {
-
 
12924
      StringBuilder sb = new StringBuilder("updateSupplier_result(");
-
 
12925
      boolean first = true;
-
 
12926
 
-
 
12927
      sb.append(")");
-
 
12928
      return sb.toString();
-
 
12929
    }
-
 
12930
 
-
 
12931
    public void validate() throws org.apache.thrift.TException {
11690
      // check for required fields
12932
      // check for required fields
11691
    }
12933
    }
11692
 
12934
 
11693
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12935
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11694
      try {
12936
      try {