Subversion Repositories SmartDukaan

Rev

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

Rev 5713 Rev 5833
Line 832... Line 832...
832
 
832
 
833
    public List<Order> getReceivedAtStoreOrders(long storeId) throws org.apache.thrift.TException;
833
    public List<Order> getReceivedAtStoreOrders(long storeId) throws org.apache.thrift.TException;
834
 
834
 
835
    public List<Order> getOrdersCollectionAtStore(long storeId, long fromDate, long toDate, boolean onlyCod) throws org.apache.thrift.TException;
835
    public List<Order> getOrdersCollectionAtStore(long storeId, long fromDate, long toDate, boolean onlyCod) throws org.apache.thrift.TException;
836
 
836
 
-
 
837
    public String getOrderAttributeValue(long orderId, String attributeName) throws org.apache.thrift.TException;
-
 
838
 
837
    /**
839
    /**
838
     * Accepts appropriate order for an item in a given billingWarehouse. Usually
840
     * Accepts appropriate order for an item in a given billingWarehouse. Usually
839
     * invoked while scanning IN of items.
841
     * invoked while scanning IN of items.
840
     * 
842
     * 
841
     * @param itemId
843
     * @param itemId
Line 1093... Line 1095...
1093
 
1095
 
1094
    public void getReceivedAtStoreOrders(long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReceivedAtStoreOrders_call> resultHandler) throws org.apache.thrift.TException;
1096
    public void getReceivedAtStoreOrders(long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReceivedAtStoreOrders_call> resultHandler) throws org.apache.thrift.TException;
1095
 
1097
 
1096
    public void getOrdersCollectionAtStore(long storeId, long fromDate, long toDate, boolean onlyCod, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersCollectionAtStore_call> resultHandler) throws org.apache.thrift.TException;
1098
    public void getOrdersCollectionAtStore(long storeId, long fromDate, long toDate, boolean onlyCod, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersCollectionAtStore_call> resultHandler) throws org.apache.thrift.TException;
1097
 
1099
 
-
 
1100
    public void getOrderAttributeValue(long orderId, String attributeName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderAttributeValue_call> resultHandler) throws org.apache.thrift.TException;
-
 
1101
 
1098
    public void acceptOrderForItem(long itemId, long quantity, long fulfilmentWarehouseId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.acceptOrderForItem_call> resultHandler) throws org.apache.thrift.TException;
1102
    public void acceptOrderForItem(long itemId, long quantity, long fulfilmentWarehouseId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.acceptOrderForItem_call> resultHandler) throws org.apache.thrift.TException;
1099
 
1103
 
1100
  }
1104
  }
1101
 
1105
 
1102
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1106
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
Line 4243... Line 4247...
4243
        return result.success;
4247
        return result.success;
4244
      }
4248
      }
4245
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrdersCollectionAtStore failed: unknown result");
4249
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrdersCollectionAtStore failed: unknown result");
4246
    }
4250
    }
4247
 
4251
 
-
 
4252
    public String getOrderAttributeValue(long orderId, String attributeName) throws org.apache.thrift.TException
-
 
4253
    {
-
 
4254
      send_getOrderAttributeValue(orderId, attributeName);
-
 
4255
      return recv_getOrderAttributeValue();
-
 
4256
    }
-
 
4257
 
-
 
4258
    public void send_getOrderAttributeValue(long orderId, String attributeName) throws org.apache.thrift.TException
-
 
4259
    {
-
 
4260
      getOrderAttributeValue_args args = new getOrderAttributeValue_args();
-
 
4261
      args.setOrderId(orderId);
-
 
4262
      args.setAttributeName(attributeName);
-
 
4263
      sendBase("getOrderAttributeValue", args);
-
 
4264
    }
-
 
4265
 
-
 
4266
    public String recv_getOrderAttributeValue() throws org.apache.thrift.TException
-
 
4267
    {
-
 
4268
      getOrderAttributeValue_result result = new getOrderAttributeValue_result();
-
 
4269
      receiveBase(result, "getOrderAttributeValue");
-
 
4270
      if (result.isSetSuccess()) {
-
 
4271
        return result.success;
-
 
4272
      }
-
 
4273
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderAttributeValue failed: unknown result");
-
 
4274
    }
-
 
4275
 
4248
    public void acceptOrderForItem(long itemId, long quantity, long fulfilmentWarehouseId, long billingWarehouseId) throws org.apache.thrift.TException
4276
    public void acceptOrderForItem(long itemId, long quantity, long fulfilmentWarehouseId, long billingWarehouseId) throws org.apache.thrift.TException
4249
    {
4277
    {
4250
      send_acceptOrderForItem(itemId, quantity, fulfilmentWarehouseId, billingWarehouseId);
4278
      send_acceptOrderForItem(itemId, quantity, fulfilmentWarehouseId, billingWarehouseId);
4251
      recv_acceptOrderForItem();
4279
      recv_acceptOrderForItem();
4252
    }
4280
    }
Line 8598... Line 8626...
8598
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
8626
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
8599
        return (new Client(prot)).recv_getOrdersCollectionAtStore();
8627
        return (new Client(prot)).recv_getOrdersCollectionAtStore();
8600
      }
8628
      }
8601
    }
8629
    }
8602
 
8630
 
-
 
8631
    public void getOrderAttributeValue(long orderId, String attributeName, org.apache.thrift.async.AsyncMethodCallback<getOrderAttributeValue_call> resultHandler) throws org.apache.thrift.TException {
-
 
8632
      checkReady();
-
 
8633
      getOrderAttributeValue_call method_call = new getOrderAttributeValue_call(orderId, attributeName, resultHandler, this, ___protocolFactory, ___transport);
-
 
8634
      this.___currentMethod = method_call;
-
 
8635
      ___manager.call(method_call);
-
 
8636
    }
-
 
8637
 
-
 
8638
    public static class getOrderAttributeValue_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
8639
      private long orderId;
-
 
8640
      private String attributeName;
-
 
8641
      public getOrderAttributeValue_call(long orderId, String attributeName, org.apache.thrift.async.AsyncMethodCallback<getOrderAttributeValue_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 {
-
 
8642
        super(client, protocolFactory, transport, resultHandler, false);
-
 
8643
        this.orderId = orderId;
-
 
8644
        this.attributeName = attributeName;
-
 
8645
      }
-
 
8646
 
-
 
8647
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
8648
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrderAttributeValue", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
8649
        getOrderAttributeValue_args args = new getOrderAttributeValue_args();
-
 
8650
        args.setOrderId(orderId);
-
 
8651
        args.setAttributeName(attributeName);
-
 
8652
        args.write(prot);
-
 
8653
        prot.writeMessageEnd();
-
 
8654
      }
-
 
8655
 
-
 
8656
      public String getResult() throws org.apache.thrift.TException {
-
 
8657
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
8658
          throw new IllegalStateException("Method call not finished!");
-
 
8659
        }
-
 
8660
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
8661
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
8662
        return (new Client(prot)).recv_getOrderAttributeValue();
-
 
8663
      }
-
 
8664
    }
-
 
8665
 
8603
    public void acceptOrderForItem(long itemId, long quantity, long fulfilmentWarehouseId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<acceptOrderForItem_call> resultHandler) throws org.apache.thrift.TException {
8666
    public void acceptOrderForItem(long itemId, long quantity, long fulfilmentWarehouseId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<acceptOrderForItem_call> resultHandler) throws org.apache.thrift.TException {
8604
      checkReady();
8667
      checkReady();
8605
      acceptOrderForItem_call method_call = new acceptOrderForItem_call(itemId, quantity, fulfilmentWarehouseId, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
8668
      acceptOrderForItem_call method_call = new acceptOrderForItem_call(itemId, quantity, fulfilmentWarehouseId, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
8606
      this.___currentMethod = method_call;
8669
      this.___currentMethod = method_call;
8607
      ___manager.call(method_call);
8670
      ___manager.call(method_call);
Line 8775... Line 8838...
8775
      processMap.put("setOrderAttributes", new setOrderAttributes());
8838
      processMap.put("setOrderAttributes", new setOrderAttributes());
8776
      processMap.put("setOrderAttributeForTransaction", new setOrderAttributeForTransaction());
8839
      processMap.put("setOrderAttributeForTransaction", new setOrderAttributeForTransaction());
8777
      processMap.put("getReceivePendingOrders", new getReceivePendingOrders());
8840
      processMap.put("getReceivePendingOrders", new getReceivePendingOrders());
8778
      processMap.put("getReceivedAtStoreOrders", new getReceivedAtStoreOrders());
8841
      processMap.put("getReceivedAtStoreOrders", new getReceivedAtStoreOrders());
8779
      processMap.put("getOrdersCollectionAtStore", new getOrdersCollectionAtStore());
8842
      processMap.put("getOrdersCollectionAtStore", new getOrdersCollectionAtStore());
-
 
8843
      processMap.put("getOrderAttributeValue", new getOrderAttributeValue());
8780
      processMap.put("acceptOrderForItem", new acceptOrderForItem());
8844
      processMap.put("acceptOrderForItem", new acceptOrderForItem());
8781
      return processMap;
8845
      return processMap;
8782
    }
8846
    }
8783
 
8847
 
8784
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
8848
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
Line 11141... Line 11205...
11141
        result.success = iface.getOrdersCollectionAtStore(args.storeId, args.fromDate, args.toDate, args.onlyCod);
11205
        result.success = iface.getOrdersCollectionAtStore(args.storeId, args.fromDate, args.toDate, args.onlyCod);
11142
        return result;
11206
        return result;
11143
      }
11207
      }
11144
    }
11208
    }
11145
 
11209
 
-
 
11210
    private static class getOrderAttributeValue<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrderAttributeValue_args> {
-
 
11211
      public getOrderAttributeValue() {
-
 
11212
        super("getOrderAttributeValue");
-
 
11213
      }
-
 
11214
 
-
 
11215
      protected getOrderAttributeValue_args getEmptyArgsInstance() {
-
 
11216
        return new getOrderAttributeValue_args();
-
 
11217
      }
-
 
11218
 
-
 
11219
      protected getOrderAttributeValue_result getResult(I iface, getOrderAttributeValue_args args) throws org.apache.thrift.TException {
-
 
11220
        getOrderAttributeValue_result result = new getOrderAttributeValue_result();
-
 
11221
        result.success = iface.getOrderAttributeValue(args.orderId, args.attributeName);
-
 
11222
        return result;
-
 
11223
      }
-
 
11224
    }
-
 
11225
 
11146
    private static class acceptOrderForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, acceptOrderForItem_args> {
11226
    private static class acceptOrderForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, acceptOrderForItem_args> {
11147
      public acceptOrderForItem() {
11227
      public acceptOrderForItem() {
11148
        super("acceptOrderForItem");
11228
        super("acceptOrderForItem");
11149
      }
11229
      }
11150
 
11230
 
Line 101864... Line 101944...
101864
      boolean first = true;
101944
      boolean first = true;
101865
 
101945
 
101866
      sb.append("success:");
101946
      sb.append("success:");
101867
      if (this.success == null) {
101947
      if (this.success == null) {
101868
        sb.append("null");
101948
        sb.append("null");
-
 
101949
      } else {
-
 
101950
        sb.append(this.success);
-
 
101951
      }
-
 
101952
      first = false;
-
 
101953
      sb.append(")");
-
 
101954
      return sb.toString();
-
 
101955
    }
-
 
101956
 
-
 
101957
    public void validate() throws org.apache.thrift.TException {
-
 
101958
      // check for required fields
-
 
101959
    }
-
 
101960
 
-
 
101961
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
101962
      try {
-
 
101963
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
101964
      } catch (org.apache.thrift.TException te) {
-
 
101965
        throw new java.io.IOException(te);
-
 
101966
      }
-
 
101967
    }
-
 
101968
 
-
 
101969
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
101970
      try {
-
 
101971
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
101972
      } catch (org.apache.thrift.TException te) {
-
 
101973
        throw new java.io.IOException(te);
-
 
101974
      }
-
 
101975
    }
-
 
101976
 
-
 
101977
  }
-
 
101978
 
-
 
101979
  public static class getOrderAttributeValue_args implements org.apache.thrift.TBase<getOrderAttributeValue_args, getOrderAttributeValue_args._Fields>, java.io.Serializable, Cloneable   {
-
 
101980
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderAttributeValue_args");
-
 
101981
 
-
 
101982
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
101983
    private static final org.apache.thrift.protocol.TField ATTRIBUTE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("attributeName", org.apache.thrift.protocol.TType.STRING, (short)-1);
-
 
101984
 
-
 
101985
    private long orderId; // required
-
 
101986
    private String attributeName; // required
-
 
101987
 
-
 
101988
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
101989
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
101990
      ORDER_ID((short)1, "orderId"),
-
 
101991
      ATTRIBUTE_NAME((short)-1, "attributeName");
-
 
101992
 
-
 
101993
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
101994
 
-
 
101995
      static {
-
 
101996
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
101997
          byName.put(field.getFieldName(), field);
-
 
101998
        }
-
 
101999
      }
-
 
102000
 
-
 
102001
      /**
-
 
102002
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
102003
       */
