Subversion Repositories SmartDukaan

Rev

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

Rev 2841 Rev 3430
Line 1... Line 1...
1
/**
1
/**
2
 * Autogenerated by Thrift
2
 * Autogenerated by Thrift Compiler (0.7.0)
3
 *
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
5
 */
6
package in.shop2020.model.v1.catalog;
6
package in.shop2020.model.v1.catalog;
7
 
7
 
Line 13... Line 13...
13
import java.util.Set;
13
import java.util.Set;
14
import java.util.HashSet;
14
import java.util.HashSet;
15
import java.util.EnumSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
16
import java.util.Collections;
17
import java.util.BitSet;
17
import java.util.BitSet;
-
 
18
import java.nio.ByteBuffer;
18
import java.util.Arrays;
19
import java.util.Arrays;
19
import org.slf4j.Logger;
20
import org.slf4j.Logger;
20
import org.slf4j.LoggerFactory;
21
import org.slf4j.LoggerFactory;
21
 
22
 
22
import org.apache.thrift.*;
-
 
23
import org.apache.thrift.meta_data.*;
-
 
24
import org.apache.thrift.protocol.*;
-
 
25
 
-
 
26
public class Warehouse implements TBase<Warehouse._Fields>, java.io.Serializable, Cloneable, Comparable<Warehouse> {
23
public class Warehouse implements org.apache.thrift.TBase<Warehouse, Warehouse._Fields>, java.io.Serializable, Cloneable {
27
  private static final TStruct STRUCT_DESC = new TStruct("Warehouse");
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Warehouse");
28
 
25
 
29
  private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
26
  private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
30
  private static final TField DISPLAY_NAME_FIELD_DESC = new TField("displayName", TType.STRING, (short)2);
27
  private static final org.apache.thrift.protocol.TField DISPLAY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("displayName", org.apache.thrift.protocol.TType.STRING, (short)2);
31
  private static final TField LOCATION_FIELD_DESC = new TField("location", TType.STRING, (short)3);
28
  private static final org.apache.thrift.protocol.TField LOCATION_FIELD_DESC = new org.apache.thrift.protocol.TField("location", org.apache.thrift.protocol.TType.STRING, (short)3);
32
  private static final TField WAREHOUSE_STATUS_FIELD_DESC = new TField("warehouseStatus", TType.I32, (short)4);
29
  private static final org.apache.thrift.protocol.TField WAREHOUSE_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseStatus", org.apache.thrift.protocol.TType.I32, (short)4);
33
  private static final TField ADDED_ON_FIELD_DESC = new TField("addedOn", TType.I64, (short)5);
30
  private static final org.apache.thrift.protocol.TField ADDED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("addedOn", org.apache.thrift.protocol.TType.I64, (short)5);
34
  private static final TField LAST_CHECKED_ON_FIELD_DESC = new TField("lastCheckedOn", TType.I64, (short)6);
31
  private static final org.apache.thrift.protocol.TField LAST_CHECKED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("lastCheckedOn", org.apache.thrift.protocol.TType.I64, (short)6);
35
  private static final TField TIN_NUMBER_FIELD_DESC = new TField("tinNumber", TType.STRING, (short)7);
32
  private static final org.apache.thrift.protocol.TField TIN_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("tinNumber", org.apache.thrift.protocol.TType.STRING, (short)7);
36
  private static final TField PINCODE_FIELD_DESC = new TField("pincode", TType.STRING, (short)8);
33
  private static final org.apache.thrift.protocol.TField PINCODE_FIELD_DESC = new org.apache.thrift.protocol.TField("pincode", org.apache.thrift.protocol.TType.STRING, (short)8);
37
  private static final TField VENDOR_STRING_FIELD_DESC = new TField("vendorString", TType.STRING, (short)9);
34
  private static final org.apache.thrift.protocol.TField VENDOR_STRING_FIELD_DESC = new org.apache.thrift.protocol.TField("vendorString", org.apache.thrift.protocol.TType.STRING, (short)9);
38
  private static final TField LOGISTICS_LOCATION_FIELD_DESC = new TField("logisticsLocation", TType.I32, (short)10);
35
  private static final org.apache.thrift.protocol.TField LOGISTICS_LOCATION_FIELD_DESC = new org.apache.thrift.protocol.TField("logisticsLocation", org.apache.thrift.protocol.TType.I32, (short)10);
39
  private static final TField VENDOR_FIELD_DESC = new TField("vendor", TType.STRING, (short)11);
36
  private static final org.apache.thrift.protocol.TField VENDOR_FIELD_DESC = new org.apache.thrift.protocol.TField("vendor", org.apache.thrift.protocol.TType.STRING, (short)11);
40
  private static final TField VENDOR_ID_FIELD_DESC = new TField("vendorId", TType.I64, (short)12);
37
  private static final org.apache.thrift.protocol.TField VENDOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("vendorId", org.apache.thrift.protocol.TType.I64, (short)12);
41
  private static final TField BILLING_TYPE_FIELD_DESC = new TField("billingType", TType.I32, (short)13);
38
  private static final org.apache.thrift.protocol.TField BILLING_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("billingType", org.apache.thrift.protocol.TType.I32, (short)13);
42
 
39
 
43
  private long id;
40
  private long id; // required
44
  private String displayName;
41
  private String displayName; // required
45
  private String location;
42
  private String location; // required
46
  private status warehouseStatus;
43
  private status warehouseStatus; // required
47
  private long addedOn;
44
  private long addedOn; // required
48
  private long lastCheckedOn;
45
  private long lastCheckedOn; // required
49
  private String tinNumber;
46
  private String tinNumber; // required
50
  private String pincode;
47
  private String pincode; // required
51
  private String vendorString;
48
  private String vendorString; // required
52
  private WarehouseLocation logisticsLocation;
49
  private WarehouseLocation logisticsLocation; // required
53
  private String vendor;
50
  private String vendor; // required
54
  private long vendorId;
51
  private long vendorId; // required
55
  private BillingType billingType;
52
  private BillingType billingType; // required
56
 
53
 
57
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
54
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
58
  public enum _Fields implements TFieldIdEnum {
55
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
59
    ID((short)1, "id"),
56
    ID((short)1, "id"),
60
    DISPLAY_NAME((short)2, "displayName"),
57
    DISPLAY_NAME((short)2, "displayName"),
61
    LOCATION((short)3, "location"),
58
    LOCATION((short)3, "location"),
62
    /**
59
    /**
63
     * 
60
     * 
Line 80... Line 77...
80
     * 
77
     * 
81
     * @see BillingType
78
     * @see BillingType
82
     */
79
     */
83
    BILLING_TYPE((short)13, "billingType");
80
    BILLING_TYPE((short)13, "billingType");
84
 
81
 
85
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
86
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
82
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
87
 
83
 
88
    static {
84
    static {
89
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
85
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
90
        byId.put((int)field._thriftId, field);
-
 
91
        byName.put(field.getFieldName(), field);
86
        byName.put(field.getFieldName(), field);
92
      }
87
      }
93
    }
88
    }
94
 
89
 
95
    /**
90
    /**
96
     * Find the _Fields constant that matches fieldId, or null if its not found.
91
     * Find the _Fields constant that matches fieldId, or null if its not found.
97
     */
92
     */
98
    public static _Fields findByThriftId(int fieldId) {
93
    public static _Fields findByThriftId(int fieldId) {
-
 
94
      switch(fieldId) {
-
 
95
        case 1: // ID
-
 
96
          return ID;
-
 
97
        case 2: // DISPLAY_NAME
-
 
98
          return DISPLAY_NAME;
-
 
99
        case 3: // LOCATION
-
 
100
          return LOCATION;
-
 
101
        case 4: // WAREHOUSE_STATUS
-
 
102
          return WAREHOUSE_STATUS;
-
 
103
        case 5: // ADDED_ON
-
 
104
          return ADDED_ON;
-
 
105
        case 6: // LAST_CHECKED_ON
-
 
106
          return LAST_CHECKED_ON;
-
 
107
        case 7: // TIN_NUMBER
-
 
108
          return TIN_NUMBER;
-
 
109
        case 8: // PINCODE
-
 
110
          return PINCODE;
-
 
111
        case 9: // VENDOR_STRING
-
 
112
          return VENDOR_STRING;
-
 
113
        case 10: // LOGISTICS_LOCATION
99
      return byId.get(fieldId);
114
          return LOGISTICS_LOCATION;
-
 
115
        case 11: // VENDOR
-
 
116
          return VENDOR;
-
 
117
        case 12: // VENDOR_ID
-
 
118
          return VENDOR_ID;
-
 
119
        case 13: // BILLING_TYPE
-
 
120
          return BILLING_TYPE;
-
 
121
        default:
-
 
122
          return null;
-
 
123
      }
100
    }
124
    }
101
 
125
 
102
    /**
126
    /**
103
     * Find the _Fields constant that matches fieldId, throwing an exception
127
     * Find the _Fields constant that matches fieldId, throwing an exception
104
     * if it is not found.
128
     * if it is not found.
Line 138... Line 162...
138
  private static final int __ADDEDON_ISSET_ID = 1;
162
  private static final int __ADDEDON_ISSET_ID = 1;
139
  private static final int __LASTCHECKEDON_ISSET_ID = 2;
163
  private static final int __LASTCHECKEDON_ISSET_ID = 2;
140
  private static final int __VENDORID_ISSET_ID = 3;
164
  private static final int __VENDORID_ISSET_ID = 3;
141
  private BitSet __isset_bit_vector = new BitSet(4);
165
  private BitSet __isset_bit_vector = new BitSet(4);
142
 
166
 
143
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
167
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
144
    put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
-
 
145
        new FieldValueMetaData(TType.I64)));
-
 
146
    put(_Fields.DISPLAY_NAME, new FieldMetaData("displayName", TFieldRequirementType.DEFAULT, 
-
 
147
        new FieldValueMetaData(TType.STRING)));
-
 
148
    put(_Fields.LOCATION, new FieldMetaData("location", TFieldRequirementType.DEFAULT, 
-
 
149
        new FieldValueMetaData(TType.STRING)));
-
 
150
    put(_Fields.WAREHOUSE_STATUS, new FieldMetaData("warehouseStatus", TFieldRequirementType.DEFAULT, 
-
 
151
        new EnumMetaData(TType.ENUM, status.class)));
-
 
152
    put(_Fields.ADDED_ON, new FieldMetaData("addedOn", TFieldRequirementType.DEFAULT, 
-
 
153
        new FieldValueMetaData(TType.I64)));
-
 
154
    put(_Fields.LAST_CHECKED_ON, new FieldMetaData("lastCheckedOn", TFieldRequirementType.DEFAULT, 
-
 
155
        new FieldValueMetaData(TType.I64)));
-
 
156
    put(_Fields.TIN_NUMBER, new FieldMetaData("tinNumber", TFieldRequirementType.DEFAULT, 
-
 
157
        new FieldValueMetaData(TType.STRING)));
-
 
158
    put(_Fields.PINCODE, new FieldMetaData("pincode", TFieldRequirementType.DEFAULT, 
-
 
159
        new FieldValueMetaData(TType.STRING)));
-
 
160
    put(_Fields.VENDOR_STRING, new FieldMetaData("vendorString", TFieldRequirementType.DEFAULT, 
-
 
161
        new FieldValueMetaData(TType.STRING)));
-
 
162
    put(_Fields.LOGISTICS_LOCATION, new FieldMetaData("logisticsLocation", TFieldRequirementType.DEFAULT, 
-
 
163
        new EnumMetaData(TType.ENUM, WarehouseLocation.class)));
-
 
164
    put(_Fields.VENDOR, new FieldMetaData("vendor", TFieldRequirementType.DEFAULT, 
-
 
165
        new FieldValueMetaData(TType.STRING)));
-
 
166
    put(_Fields.VENDOR_ID, new FieldMetaData("vendorId", TFieldRequirementType.DEFAULT, 
-
 
167
        new FieldValueMetaData(TType.I64)));
-
 
168
    put(_Fields.BILLING_TYPE, new FieldMetaData("billingType", TFieldRequirementType.DEFAULT, 
-
 
169
        new EnumMetaData(TType.ENUM, BillingType.class)));
-
 
170
  }});
-
 
171
 
-
 
172
  static {
168
  static {
-
 
169
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
170
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
171
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
172
    tmpMap.put(_Fields.DISPLAY_NAME, new org.apache.thrift.meta_data.FieldMetaData("displayName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
173
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
174
    tmpMap.put(_Fields.LOCATION, new org.apache.thrift.meta_data.FieldMetaData("location", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
175
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
176
    tmpMap.put(_Fields.WAREHOUSE_STATUS, new org.apache.thrift.meta_data.FieldMetaData("warehouseStatus", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
177
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, status.class)));
-
 
178
    tmpMap.put(_Fields.ADDED_ON, new org.apache.thrift.meta_data.FieldMetaData("addedOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
179
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
180
    tmpMap.put(_Fields.LAST_CHECKED_ON, new org.apache.thrift.meta_data.FieldMetaData("lastCheckedOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
181
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
182
    tmpMap.put(_Fields.TIN_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("tinNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
183
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
184
    tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
185
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
186
    tmpMap.put(_Fields.VENDOR_STRING, new org.apache.thrift.meta_data.FieldMetaData("vendorString", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
187
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
188
    tmpMap.put(_Fields.LOGISTICS_LOCATION, new org.apache.thrift.meta_data.FieldMetaData("logisticsLocation", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
189
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, WarehouseLocation.class)));
-
 
190
    tmpMap.put(_Fields.VENDOR, new org.apache.thrift.meta_data.FieldMetaData("vendor", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
191
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
192
    tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
193
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
194
    tmpMap.put(_Fields.BILLING_TYPE, new org.apache.thrift.meta_data.FieldMetaData("billingType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
195
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, BillingType.class)));
-
 
196
    metaDataMap = Collections.unmodifiableMap(tmpMap);
173
    FieldMetaData.addStructMetaDataMap(Warehouse.class, metaDataMap);
197
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Warehouse.class, metaDataMap);
174
  }
198
  }
175
 
199
 
176
  public Warehouse() {
200
  public Warehouse() {
177
  }
201
  }
178
 
202
 
Line 252... Line 276...
252
 
276
 
253
  public Warehouse deepCopy() {
277
  public Warehouse deepCopy() {
254
    return new Warehouse(this);
278
    return new Warehouse(this);
255
  }
279
  }
256
 
280
 
257
  @Deprecated
281
  @Override
258
  public Warehouse clone() {
282
  public void clear() {
-
 
283
    setIdIsSet(false);
-
 
284
    this.id = 0;
-
 
285
    this.displayName = null;
-
 
286
    this.location = null;
259
    return new Warehouse(this);
287
    this.warehouseStatus = null;
-
 
288
    setAddedOnIsSet(false);
-
 
289
    this.addedOn = 0;
-
 
290
    setLastCheckedOnIsSet(false);
-
 
291
    this.lastCheckedOn = 0;
-
 
292
    this.tinNumber = null;
-
 
293
    this.pincode = null;
-
 
294
    this.vendorString = null;
-
 
295
    this.logisticsLocation = null;
-
 
296
    this.vendor = null;
-
 
297
    setVendorIdIsSet(false);
-
 
298
    this.vendorId = 0;
-
 
299
    this.billingType = null;
260
  }
300
  }
261
 
301
 
262
  public long getId() {
302
  public long getId() {
263
    return this.id;
303
    return this.id;
264
  }
304
  }
265
 
305
 
266
  public Warehouse setId(long id) {
306
  public void setId(long id) {
267
    this.id = id;
307
    this.id = id;
268
    setIdIsSet(true);
308
    setIdIsSet(true);
269
    return this;
-
 
270
  }
309
  }
271
 
310
 
272
  public void unsetId() {
311
  public void unsetId() {
273
    __isset_bit_vector.clear(__ID_ISSET_ID);
312
    __isset_bit_vector.clear(__ID_ISSET_ID);
274
  }
313
  }
275
 
314
 
276
  /** Returns true if field id is set (has been asigned a value) and false otherwise */
315
  /** Returns true if field id is set (has been assigned a value) and false otherwise */
277
  public boolean isSetId() {
316
  public boolean isSetId() {
278
    return __isset_bit_vector.get(__ID_ISSET_ID);
317
    return __isset_bit_vector.get(__ID_ISSET_ID);
279
  }
318
  }
280
 
319
 
281
  public void setIdIsSet(boolean value) {
320
  public void setIdIsSet(boolean value) {
Line 284... Line 323...
284
 
323
 
285
  public String getDisplayName() {
324
  public String getDisplayName() {
286
    return this.displayName;
325
    return this.displayName;
287
  }
326
  }
288
 
327
 
289
  public Warehouse setDisplayName(String displayName) {
328
  public void setDisplayName(String displayName) {
290
    this.displayName = displayName;
329
    this.displayName = displayName;
291
    return this;
-
 
292
  }
330
  }
293
 
331
 
294
  public void unsetDisplayName() {
332
  public void unsetDisplayName() {
295
    this.displayName = null;
333
    this.displayName = null;
296
  }
334
  }
297
 
335
 
298
  /** Returns true if field displayName is set (has been asigned a value) and false otherwise */
336
  /** Returns true if field displayName is set (has been assigned a value) and false otherwise */
299
  public boolean isSetDisplayName() {
337
  public boolean isSetDisplayName() {
300
    return this.displayName != null;
338
    return this.displayName != null;
301
  }
339
  }
302
 
340
 
303
  public void setDisplayNameIsSet(boolean value) {
341
  public void setDisplayNameIsSet(boolean value) {
Line 308... Line 346...
308
 
346
 
309
  public String getLocation() {
347
  public String getLocation() {
310
    return this.location;
348
    return this.location;
311
  }
349
  }
312
 
350
 
313
  public Warehouse setLocation(String location) {
351
  public void setLocation(String location) {
314
    this.location = location;
352
    this.location = location;
315
    return this;
-
 
316
  }
353
  }
317
 
354
 
318
  public void unsetLocation() {
355
  public void unsetLocation() {
319
    this.location = null;
356
    this.location = null;
320
  }
357
  }
321
 
358
 
322
  /** Returns true if field location is set (has been asigned a value) and false otherwise */
359
  /** Returns true if field location is set (has been assigned a value) and false otherwise */
323
  public boolean isSetLocation() {
360
  public boolean isSetLocation() {
324
    return this.location != null;
361
    return this.location != null;
325
  }
362
  }
326
 
363
 
327
  public void setLocationIsSet(boolean value) {
364
  public void setLocationIsSet(boolean value) {
Line 340... Line 377...
340
 
377
 
341
  /**
378
  /**
342
   * 
379
   * 
343
   * @see status
380
   * @see status
344
   */
381
   */
345
  public Warehouse setWarehouseStatus(status warehouseStatus) {
382
  public void setWarehouseStatus(status warehouseStatus) {
346
    this.warehouseStatus = warehouseStatus;
383
    this.warehouseStatus = warehouseStatus;
347
    return this;
-
 
348
  }
384
  }
349
 
385
 
350
  public void unsetWarehouseStatus() {
386
  public void unsetWarehouseStatus() {
351
    this.warehouseStatus = null;
387
    this.warehouseStatus = null;
352
  }
388
  }
353
 
389
 
354
  /** Returns true if field warehouseStatus is set (has been asigned a value) and false otherwise */
390
  /** Returns true if field warehouseStatus is set (has been assigned a value) and false otherwise */
355
  public boolean isSetWarehouseStatus() {
391
  public boolean isSetWarehouseStatus() {
356
    return this.warehouseStatus != null;
392
    return this.warehouseStatus != null;
357
  }
393
  }
358
 
394
 
359
  public void setWarehouseStatusIsSet(boolean value) {
395
  public void setWarehouseStatusIsSet(boolean value) {
Line 364... Line 400...
364
 
400
 
365
  public long getAddedOn() {
401
  public long getAddedOn() {
366
    return this.addedOn;
402
    return this.addedOn;
367
  }
403
  }
368
 
404
 
369
  public Warehouse setAddedOn(long addedOn) {
405
  public void setAddedOn(long addedOn) {
370
    this.addedOn = addedOn;
406
    this.addedOn = addedOn;
371
    setAddedOnIsSet(true);
407
    setAddedOnIsSet(true);
372
    return this;
-
 
373
  }
408
  }
374
 
409
 
375
  public void unsetAddedOn() {
410
  public void unsetAddedOn() {
376
    __isset_bit_vector.clear(__ADDEDON_ISSET_ID);
411
    __isset_bit_vector.clear(__ADDEDON_ISSET_ID);
377
  }
412
  }
378
 
413
 
379
  /** Returns true if field addedOn is set (has been asigned a value) and false otherwise */
414
  /** Returns true if field addedOn is set (has been assigned a value) and false otherwise */
380
  public boolean isSetAddedOn() {
415
  public boolean isSetAddedOn() {
381
    return __isset_bit_vector.get(__ADDEDON_ISSET_ID);
416
    return __isset_bit_vector.get(__ADDEDON_ISSET_ID);
382
  }
417
  }
383
 
418
 
384
  public void setAddedOnIsSet(boolean value) {
419
  public void setAddedOnIsSet(boolean value) {
Line 387... Line 422...
387
 
422
 
388
  public long getLastCheckedOn() {
423
  public long getLastCheckedOn() {
389
    return this.lastCheckedOn;
424
    return this.lastCheckedOn;
390
  }
425
  }
391
 
426
 
392
  public Warehouse setLastCheckedOn(long lastCheckedOn) {
427
  public void setLastCheckedOn(long lastCheckedOn) {
393
    this.lastCheckedOn = lastCheckedOn;
428
    this.lastCheckedOn = lastCheckedOn;
394
    setLastCheckedOnIsSet(true);
429
    setLastCheckedOnIsSet(true);
395
    return this;
-
 
396
  }
430
  }
397
 
431
 
398
  public void unsetLastCheckedOn() {
432
  public void unsetLastCheckedOn() {
399
    __isset_bit_vector.clear(__LASTCHECKEDON_ISSET_ID);
433
    __isset_bit_vector.clear(__LASTCHECKEDON_ISSET_ID);
400
  }
434
  }
401
 
435
 
402
  /** Returns true if field lastCheckedOn is set (has been asigned a value) and false otherwise */
436
  /** Returns true if field lastCheckedOn is set (has been assigned a value) and false otherwise */
403
  public boolean isSetLastCheckedOn() {
437
  public boolean isSetLastCheckedOn() {
404
    return __isset_bit_vector.get(__LASTCHECKEDON_ISSET_ID);
438
    return __isset_bit_vector.get(__LASTCHECKEDON_ISSET_ID);
405
  }
439
  }
406
 
440
 
407
  public void setLastCheckedOnIsSet(boolean value) {
441
  public void setLastCheckedOnIsSet(boolean value) {
Line 410... Line 444...
410
 
444
 
411
  public String getTinNumber() {
445
  public String getTinNumber() {
412
    return this.tinNumber;
446
    return this.tinNumber;
413
  }
447
  }
414
 
448
 
415
  public Warehouse setTinNumber(String tinNumber) {
449
  public void setTinNumber(String tinNumber) {
416
    this.tinNumber = tinNumber;
450
    this.tinNumber = tinNumber;
417
    return this;
-
 
418
  }
451
  }
419
 
452
 
420
  public void unsetTinNumber() {
453
  public void unsetTinNumber() {
421
    this.tinNumber = null;
454
    this.tinNumber = null;
422
  }
455
  }
423
 
456
 
424
  /** Returns true if field tinNumber is set (has been asigned a value) and false otherwise */
457
  /** Returns true if field tinNumber is set (has been assigned a value) and false otherwise */
425
  public boolean isSetTinNumber() {
458
  public boolean isSetTinNumber() {
426
    return this.tinNumber != null;
459
    return this.tinNumber != null;
427
  }
460
  }
428
 
461
 
429
  public void setTinNumberIsSet(boolean value) {
462
  public void setTinNumberIsSet(boolean value) {
Line 434... Line 467...
434
 
467
 
435
  public String getPincode() {
468
  public String getPincode() {
436
    return this.pincode;
469
    return this.pincode;
437
  }
470
  }
438
 
471
 
439
  public Warehouse setPincode(String pincode) {
472
  public void setPincode(String pincode) {
440
    this.pincode = pincode;
473
    this.pincode = pincode;
441
    return this;
-
 
442
  }
474
  }
443
 
475
 
444
  public void unsetPincode() {
476
  public void unsetPincode() {
445
    this.pincode = null;
477
    this.pincode = null;
446
  }
478
  }
447
 
479
 
448
  /** Returns true if field pincode is set (has been asigned a value) and false otherwise */
480
  /** Returns true if field pincode is set (has been assigned a value) and false otherwise */
449
  public boolean isSetPincode() {
481
  public boolean isSetPincode() {
450
    return this.pincode != null;
482
    return this.pincode != null;
451
  }
483
  }
452
 
484
 
453
  public void setPincodeIsSet(boolean value) {
485
  public void setPincodeIsSet(boolean value) {
Line 458... Line 490...
458
 
490
 
459
  public String getVendorString() {
491
  public String getVendorString() {
460
    return this.vendorString;
492
    return this.vendorString;
461
  }
493
  }
462
 
494
 
463
  public Warehouse setVendorString(String vendorString) {
495
  public void setVendorString(String vendorString) {
464
    this.vendorString = vendorString;
496
    this.vendorString = vendorString;
465
    return this;
-
 
466
  }
497
  }
467
 
498
 
468
  public void unsetVendorString() {
499
  public void unsetVendorString() {
469
    this.vendorString = null;
500
    this.vendorString = null;
470
  }
501
  }
471
 
502
 
472
  /** Returns true if field vendorString is set (has been asigned a value) and false otherwise */
503
  /** Returns true if field vendorString is set (has been assigned a value) and false otherwise */
473
  public boolean isSetVendorString() {
504
  public boolean isSetVendorString() {
474
    return this.vendorString != null;
505
    return this.vendorString != null;
475
  }
506
  }
476
 
507
 
477
  public void setVendorStringIsSet(boolean value) {
508
  public void setVendorStringIsSet(boolean value) {
Line 490... Line 521...
490
 
521
 
491
  /**
522
  /**
492
   * 
523
   * 
493
   * @see WarehouseLocation
524
   * @see WarehouseLocation
494
   */
525
   */
495
  public Warehouse setLogisticsLocation(WarehouseLocation logisticsLocation) {
526
  public void setLogisticsLocation(WarehouseLocation logisticsLocation) {
496
    this.logisticsLocation = logisticsLocation;
527
    this.logisticsLocation = logisticsLocation;
497
    return this;
-
 
498
  }
528
  }
499
 
529
 
500
  public void unsetLogisticsLocation() {
530
  public void unsetLogisticsLocation() {
501
    this.logisticsLocation = null;
531
    this.logisticsLocation = null;
502
  }
532
  }
503
 
533
 
504
  /** Returns true if field logisticsLocation is set (has been asigned a value) and false otherwise */
534
  /** Returns true if field logisticsLocation is set (has been assigned a value) and false otherwise */
505
  public boolean isSetLogisticsLocation() {
535
  public boolean isSetLogisticsLocation() {
506
    return this.logisticsLocation != null;
536
    return this.logisticsLocation != null;
507
  }
537
  }
508
 
538
 
509
  public void setLogisticsLocationIsSet(boolean value) {
539
  public void setLogisticsLocationIsSet(boolean value) {
Line 514... Line 544...
514
 
544
 
515
  public String getVendor() {
545
  public String getVendor() {
516
    return this.vendor;
546
    return this.vendor;
517
  }
547
  }
518
 
548
 
519
  public Warehouse setVendor(String vendor) {
549
  public void setVendor(String vendor) {
520
    this.vendor = vendor;
550
    this.vendor = vendor;
521
    return this;
-
 
522
  }
551
  }
523
 
552
 
524
  public void unsetVendor() {
553
  public void unsetVendor() {
525
    this.vendor = null;
554
    this.vendor = null;
526
  }
555
  }
527
 
556
 
528
  /** Returns true if field vendor is set (has been asigned a value) and false otherwise */
557
  /** Returns true if field vendor is set (has been assigned a value) and false otherwise */
529
  public boolean isSetVendor() {
558
  public boolean isSetVendor() {
530
    return this.vendor != null;
559
    return this.vendor != null;
531
  }
560
  }
532
 
561
 
533
  public void setVendorIsSet(boolean value) {
562
  public void setVendorIsSet(boolean value) {
Line 538... Line 567...
538
 
567
 
539
  public long getVendorId() {
568
  public long getVendorId() {
540
    return this.vendorId;
569
    return this.vendorId;
541
  }
570
  }
542
 
571
 
543
  public Warehouse setVendorId(long vendorId) {
572
  public void setVendorId(long vendorId) {
544
    this.vendorId = vendorId;
573
    this.vendorId = vendorId;
545
    setVendorIdIsSet(true);
574
    setVendorIdIsSet(true);
546
    return this;
-
 
547
  }
575
  }
548
 
576
 
549
  public void unsetVendorId() {
577
  public void unsetVendorId() {
550
    __isset_bit_vector.clear(__VENDORID_ISSET_ID);
578
    __isset_bit_vector.clear(__VENDORID_ISSET_ID);
551
  }
579
  }
552
 
580
 
553
  /** Returns true if field vendorId is set (has been asigned a value) and false otherwise */
581
  /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
554
  public boolean isSetVendorId() {
582
  public boolean isSetVendorId() {
555
    return __isset_bit_vector.get(__VENDORID_ISSET_ID);
583
    return __isset_bit_vector.get(__VENDORID_ISSET_ID);
556
  }
584
  }
557
 
585
 
558
  public void setVendorIdIsSet(boolean value) {
586
  public void setVendorIdIsSet(boolean value) {
Line 569... Line 597...
569
 
597
 
570
  /**
598
  /**
571
   * 
599
   * 
572
   * @see BillingType
600
   * @see BillingType
573
   */
601
   */
574
  public Warehouse setBillingType(BillingType billingType) {
602
  public void setBillingType(BillingType billingType) {
575
    this.billingType = billingType;
603
    this.billingType = billingType;
576
    return this;
-
 
577
  }
604
  }
578
 
605
 
579
  public void unsetBillingType() {
606
  public void unsetBillingType() {
580
    this.billingType = null;
607
    this.billingType = null;
581
  }
608
  }
582
 
609
 
583
  /** Returns true if field billingType is set (has been asigned a value) and false otherwise */
610
  /** Returns true if field billingType is set (has been assigned a value) and false otherwise */
584
  public boolean isSetBillingType() {
611
  public boolean isSetBillingType() {
585
    return this.billingType != null;
612
    return this.billingType != null;
586
  }
613
  }
587
 
614
 
588
  public void setBillingTypeIsSet(boolean value) {
615
  public void setBillingTypeIsSet(boolean value) {
Line 698... Line 725...
698
      break;
725
      break;
699
 
726
 
700
    }
727
    }
701
  }
728
  }
702
 
729
 
703
  public void setFieldValue(int fieldID, Object value) {
-
 
704
    setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
705
  }
-
 
706
 
-
 
707
  public Object getFieldValue(_Fields field) {
730
  public Object getFieldValue(_Fields field) {
708
    switch (field) {
731
    switch (field) {
709
    case ID:
732
    case ID:
710
      return new Long(getId());
733
      return Long.valueOf(getId());
711
 
734
 
712
    case DISPLAY_NAME:
735
    case DISPLAY_NAME:
713
      return getDisplayName();
736
      return getDisplayName();
714
 
737
 
715
    case LOCATION:
738
    case LOCATION:
Line 717... Line 740...
717
 
740
 
718
    case WAREHOUSE_STATUS:
741
    case WAREHOUSE_STATUS:
719
      return getWarehouseStatus();
742
      return getWarehouseStatus();
720
 
743
 
721
    case ADDED_ON:
744
    case ADDED_ON:
722
      return new Long(getAddedOn());
745
      return Long.valueOf(getAddedOn());
723
 
746
 
724
    case LAST_CHECKED_ON:
747
    case LAST_CHECKED_ON:
725
      return new Long(getLastCheckedOn());
748
      return Long.valueOf(getLastCheckedOn());
726
 
749
 
727
    case TIN_NUMBER:
750
    case TIN_NUMBER:
728
      return getTinNumber();
751
      return getTinNumber();
729
 
752
 
730
    case PINCODE:
753
    case PINCODE:
Line 738... Line 761...
738
 
761
 
739
    case VENDOR:
762
    case VENDOR:
740
      return getVendor();
763
      return getVendor();
741
 
764
 
742
    case VENDOR_ID:
765
    case VENDOR_ID:
743
      return new Long(getVendorId());
766
      return Long.valueOf(getVendorId());
744
 
767
 
745
    case BILLING_TYPE:
768
    case BILLING_TYPE:
746
      return getBillingType();
769
      return getBillingType();
747
 
770
 
748
    }
771
    }
749
    throw new IllegalStateException();
772
    throw new IllegalStateException();
750
  }
773
  }
751
 
774
 
752
  public Object getFieldValue(int fieldId) {
-
 
753
    return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
754
  }
-
 
755
 
-
 
756
  /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
775
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
757
  public boolean isSet(_Fields field) {
776
  public boolean isSet(_Fields field) {
-
 
777
    if (field == null) {
-
 
778
      throw new IllegalArgumentException();
-
 
779
    }
-
 
780
 
758
    switch (field) {
781
    switch (field) {
759
    case ID:
782
    case ID:
760
      return isSetId();
783
      return isSetId();
761
    case DISPLAY_NAME:
784
    case DISPLAY_NAME:
762
      return isSetDisplayName();
785
      return isSetDisplayName();
Line 784... Line 807...
784
      return isSetBillingType();
807
      return isSetBillingType();
785
    }
808
    }
786
    throw new IllegalStateException();
809
    throw new IllegalStateException();
787
  }
810
  }
788
 
811
 
789
  public boolean isSet(int fieldID) {
-
 
790
    return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
791
  }
-
 
792
 
-
 
793
  @Override
812
  @Override
794
  public boolean equals(Object that) {
813
  public boolean equals(Object that) {
795
    if (that == null)
814
    if (that == null)
796
      return false;
815
      return false;
797
    if (that instanceof Warehouse)
816
    if (that instanceof Warehouse)
Line 934... Line 953...
934
    }
953
    }
935
 
954
 
936
    int lastComparison = 0;
955
    int lastComparison = 0;
937
    Warehouse typedOther = (Warehouse)other;
956
    Warehouse typedOther = (Warehouse)other;
938
 
957
 
939
    lastComparison = Boolean.valueOf(isSetId()).compareTo(isSetId());
958
    lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
940
    if (lastComparison != 0) {
959
    if (lastComparison != 0) {
941
      return lastComparison;
960
      return lastComparison;
942
    }
961
    }
-
 
962
    if (isSetId()) {
943
    lastComparison = TBaseHelper.compareTo(id, typedOther.id);
963
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
944
    if (lastComparison != 0) {
964
      if (lastComparison != 0) {
945
      return lastComparison;
965
        return lastComparison;
-
 
966
      }
946
    }
967
    }
947
    lastComparison = Boolean.valueOf(isSetDisplayName()).compareTo(isSetDisplayName());
968
    lastComparison = Boolean.valueOf(isSetDisplayName()).compareTo(typedOther.isSetDisplayName());
948
    if (lastComparison != 0) {
969
    if (lastComparison != 0) {
949
      return lastComparison;
970
      return lastComparison;
950
    }
971
    }
-
 
972
    if (isSetDisplayName()) {
951
    lastComparison = TBaseHelper.compareTo(displayName, typedOther.displayName);
973
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.displayName, typedOther.displayName);
952
    if (lastComparison != 0) {
974
      if (lastComparison != 0) {
953
      return lastComparison;
975
        return lastComparison;
-
 
976
      }
954
    }
977
    }
955
    lastComparison = Boolean.valueOf(isSetLocation()).compareTo(isSetLocation());
978
    lastComparison = Boolean.valueOf(isSetLocation()).compareTo(typedOther.isSetLocation());
956
    if (lastComparison != 0) {
979
    if (lastComparison != 0) {
957
      return lastComparison;
980
      return lastComparison;
958
    }
981
    }
-
 
982
    if (isSetLocation()) {
959
    lastComparison = TBaseHelper.compareTo(location, typedOther.location);
983
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.location, typedOther.location);
960
    if (lastComparison != 0) {
984
      if (lastComparison != 0) {
961
      return lastComparison;
985
        return lastComparison;
-
 
986
      }
962
    }
987
    }
963
    lastComparison = Boolean.valueOf(isSetWarehouseStatus()).compareTo(isSetWarehouseStatus());
988
    lastComparison = Boolean.valueOf(isSetWarehouseStatus()).compareTo(typedOther.isSetWarehouseStatus());
964
    if (lastComparison != 0) {
989
    if (lastComparison != 0) {
965
      return lastComparison;
990
      return lastComparison;
966
    }
991
    }
-
 
992
    if (isSetWarehouseStatus()) {
967
    lastComparison = TBaseHelper.compareTo(warehouseStatus, typedOther.warehouseStatus);
993
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseStatus, typedOther.warehouseStatus);
968
    if (lastComparison != 0) {
994
      if (lastComparison != 0) {
969
      return lastComparison;
995
        return lastComparison;
-
 
996
      }
970
    }
997
    }
971
    lastComparison = Boolean.valueOf(isSetAddedOn()).compareTo(isSetAddedOn());
998
    lastComparison = Boolean.valueOf(isSetAddedOn()).compareTo(typedOther.isSetAddedOn());
972
    if (lastComparison != 0) {
999
    if (lastComparison != 0) {
973
      return lastComparison;
1000
      return lastComparison;
974
    }
1001
    }
-
 
1002
    if (isSetAddedOn()) {
975
    lastComparison = TBaseHelper.compareTo(addedOn, typedOther.addedOn);
1003
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addedOn, typedOther.addedOn);
976
    if (lastComparison != 0) {
1004
      if (lastComparison != 0) {
977
      return lastComparison;
1005
        return lastComparison;
-
 
1006
      }
978
    }
1007
    }
979
    lastComparison = Boolean.valueOf(isSetLastCheckedOn()).compareTo(isSetLastCheckedOn());
1008
    lastComparison = Boolean.valueOf(isSetLastCheckedOn()).compareTo(typedOther.isSetLastCheckedOn());
980
    if (lastComparison != 0) {
1009
    if (lastComparison != 0) {
981
      return lastComparison;
1010
      return lastComparison;
982
    }
1011
    }
-
 
1012
    if (isSetLastCheckedOn()) {
983
    lastComparison = TBaseHelper.compareTo(lastCheckedOn, typedOther.lastCheckedOn);
1013
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastCheckedOn, typedOther.lastCheckedOn);
984
    if (lastComparison != 0) {
1014
      if (lastComparison != 0) {
985
      return lastComparison;
1015
        return lastComparison;
-
 
1016
      }
986
    }
1017
    }
987
    lastComparison = Boolean.valueOf(isSetTinNumber()).compareTo(isSetTinNumber());
1018
    lastComparison = Boolean.valueOf(isSetTinNumber()).compareTo(typedOther.isSetTinNumber());
988
    if (lastComparison != 0) {
1019
    if (lastComparison != 0) {
989
      return lastComparison;
1020
      return lastComparison;
990
    }
1021
    }
-
 
1022
    if (isSetTinNumber()) {
991
    lastComparison = TBaseHelper.compareTo(tinNumber, typedOther.tinNumber);
1023
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tinNumber, typedOther.tinNumber);
992
    if (lastComparison != 0) {
1024
      if (lastComparison != 0) {
993
      return lastComparison;
1025
        return lastComparison;
-
 
1026
      }
994
    }
1027
    }
995
    lastComparison = Boolean.valueOf(isSetPincode()).compareTo(isSetPincode());
1028
    lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
996
    if (lastComparison != 0) {
1029
    if (lastComparison != 0) {
997
      return lastComparison;
1030
      return lastComparison;
998
    }
1031
    }
-
 
1032
    if (isSetPincode()) {
999
    lastComparison = TBaseHelper.compareTo(pincode, typedOther.pincode);
1033
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
1000
    if (lastComparison != 0) {
1034
      if (lastComparison != 0) {
1001
      return lastComparison;
1035
        return lastComparison;
-
 
1036
      }
1002
    }
1037
    }
1003
    lastComparison = Boolean.valueOf(isSetVendorString()).compareTo(isSetVendorString());
1038
    lastComparison = Boolean.valueOf(isSetVendorString()).compareTo(typedOther.isSetVendorString());
1004
    if (lastComparison != 0) {
1039
    if (lastComparison != 0) {
1005
      return lastComparison;
1040
      return lastComparison;
1006
    }
1041
    }
-
 
1042
    if (isSetVendorString()) {
1007
    lastComparison = TBaseHelper.compareTo(vendorString, typedOther.vendorString);
1043
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorString, typedOther.vendorString);
1008
    if (lastComparison != 0) {
1044
      if (lastComparison != 0) {
1009
      return lastComparison;
1045
        return lastComparison;
-
 
1046
      }
1010
    }
1047
    }
1011
    lastComparison = Boolean.valueOf(isSetLogisticsLocation()).compareTo(isSetLogisticsLocation());
1048
    lastComparison = Boolean.valueOf(isSetLogisticsLocation()).compareTo(typedOther.isSetLogisticsLocation());
1012
    if (lastComparison != 0) {
1049
    if (lastComparison != 0) {
1013
      return lastComparison;
1050
      return lastComparison;
1014
    }
1051
    }
-
 
1052
    if (isSetLogisticsLocation()) {
1015
    lastComparison = TBaseHelper.compareTo(logisticsLocation, typedOther.logisticsLocation);
1053
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logisticsLocation, typedOther.logisticsLocation);
1016
    if (lastComparison != 0) {
1054
      if (lastComparison != 0) {
1017
      return lastComparison;
1055
        return lastComparison;
-
 
1056
      }
1018
    }
1057
    }
1019
    lastComparison = Boolean.valueOf(isSetVendor()).compareTo(isSetVendor());
1058
    lastComparison = Boolean.valueOf(isSetVendor()).compareTo(typedOther.isSetVendor());
1020
    if (lastComparison != 0) {
1059
    if (lastComparison != 0) {
1021
      return lastComparison;
1060
      return lastComparison;
1022
    }
1061
    }
-
 
1062
    if (isSetVendor()) {
1023
    lastComparison = TBaseHelper.compareTo(vendor, typedOther.vendor);
1063
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendor, typedOther.vendor);
1024
    if (lastComparison != 0) {
1064
      if (lastComparison != 0) {
1025
      return lastComparison;
1065
        return lastComparison;
-
 
1066
      }
1026
    }
1067
    }
1027
    lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(isSetVendorId());
1068
    lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
1028
    if (lastComparison != 0) {
1069
    if (lastComparison != 0) {
1029
      return lastComparison;
1070
      return lastComparison;
1030
    }
1071
    }
-
 
1072
    if (isSetVendorId()) {
1031
    lastComparison = TBaseHelper.compareTo(vendorId, typedOther.vendorId);
1073
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
1032
    if (lastComparison != 0) {
1074
      if (lastComparison != 0) {
1033
      return lastComparison;
1075
        return lastComparison;
-
 
1076
      }
1034
    }
1077
    }
1035
    lastComparison = Boolean.valueOf(isSetBillingType()).compareTo(isSetBillingType());
1078
    lastComparison = Boolean.valueOf(isSetBillingType()).compareTo(typedOther.isSetBillingType());
1036
    if (lastComparison != 0) {
1079
    if (lastComparison != 0) {
1037
      return lastComparison;
1080
      return lastComparison;
1038
    }
1081
    }
-
 
1082
    if (isSetBillingType()) {
1039
    lastComparison = TBaseHelper.compareTo(billingType, typedOther.billingType);
1083
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingType, typedOther.billingType);
1040
    if (lastComparison != 0) {
1084
      if (lastComparison != 0) {
1041
      return lastComparison;
1085
        return lastComparison;
-
 
1086
      }
1042
    }
1087
    }
1043
    return 0;
1088
    return 0;
1044
  }
1089
  }
1045
 
1090
 
-
 
1091
  public _Fields fieldForId(int fieldId) {
-
 
1092
    return _Fields.findByThriftId(fieldId);
-
 
1093
  }
-
 
1094
 
1046
  public void read(TProtocol iprot) throws TException {
1095
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1047
    TField field;
1096
    org.apache.thrift.protocol.TField field;
1048
    iprot.readStructBegin();
1097
    iprot.readStructBegin();
1049
    while (true)
1098
    while (true)
1050
    {
1099
    {
1051
      field = iprot.readFieldBegin();
1100
      field = iprot.readFieldBegin();
1052
      if (field.type == TType.STOP) { 
1101
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1053
        break;
1102
        break;
1054
      }
1103
      }
1055
      _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
1056
      if (fieldId == null) {
-
 
1057
        TProtocolUtil.skip(iprot, field.type);
-
 
1058
      } else {
-
 
1059
        switch (fieldId) {
1104
      switch (field.id) {
1060
          case ID:
1105
        case 1: // ID
1061
            if (field.type == TType.I64) {
1106
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1062
              this.id = iprot.readI64();
1107
            this.id = iprot.readI64();
1063
              setIdIsSet(true);
1108
            setIdIsSet(true);
1064
            } else { 
1109
          } else { 
1065
              TProtocolUtil.skip(iprot, field.type);
1110
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1066
            }
1111
          }
1067
            break;
1112
          break;
1068
          case DISPLAY_NAME:
1113
        case 2: // DISPLAY_NAME
1069
            if (field.type == TType.STRING) {
1114
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1070
              this.displayName = iprot.readString();
1115
            this.displayName = iprot.readString();
1071
            } else { 
1116
          } else { 
1072
              TProtocolUtil.skip(iprot, field.type);
1117
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1073
            }
1118
          }
1074
            break;
1119
          break;
1075
          case LOCATION:
1120
        case 3: // LOCATION
1076
            if (field.type == TType.STRING) {
1121
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1077
              this.location = iprot.readString();
1122
            this.location = iprot.readString();
1078
            } else { 
1123
          } else { 
1079
              TProtocolUtil.skip(iprot, field.type);
1124
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1080
            }
1125
          }
1081
            break;
1126
          break;
1082
          case WAREHOUSE_STATUS:
1127
        case 4: // WAREHOUSE_STATUS
1083
            if (field.type == TType.I32) {
1128
          if (field.type == org.apache.thrift.protocol.TType.I32) {
1084
              this.warehouseStatus = status.findByValue(iprot.readI32());
1129
            this.warehouseStatus = status.findByValue(iprot.readI32());
1085
            } else { 
1130
          } else { 
1086
              TProtocolUtil.skip(iprot, field.type);
1131
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1087
            }
1132
          }
1088
            break;
1133
          break;
1089
          case ADDED_ON:
1134
        case 5: // ADDED_ON
1090
            if (field.type == TType.I64) {
1135
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1091
              this.addedOn = iprot.readI64();
1136
            this.addedOn = iprot.readI64();
1092
              setAddedOnIsSet(true);
1137
            setAddedOnIsSet(true);
1093
            } else { 
1138
          } else { 
1094
              TProtocolUtil.skip(iprot, field.type);
1139
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1095
            }
1140
          }
1096
            break;
1141
          break;
1097
          case LAST_CHECKED_ON:
1142
        case 6: // LAST_CHECKED_ON
1098
            if (field.type == TType.I64) {
1143
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1099
              this.lastCheckedOn = iprot.readI64();
1144
            this.lastCheckedOn = iprot.readI64();
1100
              setLastCheckedOnIsSet(true);
1145
            setLastCheckedOnIsSet(true);
1101
            } else { 
1146
          } else { 
1102
              TProtocolUtil.skip(iprot, field.type);
1147
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1103
            }
1148
          }
1104
            break;
1149
          break;
1105
          case TIN_NUMBER:
1150
        case 7: // TIN_NUMBER
1106
            if (field.type == TType.STRING) {
1151
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1107
              this.tinNumber = iprot.readString();
1152
            this.tinNumber = iprot.readString();
1108
            } else { 
1153
          } else { 
1109
              TProtocolUtil.skip(iprot, field.type);
1154
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1110
            }
1155
          }
1111
            break;
1156
          break;
1112
          case PINCODE:
1157
        case 8: // PINCODE
1113
            if (field.type == TType.STRING) {
1158
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1114
              this.pincode = iprot.readString();
1159
            this.pincode = iprot.readString();
1115
            } else { 
1160
          } else { 
1116
              TProtocolUtil.skip(iprot, field.type);
1161
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1117
            }
1162
          }
1118
            break;
1163
          break;
1119
          case VENDOR_STRING:
1164
        case 9: // VENDOR_STRING
1120
            if (field.type == TType.STRING) {
1165
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1121
              this.vendorString = iprot.readString();
1166
            this.vendorString = iprot.readString();
1122
            } else { 
1167
          } else { 
1123
              TProtocolUtil.skip(iprot, field.type);
1168
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1124
            }
1169
          }
1125
            break;
1170
          break;
1126
          case LOGISTICS_LOCATION:
1171
        case 10: // LOGISTICS_LOCATION
1127
            if (field.type == TType.I32) {
1172
          if (field.type == org.apache.thrift.protocol.TType.I32) {
1128
              this.logisticsLocation = WarehouseLocation.findByValue(iprot.readI32());
1173
            this.logisticsLocation = WarehouseLocation.findByValue(iprot.readI32());
1129
            } else { 
1174
          } else { 
1130
              TProtocolUtil.skip(iprot, field.type);
1175
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1131
            }
1176
          }
1132
            break;
1177
          break;
1133
          case VENDOR:
1178
        case 11: // VENDOR
1134
            if (field.type == TType.STRING) {
1179
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1135
              this.vendor = iprot.readString();
1180
            this.vendor = iprot.readString();
1136
            } else { 
1181
          } else { 
1137
              TProtocolUtil.skip(iprot, field.type);
1182
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1138
            }
1183
          }
1139
            break;
1184
          break;
1140
          case VENDOR_ID:
1185
        case 12: // VENDOR_ID
1141
            if (field.type == TType.I64) {
1186
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1142
              this.vendorId = iprot.readI64();
1187
            this.vendorId = iprot.readI64();
1143
              setVendorIdIsSet(true);
1188
            setVendorIdIsSet(true);
1144
            } else { 
1189
          } else { 
1145
              TProtocolUtil.skip(iprot, field.type);
1190
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1146
            }
1191
          }
1147
            break;
1192
          break;
1148
          case BILLING_TYPE:
1193
        case 13: // BILLING_TYPE
1149
            if (field.type == TType.I32) {
1194
          if (field.type == org.apache.thrift.protocol.TType.I32) {
1150
              this.billingType = BillingType.findByValue(iprot.readI32());
1195
            this.billingType = BillingType.findByValue(iprot.readI32());
1151
            } else { 
1196
          } else { 
1152
              TProtocolUtil.skip(iprot, field.type);
1197
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1153
            }
1198
          }
1154
            break;
1199
          break;
1155
        }
1200
        default:
1156
        iprot.readFieldEnd();
1201
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1157
      }
1202
      }
-
 
1203
      iprot.readFieldEnd();
1158
    }
1204
    }
1159
    iprot.readStructEnd();
1205
    iprot.readStructEnd();
1160
    validate();
1206
    validate();
1161
  }
