| 100 |
ashish |
1 |
/**
|
|
|
2 |
* Autogenerated by Thrift
|
|
|
3 |
*
|
|
|
4 |
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
|
5 |
*/
|
|
|
6 |
package in.shop2020.model.v1.catalog;
|
|
|
7 |
|
|
|
8 |
import java.util.List;
|
|
|
9 |
import java.util.ArrayList;
|
|
|
10 |
import java.util.Map;
|
|
|
11 |
import java.util.HashMap;
|
|
|
12 |
import java.util.EnumMap;
|
|
|
13 |
import java.util.Set;
|
|
|
14 |
import java.util.HashSet;
|
|
|
15 |
import java.util.EnumSet;
|
|
|
16 |
import java.util.Collections;
|
|
|
17 |
import java.util.BitSet;
|
|
|
18 |
import java.util.Arrays;
|
|
|
19 |
import org.slf4j.Logger;
|
|
|
20 |
import org.slf4j.LoggerFactory;
|
|
|
21 |
|
|
|
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> {
|
|
|
27 |
private static final TStruct STRUCT_DESC = new TStruct("Warehouse");
|
|
|
28 |
|
|
|
29 |
private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
|
| 753 |
chandransh |
30 |
private static final TField DISPLAY_NAME_FIELD_DESC = new TField("displayName", TType.STRING, (short)2);
|
|
|
31 |
private static final TField LOCATION_FIELD_DESC = new TField("location", TType.STRING, (short)3);
|
|
|
32 |
private static final TField WAREHOUSE_STATUS_FIELD_DESC = new TField("warehouseStatus", TType.I32, (short)4);
|
|
|
33 |
private static final TField ADDED_ON_FIELD_DESC = new TField("addedOn", TType.I64, (short)5);
|
|
|
34 |
private static final TField LAST_CHECKED_ON_FIELD_DESC = new TField("lastCheckedOn", TType.I64, (short)6);
|
|
|
35 |
private static final TField TIN_NUMBER_FIELD_DESC = new TField("tinNumber", TType.STRING, (short)7);
|
|
|
36 |
private static final TField PINCODE_FIELD_DESC = new TField("pincode", TType.STRING, (short)8);
|
|
|
37 |
private static final TField VENDOR_STRING_FIELD_DESC = new TField("vendorString", TType.STRING, (short)9);
|
|
|
38 |
private static final TField LOGISTICS_LOCATION_FIELD_DESC = new TField("logisticsLocation", TType.I32, (short)10);
|
| 1329 |
chandransh |
39 |
private static final TField VENDOR_FIELD_DESC = new TField("vendor", TType.STRING, (short)11);
|
| 100 |
ashish |
40 |
|
|
|
41 |
private long id;
|
| 753 |
chandransh |
42 |
private String displayName;
|
| 100 |
ashish |
43 |
private String location;
|
| 103 |
ashish |
44 |
private status warehouseStatus;
|
|
|
45 |
private long addedOn;
|
| 483 |
rajveer |
46 |
private long lastCheckedOn;
|
|
|
47 |
private String tinNumber;
|
|
|
48 |
private String pincode;
|
|
|
49 |
private String vendorString;
|
| 648 |
chandransh |
50 |
private WarehouseLocation logisticsLocation;
|
| 1329 |
chandransh |
51 |
private String vendor;
|
| 100 |
ashish |
52 |
|
|
|
53 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
54 |
public enum _Fields implements TFieldIdEnum {
|
|
|
55 |
ID((short)1, "id"),
|
| 753 |
chandransh |
56 |
DISPLAY_NAME((short)2, "displayName"),
|
|
|
57 |
LOCATION((short)3, "location"),
|
| 103 |
ashish |
58 |
/**
|
|
|
59 |
*
|
|
|
60 |
* @see status
|
|
|
61 |
*/
|
| 753 |
chandransh |
62 |
WAREHOUSE_STATUS((short)4, "warehouseStatus"),
|
|
|
63 |
ADDED_ON((short)5, "addedOn"),
|
|
|
64 |
LAST_CHECKED_ON((short)6, "lastCheckedOn"),
|
|
|
65 |
TIN_NUMBER((short)7, "tinNumber"),
|
|
|
66 |
PINCODE((short)8, "pincode"),
|
|
|
67 |
VENDOR_STRING((short)9, "vendorString"),
|
| 648 |
chandransh |
68 |
/**
|
|
|
69 |
*
|
|
|
70 |
* @see WarehouseLocation
|
|
|
71 |
*/
|
| 1329 |
chandransh |
72 |
LOGISTICS_LOCATION((short)10, "logisticsLocation"),
|
|
|
73 |
VENDOR((short)11, "vendor");
|
| 100 |
ashish |
74 |
|
|
|
75 |
private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
|
|
|
76 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
77 |
|
|
|
78 |
static {
|
|
|
79 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
80 |
byId.put((int)field._thriftId, field);
|
|
|
81 |
byName.put(field.getFieldName(), field);
|
|
|
82 |
}
|
|
|
83 |
}
|
|
|
84 |
|
|
|
85 |
/**
|
|
|
86 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
87 |
*/
|
|
|
88 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
89 |
return byId.get(fieldId);
|
|
|
90 |
}
|
|
|
91 |
|
|
|
92 |
/**
|
|
|
93 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
94 |
* if it is not found.
|
|
|
95 |
*/
|
|
|
96 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
97 |
_Fields fields = findByThriftId(fieldId);
|
|
|
98 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
99 |
return fields;
|
|
|
100 |
}
|
|
|
101 |
|
|
|
102 |
/**
|
|
|
103 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
104 |
*/
|
|
|
105 |
public static _Fields findByName(String name) {
|
|
|
106 |
return byName.get(name);
|
|
|
107 |
}
|
|
|
108 |
|
|
|
109 |
private final short _thriftId;
|
|
|
110 |
private final String _fieldName;
|
|
|
111 |
|
|
|
112 |
_Fields(short thriftId, String fieldName) {
|
|
|
113 |
_thriftId = thriftId;
|
|
|
114 |
_fieldName = fieldName;
|
|
|
115 |
}
|
|
|
116 |
|
|
|
117 |
public short getThriftFieldId() {
|
|
|
118 |
return _thriftId;
|
|
|
119 |
}
|
|
|
120 |
|
|
|
121 |
public String getFieldName() {
|
|
|
122 |
return _fieldName;
|
|
|
123 |
}
|
|
|
124 |
}
|
|
|
125 |
|
|
|
126 |
// isset id assignments
|
|
|
127 |
private static final int __ID_ISSET_ID = 0;
|
| 123 |
ashish |
128 |
private static final int __ADDEDON_ISSET_ID = 1;
|
| 483 |
rajveer |
129 |
private static final int __LASTCHECKEDON_ISSET_ID = 2;
|
|
|
130 |
private BitSet __isset_bit_vector = new BitSet(3);
|
| 100 |
ashish |
131 |
|
|
|
132 |
public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
|
|
|
133 |
put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT,
|
|
|
134 |
new FieldValueMetaData(TType.I64)));
|
| 753 |
chandransh |
135 |
put(_Fields.DISPLAY_NAME, new FieldMetaData("displayName", TFieldRequirementType.DEFAULT,
|
|
|
136 |
new FieldValueMetaData(TType.STRING)));
|
| 100 |
ashish |
137 |
put(_Fields.LOCATION, new FieldMetaData("location", TFieldRequirementType.DEFAULT,
|
|
|
138 |
new FieldValueMetaData(TType.STRING)));
|
| 103 |
ashish |
139 |
put(_Fields.WAREHOUSE_STATUS, new FieldMetaData("warehouseStatus", TFieldRequirementType.DEFAULT,
|
|
|
140 |
new EnumMetaData(TType.ENUM, status.class)));
|
|
|
141 |
put(_Fields.ADDED_ON, new FieldMetaData("addedOn", TFieldRequirementType.DEFAULT,
|
|
|
142 |
new FieldValueMetaData(TType.I64)));
|
| 483 |
rajveer |
143 |
put(_Fields.LAST_CHECKED_ON, new FieldMetaData("lastCheckedOn", TFieldRequirementType.DEFAULT,
|
|
|
144 |
new FieldValueMetaData(TType.I64)));
|
|
|
145 |
put(_Fields.TIN_NUMBER, new FieldMetaData("tinNumber", TFieldRequirementType.DEFAULT,
|
|
|
146 |
new FieldValueMetaData(TType.STRING)));
|
|
|
147 |
put(_Fields.PINCODE, new FieldMetaData("pincode", TFieldRequirementType.DEFAULT,
|
|
|
148 |
new FieldValueMetaData(TType.STRING)));
|
|
|
149 |
put(_Fields.VENDOR_STRING, new FieldMetaData("vendorString", TFieldRequirementType.DEFAULT,
|
|
|
150 |
new FieldValueMetaData(TType.STRING)));
|
| 648 |
chandransh |
151 |
put(_Fields.LOGISTICS_LOCATION, new FieldMetaData("logisticsLocation", TFieldRequirementType.DEFAULT,
|
|
|
152 |
new EnumMetaData(TType.ENUM, WarehouseLocation.class)));
|
| 1329 |
chandransh |
153 |
put(_Fields.VENDOR, new FieldMetaData("vendor", TFieldRequirementType.DEFAULT,
|
|
|
154 |
new FieldValueMetaData(TType.STRING)));
|
| 100 |
ashish |
155 |
}});
|
|
|
156 |
|
|
|
157 |
static {
|
|
|
158 |
FieldMetaData.addStructMetaDataMap(Warehouse.class, metaDataMap);
|
|
|
159 |
}
|
|
|
160 |
|
|
|
161 |
public Warehouse() {
|
|
|
162 |
}
|
|
|
163 |
|
|
|
164 |
public Warehouse(
|
|
|
165 |
long id,
|
| 753 |
chandransh |
166 |
String displayName,
|
| 100 |
ashish |
167 |
String location,
|
| 103 |
ashish |
168 |
status warehouseStatus,
|
| 483 |
rajveer |
169 |
long addedOn,
|
|
|
170 |
long lastCheckedOn,
|
|
|
171 |
String tinNumber,
|
|
|
172 |
String pincode,
|
| 648 |
chandransh |
173 |
String vendorString,
|
| 1329 |
chandransh |
174 |
WarehouseLocation logisticsLocation,
|
|
|
175 |
String vendor)
|
| 100 |
ashish |
176 |
{
|
|
|
177 |
this();
|
|
|
178 |
this.id = id;
|
|
|
179 |
setIdIsSet(true);
|
| 753 |
chandransh |
180 |
this.displayName = displayName;
|
| 100 |
ashish |
181 |
this.location = location;
|
| 103 |
ashish |
182 |
this.warehouseStatus = warehouseStatus;
|
|
|
183 |
this.addedOn = addedOn;
|
|
|
184 |
setAddedOnIsSet(true);
|
| 483 |
rajveer |
185 |
this.lastCheckedOn = lastCheckedOn;
|
|
|
186 |
setLastCheckedOnIsSet(true);
|
|
|
187 |
this.tinNumber = tinNumber;
|
|
|
188 |
this.pincode = pincode;
|
|
|
189 |
this.vendorString = vendorString;
|
| 648 |
chandransh |
190 |
this.logisticsLocation = logisticsLocation;
|
| 1329 |
chandransh |
191 |
this.vendor = vendor;
|
| 100 |
ashish |
192 |
}
|
|
|
193 |
|
|
|
194 |
/**
|
|
|
195 |
* Performs a deep copy on <i>other</i>.
|
|
|
196 |
*/
|
|
|
197 |
public Warehouse(Warehouse other) {
|
|
|
198 |
__isset_bit_vector.clear();
|
|
|
199 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
200 |
this.id = other.id;
|
| 753 |
chandransh |
201 |
if (other.isSetDisplayName()) {
|
|
|
202 |
this.displayName = other.displayName;
|
|
|
203 |
}
|
| 100 |
ashish |
204 |
if (other.isSetLocation()) {
|
|
|
205 |
this.location = other.location;
|
|
|
206 |
}
|
| 103 |
ashish |
207 |
if (other.isSetWarehouseStatus()) {
|
|
|
208 |
this.warehouseStatus = other.warehouseStatus;
|
|
|
209 |
}
|
|
|
210 |
this.addedOn = other.addedOn;
|
| 483 |
rajveer |
211 |
this.lastCheckedOn = other.lastCheckedOn;
|
|
|
212 |
if (other.isSetTinNumber()) {
|
|
|
213 |
this.tinNumber = other.tinNumber;
|
|
|
214 |
}
|
|
|
215 |
if (other.isSetPincode()) {
|
|
|
216 |
this.pincode = other.pincode;
|
|
|
217 |
}
|
|
|
218 |
if (other.isSetVendorString()) {
|
|
|
219 |
this.vendorString = other.vendorString;
|
|
|
220 |
}
|
| 648 |
chandransh |
221 |
if (other.isSetLogisticsLocation()) {
|
|
|
222 |
this.logisticsLocation = other.logisticsLocation;
|
|
|
223 |
}
|
| 1329 |
chandransh |
224 |
if (other.isSetVendor()) {
|
|
|
225 |
this.vendor = other.vendor;
|
|
|
226 |
}
|
| 100 |
ashish |
227 |
}
|
|
|
228 |
|
|
|
229 |
public Warehouse deepCopy() {
|
|
|
230 |
return new Warehouse(this);
|
|
|
231 |
}
|
|
|
232 |
|
|
|
233 |
@Deprecated
|
|
|
234 |
public Warehouse clone() {
|
|
|
235 |
return new Warehouse(this);
|
|
|
236 |
}
|
|
|
237 |
|
|
|
238 |
public long getId() {
|
|
|
239 |
return this.id;
|
|
|
240 |
}
|
|
|
241 |
|
|
|
242 |
public Warehouse setId(long id) {
|
|
|
243 |
this.id = id;
|
|
|
244 |
setIdIsSet(true);
|
|
|
245 |
return this;
|
|
|
246 |
}
|
|
|
247 |
|
|
|
248 |
public void unsetId() {
|
|
|
249 |
__isset_bit_vector.clear(__ID_ISSET_ID);
|
|
|
250 |
}
|
|
|
251 |
|
|
|
252 |
/** Returns true if field id is set (has been asigned a value) and false otherwise */
|
|
|
253 |
public boolean isSetId() {
|
|
|
254 |
return __isset_bit_vector.get(__ID_ISSET_ID);
|
|
|
255 |
}
|
|
|
256 |
|
|
|
257 |
public void setIdIsSet(boolean value) {
|
|
|
258 |
__isset_bit_vector.set(__ID_ISSET_ID, value);
|
|
|
259 |
}
|
|
|
260 |
|
| 753 |
chandransh |
261 |
public String getDisplayName() {
|
|
|
262 |
return this.displayName;
|
|
|
263 |
}
|
|
|
264 |
|
|
|
265 |
public Warehouse setDisplayName(String displayName) {
|
|
|
266 |
this.displayName = displayName;
|
|
|
267 |
return this;
|
|
|
268 |
}
|
|
|
269 |
|
|
|
270 |
public void unsetDisplayName() {
|
|
|
271 |
this.displayName = null;
|
|
|
272 |
}
|
|
|
273 |
|
|
|
274 |
/** Returns true if field displayName is set (has been asigned a value) and false otherwise */
|
|
|
275 |
public boolean isSetDisplayName() {
|
|
|
276 |
return this.displayName != null;
|
|
|
277 |
}
|
|
|
278 |
|
|
|
279 |
public void setDisplayNameIsSet(boolean value) {
|
|
|
280 |
if (!value) {
|
|
|
281 |
this.displayName = null;
|
|
|
282 |
}
|
|
|
283 |
}
|
|
|
284 |
|
| 100 |
ashish |
285 |
public String getLocation() {
|
|
|
286 |
return this.location;
|
|
|
287 |
}
|
|
|
288 |
|
|
|
289 |
public Warehouse setLocation(String location) {
|
|
|
290 |
this.location = location;
|
|
|
291 |
return this;
|
|
|
292 |
}
|
|
|
293 |
|
|
|
294 |
public void unsetLocation() {
|
|
|
295 |
this.location = null;
|
|
|
296 |
}
|
|
|
297 |
|
|
|
298 |
/** Returns true if field location is set (has been asigned a value) and false otherwise */
|
|
|
299 |
public boolean isSetLocation() {
|
|
|
300 |
return this.location != null;
|
|
|
301 |
}
|
|
|
302 |
|
|
|
303 |
public void setLocationIsSet(boolean value) {
|
|
|
304 |
if (!value) {
|
|
|
305 |
this.location = null;
|
|
|
306 |
}
|
|
|
307 |
}
|
|
|
308 |
|
| 103 |
ashish |
309 |
/**
|
|
|
310 |
*
|
|
|
311 |
* @see status
|
|
|
312 |
*/
|
|
|
313 |
public status getWarehouseStatus() {
|
|
|
314 |
return this.warehouseStatus;
|
|
|
315 |
}
|
|
|
316 |
|
|
|
317 |
/**
|
|
|
318 |
*
|
|
|
319 |
* @see status
|
|
|
320 |
*/
|
|
|
321 |
public Warehouse setWarehouseStatus(status warehouseStatus) {
|
|
|
322 |
this.warehouseStatus = warehouseStatus;
|
|
|
323 |
return this;
|
|
|
324 |
}
|
|
|
325 |
|
|
|
326 |
public void unsetWarehouseStatus() {
|
|
|
327 |
this.warehouseStatus = null;
|
|
|
328 |
}
|
|
|
329 |
|
|
|
330 |
/** Returns true if field warehouseStatus is set (has been asigned a value) and false otherwise */
|
|
|
331 |
public boolean isSetWarehouseStatus() {
|
|
|
332 |
return this.warehouseStatus != null;
|
|
|
333 |
}
|
|
|
334 |
|
|
|
335 |
public void setWarehouseStatusIsSet(boolean value) {
|
|
|
336 |
if (!value) {
|
|
|
337 |
this.warehouseStatus = null;
|
|
|
338 |
}
|
|
|
339 |
}
|
|
|
340 |
|
|
|
341 |
public long getAddedOn() {
|
|
|
342 |
return this.addedOn;
|
|
|
343 |
}
|
|
|
344 |
|
|
|
345 |
public Warehouse setAddedOn(long addedOn) {
|
|
|
346 |
this.addedOn = addedOn;
|
|
|
347 |
setAddedOnIsSet(true);
|
|
|
348 |
return this;
|
|
|
349 |
}
|
|
|
350 |
|
|
|
351 |
public void unsetAddedOn() {
|
|
|
352 |
__isset_bit_vector.clear(__ADDEDON_ISSET_ID);
|
|
|
353 |
}
|
|
|
354 |
|
|
|
355 |
/** Returns true if field addedOn is set (has been asigned a value) and false otherwise */
|
|
|
356 |
public boolean isSetAddedOn() {
|
|
|
357 |
return __isset_bit_vector.get(__ADDEDON_ISSET_ID);
|
|
|
358 |
}
|
|
|
359 |
|
|
|
360 |
public void setAddedOnIsSet(boolean value) {
|
|
|
361 |
__isset_bit_vector.set(__ADDEDON_ISSET_ID, value);
|
|
|
362 |
}
|
|
|
363 |
|
| 483 |
rajveer |
364 |
public long getLastCheckedOn() {
|
|
|
365 |
return this.lastCheckedOn;
|
|
|
366 |
}
|
|
|
367 |
|
|
|
368 |
public Warehouse setLastCheckedOn(long lastCheckedOn) {
|
|
|
369 |
this.lastCheckedOn = lastCheckedOn;
|
|
|
370 |
setLastCheckedOnIsSet(true);
|
|
|
371 |
return this;
|
|
|
372 |
}
|
|
|
373 |
|
|
|
374 |
public void unsetLastCheckedOn() {
|
|
|
375 |
__isset_bit_vector.clear(__LASTCHECKEDON_ISSET_ID);
|
|
|
376 |
}
|
|
|
377 |
|
|
|
378 |
/** Returns true if field lastCheckedOn is set (has been asigned a value) and false otherwise */
|
|
|
379 |
public boolean isSetLastCheckedOn() {
|
|
|
380 |
return __isset_bit_vector.get(__LASTCHECKEDON_ISSET_ID);
|
|
|
381 |
}
|
|
|
382 |
|
|
|
383 |
public void setLastCheckedOnIsSet(boolean value) {
|
|
|
384 |
__isset_bit_vector.set(__LASTCHECKEDON_ISSET_ID, value);
|
|
|
385 |
}
|
|
|
386 |
|
|
|
387 |
public String getTinNumber() {
|
|
|
388 |
return this.tinNumber;
|
|
|
389 |
}
|
|
|
390 |
|
|
|
391 |
public Warehouse setTinNumber(String tinNumber) {
|
|
|
392 |
this.tinNumber = tinNumber;
|
|
|
393 |
return this;
|
|
|
394 |
}
|
|
|
395 |
|
|
|
396 |
public void unsetTinNumber() {
|
|
|
397 |
this.tinNumber = null;
|
|
|
398 |
}
|
|
|
399 |
|
|
|
400 |
/** Returns true if field tinNumber is set (has been asigned a value) and false otherwise */
|
|
|
401 |
public boolean isSetTinNumber() {
|
|
|
402 |
return this.tinNumber != null;
|
|
|
403 |
}
|
|
|
404 |
|
|
|
405 |
public void setTinNumberIsSet(boolean value) {
|
|
|
406 |
if (!value) {
|
|
|
407 |
this.tinNumber = null;
|
|
|
408 |
}
|
|
|
409 |
}
|
|
|
410 |
|
|
|
411 |
public String getPincode() {
|
|
|
412 |
return this.pincode;
|
|
|
413 |
}
|
|
|
414 |
|
|
|
415 |
public Warehouse setPincode(String pincode) {
|
|
|
416 |
this.pincode = pincode;
|
|
|
417 |
return this;
|
|
|
418 |
}
|
|
|
419 |
|
|
|
420 |
public void unsetPincode() {
|
|
|
421 |
this.pincode = null;
|
|
|
422 |
}
|
|
|
423 |
|
|
|
424 |
/** Returns true if field pincode is set (has been asigned a value) and false otherwise */
|
|
|
425 |
public boolean isSetPincode() {
|
|
|
426 |
return this.pincode != null;
|
|
|
427 |
}
|
|
|
428 |
|
|
|
429 |
public void setPincodeIsSet(boolean value) {
|
|
|
430 |
if (!value) {
|
|
|
431 |
this.pincode = null;
|
|
|
432 |
}
|
|
|
433 |
}
|
|
|
434 |
|
|
|
435 |
public String getVendorString() {
|
|
|
436 |
return this.vendorString;
|
|
|
437 |
}
|
|
|
438 |
|
|
|
439 |
public Warehouse setVendorString(String vendorString) {
|
|
|
440 |
this.vendorString = vendorString;
|
|
|
441 |
return this;
|
|
|
442 |
}
|
|
|
443 |
|
|
|
444 |
public void unsetVendorString() {
|
|
|
445 |
this.vendorString = null;
|
|
|
446 |
}
|
|
|
447 |
|
|
|
448 |
/** Returns true if field vendorString is set (has been asigned a value) and false otherwise */
|
|
|
449 |
public boolean isSetVendorString() {
|
|
|
450 |
return this.vendorString != null;
|
|
|
451 |
}
|
|
|
452 |
|
|
|
453 |
public void setVendorStringIsSet(boolean value) {
|
|
|
454 |
if (!value) {
|
|
|
455 |
this.vendorString = null;
|
|
|
456 |
}
|
|
|
457 |
}
|
|
|
458 |
|
| 648 |
chandransh |
459 |
/**
|
|
|
460 |
*
|
|
|
461 |
* @see WarehouseLocation
|
|
|
462 |
*/
|
|
|
463 |
public WarehouseLocation getLogisticsLocation() {
|
|
|
464 |
return this.logisticsLocation;
|
|
|
465 |
}
|
|
|
466 |
|
|
|
467 |
/**
|
|
|
468 |
*
|
|
|
469 |
* @see WarehouseLocation
|
|
|
470 |
*/
|
|
|
471 |
public Warehouse setLogisticsLocation(WarehouseLocation logisticsLocation) {
|
|
|
472 |
this.logisticsLocation = logisticsLocation;
|
|
|
473 |
return this;
|
|
|
474 |
}
|
|
|
475 |
|
|
|
476 |
public void unsetLogisticsLocation() {
|
|
|
477 |
this.logisticsLocation = null;
|
|
|
478 |
}
|
|
|
479 |
|
|
|
480 |
/** Returns true if field logisticsLocation is set (has been asigned a value) and false otherwise */
|
|
|
481 |
public boolean isSetLogisticsLocation() {
|
|
|
482 |
return this.logisticsLocation != null;
|
|
|
483 |
}
|
|
|
484 |
|
|
|
485 |
public void setLogisticsLocationIsSet(boolean value) {
|
|
|
486 |
if (!value) {
|
|
|
487 |
this.logisticsLocation = null;
|
|
|
488 |
}
|
|
|
489 |
}
|
|
|
490 |
|
| 1329 |
chandransh |
491 |
public String getVendor() {
|
|
|
492 |
return this.vendor;
|
|
|
493 |
}
|
|
|
494 |
|
|
|
495 |
public Warehouse setVendor(String vendor) {
|
|
|
496 |
this.vendor = vendor;
|
|
|
497 |
return this;
|
|
|
498 |
}
|
|
|
499 |
|
|
|
500 |
public void unsetVendor() {
|
|
|
501 |
this.vendor = null;
|
|
|
502 |
}
|
|
|
503 |
|
|
|
504 |
/** Returns true if field vendor is set (has been asigned a value) and false otherwise */
|
|
|
505 |
public boolean isSetVendor() {
|
|
|
506 |
return this.vendor != null;
|
|
|
507 |
}
|
|
|
508 |
|
|
|
509 |
public void setVendorIsSet(boolean value) {
|
|
|
510 |
if (!value) {
|
|
|
511 |
this.vendor = null;
|
|
|
512 |
}
|
|
|
513 |
}
|
|
|
514 |
|
| 100 |
ashish |
515 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
516 |
switch (field) {
|
|
|
517 |
case ID:
|
|
|
518 |
if (value == null) {
|
|
|
519 |
unsetId();
|
|
|
520 |
} else {
|
|
|
521 |
setId((Long)value);
|
|
|
522 |
}
|
|
|
523 |
break;
|
|
|
524 |
|
| 753 |
chandransh |
525 |
case DISPLAY_NAME:
|
|
|
526 |
if (value == null) {
|
|
|
527 |
unsetDisplayName();
|
|
|
528 |
} else {
|
|
|
529 |
setDisplayName((String)value);
|
|
|
530 |
}
|
|
|
531 |
break;
|
|
|
532 |
|
| 100 |
ashish |
533 |
case LOCATION:
|
|
|
534 |
if (value == null) {
|
|
|
535 |
unsetLocation();
|
|
|
536 |
} else {
|
|
|
537 |
setLocation((String)value);
|
|
|
538 |
}
|
|
|
539 |
break;
|
|
|
540 |
|
| 103 |
ashish |
541 |
case WAREHOUSE_STATUS:
|
|
|
542 |
if (value == null) {
|
|
|
543 |
unsetWarehouseStatus();
|
|
|
544 |
} else {
|
|
|
545 |
setWarehouseStatus((status)value);
|
|
|
546 |
}
|
|
|
547 |
break;
|
|
|
548 |
|
|
|
549 |
case ADDED_ON:
|
|
|
550 |
if (value == null) {
|
|
|
551 |
unsetAddedOn();
|
|
|
552 |
} else {
|
|
|
553 |
setAddedOn((Long)value);
|
|
|
554 |
}
|
|
|
555 |
break;
|
|
|
556 |
|
| 483 |
rajveer |
557 |
case LAST_CHECKED_ON:
|
|
|
558 |
if (value == null) {
|
|
|
559 |
unsetLastCheckedOn();
|
|
|
560 |
} else {
|
|
|
561 |
setLastCheckedOn((Long)value);
|
|
|
562 |
}
|
|
|
563 |
break;
|
|
|
564 |
|
|
|
565 |
case TIN_NUMBER:
|
|
|
566 |
if (value == null) {
|
|
|
567 |
unsetTinNumber();
|
|
|
568 |
} else {
|
|
|
569 |
setTinNumber((String)value);
|
|
|
570 |
}
|
|
|
571 |
break;
|
|
|
572 |
|
|
|
573 |
case PINCODE:
|
|
|
574 |
if (value == null) {
|
|
|
575 |
unsetPincode();
|
|
|
576 |
} else {
|
|
|
577 |
setPincode((String)value);
|
|
|
578 |
}
|
|
|
579 |
break;
|
|
|
580 |
|
|
|
581 |
case VENDOR_STRING:
|
|
|
582 |
if (value == null) {
|
|
|
583 |
unsetVendorString();
|
|
|
584 |
} else {
|
|
|
585 |
setVendorString((String)value);
|
|
|
586 |
}
|
|
|
587 |
break;
|
|
|
588 |
|
| 648 |
chandransh |
589 |
case LOGISTICS_LOCATION:
|
|
|
590 |
if (value == null) {
|
|
|
591 |
unsetLogisticsLocation();
|
|
|
592 |
} else {
|
|
|
593 |
setLogisticsLocation((WarehouseLocation)value);
|
|
|
594 |
}
|
|
|
595 |
break;
|
|
|
596 |
|
| 1329 |
chandransh |
597 |
case VENDOR:
|
|
|
598 |
if (value == null) {
|
|
|
599 |
unsetVendor();
|
|
|
600 |
} else {
|
|
|
601 |
setVendor((String)value);
|
|
|
602 |
}
|
|
|
603 |
break;
|
|
|
604 |
|
| 100 |
ashish |
605 |
}
|
|
|
606 |
}
|
|
|
607 |
|
|
|
608 |
public void setFieldValue(int fieldID, Object value) {
|
|
|
609 |
setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
|
|
|
610 |
}
|
|
|
611 |
|
|
|
612 |
public Object getFieldValue(_Fields field) {
|
|
|
613 |
switch (field) {
|
|
|
614 |
case ID:
|
|
|
615 |
return new Long(getId());
|
|
|
616 |
|
| 753 |
chandransh |
617 |
case DISPLAY_NAME:
|
|
|
618 |
return getDisplayName();
|
|
|
619 |
|
| 100 |
ashish |
620 |
case LOCATION:
|
|
|
621 |
return getLocation();
|
|
|
622 |
|
| 103 |
ashish |
623 |
case WAREHOUSE_STATUS:
|
|
|
624 |
return getWarehouseStatus();
|
|
|
625 |
|
|
|
626 |
case ADDED_ON:
|
|
|
627 |
return new Long(getAddedOn());
|
|
|
628 |
|
| 483 |
rajveer |
629 |
case LAST_CHECKED_ON:
|
|
|
630 |
return new Long(getLastCheckedOn());
|
|
|
631 |
|
|
|
632 |
case TIN_NUMBER:
|
|
|
633 |
return getTinNumber();
|
|
|
634 |
|
|
|
635 |
case PINCODE:
|
|
|
636 |
return getPincode();
|
|
|
637 |
|
|
|
638 |
case VENDOR_STRING:
|
|
|
639 |
return getVendorString();
|
|
|
640 |
|
| 648 |
chandransh |
641 |
case LOGISTICS_LOCATION:
|
|
|
642 |
return getLogisticsLocation();
|
|
|
643 |
|
| 1329 |
chandransh |
644 |
case VENDOR:
|
|
|
645 |
return getVendor();
|
|
|
646 |
|
| 100 |
ashish |
647 |
}
|
|
|
648 |
throw new IllegalStateException();
|
|
|
649 |
}
|
|
|
650 |
|
|
|
651 |
public Object getFieldValue(int fieldId) {
|
|
|
652 |
return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
|
|
|
653 |
}
|
|
|
654 |
|
|
|
655 |
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
|
|
|
656 |
public boolean isSet(_Fields field) {
|
|
|
657 |
switch (field) {
|
|
|
658 |
case ID:
|
|
|
659 |
return isSetId();
|
| 753 |
chandransh |
660 |
case DISPLAY_NAME:
|
|
|
661 |
return isSetDisplayName();
|
| 100 |
ashish |
662 |
case LOCATION:
|
|
|
663 |
return isSetLocation();
|
| 103 |
ashish |
664 |
case WAREHOUSE_STATUS:
|
|
|
665 |
return isSetWarehouseStatus();
|
|
|
666 |
case ADDED_ON:
|
|
|
667 |
return isSetAddedOn();
|
| 483 |
rajveer |
668 |
case LAST_CHECKED_ON:
|
|
|
669 |
return isSetLastCheckedOn();
|
|
|
670 |
case TIN_NUMBER:
|
|
|
671 |
return isSetTinNumber();
|
|
|
672 |
case PINCODE:
|
|
|
673 |
return isSetPincode();
|
|
|
674 |
case VENDOR_STRING:
|
|
|
675 |
return isSetVendorString();
|
| 648 |
chandransh |
676 |
case LOGISTICS_LOCATION:
|
|
|
677 |
return isSetLogisticsLocation();
|
| 1329 |
chandransh |
678 |
case VENDOR:
|
|
|
679 |
return isSetVendor();
|
| 100 |
ashish |
680 |
}
|
|
|
681 |
throw new IllegalStateException();
|
|
|
682 |
}
|
|
|
683 |
|
|
|
684 |
public boolean isSet(int fieldID) {
|
|
|
685 |
return isSet(_Fields.findByThriftIdOrThrow(fieldID));
|
|
|
686 |
}
|
|
|
687 |
|
|
|
688 |
@Override
|
|
|
689 |
public boolean equals(Object that) {
|
|
|
690 |
if (that == null)
|
|
|
691 |
return false;
|
|
|
692 |
if (that instanceof Warehouse)
|
|
|
693 |
return this.equals((Warehouse)that);
|
|
|
694 |
return false;
|
|
|
695 |
}
|
|
|
696 |
|
|
|
697 |
public boolean equals(Warehouse that) {
|
|
|
698 |
if (that == null)
|
|
|
699 |
return false;
|
|
|
700 |
|
|
|
701 |
boolean this_present_id = true;
|
|
|
702 |
boolean that_present_id = true;
|
|
|
703 |
if (this_present_id || that_present_id) {
|
|
|
704 |
if (!(this_present_id && that_present_id))
|
|
|
705 |
return false;
|
|
|
706 |
if (this.id != that.id)
|
|
|
707 |
return false;
|
|
|
708 |
}
|
|
|
709 |
|
| 753 |
chandransh |
710 |
boolean this_present_displayName = true && this.isSetDisplayName();
|
|
|
711 |
boolean that_present_displayName = true && that.isSetDisplayName();
|
|
|
712 |
if (this_present_displayName || that_present_displayName) {
|
|
|
713 |
if (!(this_present_displayName && that_present_displayName))
|
|
|
714 |
return false;
|
|
|
715 |
if (!this.displayName.equals(that.displayName))
|
|
|
716 |
return false;
|
|
|
717 |
}
|
|
|
718 |
|
| 100 |
ashish |
719 |
boolean this_present_location = true && this.isSetLocation();
|
|
|
720 |
boolean that_present_location = true && that.isSetLocation();
|
|
|
721 |
if (this_present_location || that_present_location) {
|
|
|
722 |
if (!(this_present_location && that_present_location))
|
|
|
723 |
return false;
|
|
|
724 |
if (!this.location.equals(that.location))
|
|
|
725 |
return false;
|
|
|
726 |
}
|
|
|
727 |
|
| 103 |
ashish |
728 |
boolean this_present_warehouseStatus = true && this.isSetWarehouseStatus();
|
|
|
729 |
boolean that_present_warehouseStatus = true && that.isSetWarehouseStatus();
|
|
|
730 |
if (this_present_warehouseStatus || that_present_warehouseStatus) {
|
|
|
731 |
if (!(this_present_warehouseStatus && that_present_warehouseStatus))
|
|
|
732 |
return false;
|
|
|
733 |
if (!this.warehouseStatus.equals(that.warehouseStatus))
|
|
|
734 |
return false;
|
|
|
735 |
}
|
|
|
736 |
|
|
|
737 |
boolean this_present_addedOn = true;
|
|
|
738 |
boolean that_present_addedOn = true;
|
|
|
739 |
if (this_present_addedOn || that_present_addedOn) {
|
|
|
740 |
if (!(this_present_addedOn && that_present_addedOn))
|
|
|
741 |
return false;
|
|
|
742 |
if (this.addedOn != that.addedOn)
|
|
|
743 |
return false;
|
|
|
744 |
}
|
|
|
745 |
|
| 483 |
rajveer |
746 |
boolean this_present_lastCheckedOn = true;
|
|
|
747 |
boolean that_present_lastCheckedOn = true;
|
|
|
748 |
if (this_present_lastCheckedOn || that_present_lastCheckedOn) {
|
|
|
749 |
if (!(this_present_lastCheckedOn && that_present_lastCheckedOn))
|
|
|
750 |
return false;
|
|
|
751 |
if (this.lastCheckedOn != that.lastCheckedOn)
|
|
|
752 |
return false;
|
|
|
753 |
}
|
|
|
754 |
|
|
|
755 |
boolean this_present_tinNumber = true && this.isSetTinNumber();
|
|
|
756 |
boolean that_present_tinNumber = true && that.isSetTinNumber();
|
|
|
757 |
if (this_present_tinNumber || that_present_tinNumber) {
|
|
|
758 |
if (!(this_present_tinNumber && that_present_tinNumber))
|
|
|
759 |
return false;
|
|
|
760 |
if (!this.tinNumber.equals(that.tinNumber))
|
|
|
761 |
return false;
|
|
|
762 |
}
|
|
|
763 |
|
|
|
764 |
boolean this_present_pincode = true && this.isSetPincode();
|
|
|
765 |
boolean that_present_pincode = true && that.isSetPincode();
|
|
|
766 |
if (this_present_pincode || that_present_pincode) {
|
|
|
767 |
if (!(this_present_pincode && that_present_pincode))
|
|
|
768 |
return false;
|
|
|
769 |
if (!this.pincode.equals(that.pincode))
|
|
|
770 |
return false;
|
|
|
771 |
}
|
|
|
772 |
|
|
|
773 |
boolean this_present_vendorString = true && this.isSetVendorString();
|
|
|
774 |
boolean that_present_vendorString = true && that.isSetVendorString();
|
|
|
775 |
if (this_present_vendorString || that_present_vendorString) {
|
|
|
776 |
if (!(this_present_vendorString && that_present_vendorString))
|
|
|
777 |
return false;
|
|
|
778 |
if (!this.vendorString.equals(that.vendorString))
|
|
|
779 |
return false;
|
|
|
780 |
}
|
|
|
781 |
|
| 648 |
chandransh |
782 |
boolean this_present_logisticsLocation = true && this.isSetLogisticsLocation();
|
|
|
783 |
boolean that_present_logisticsLocation = true && that.isSetLogisticsLocation();
|
|
|
784 |
if (this_present_logisticsLocation || that_present_logisticsLocation) {
|
|
|
785 |
if (!(this_present_logisticsLocation && that_present_logisticsLocation))
|
|
|
786 |
return false;
|
|
|
787 |
if (!this.logisticsLocation.equals(that.logisticsLocation))
|
|
|
788 |
return false;
|
|
|
789 |
}
|
|
|
790 |
|
| 1329 |
chandransh |
791 |
boolean this_present_vendor = true && this.isSetVendor();
|
|
|
792 |
boolean that_present_vendor = true && that.isSetVendor();
|
|
|
793 |
if (this_present_vendor || that_present_vendor) {
|
|
|
794 |
if (!(this_present_vendor && that_present_vendor))
|
|
|
795 |
return false;
|
|
|
796 |
if (!this.vendor.equals(that.vendor))
|
|
|
797 |
return false;
|
|
|
798 |
}
|
|
|
799 |
|
| 100 |
ashish |
800 |
return true;
|
|
|
801 |
}
|
|
|
802 |
|
|
|
803 |
@Override
|
|
|
804 |
public int hashCode() {
|
|
|
805 |
return 0;
|
|
|
806 |
}
|
|
|
807 |
|
|
|
808 |
public int compareTo(Warehouse other) {
|
|
|
809 |
if (!getClass().equals(other.getClass())) {
|
|
|
810 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
811 |
}
|
|
|
812 |
|
|
|
813 |
int lastComparison = 0;
|
|
|
814 |
Warehouse typedOther = (Warehouse)other;
|
|
|
815 |
|
|
|
816 |
lastComparison = Boolean.valueOf(isSetId()).compareTo(isSetId());
|
|
|
817 |
if (lastComparison != 0) {
|
|
|
818 |
return lastComparison;
|
|
|
819 |
}
|
|
|
820 |
lastComparison = TBaseHelper.compareTo(id, typedOther.id);
|
|
|
821 |
if (lastComparison != 0) {
|
|
|
822 |
return lastComparison;
|
|
|
823 |
}
|
| 753 |
chandransh |
824 |
lastComparison = Boolean.valueOf(isSetDisplayName()).compareTo(isSetDisplayName());
|
|
|
825 |
if (lastComparison != 0) {
|
|
|
826 |
return lastComparison;
|
|
|
827 |
}
|
|
|
828 |
lastComparison = TBaseHelper.compareTo(displayName, typedOther.displayName);
|
|
|
829 |
if (lastComparison != 0) {
|
|
|
830 |
return lastComparison;
|
|
|
831 |
}
|
| 100 |
ashish |
832 |
lastComparison = Boolean.valueOf(isSetLocation()).compareTo(isSetLocation());
|
|
|
833 |
if (lastComparison != 0) {
|
|
|
834 |
return lastComparison;
|
|
|
835 |
}
|
|
|
836 |
lastComparison = TBaseHelper.compareTo(location, typedOther.location);
|
|
|
837 |
if (lastComparison != 0) {
|
|
|
838 |
return lastComparison;
|
|
|
839 |
}
|
| 103 |
ashish |
840 |
lastComparison = Boolean.valueOf(isSetWarehouseStatus()).compareTo(isSetWarehouseStatus());
|
|
|
841 |
if (lastComparison != 0) {
|
|
|
842 |
return lastComparison;
|
|
|
843 |
}
|
|
|
844 |
lastComparison = TBaseHelper.compareTo(warehouseStatus, typedOther.warehouseStatus);
|
|
|
845 |
if (lastComparison != 0) {
|
|
|
846 |
return lastComparison;
|
|
|
847 |
}
|
|
|
848 |
lastComparison = Boolean.valueOf(isSetAddedOn()).compareTo(isSetAddedOn());
|
|
|
849 |
if (lastComparison != 0) {
|
|
|
850 |
return lastComparison;
|
|
|
851 |
}
|
|
|
852 |
lastComparison = TBaseHelper.compareTo(addedOn, typedOther.addedOn);
|
|
|
853 |
if (lastComparison != 0) {
|
|
|
854 |
return lastComparison;
|
|
|
855 |
}
|
| 483 |
rajveer |
856 |
lastComparison = Boolean.valueOf(isSetLastCheckedOn()).compareTo(isSetLastCheckedOn());
|
|
|
857 |
if (lastComparison != 0) {
|
|
|
858 |
return lastComparison;
|
|
|
859 |
}
|
|
|
860 |
lastComparison = TBaseHelper.compareTo(lastCheckedOn, typedOther.lastCheckedOn);
|
|
|
861 |
if (lastComparison != 0) {
|
|
|
862 |
return lastComparison;
|
|
|
863 |
}
|
|
|
864 |
lastComparison = Boolean.valueOf(isSetTinNumber()).compareTo(isSetTinNumber());
|
|
|
865 |
if (lastComparison != 0) {
|
|
|
866 |
return lastComparison;
|
|
|
867 |
}
|
|
|
868 |
lastComparison = TBaseHelper.compareTo(tinNumber, typedOther.tinNumber);
|
|
|
869 |
if (lastComparison != 0) {
|
|
|
870 |
return lastComparison;
|
|
|
871 |
}
|
|
|
872 |
lastComparison = Boolean.valueOf(isSetPincode()).compareTo(isSetPincode());
|
|
|
873 |
if (lastComparison != 0) {
|
|
|
874 |
return lastComparison;
|
|
|
875 |
}
|
|
|
876 |
lastComparison = TBaseHelper.compareTo(pincode, typedOther.pincode);
|
|
|
877 |
if (lastComparison != 0) {
|
|
|
878 |
return lastComparison;
|
|
|
879 |
}
|
|
|
880 |
lastComparison = Boolean.valueOf(isSetVendorString()).compareTo(isSetVendorString());
|
|
|
881 |
if (lastComparison != 0) {
|
|
|
882 |
return lastComparison;
|
|
|
883 |
}
|
|
|
884 |
lastComparison = TBaseHelper.compareTo(vendorString, typedOther.vendorString);
|
|
|
885 |
if (lastComparison != 0) {
|
|
|
886 |
return lastComparison;
|
|
|
887 |
}
|
| 648 |
chandransh |
888 |
lastComparison = Boolean.valueOf(isSetLogisticsLocation()).compareTo(isSetLogisticsLocation());
|
|
|
889 |
if (lastComparison != 0) {
|
|
|
890 |
return lastComparison;
|
|
|
891 |
}
|
|
|
892 |
lastComparison = TBaseHelper.compareTo(logisticsLocation, typedOther.logisticsLocation);
|
|
|
893 |
if (lastComparison != 0) {
|
|
|
894 |
return lastComparison;
|
|
|
895 |
}
|
| 1329 |
chandransh |
896 |
lastComparison = Boolean.valueOf(isSetVendor()).compareTo(isSetVendor());
|
|
|
897 |
if (lastComparison != 0) {
|
|
|
898 |
return lastComparison;
|
|
|
899 |
}
|
|
|
900 |
lastComparison = TBaseHelper.compareTo(vendor, typedOther.vendor);
|
|
|
901 |
if (lastComparison != 0) {
|
|
|
902 |
return lastComparison;
|
|
|
903 |
}
|
| 100 |
ashish |
904 |
return 0;
|
|
|
905 |
}
|
|
|
906 |
|
|
|
907 |
public void read(TProtocol iprot) throws TException {
|
|
|
908 |
TField field;
|
|
|
909 |
iprot.readStructBegin();
|
|
|
910 |
while (true)
|
|
|
911 |
{
|
|
|
912 |
field = iprot.readFieldBegin();
|
|
|
913 |
if (field.type == TType.STOP) {
|
|
|
914 |
break;
|
|
|
915 |
}
|
|
|
916 |
_Fields fieldId = _Fields.findByThriftId(field.id);
|
|
|
917 |
if (fieldId == null) {
|
|
|
918 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
919 |
} else {
|
|
|
920 |
switch (fieldId) {
|
|
|
921 |
case ID:
|
|
|
922 |
if (field.type == TType.I64) {
|
|
|
923 |
this.id = iprot.readI64();
|
|
|
924 |
setIdIsSet(true);
|
|
|
925 |
} else {
|
|
|
926 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
927 |
}
|
|
|
928 |
break;
|
| 753 |
chandransh |
929 |
case DISPLAY_NAME:
|
|
|
930 |
if (field.type == TType.STRING) {
|
|
|
931 |
this.displayName = iprot.readString();
|
|
|
932 |
} else {
|
|
|
933 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
934 |
}
|
|
|
935 |
break;
|
| 100 |
ashish |
936 |
case LOCATION:
|
|
|
937 |
if (field.type == TType.STRING) {
|
|
|
938 |
this.location = iprot.readString();
|
|
|
939 |
} else {
|
|
|
940 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
941 |
}
|
|
|
942 |
break;
|
| 103 |
ashish |
943 |
case WAREHOUSE_STATUS:
|
|
|
944 |
if (field.type == TType.I32) {
|
|
|
945 |
this.warehouseStatus = status.findByValue(iprot.readI32());
|
|
|
946 |
} else {
|
|
|
947 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
948 |
}
|
|
|
949 |
break;
|
|
|
950 |
case ADDED_ON:
|
|
|
951 |
if (field.type == TType.I64) {
|
|
|
952 |
this.addedOn = iprot.readI64();
|
|
|
953 |
setAddedOnIsSet(true);
|
|
|
954 |
} else {
|
|
|
955 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
956 |
}
|
|
|
957 |
break;
|
| 483 |
rajveer |
958 |
case LAST_CHECKED_ON:
|
|
|
959 |
if (field.type == TType.I64) {
|
|
|
960 |
this.lastCheckedOn = iprot.readI64();
|
|
|
961 |
setLastCheckedOnIsSet(true);
|
|
|
962 |
} else {
|
|
|
963 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
964 |
}
|
|
|
965 |
break;
|
|
|
966 |
case TIN_NUMBER:
|
|
|
967 |
if (field.type == TType.STRING) {
|
|
|
968 |
this.tinNumber = iprot.readString();
|
|
|
969 |
} else {
|
|
|
970 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
971 |
}
|
|
|
972 |
break;
|
|
|
973 |
case PINCODE:
|
|
|
974 |
if (field.type == TType.STRING) {
|
|
|
975 |
this.pincode = iprot.readString();
|
|
|
976 |
} else {
|
|
|
977 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
978 |
}
|
|
|
979 |
break;
|
|
|
980 |
case VENDOR_STRING:
|
|
|
981 |
if (field.type == TType.STRING) {
|
|
|
982 |
this.vendorString = iprot.readString();
|
|
|
983 |
} else {
|
|
|
984 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
985 |
}
|
|
|
986 |
break;
|
| 648 |
chandransh |
987 |
case LOGISTICS_LOCATION:
|
|
|
988 |
if (field.type == TType.I32) {
|
|
|
989 |
this.logisticsLocation = WarehouseLocation.findByValue(iprot.readI32());
|
|
|
990 |
} else {
|
|
|
991 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
992 |
}
|
|
|
993 |
break;
|
| 1329 |
chandransh |
994 |
case VENDOR:
|
|
|
995 |
if (field.type == TType.STRING) {
|
|
|
996 |
this.vendor = iprot.readString();
|
|
|
997 |
} else {
|
|
|
998 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
999 |
}
|
|
|
1000 |
break;
|
| 100 |
ashish |
1001 |
}
|
|
|
1002 |
iprot.readFieldEnd();
|
|
|
1003 |
}
|
|
|
1004 |
}
|
|
|
1005 |
iprot.readStructEnd();
|
|
|
1006 |
validate();
|
|
|
1007 |
}
|
|
|
1008 |
|
|
|
1009 |
public void write(TProtocol oprot) throws TException {
|
|
|
1010 |
validate();
|
|
|
1011 |
|
|
|
1012 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
1013 |
oprot.writeFieldBegin(ID_FIELD_DESC);
|
|
|
1014 |
oprot.writeI64(this.id);
|
|
|
1015 |
oprot.writeFieldEnd();
|
| 753 |
chandransh |
1016 |
if (this.displayName != null) {
|
|
|
1017 |
oprot.writeFieldBegin(DISPLAY_NAME_FIELD_DESC);
|
|
|
1018 |
oprot.writeString(this.displayName);
|
|
|
1019 |
oprot.writeFieldEnd();
|
|
|
1020 |
}
|
| 100 |
ashish |
1021 |
if (this.location != null) {
|
|
|
1022 |
oprot.writeFieldBegin(LOCATION_FIELD_DESC);
|
|
|
1023 |
oprot.writeString(this.location);
|
|
|
1024 |
oprot.writeFieldEnd();
|
|
|
1025 |
}
|
| 103 |
ashish |
1026 |
if (this.warehouseStatus != null) {
|
|
|
1027 |
oprot.writeFieldBegin(WAREHOUSE_STATUS_FIELD_DESC);
|
|
|
1028 |
oprot.writeI32(this.warehouseStatus.getValue());
|
|
|
1029 |
oprot.writeFieldEnd();
|
|
|
1030 |
}
|
|
|
1031 |
oprot.writeFieldBegin(ADDED_ON_FIELD_DESC);
|
|
|
1032 |
oprot.writeI64(this.addedOn);
|
|
|
1033 |
oprot.writeFieldEnd();
|
| 483 |
rajveer |
1034 |
oprot.writeFieldBegin(LAST_CHECKED_ON_FIELD_DESC);
|
|
|
1035 |
oprot.writeI64(this.lastCheckedOn);
|
|
|
1036 |
oprot.writeFieldEnd();
|
|
|
1037 |
if (this.tinNumber != null) {
|
|
|
1038 |
oprot.writeFieldBegin(TIN_NUMBER_FIELD_DESC);
|
|
|
1039 |
oprot.writeString(this.tinNumber);
|
|
|
1040 |
oprot.writeFieldEnd();
|
|
|
1041 |
}
|
|
|
1042 |
if (this.pincode != null) {
|
|
|
1043 |
oprot.writeFieldBegin(PINCODE_FIELD_DESC);
|
|
|
1044 |
oprot.writeString(this.pincode);
|
|
|
1045 |
oprot.writeFieldEnd();
|
|
|
1046 |
}
|
|
|
1047 |
if (this.vendorString != null) {
|
|
|
1048 |
oprot.writeFieldBegin(VENDOR_STRING_FIELD_DESC);
|
|
|
1049 |
oprot.writeString(this.vendorString);
|
|
|
1050 |
oprot.writeFieldEnd();
|
|
|
1051 |
}
|
| 648 |
chandransh |
1052 |
if (this.logisticsLocation != null) {
|
|
|
1053 |
oprot.writeFieldBegin(LOGISTICS_LOCATION_FIELD_DESC);
|
|
|
1054 |
oprot.writeI32(this.logisticsLocation.getValue());
|
|
|
1055 |
oprot.writeFieldEnd();
|
|
|
1056 |
}
|
| 1329 |
chandransh |
1057 |
if (this.vendor != null) {
|
|
|
1058 |
oprot.writeFieldBegin(VENDOR_FIELD_DESC);
|
|
|
1059 |
oprot.writeString(this.vendor);
|
|
|
1060 |
oprot.writeFieldEnd();
|
|
|
1061 |
}
|
| 100 |
ashish |
1062 |
oprot.writeFieldStop();
|
|
|
1063 |
oprot.writeStructEnd();
|
|
|
1064 |
}
|
|
|
1065 |
|
|
|
1066 |
@Override
|
|
|
1067 |
public String toString() {
|
|
|
1068 |
StringBuilder sb = new StringBuilder("Warehouse(");
|
|
|
1069 |
boolean first = true;
|
|
|
1070 |
|
|
|
1071 |
sb.append("id:");
|
|
|
1072 |
sb.append(this.id);
|
|
|
1073 |
first = false;
|
|
|
1074 |
if (!first) sb.append(", ");
|
| 753 |
chandransh |
1075 |
sb.append("displayName:");
|
|
|
1076 |
if (this.displayName == null) {
|
|
|
1077 |
sb.append("null");
|
|
|
1078 |
} else {
|
|
|
1079 |
sb.append(this.displayName);
|
|
|
1080 |
}
|
|
|
1081 |
first = false;
|
|
|
1082 |
if (!first) sb.append(", ");
|
| 100 |
ashish |
1083 |
sb.append("location:");
|
|
|
1084 |
if (this.location == null) {
|
|
|
1085 |
sb.append("null");
|
|
|
1086 |
} else {
|
|
|
1087 |
sb.append(this.location);
|
|
|
1088 |
}
|
|
|
1089 |
first = false;
|
|
|
1090 |
if (!first) sb.append(", ");
|
| 103 |
ashish |
1091 |
sb.append("warehouseStatus:");
|
|
|
1092 |
if (this.warehouseStatus == null) {
|
|
|
1093 |
sb.append("null");
|
|
|
1094 |
} else {
|
|
|
1095 |
String warehouseStatus_name = warehouseStatus.name();
|
|
|
1096 |
if (warehouseStatus_name != null) {
|
|
|
1097 |
sb.append(warehouseStatus_name);
|
|
|
1098 |
sb.append(" (");
|
|
|
1099 |
}
|
|
|
1100 |
sb.append(this.warehouseStatus);
|
|
|
1101 |
if (warehouseStatus_name != null) {
|
|
|
1102 |
sb.append(")");
|
|
|
1103 |
}
|
|
|
1104 |
}
|
|
|
1105 |
first = false;
|
|
|
1106 |
if (!first) sb.append(", ");
|
|
|
1107 |
sb.append("addedOn:");
|
|
|
1108 |
sb.append(this.addedOn);
|
|
|
1109 |
first = false;
|
| 483 |
rajveer |
1110 |
if (!first) sb.append(", ");
|
|
|
1111 |
sb.append("lastCheckedOn:");
|
|
|
1112 |
sb.append(this.lastCheckedOn);
|
|
|
1113 |
first = false;
|
|
|
1114 |
if (!first) sb.append(", ");
|
|
|
1115 |
sb.append("tinNumber:");
|
|
|
1116 |
if (this.tinNumber == null) {
|
|
|
1117 |
sb.append("null");
|
|
|
1118 |
} else {
|
|
|
1119 |
sb.append(this.tinNumber);
|
|
|
1120 |
}
|
|
|
1121 |
first = false;
|
|
|
1122 |
if (!first) sb.append(", ");
|
|
|
1123 |
sb.append("pincode:");
|
|
|
1124 |
if (this.pincode == null) {
|
|
|
1125 |
sb.append("null");
|
|
|
1126 |
} else {
|
|
|
1127 |
sb.append(this.pincode);
|
|
|
1128 |
}
|
|
|
1129 |
first = false;
|
|
|
1130 |
if (!first) sb.append(", ");
|
|
|
1131 |
sb.append("vendorString:");
|
|
|
1132 |
if (this.vendorString == null) {
|
|
|
1133 |
sb.append("null");
|
|
|
1134 |
} else {
|
|
|
1135 |
sb.append(this.vendorString);
|
|
|
1136 |
}
|
|
|
1137 |
first = false;
|
| 648 |
chandransh |
1138 |
if (!first) sb.append(", ");
|
|
|
1139 |
sb.append("logisticsLocation:");
|
|
|
1140 |
if (this.logisticsLocation == null) {
|
|
|
1141 |
sb.append("null");
|
|
|
1142 |
} else {
|
|
|
1143 |
String logisticsLocation_name = logisticsLocation.name();
|
|
|
1144 |
if (logisticsLocation_name != null) {
|
|
|
1145 |
sb.append(logisticsLocation_name);
|
|
|
1146 |
sb.append(" (");
|
|
|
1147 |
}
|
|
|
1148 |
sb.append(this.logisticsLocation);
|
|
|
1149 |
if (logisticsLocation_name != null) {
|
|
|
1150 |
sb.append(")");
|
|
|
1151 |
}
|
|
|
1152 |
}
|
|
|
1153 |
first = false;
|
| 1329 |
chandransh |
1154 |
if (!first) sb.append(", ");
|
|
|
1155 |
sb.append("vendor:");
|
|
|
1156 |
if (this.vendor == null) {
|
|
|
1157 |
sb.append("null");
|
|
|
1158 |
} else {
|
|
|
1159 |
sb.append(this.vendor);
|
|
|
1160 |
}
|
|
|
1161 |
first = false;
|
| 100 |
ashish |
1162 |
sb.append(")");
|
|
|
1163 |
return sb.toString();
|
|
|
1164 |
}
|
|
|
1165 |
|
|
|
1166 |
public void validate() throws TException {
|
|
|
1167 |
// check for required fields
|
|
|
1168 |
}
|
|
|
1169 |
|
|
|
1170 |
}
|
|
|
1171 |
|