-
 
102004
      public static _Fields findByThriftId(int fieldId) {
-
 
102005
        switch(fieldId) {
-
 
102006
          case 1: // ORDER_ID
-
 
102007
            return ORDER_ID;
-
 
102008
          case -1: // ATTRIBUTE_NAME
-
 
102009
            return ATTRIBUTE_NAME;
-
 
102010
          default:
-
 
102011
            return null;
-
 
102012
        }
-
 
102013
      }
-
 
102014
 
-
 
102015
      /**
-
 
102016
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
102017
       * if it is not found.
-
 
102018
       */
-
 
102019
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
102020
        _Fields fields = findByThriftId(fieldId);
-
 
102021
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
102022
        return fields;
-
 
102023
      }
-
 
102024
 
-
 
102025
      /**
-
 
102026
       * Find the _Fields constant that matches name, or null if its not found.
-
 
102027
       */
-
 
102028
      public static _Fields findByName(String name) {
-
 
102029
        return byName.get(name);
-
 
102030
      }
-
 
102031
 
-
 
102032
      private final short _thriftId;
-
 
102033
      private final String _fieldName;
-
 
102034
 
-
 
102035
      _Fields(short thriftId, String fieldName) {
-
 
102036
        _thriftId = thriftId;
-
 
102037
        _fieldName = fieldName;
-
 
102038
      }