1207
  }
1162
 
1208
 
1163
  public void write(TProtocol oprot) throws TException {
1209
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1164
    validate();
1210
    validate();
1165
 
1211
 
1166
    oprot.writeStructBegin(STRUCT_DESC);
1212
    oprot.writeStructBegin(STRUCT_DESC);
1167
    oprot.writeFieldBegin(ID_FIELD_DESC);
1213
    oprot.writeFieldBegin(ID_FIELD_DESC);
1168
    oprot.writeI64(this.id);
1214
    oprot.writeI64(this.id);
Line 1252... Line 1298...
1252
    if (!first) sb.append(", ");
1298
    if (!first) sb.append(", ");
1253
    sb.append("warehouseStatus:");
1299
    sb.append("warehouseStatus:");
1254
    if (this.warehouseStatus == null) {
1300
    if (this.warehouseStatus == null) {
1255
      sb.append("null");
1301
      sb.append("null");
1256
    } else {
1302
    } else {
1257
      String warehouseStatus_name = warehouseStatus.name();
-
 
1258
      if (warehouseStatus_name != null) {
-
 
1259
        sb.append(warehouseStatus_name);
-
 
1260
        sb.append(" (");
-
 
1261
      }
-
 
1262
      sb.append(this.warehouseStatus);
1303
      sb.append(this.warehouseStatus);
1263
      if (warehouseStatus_name != null) {
-
 
1264
        sb.append(")");
-
 
1265
      }
-
 
1266
    }
1304
    }
1267
    first = false;
1305
    first = false;
1268
    if (!first) sb.append(", ");
1306
    if (!first) sb.append(", ");
1269
    sb.append("addedOn:");
1307
    sb.append("addedOn:");
1270
    sb.append(this.addedOn);
1308
    sb.append(this.addedOn);
Line 1300... Line 1338...
1300
    if (!first) sb.append(", ");
1338
    if (!first) sb.append(", ");
1301
    sb.append("logisticsLocation:");
1339
    sb.append("logisticsLocation:");
1302
    if (this.logisticsLocation == null) {
1340
    if (this.logisticsLocation == null) {
1303
      sb.append("null");
1341
      sb.append("null");
1304
    } else {
1342
    } else {
1305
      String logisticsLocation_name = logisticsLocation.name();
-
 
1306
      if (logisticsLocation_name != null) {
-
 
1307
        sb.append(logisticsLocation_name);
-
 
1308
        sb.append(" (");
-
 
1309
      }
-
 
1310
      sb.append(this.logisticsLocation);
1343
      sb.append(this.logisticsLocation);
1311
      if (logisticsLocation_name != null) {
-
 
1312
        sb.append(")");
-
 
1313
      }
-
 
1314
    }
1344
    }
1315
    first = false;
1345
    first = false;
1316
    if (!first) sb.append(", ");
1346
    if (!first) sb.append(", ");
1317
    sb.append("vendor:");
1347
    sb.append("vendor:");
1318
    if (this.vendor == null) {
1348
    if (this.vendor == null) {
Line 1328... Line 1358...
1328
    if (!first) sb.append(", ");
1358
    if (!first) sb.append(", ");
1329
    sb.append("billingType:");
1359
    sb.append("billingType:");
1330
    if (this.billingType == null) {
1360
    if (this.billingType == null) {
1331
      sb.append("null");
1361
      sb.append("null");
1332
    } else {
1362
    } else {
1333
      String billingType_name = billingType.name();
-
 
1334
      if (billingType_name != null) {
-
 
1335
        sb.append(billingType_name);
-
 
1336
        sb.append(" (");
-
 
1337
      }
-
 
1338
      sb.append(this.billingType);
1363
      sb.append(this.billingType);
1339
      if (billingType_name != null) {
-
 
1340
        sb.append(")");
-
 
1341
      }
-
 
1342
    }
1364
    }
1343
    first = false;
1365
    first = false;
1344
    sb.append(")");
1366
    sb.append(")");
1345
    return sb.toString();
1367
    return sb.toString();
1346
  }
1368
  }
1347
 
1369
 
1348
  public void validate() throws TException {
1370
  public void validate() throws org.apache.thrift.TException {
1349
    // check for required fields
1371
    // check for required fields
1350
  }
1372
  }
1351
 
1373
 
-
 
1374
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
1375
    try {
-
 
1376
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
1377
    } catch (org.apache.thrift.TException te) {
-
 
1378
      throw new java.io.IOException(te);
-
 
1379
    }
-
 
1380
  }
-
 
1381
 
-
 
1382
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
1383
    try {
-
 
1384
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
1385
      __isset_bit_vector = new BitSet(1);
-
 
1386
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
1387
    } catch (org.apache.thrift.TException te) {
-
 
1388
      throw new java.io.IOException(te);
-
 
1389
    }
-
 
1390
  }
-
 
1391
 
1352
}
1392
}
1353
 
1393