-
 
102039
 
-
 
102040
      public short getThriftFieldId() {
-
 
102041
        return _thriftId;
-
 
102042
      }
-
 
102043
 
-
 
102044
      public String getFieldName() {
-
 
102045
        return _fieldName;
-
 
102046
      }
-
 
102047
    }
-
 
102048
 
-
 
102049
    // isset id assignments
-
 
102050
    private static final int __ORDERID_ISSET_ID = 0;
-
 
102051
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
102052
 
-
 
102053
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
102054
    static {
-
 
102055
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
102056
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
102057
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
102058
      tmpMap.put(_Fields.ATTRIBUTE_NAME, new org.apache.thrift.meta_data.FieldMetaData("attributeName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
102059
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
102060
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
102061
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderAttributeValue_args.class, metaDataMap);
-
 
102062
    }
-
 
102063
 
-
 
102064
    public getOrderAttributeValue_args() {
-
 
102065
    }
-
 
102066
 
-
 
102067
    public getOrderAttributeValue_args(
-
 
102068
      long orderId,
-
 
102069
      String attributeName)
-
 
102070
    {
-
 
102071
      this();
-
 
102072
      this.orderId = orderId;
-
 
102073
      setOrderIdIsSet(true);
-
 
102074
      this.attributeName = attributeName;
-
 
102075
    }
-
 
102076
 
-
 
102077
    /**
-
 
102078
     * Performs a deep copy on <i>other</i>.
-
 
102079
     */
-
 
102080
    public getOrderAttributeValue_args(getOrderAttributeValue_args other) {
-
 
102081
      __isset_bit_vector.clear();
-
 
102082
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
102083
      this.orderId = other.orderId;
-
 
102084
      if (other.isSetAttributeName()) {
-
 
102085
        this.attributeName = other.attributeName;
-
 
102086
      }
-
 
102087
    }
-
 
102088
 
-
 
102089
    public getOrderAttributeValue_args deepCopy() {
-
 
102090
      return new getOrderAttributeValue_args(this);
-
 
102091
    }
-
 
102092
 
-
 
102093
    @Override
-
 
102094
    public void clear() {
-
 
102095
      setOrderIdIsSet(false);
-
 
102096
      this.orderId = 0;
-
 
102097
      this.attributeName = null;
-
 
102098
    }
-
 
102099
 
-
 
102100
    public long getOrderId() {
-
 
102101
      return this.orderId;
-
 
102102
    }
-
 
102103
 
-
 
102104
    public void setOrderId(long orderId) {
-
 
102105
      this.orderId = orderId;
-
 
102106
      setOrderIdIsSet(true);
-
 
102107
    }
-
 
102108
 
-
 
102109
    public void unsetOrderId() {
-
 
102110
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
102111
    }
-
 
102112
 
-
 
102113
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
-
 
102114
    public boolean isSetOrderId() {
-
 
102115
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
102116
    }
-
 
102117
 
-
 
102118
    public void setOrderIdIsSet(boolean value) {
-
 
102119
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
102120
    }
-
 
102121
 
-
 
102122
    public String getAttributeName() {
-
 
102123
      return this.attributeName;
-
 
102124
    }
-
 
102125
 
-
 
102126
    public void setAttributeName(String attributeName) {
-
 
102127
      this.attributeName = attributeName;
-
 
102128
    }
-
 
102129
 
-
 
102130
    public void unsetAttributeName() {
-
 
102131
      this.attributeName = null;
-
 
102132
    }
-
 
102133
 
-
 
102134
    /** Returns true if field attributeName is set (has been assigned a value) and false otherwise */
-
 
102135
    public boolean isSetAttributeName() {
-
 
102136
      return this.attributeName != null;
-
 
102137
    }
-
 
102138
 
-
 
102139
    public void setAttributeNameIsSet(boolean value) {
-
 
102140
      if (!value) {
-
 
102141
        this.attributeName = null;
-
 
102142
      }
-
 
102143
    }
-
 
102144
 
-
 
102145
    public void setFieldValue(_Fields field, Object value) {
-
 
102146
      switch (field) {
-
 
102147
      case ORDER_ID:
-
 
102148
        if (value == null) {
-
 
102149
          unsetOrderId();
-
 
102150
        } else {
-
 
102151
          setOrderId((Long)value);
-
 
102152
        }
-
 
102153
        break;
-
 
102154
 
-
 
102155
      case ATTRIBUTE_NAME:
-
 
102156
        if (value == null) {
-
 
102157
          unsetAttributeName();
-
 
102158
        } else {
-
 
102159
          setAttributeName((String)value);
-
 
102160
        }
-
 
102161
        break;
-
 
102162
 
-
 
102163
      }
-
 
102164
    }
-
 
102165
 
-
 
102166
    public Object getFieldValue(_Fields field) {
-
 
102167
      switch (field) {
-
 
102168
      case ORDER_ID:
-
 
102169
        return Long.valueOf(getOrderId());
-
 
102170
 
-
 
102171
      case ATTRIBUTE_NAME:
-
 
102172
        return getAttributeName();
-
 
102173
 
-
 
102174
      }
-
 
102175
      throw new IllegalStateException();
-
 
102176
    }
-
 
102177
 
-
 
102178
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
102179
    public boolean isSet(_Fields field) {
-
 
102180
      if (field == null) {
-
 
102181
        throw new IllegalArgumentException();
-
 
102182
      }
-
 
102183
 
-
 
102184
      switch (field) {
-
 
102185
      case ORDER_ID:
-
 
102186
        return isSetOrderId();
-
 
102187
      case ATTRIBUTE_NAME:
-
 
102188
        return isSetAttributeName();
-
 
102189
      }
-
 
102190
      throw new IllegalStateException();
-
 
102191
    }
-
 
102192
 
-
 
102193
    @Override
-
 
102194
    public boolean equals(Object that) {
-
 
102195
      if (that == null)
-
 
102196
        return false;
-
 
102197
      if (that instanceof getOrderAttributeValue_args)
-
 
102198
        return this.equals((getOrderAttributeValue_args)that);
-
 
102199
      return false;
-
 
102200
    }
-
 
102201
 
-
 
102202
    public boolean equals(getOrderAttributeValue_args that) {
-
 
102203
      if (that == null)
-
 
102204
        return false;
-
 
102205
 
-
 
102206
      boolean this_present_orderId = true;
-
 
102207
      boolean that_present_orderId = true;
-
 
102208
      if (this_present_orderId || that_present_orderId) {
-
 
102209
        if (!(this_present_orderId && that_present_orderId))
-
 
102210
          return false;
-
 
102211
        if (this.orderId != that.orderId)
-
 
102212
          return false;
-
 
102213
      }
-
 
102214
 
-
 
102215
      boolean this_present_attributeName = true && this.isSetAttributeName();
-
 
102216
      boolean that_present_attributeName = true && that.isSetAttributeName();
-
 
102217
      if (this_present_attributeName || that_present_attributeName) {
-
 
102218
        if (!(this_present_attributeName && that_present_attributeName))
-
 
102219
          return false;
-
 
102220
        if (!this.attributeName.equals(that.attributeName))
-
 
102221
          return false;
-
 
102222
      }
-
 
102223
 
-
 
102224
      return true;
-
 
102225
    }
-
 
102226
 
-
 
102227
    @Override
-
 
102228
    public int hashCode() {
-
 
102229
      return 0;
-
 
102230
    }
-
 
102231
 
-
 
102232
    public int compareTo(getOrderAttributeValue_args other) {
-
 
102233
      if (!getClass().equals(other.getClass())) {
-
 
102234
        return getClass().getName().compareTo(other.getClass().getName());
-
 
102235
      }
-
 
102236
 
-
 
102237
      int lastComparison = 0;
-
 
102238
      getOrderAttributeValue_args typedOther = (getOrderAttributeValue_args)other;
-
 
102239
 
-
 
102240
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
-
 
102241
      if (lastComparison != 0) {
-
 
102242
        return lastComparison;
-
 
102243
      }
-
 
102244
      if (isSetOrderId()) {
-
 
102245
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
-
 
102246
        if (lastComparison != 0) {
-
 
102247
          return lastComparison;
-
 
102248
        }
-
 
102249
      }
-
 
102250
      lastComparison = Boolean.valueOf(isSetAttributeName()).compareTo(typedOther.isSetAttributeName());
-
 
102251
      if (lastComparison != 0) {
-
 
102252
        return lastComparison;
-
 
102253
      }
-
 
102254
      if (isSetAttributeName()) {
-
 
102255
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributeName, typedOther.attributeName);
-
 
102256
        if (lastComparison != 0) {
-
 
102257
          return lastComparison;
-
 
102258
        }
-
 
102259
      }
-
 
102260
      return 0;
-
 
102261
    }
-
 
102262
 
-
 
102263
    public _Fields fieldForId(int fieldId) {
-
 
102264
      return _Fields.findByThriftId(fieldId);
-
 
102265
    }
-
 
102266
 
-
 
102267
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
102268
      org.apache.thrift.protocol.TField field;
-
 
102269
      iprot.readStructBegin();
-
 
102270
      while (true)
-
 
102271
      {
-
 
102272
        field = iprot.readFieldBegin();
-
 
102273
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
102274
          break;
-
 
102275
        }
-
 
102276
        switch (field.id) {
-
 
102277
          case 1: // ORDER_ID
-
 
102278
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
102279
              this.orderId = iprot.readI64();
-
 
102280
              setOrderIdIsSet(true);
-
 
102281
            } else { 
-
 
102282
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
102283
            }
-
 
102284
            break;
-
 
102285
          case -1: // ATTRIBUTE_NAME
-
 
102286
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
102287
              this.attributeName = iprot.readString();
-
 
102288
            } else { 
-
 
102289
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
102290
            }
-
 
102291
            break;
-
 
102292
          default:
-
 
102293
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
102294
        }
-
 
102295
        iprot.readFieldEnd();
-
 
102296
      }
-
 
102297
      iprot.readStructEnd();
-
 
102298
      validate();
-
 
102299
    }
-
 
102300
 
-
 
102301
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
102302
      validate();
-
 
102303
 
-
 
102304
      oprot.writeStructBegin(STRUCT_DESC);
-
 
102305
      if (this.attributeName != null) {
-
 
102306
        oprot.writeFieldBegin(ATTRIBUTE_NAME_FIELD_DESC);
-
 
102307
        oprot.writeString(this.attributeName);
-
 
102308
        oprot.writeFieldEnd();
-
 
102309
      }
-
 
102310
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
102311
      oprot.writeI64(this.orderId);
-
 
102312
      oprot.writeFieldEnd();
-
 
102313
      oprot.writeFieldStop();
-
 
102314
      oprot.writeStructEnd();
-
 
102315
    }
-
 
102316
 
-
 
102317
    @Override
-
 
102318
    public String toString() {
-
 
102319
      StringBuilder sb = new StringBuilder("getOrderAttributeValue_args(");
-
 
102320
      boolean first = true;
-
 
102321
 
-
 
102322
      sb.append("orderId:");
-
 
102323
      sb.append(this.orderId);
-
 
102324
      first = false;
-
 
102325
      if (!first) sb.append(", ");
-
 
102326
      sb.append("attributeName:");
-
 
102327
      if (this.attributeName == null) {
-
 
102328
        sb.append("null");
-
 
102329
      } else {
-
 
102330
        sb.append(this.attributeName);
-
 
102331
      }
-
 
102332
      first = false;
-
 
102333
      sb.append(")");
-
 
102334
      return sb.toString();
-
 
102335
    }
-
 
102336
 
-
 
102337
    public void validate() throws org.apache.thrift.TException {
-
 
102338
      // check for required fields
-
 
102339
    }
-
 
102340
 
-
 
102341
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
102342
      try {
-
 
102343
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
102344
      } catch (org.apache.thrift.TException te) {
-
 
102345
        throw new java.io.IOException(te);
-
 
102346
      }
-
 
102347
    }
-
 
102348
 
-
 
102349
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
102350
      try {
-
 
102351
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
102352
        __isset_bit_vector = new BitSet(1);
-
 
102353
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
102354
      } catch (org.apache.thrift.TException te) {
-
 
102355
        throw new java.io.IOException(te);
-
 
102356
      }
-
 
102357
    }
-
 
102358
 
-
 
102359
  }
-
 
102360
 
-
 
102361
  public static class getOrderAttributeValue_result implements org.apache.thrift.TBase<getOrderAttributeValue_result, getOrderAttributeValue_result._Fields>, java.io.Serializable, Cloneable   {
-
 
102362
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderAttributeValue_result");
-
 
102363
 
-
 
102364
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);
-
 
102365
 
-
 
102366
    private String success; // required
-
 
102367
 
-
 
102368
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
102369
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
102370
      SUCCESS((short)0, "success");
-
 
102371
 
-
 
102372
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
102373
 
-
 
102374
      static {
-
 
102375
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
102376
          byName.put(field.getFieldName(), field);
-
 
102377
        }
-
 
102378
      }
-
 
102379
 
-
 
102380
      /**
-
 
102381
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
102382
       */
-
 
102383
      public static _Fields findByThriftId(int fieldId) {
-
 
102384
        switch(fieldId) {
-
 
102385
          case 0: // SUCCESS
-
 
102386
            return SUCCESS;
-
 
102387
          default:
-
 
102388
            return null;
-
 
102389
        }
-
 
102390
      }
-
 
102391
 
-
 
102392
      /**
-
 
102393
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
102394
       * if it is not found.
-
 
102395
       */
-
 
102396
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
102397
        _Fields fields = findByThriftId(fieldId);
-
 
102398
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
102399
        return fields;
-
 
102400
      }
-
 
102401
 
-
 
102402
      /**
-
 
102403
       * Find the _Fields constant that matches name, or null if its not found.
-
 
102404
       */
-
 
102405
      public static _Fields findByName(String name) {
-
 
102406
        return byName.get(name);
-
 
102407
      }
-
 
102408
 
-
 
102409
      private final short _thriftId;
-
 
102410
      private final String _fieldName;
-
 
102411
 
-
 
102412
      _Fields(short thriftId, String fieldName) {
-
 
102413
        _thriftId = thriftId;
-
 
102414
        _fieldName = fieldName;
-
 
102415
      }
-
 
102416
 
-
 
102417
      public short getThriftFieldId() {
-
 
102418
        return _thriftId;
-
 
102419
      }
-
 
102420
 
-
 
102421
      public String getFieldName() {
-
 
102422
        return _fieldName;
-
 
102423
      }
-
 
102424
    }
-
 
102425
 
-
 
102426
    // isset id assignments
-
 
102427
 
-
 
102428
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
102429
    static {
-
 
102430
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
102431
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
102432
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
102433
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
102434
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderAttributeValue_result.class, metaDataMap);
-
 
102435
    }
-
 
102436
 
-
 
102437
    public getOrderAttributeValue_result() {
-
 
102438
    }
-
 
102439
 
-
 
102440
    public getOrderAttributeValue_result(
-
 
102441
      String success)
-
 
102442
    {
-
 
102443
      this();
-
 
102444
      this.success = success;
-
 
102445
    }
-
 
102446
 
-
 
102447
    /**
-
 
102448
     * Performs a deep copy on <i>other</i>.
-
 
102449
     */
-
 
102450
    public getOrderAttributeValue_result(getOrderAttributeValue_result other) {
-
 
102451
      if (other.isSetSuccess()) {
-
 
102452
        this.success = other.success;
-
 
102453
      }
-
 
102454
    }
-
 
102455
 
-
 
102456
    public getOrderAttributeValue_result deepCopy() {
-
 
102457
      return new getOrderAttributeValue_result(this);
-
 
102458
    }
-
 
102459
 
-
 
102460
    @Override
-
 
102461
    public void clear() {
-
 
102462
      this.success = null;
-
 
102463
    }
-
 
102464
 
-
 
102465
    public String getSuccess() {
-
 
102466
      return this.success;
-
 
102467
    }
-
 
102468
 
-
 
102469
    public void setSuccess(String success) {
-
 
102470
      this.success = success;
-
 
102471
    }
-
 
102472
 
-
 
102473
    public void unsetSuccess() {
-
 
102474
      this.success = null;
-
 
102475
    }
-
 
102476
 
-
 
102477
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
102478
    public boolean isSetSuccess() {
-
 
102479
      return this.success != null;
-
 
102480
    }
-
 
102481
 
-
 
102482
    public void setSuccessIsSet(boolean value) {
-
 
102483
      if (!value) {
-
 
102484
        this.success = null;
-
 
102485
      }
-
 
102486
    }
-
 
102487
 
-
 
102488
    public void setFieldValue(_Fields field, Object value) {
-
 
102489
      switch (field) {
-
 
102490
      case SUCCESS:
-
 
102491
        if (value == null) {
-
 
102492
          unsetSuccess();
-
 
102493
        } else {
-
 
102494
          setSuccess((String)value);
-
 
102495
        }
-
 
102496
        break;
-
 
102497
 
-
 
102498
      }
-
 
102499
    }
-
 
102500
 
-
 
102501
    public Object getFieldValue(_Fields field) {
-
 
102502
      switch (field) {
-
 
102503
      case SUCCESS:
-
 
102504
        return getSuccess();
-
 
102505
 
-
 
102506
      }
-
 
102507
      throw new IllegalStateException();
-
 
102508
    }
-
 
102509
 
-
 
102510
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
102511
    public boolean isSet(_Fields field) {
-
 
102512
      if (field == null) {
-
 
102513
        throw new IllegalArgumentException();
-
 
102514
      }
-
 
102515
 
-
 
102516
      switch (field) {
-
 
102517
      case SUCCESS:
-
 
102518
        return isSetSuccess();
-
 
102519
      }
-
 
102520
      throw new IllegalStateException();
-
 
102521
    }
-
 
102522
 
-
 
102523
    @Override
-
 
102524
    public boolean equals(Object that) {
-
 
102525
      if (that == null)
-
 
102526
        return false;
-
 
102527
      if (that instanceof getOrderAttributeValue_result)
-
 
102528
        return this.equals((getOrderAttributeValue_result)that);
-
 
102529
      return false;
-
 
102530
    }
-
 
102531
 
-
 
102532
    public boolean equals(getOrderAttributeValue_result that) {
-
 
102533
      if (that == null)
-
 
102534
        return false;
-
 
102535
 
-
 
102536
      boolean this_present_success = true && this.isSetSuccess();
-
 
102537
      boolean that_present_success = true && that.isSetSuccess();
-
 
102538
      if (this_present_success || that_present_success) {
-
 
102539
        if (!(this_present_success && that_present_success))
-
 
102540
          return false;
-
 
102541
        if (!this.success.equals(that.success))
-
 
102542
          return false;
-
 
102543
      }
-
 
102544
 
-
 
102545
      return true;
-
 
102546
    }
-
 
102547
 
-
 
102548
    @Override
-
 
102549
    public int hashCode() {
-
 
102550
      return 0;
-
 
102551
    }
-
 
102552
 
-
 
102553
    public int compareTo(getOrderAttributeValue_result other) {
-
 
102554
      if (!getClass().equals(other.getClass())) {
-
 
102555
        return getClass().getName().compareTo(other.getClass().getName());
-
 
102556
      }
-
 
102557
 
-
 
102558
      int lastComparison = 0;
-
 
102559
      getOrderAttributeValue_result typedOther = (getOrderAttributeValue_result)other;
-
 
102560
 
-
 
102561
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
102562
      if (lastComparison != 0) {
-
 
102563
        return lastComparison;
-
 
102564
      }
-
 
102565
      if (isSetSuccess()) {
-
 
102566
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
102567
        if (lastComparison != 0) {
-
 
102568
          return lastComparison;
-
 
102569
        }
-
 
102570
      }
-
 
102571
      return 0;
-
 
102572
    }
-
 
102573
 
-
 
102574
    public _Fields fieldForId(int fieldId) {
-
 
102575
      return _Fields.findByThriftId(fieldId);
-
 
102576
    }
-
 
102577
 
-
 
102578
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
102579
      org.apache.thrift.protocol.TField field;
-
 
102580
      iprot.readStructBegin();
-
 
102581
      while (true)
-
 
102582
      {
-
 
102583
        field = iprot.readFieldBegin();
-
 
102584
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
102585
          break;
-
 
102586
        }
-
 
102587
        switch (field.id) {
-
 
102588
          case 0: // SUCCESS
-
 
102589
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
102590
              this.success = iprot.readString();
-
 
102591
            } else { 
-
 
102592
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
102593
            }
-
 
102594
            break;
-
 
102595
          default:
-
 
102596
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
102597
        }
-
 
102598
        iprot.readFieldEnd();
-
 
102599
      }
-
 
102600
      iprot.readStructEnd();
-
 
102601
      validate();
-
 
102602
    }
-
 
102603
 
-
 
102604
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
102605
      oprot.writeStructBegin(STRUCT_DESC);
-
 
102606
 
-
 
102607
      if (this.isSetSuccess()) {
-
 
102608
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
102609
        oprot.writeString(this.success);
-
 
102610
        oprot.writeFieldEnd();
-
 
102611
      }
-
 
102612
      oprot.writeFieldStop();
-
 
102613
      oprot.writeStructEnd();
-
 
102614
    }
-
 
102615
 
-
 
102616
    @Override
-
 
102617
    public String toString() {
-
 
102618
      StringBuilder sb = new StringBuilder("getOrderAttributeValue_result(");
-
 
102619
      boolean first = true;
-
 
102620
 
-
 
102621
      sb.append("success:");
-
 
102622
      if (this.success == null) {
-
 
102623
        sb.append("null");
101869
      } else {
102624
      } else {
101870
        sb.append(this.success);
102625
        sb.append(this.success);
101871
      }
102626
      }
101872
      first = false;
102627
      first = false;
101873
      sb.append(")");
102628
      sb.append(")");