| 648 |
chandransh |
1 |
/**
|
| 3430 |
rajveer |
2 |
* Autogenerated by Thrift Compiler (0.7.0)
|
| 648 |
chandransh |
3 |
*
|
|
|
4 |
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
|
5 |
*/
|
|
|
6 |
package in.shop2020.logistics;
|
|
|
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;
|
| 3430 |
rajveer |
18 |
import java.nio.ByteBuffer;
|
| 648 |
chandransh |
19 |
import java.util.Arrays;
|
|
|
20 |
import org.slf4j.Logger;
|
|
|
21 |
import org.slf4j.LoggerFactory;
|
|
|
22 |
|
| 3430 |
rajveer |
23 |
public class AwbUpdate implements org.apache.thrift.TBase<AwbUpdate, AwbUpdate._Fields>, java.io.Serializable, Cloneable {
|
|
|
24 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AwbUpdate");
|
| 648 |
chandransh |
25 |
|
| 3430 |
rajveer |
26 |
private static final org.apache.thrift.protocol.TField AWB_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("awbNumber", org.apache.thrift.protocol.TType.STRING, (short)1);
|
| 6643 |
rajveer |
27 |
private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)2);
|
|
|
28 |
private static final org.apache.thrift.protocol.TField DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("date", org.apache.thrift.protocol.TType.I64, (short)3);
|
|
|
29 |
private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.STRING, (short)4);
|
| 3430 |
rajveer |
30 |
private static final org.apache.thrift.protocol.TField DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("description", org.apache.thrift.protocol.TType.STRING, (short)5);
|
| 6643 |
rajveer |
31 |
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)6);
|
| 648 |
chandransh |
32 |
|
| 3430 |
rajveer |
33 |
private String awbNumber; // required
|
| 6643 |
rajveer |
34 |
private long providerId; // required
|
|
|
35 |
private long date; // required
|
|
|
36 |
private String status; // required
|
|
|
37 |
private String description; // required
|
| 3430 |
rajveer |
38 |
private String location; // required
|
| 648 |
chandransh |
39 |
|
|
|
40 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
41 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 648 |
chandransh |
42 |
AWB_NUMBER((short)1, "awbNumber"),
|
| 6643 |
rajveer |
43 |
PROVIDER_ID((short)2, "providerId"),
|
|
|
44 |
DATE((short)3, "date"),
|
|
|
45 |
STATUS((short)4, "status"),
|
|
|
46 |
DESCRIPTION((short)5, "description"),
|
|
|
47 |
LOCATION((short)6, "location");
|
| 648 |
chandransh |
48 |
|
|
|
49 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
50 |
|
|
|
51 |
static {
|
|
|
52 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
53 |
byName.put(field.getFieldName(), field);
|
|
|
54 |
}
|
|
|
55 |
}
|
|
|
56 |
|
|
|
57 |
/**
|
|
|
58 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
59 |
*/
|
|
|
60 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
61 |
switch(fieldId) {
|
|
|
62 |
case 1: // AWB_NUMBER
|
|
|
63 |
return AWB_NUMBER;
|
| 6643 |
rajveer |
64 |
case 2: // PROVIDER_ID
|
|
|
65 |
return PROVIDER_ID;
|
|
|
66 |
case 3: // DATE
|
|
|
67 |
return DATE;
|
|
|
68 |
case 4: // STATUS
|
|
|
69 |
return STATUS;
|
| 3430 |
rajveer |
70 |
case 5: // DESCRIPTION
|
|
|
71 |
return DESCRIPTION;
|
| 6643 |
rajveer |
72 |
case 6: // LOCATION
|
|
|
73 |
return LOCATION;
|
| 3430 |
rajveer |
74 |
default:
|
|
|
75 |
return null;
|
|
|
76 |
}
|
| 648 |
chandransh |
77 |
}
|
|
|
78 |
|
|
|
79 |
/**
|
|
|
80 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
81 |
* if it is not found.
|
|
|
82 |
*/
|
|
|
83 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
84 |
_Fields fields = findByThriftId(fieldId);
|
|
|
85 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
86 |
return fields;
|
|
|
87 |
}
|
|
|
88 |
|
|
|
89 |
/**
|
|
|
90 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
91 |
*/
|
|
|
92 |
public static _Fields findByName(String name) {
|
|
|
93 |
return byName.get(name);
|
|
|
94 |
}
|
|
|
95 |
|
|
|
96 |
private final short _thriftId;
|
|
|
97 |
private final String _fieldName;
|
|
|
98 |
|
|
|
99 |
_Fields(short thriftId, String fieldName) {
|
|
|
100 |
_thriftId = thriftId;
|
|
|
101 |
_fieldName = fieldName;
|
|
|
102 |
}
|
|
|
103 |
|
|
|
104 |
public short getThriftFieldId() {
|
|
|
105 |
return _thriftId;
|
|
|
106 |
}
|
|
|
107 |
|
|
|
108 |
public String getFieldName() {
|
|
|
109 |
return _fieldName;
|
|
|
110 |
}
|
|
|
111 |
}
|
|
|
112 |
|
|
|
113 |
// isset id assignments
|
| 6643 |
rajveer |
114 |
private static final int __PROVIDERID_ISSET_ID = 0;
|
|
|
115 |
private static final int __DATE_ISSET_ID = 1;
|
|
|
116 |
private BitSet __isset_bit_vector = new BitSet(2);
|
| 648 |
chandransh |
117 |
|
| 3430 |
rajveer |
118 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 648 |
chandransh |
119 |
static {
|
| 3430 |
rajveer |
120 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
121 |
tmpMap.put(_Fields.AWB_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("awbNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
122 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 6643 |
rajveer |
123 |
tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
124 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
125 |
tmpMap.put(_Fields.DATE, new org.apache.thrift.meta_data.FieldMetaData("date", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
126 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
127 |
tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 3430 |
rajveer |
128 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 6643 |
rajveer |
129 |
tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
130 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 3430 |
rajveer |
131 |
tmpMap.put(_Fields.LOCATION, new org.apache.thrift.meta_data.FieldMetaData("location", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
132 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
133 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
134 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(AwbUpdate.class, metaDataMap);
|
| 648 |
chandransh |
135 |
}
|
|
|
136 |
|
|
|
137 |
public AwbUpdate() {
|
|
|
138 |
}
|
|
|
139 |
|
|
|
140 |
public AwbUpdate(
|
|
|
141 |
String awbNumber,
|
| 6643 |
rajveer |
142 |
long providerId,
|
|
|
143 |
long date,
|
|
|
144 |
String status,
|
|
|
145 |
String description,
|
|
|
146 |
String location)
|
| 648 |
chandransh |
147 |
{
|
|
|
148 |
this();
|
|
|
149 |
this.awbNumber = awbNumber;
|
| 6643 |
rajveer |
150 |
this.providerId = providerId;
|
|
|
151 |
setProviderIdIsSet(true);
|
|
|
152 |
this.date = date;
|
|
|
153 |
setDateIsSet(true);
|
|
|
154 |
this.status = status;
|
|
|
155 |
this.description = description;
|
| 648 |
chandransh |
156 |
this.location = location;
|
|
|
157 |
}
|
|
|
158 |
|
|
|
159 |
/**
|
|
|
160 |
* Performs a deep copy on <i>other</i>.
|
|
|
161 |
*/
|
|
|
162 |
public AwbUpdate(AwbUpdate other) {
|
|
|
163 |
__isset_bit_vector.clear();
|
|
|
164 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
165 |
if (other.isSetAwbNumber()) {
|
|
|
166 |
this.awbNumber = other.awbNumber;
|
|
|
167 |
}
|
| 6643 |
rajveer |
168 |
this.providerId = other.providerId;
|
|
|
169 |
this.date = other.date;
|
|
|
170 |
if (other.isSetStatus()) {
|
|
|
171 |
this.status = other.status;
|
| 648 |
chandransh |
172 |
}
|
| 6643 |
rajveer |
173 |
if (other.isSetDescription()) {
|
|
|
174 |
this.description = other.description;
|
|
|
175 |
}
|
| 648 |
chandransh |
176 |
if (other.isSetLocation()) {
|
|
|
177 |
this.location = other.location;
|
|
|
178 |
}
|
|
|
179 |
}
|
|
|
180 |
|
|
|
181 |
public AwbUpdate deepCopy() {
|
|
|
182 |
return new AwbUpdate(this);
|
|
|
183 |
}
|
|
|
184 |
|
| 3430 |
rajveer |
185 |
@Override
|
|
|
186 |
public void clear() {
|
|
|
187 |
this.awbNumber = null;
|
| 6643 |
rajveer |
188 |
setProviderIdIsSet(false);
|
|
|
189 |
this.providerId = 0;
|
|
|
190 |
setDateIsSet(false);
|
|
|
191 |
this.date = 0;
|
|
|
192 |
this.status = null;
|
|
|
193 |
this.description = null;
|
| 3430 |
rajveer |
194 |
this.location = null;
|
| 648 |
chandransh |
195 |
}
|
|
|
196 |
|
|
|
197 |
public String getAwbNumber() {
|
|
|
198 |
return this.awbNumber;
|
|
|
199 |
}
|
|
|
200 |
|
| 3430 |
rajveer |
201 |
public void setAwbNumber(String awbNumber) {
|
| 648 |
chandransh |
202 |
this.awbNumber = awbNumber;
|
|
|
203 |
}
|
|
|
204 |
|
|
|
205 |
public void unsetAwbNumber() {
|
|
|
206 |
this.awbNumber = null;
|
|
|
207 |
}
|
|
|
208 |
|
| 3430 |
rajveer |
209 |
/** Returns true if field awbNumber is set (has been assigned a value) and false otherwise */
|
| 648 |
chandransh |
210 |
public boolean isSetAwbNumber() {
|
|
|
211 |
return this.awbNumber != null;
|
|
|
212 |
}
|
|
|
213 |
|
|
|
214 |
public void setAwbNumberIsSet(boolean value) {
|
|
|
215 |
if (!value) {
|
|
|
216 |
this.awbNumber = null;
|
|
|
217 |
}
|
|
|
218 |
}
|
|
|
219 |
|
| 6643 |
rajveer |
220 |
public long getProviderId() {
|
|
|
221 |
return this.providerId;
|
| 648 |
chandransh |
222 |
}
|
|
|
223 |
|
| 6643 |
rajveer |
224 |
public void setProviderId(long providerId) {
|
|
|
225 |
this.providerId = providerId;
|
|
|
226 |
setProviderIdIsSet(true);
|
| 648 |
chandransh |
227 |
}
|
|
|
228 |
|
| 6643 |
rajveer |
229 |
public void unsetProviderId() {
|
|
|
230 |
__isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
|
| 648 |
chandransh |
231 |
}
|
|
|
232 |
|
| 6643 |
rajveer |
233 |
/** Returns true if field providerId is set (has been assigned a value) and false otherwise */
|
|
|
234 |
public boolean isSetProviderId() {
|
|
|
235 |
return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
|
| 648 |
chandransh |
236 |
}
|
|
|
237 |
|
| 6643 |
rajveer |
238 |
public void setProviderIdIsSet(boolean value) {
|
|
|
239 |
__isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
|
| 648 |
chandransh |
240 |
}
|
|
|
241 |
|
| 6643 |
rajveer |
242 |
public long getDate() {
|
|
|
243 |
return this.date;
|
| 648 |
chandransh |
244 |
}
|
|
|
245 |
|
| 6643 |
rajveer |
246 |
public void setDate(long date) {
|
|
|
247 |
this.date = date;
|
|
|
248 |
setDateIsSet(true);
|
| 648 |
chandransh |
249 |
}
|
|
|
250 |
|
| 6643 |
rajveer |
251 |
public void unsetDate() {
|
|
|
252 |
__isset_bit_vector.clear(__DATE_ISSET_ID);
|
| 648 |
chandransh |
253 |
}
|
|
|
254 |
|
| 6643 |
rajveer |
255 |
/** Returns true if field date is set (has been assigned a value) and false otherwise */
|
|
|
256 |
public boolean isSetDate() {
|
|
|
257 |
return __isset_bit_vector.get(__DATE_ISSET_ID);
|
| 648 |
chandransh |
258 |
}
|
|
|
259 |
|
| 6643 |
rajveer |
260 |
public void setDateIsSet(boolean value) {
|
|
|
261 |
__isset_bit_vector.set(__DATE_ISSET_ID, value);
|
| 648 |
chandransh |
262 |
}
|
|
|
263 |
|
| 6643 |
rajveer |
264 |
public String getStatus() {
|
|
|
265 |
return this.status;
|
| 648 |
chandransh |
266 |
}
|
|
|
267 |
|
| 6643 |
rajveer |
268 |
public void setStatus(String status) {
|
|
|
269 |
this.status = status;
|
| 648 |
chandransh |
270 |
}
|
|
|
271 |
|
| 6643 |
rajveer |
272 |
public void unsetStatus() {
|
|
|
273 |
this.status = null;
|
| 648 |
chandransh |
274 |
}
|
|
|
275 |
|
| 6643 |
rajveer |
276 |
/** Returns true if field status is set (has been assigned a value) and false otherwise */
|
|
|
277 |
public boolean isSetStatus() {
|
|
|
278 |
return this.status != null;
|
| 648 |
chandransh |
279 |
}
|
|
|
280 |
|
| 6643 |
rajveer |
281 |
public void setStatusIsSet(boolean value) {
|
|
|
282 |
if (!value) {
|
|
|
283 |
this.status = null;
|
|
|
284 |
}
|
| 648 |
chandransh |
285 |
}
|
|
|
286 |
|
|
|
287 |
public String getDescription() {
|
|
|
288 |
return this.description;
|
|
|
289 |
}
|
|
|
290 |
|
| 3430 |
rajveer |
291 |
public void setDescription(String description) {
|
| 648 |
chandransh |
292 |
this.description = description;
|
|
|
293 |
}
|
|
|
294 |
|
|
|
295 |
public void unsetDescription() {
|
|
|
296 |
this.description = null;
|
|
|
297 |
}
|
|
|
298 |
|
| 3430 |
rajveer |
299 |
/** Returns true if field description is set (has been assigned a value) and false otherwise */
|
| 648 |
chandransh |
300 |
public boolean isSetDescription() {
|
|
|
301 |
return this.description != null;
|
|
|
302 |
}
|
|
|
303 |
|
|
|
304 |
public void setDescriptionIsSet(boolean value) {
|
|
|
305 |
if (!value) {
|
|
|
306 |
this.description = null;
|
|
|
307 |
}
|
|
|
308 |
}
|
|
|
309 |
|
| 6643 |
rajveer |
310 |
public String getLocation() {
|
|
|
311 |
return this.location;
|
|
|
312 |
}
|
|
|
313 |
|
|
|
314 |
public void setLocation(String location) {
|
|
|
315 |
this.location = location;
|
|
|
316 |
}
|
|
|
317 |
|
|
|
318 |
public void unsetLocation() {
|
|
|
319 |
this.location = null;
|
|
|
320 |
}
|
|
|
321 |
|
|
|
322 |
/** Returns true if field location is set (has been assigned a value) and false otherwise */
|
|
|
323 |
public boolean isSetLocation() {
|
|
|
324 |
return this.location != null;
|
|
|
325 |
}
|
|
|
326 |
|
|
|
327 |
public void setLocationIsSet(boolean value) {
|
|
|
328 |
if (!value) {
|
|
|
329 |
this.location = null;
|
|
|
330 |
}
|
|
|
331 |
}
|
|
|
332 |
|
| 648 |
chandransh |
333 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
334 |
switch (field) {
|
|
|
335 |
case AWB_NUMBER:
|
|
|
336 |
if (value == null) {
|
|
|
337 |
unsetAwbNumber();
|
|
|
338 |
} else {
|
|
|
339 |
setAwbNumber((String)value);
|
|
|
340 |
}
|
|
|
341 |
break;
|
|
|
342 |
|
| 6643 |
rajveer |
343 |
case PROVIDER_ID:
|
| 648 |
chandransh |
344 |
if (value == null) {
|
| 6643 |
rajveer |
345 |
unsetProviderId();
|
| 648 |
chandransh |
346 |
} else {
|
| 6643 |
rajveer |
347 |
setProviderId((Long)value);
|
| 648 |
chandransh |
348 |
}
|
|
|
349 |
break;
|
|
|
350 |
|
| 6643 |
rajveer |
351 |
case DATE:
|
| 648 |
chandransh |
352 |
if (value == null) {
|
| 6643 |
rajveer |
353 |
unsetDate();
|
| 648 |
chandransh |
354 |
} else {
|
| 6643 |
rajveer |
355 |
setDate((Long)value);
|
| 648 |
chandransh |
356 |
}
|
|
|
357 |
break;
|
|
|
358 |
|
| 6643 |
rajveer |
359 |
case STATUS:
|
| 648 |
chandransh |
360 |
if (value == null) {
|
| 6643 |
rajveer |
361 |
unsetStatus();
|
| 648 |
chandransh |
362 |
} else {
|
| 6643 |
rajveer |
363 |
setStatus((String)value);
|
| 648 |
chandransh |
364 |
}
|
|
|
365 |
break;
|
|
|
366 |
|
|
|
367 |
case DESCRIPTION:
|
|
|
368 |
if (value == null) {
|
|
|
369 |
unsetDescription();
|
|
|
370 |
} else {
|
|
|
371 |
setDescription((String)value);
|
|
|
372 |
}
|
|
|
373 |
break;
|
|
|
374 |
|
| 6643 |
rajveer |
375 |
case LOCATION:
|
|
|
376 |
if (value == null) {
|
|
|
377 |
unsetLocation();
|
|
|
378 |
} else {
|
|
|
379 |
setLocation((String)value);
|
|
|
380 |
}
|
|
|
381 |
break;
|
|
|
382 |
|
| 648 |
chandransh |
383 |
}
|
|
|
384 |
}
|
|
|
385 |
|
|
|
386 |
public Object getFieldValue(_Fields field) {
|
|
|
387 |
switch (field) {
|
|
|
388 |
case AWB_NUMBER:
|
|
|
389 |
return getAwbNumber();
|
|
|
390 |
|
| 6643 |
rajveer |
391 |
case PROVIDER_ID:
|
|
|
392 |
return Long.valueOf(getProviderId());
|
| 648 |
chandransh |
393 |
|
| 6643 |
rajveer |
394 |
case DATE:
|
|
|
395 |
return Long.valueOf(getDate());
|
| 648 |
chandransh |
396 |
|
| 6643 |
rajveer |
397 |
case STATUS:
|
|
|
398 |
return getStatus();
|
| 648 |
chandransh |
399 |
|
|
|
400 |
case DESCRIPTION:
|
|
|
401 |
return getDescription();
|
|
|
402 |
|
| 6643 |
rajveer |
403 |
case LOCATION:
|
|
|
404 |
return getLocation();
|
|
|
405 |
|
| 648 |
chandransh |
406 |
}
|
|
|
407 |
throw new IllegalStateException();
|
|
|
408 |
}
|
|
|
409 |
|
| 3430 |
rajveer |
410 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
411 |
public boolean isSet(_Fields field) {
|
|
|
412 |
if (field == null) {
|
|
|
413 |
throw new IllegalArgumentException();
|
|
|
414 |
}
|
| 648 |
chandransh |
415 |
|
|
|
416 |
switch (field) {
|
|
|
417 |
case AWB_NUMBER:
|
|
|
418 |
return isSetAwbNumber();
|
| 6643 |
rajveer |
419 |
case PROVIDER_ID:
|
|
|
420 |
return isSetProviderId();
|
|
|
421 |
case DATE:
|
|
|
422 |
return isSetDate();
|
|
|
423 |
case STATUS:
|
|
|
424 |
return isSetStatus();
|
|
|
425 |
case DESCRIPTION:
|
|
|
426 |
return isSetDescription();
|
| 648 |
chandransh |
427 |
case LOCATION:
|
|
|
428 |
return isSetLocation();
|
|
|
429 |
}
|
|
|
430 |
throw new IllegalStateException();
|
|
|
431 |
}
|
|
|
432 |
|
|
|
433 |
@Override
|
|
|
434 |
public boolean equals(Object that) {
|
|
|
435 |
if (that == null)
|
|
|
436 |
return false;
|
|
|
437 |
if (that instanceof AwbUpdate)
|
|
|
438 |
return this.equals((AwbUpdate)that);
|
|
|
439 |
return false;
|
|
|
440 |
}
|
|
|
441 |
|
|
|
442 |
public boolean equals(AwbUpdate that) {
|
|
|
443 |
if (that == null)
|
|
|
444 |
return false;
|
|
|
445 |
|
|
|
446 |
boolean this_present_awbNumber = true && this.isSetAwbNumber();
|
|
|
447 |
boolean that_present_awbNumber = true && that.isSetAwbNumber();
|
|
|
448 |
if (this_present_awbNumber || that_present_awbNumber) {
|
|
|
449 |
if (!(this_present_awbNumber && that_present_awbNumber))
|
|
|
450 |
return false;
|
|
|
451 |
if (!this.awbNumber.equals(that.awbNumber))
|
|
|
452 |
return false;
|
|
|
453 |
}
|
|
|
454 |
|
| 6643 |
rajveer |
455 |
boolean this_present_providerId = true;
|
|
|
456 |
boolean that_present_providerId = true;
|
|
|
457 |
if (this_present_providerId || that_present_providerId) {
|
|
|
458 |
if (!(this_present_providerId && that_present_providerId))
|
| 648 |
chandransh |
459 |
return false;
|
| 6643 |
rajveer |
460 |
if (this.providerId != that.providerId)
|
| 648 |
chandransh |
461 |
return false;
|
|
|
462 |
}
|
|
|
463 |
|
| 6643 |
rajveer |
464 |
boolean this_present_date = true;
|
|
|
465 |
boolean that_present_date = true;
|
|
|
466 |
if (this_present_date || that_present_date) {
|
|
|
467 |
if (!(this_present_date && that_present_date))
|
| 648 |
chandransh |
468 |
return false;
|
| 6643 |
rajveer |
469 |
if (this.date != that.date)
|
| 648 |
chandransh |
470 |
return false;
|
|
|
471 |
}
|
|
|
472 |
|
| 6643 |
rajveer |
473 |
boolean this_present_status = true && this.isSetStatus();
|
|
|
474 |
boolean that_present_status = true && that.isSetStatus();
|
|
|
475 |
if (this_present_status || that_present_status) {
|
|
|
476 |
if (!(this_present_status && that_present_status))
|
| 648 |
chandransh |
477 |
return false;
|
| 6643 |
rajveer |
478 |
if (!this.status.equals(that.status))
|
| 648 |
chandransh |
479 |
return false;
|
|
|
480 |
}
|
|
|
481 |
|
|
|
482 |
boolean this_present_description = true && this.isSetDescription();
|
|
|
483 |
boolean that_present_description = true && that.isSetDescription();
|
|
|
484 |
if (this_present_description || that_present_description) {
|
|
|
485 |
if (!(this_present_description && that_present_description))
|
|
|
486 |
return false;
|
|
|
487 |
if (!this.description.equals(that.description))
|
|
|
488 |
return false;
|
|
|
489 |
}
|
|
|
490 |
|
| 6643 |
rajveer |
491 |
boolean this_present_location = true && this.isSetLocation();
|
|
|
492 |
boolean that_present_location = true && that.isSetLocation();
|
|
|
493 |
if (this_present_location || that_present_location) {
|
|
|
494 |
if (!(this_present_location && that_present_location))
|
|
|
495 |
return false;
|
|
|
496 |
if (!this.location.equals(that.location))
|
|
|
497 |
return false;
|
|
|
498 |
}
|
|
|
499 |
|
| 648 |
chandransh |
500 |
return true;
|
|
|
501 |
}
|
|
|
502 |
|
|
|
503 |
@Override
|
|
|
504 |
public int hashCode() {
|
|
|
505 |
return 0;
|
|
|
506 |
}
|
|
|
507 |
|
|
|
508 |
public int compareTo(AwbUpdate other) {
|
|
|
509 |
if (!getClass().equals(other.getClass())) {
|
|
|
510 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
511 |
}
|
|
|
512 |
|
|
|
513 |
int lastComparison = 0;
|
|
|
514 |
AwbUpdate typedOther = (AwbUpdate)other;
|
|
|
515 |
|
| 3430 |
rajveer |
516 |
lastComparison = Boolean.valueOf(isSetAwbNumber()).compareTo(typedOther.isSetAwbNumber());
|
| 648 |
chandransh |
517 |
if (lastComparison != 0) {
|
|
|
518 |
return lastComparison;
|
|
|
519 |
}
|
| 3430 |
rajveer |
520 |
if (isSetAwbNumber()) {
|
|
|
521 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbNumber, typedOther.awbNumber);
|
|
|
522 |
if (lastComparison != 0) {
|
|
|
523 |
return lastComparison;
|
|
|
524 |
}
|
| 648 |
chandransh |
525 |
}
|
| 6643 |
rajveer |
526 |
lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
|
| 648 |
chandransh |
527 |
if (lastComparison != 0) {
|
|
|
528 |
return lastComparison;
|
|
|
529 |
}
|
| 6643 |
rajveer |
530 |
if (isSetProviderId()) {
|
|
|
531 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
|
| 3430 |
rajveer |
532 |
if (lastComparison != 0) {
|
|
|
533 |
return lastComparison;
|
|
|
534 |
}
|
| 648 |
chandransh |
535 |
}
|
| 6643 |
rajveer |
536 |
lastComparison = Boolean.valueOf(isSetDate()).compareTo(typedOther.isSetDate());
|
| 648 |
chandransh |
537 |
if (lastComparison != 0) {
|
|
|
538 |
return lastComparison;
|
|
|
539 |
}
|
| 6643 |
rajveer |
540 |
if (isSetDate()) {
|
|
|
541 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.date, typedOther.date);
|
| 3430 |
rajveer |
542 |
if (lastComparison != 0) {
|
|
|
543 |
return lastComparison;
|
|
|
544 |
}
|
| 648 |
chandransh |
545 |
}
|
| 6643 |
rajveer |
546 |
lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
|
| 648 |
chandransh |
547 |
if (lastComparison != 0) {
|
|
|
548 |
return lastComparison;
|
|
|
549 |
}
|
| 6643 |
rajveer |
550 |
if (isSetStatus()) {
|
|
|
551 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
|
| 3430 |
rajveer |
552 |
if (lastComparison != 0) {
|
|
|
553 |
return lastComparison;
|
|
|
554 |
}
|
| 648 |
chandransh |
555 |
}
|
| 3430 |
rajveer |
556 |
lastComparison = Boolean.valueOf(isSetDescription()).compareTo(typedOther.isSetDescription());
|
| 648 |
chandransh |
557 |
if (lastComparison != 0) {
|
|
|
558 |
return lastComparison;
|
|
|
559 |
}
|
| 3430 |
rajveer |
560 |
if (isSetDescription()) {
|
|
|
561 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description);
|
|
|
562 |
if (lastComparison != 0) {
|
|
|
563 |
return lastComparison;
|
|
|
564 |
}
|
| 648 |
chandransh |
565 |
}
|
| 6643 |
rajveer |
566 |
lastComparison = Boolean.valueOf(isSetLocation()).compareTo(typedOther.isSetLocation());
|
|
|
567 |
if (lastComparison != 0) {
|
|
|
568 |
return lastComparison;
|
|
|
569 |
}
|
|
|
570 |
if (isSetLocation()) {
|
|
|
571 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.location, typedOther.location);
|
|
|
572 |
if (lastComparison != 0) {
|
|
|
573 |
return lastComparison;
|
|
|
574 |
}
|
|
|
575 |
}
|
| 648 |
chandransh |
576 |
return 0;
|
|
|
577 |
}
|
|
|
578 |
|
| 3430 |
rajveer |
579 |
public _Fields fieldForId(int fieldId) {
|
|
|
580 |
return _Fields.findByThriftId(fieldId);
|
|
|
581 |
}
|
|
|
582 |
|
|
|
583 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
584 |
org.apache.thrift.protocol.TField field;
|
| 648 |
chandransh |
585 |
iprot.readStructBegin();
|
|
|
586 |
while (true)
|
|
|
587 |
{
|
|
|
588 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
589 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 648 |
chandransh |
590 |
break;
|
|
|
591 |
}
|
| 3430 |
rajveer |
592 |
switch (field.id) {
|
|
|
593 |
case 1: // AWB_NUMBER
|
|
|
594 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
595 |
this.awbNumber = iprot.readString();
|
|
|
596 |
} else {
|
|
|
597 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
598 |
}
|
|
|
599 |
break;
|
| 6643 |
rajveer |
600 |
case 2: // PROVIDER_ID
|
|
|
601 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
602 |
this.providerId = iprot.readI64();
|
|
|
603 |
setProviderIdIsSet(true);
|
| 3430 |
rajveer |
604 |
} else {
|
|
|
605 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
606 |
}
|
|
|
607 |
break;
|
| 6643 |
rajveer |
608 |
case 3: // DATE
|
|
|
609 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
610 |
this.date = iprot.readI64();
|
|
|
611 |
setDateIsSet(true);
|
| 3430 |
rajveer |
612 |
} else {
|
|
|
613 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
614 |
}
|
|
|
615 |
break;
|
| 6643 |
rajveer |
616 |
case 4: // STATUS
|
|
|
617 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
618 |
this.status = iprot.readString();
|
| 3430 |
rajveer |
619 |
} else {
|
|
|
620 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
621 |
}
|
|
|
622 |
break;
|
|
|
623 |
case 5: // DESCRIPTION
|
|
|
624 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
625 |
this.description = iprot.readString();
|
|
|
626 |
} else {
|
|
|
627 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
628 |
}
|
|
|
629 |
break;
|
| 6643 |
rajveer |
630 |
case 6: // LOCATION
|
|
|
631 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
632 |
this.location = iprot.readString();
|
|
|
633 |
} else {
|
|
|
634 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
635 |
}
|
|
|
636 |
break;
|
| 3430 |
rajveer |
637 |
default:
|
|
|
638 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 648 |
chandransh |
639 |
}
|
| 3430 |
rajveer |
640 |
iprot.readFieldEnd();
|
| 648 |
chandransh |
641 |
}
|
|
|
642 |
iprot.readStructEnd();
|
|
|
643 |
validate();
|
|
|
644 |
}
|
|
|
645 |
|
| 3430 |
rajveer |
646 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 648 |
chandransh |
647 |
validate();
|
|
|
648 |
|
|
|
649 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
650 |
if (this.awbNumber != null) {
|
|
|
651 |
oprot.writeFieldBegin(AWB_NUMBER_FIELD_DESC);
|
|
|
652 |
oprot.writeString(this.awbNumber);
|
|
|
653 |
oprot.writeFieldEnd();
|
|
|
654 |
}
|
| 6643 |
rajveer |
655 |
oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
|
|
|
656 |
oprot.writeI64(this.providerId);
|
|
|
657 |
oprot.writeFieldEnd();
|
|
|
658 |
oprot.writeFieldBegin(DATE_FIELD_DESC);
|
|
|
659 |
oprot.writeI64(this.date);
|
|
|
660 |
oprot.writeFieldEnd();
|
|
|
661 |
if (this.status != null) {
|
|
|
662 |
oprot.writeFieldBegin(STATUS_FIELD_DESC);
|
|
|
663 |
oprot.writeString(this.status);
|
| 648 |
chandransh |
664 |
oprot.writeFieldEnd();
|
|
|
665 |
}
|
| 6643 |
rajveer |
666 |
if (this.description != null) {
|
|
|
667 |
oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
|
|
|
668 |
oprot.writeString(this.description);
|
|
|
669 |
oprot.writeFieldEnd();
|
|
|
670 |
}
|
| 648 |
chandransh |
671 |
if (this.location != null) {
|
|
|
672 |
oprot.writeFieldBegin(LOCATION_FIELD_DESC);
|
|
|
673 |
oprot.writeString(this.location);
|
|
|
674 |
oprot.writeFieldEnd();
|
|
|
675 |
}
|
|
|
676 |
oprot.writeFieldStop();
|
|
|
677 |
oprot.writeStructEnd();
|
|
|
678 |
}
|
|
|
679 |
|
|
|
680 |
@Override
|
|
|
681 |
public String toString() {
|
|
|
682 |
StringBuilder sb = new StringBuilder("AwbUpdate(");
|
|
|
683 |
boolean first = true;
|
|
|
684 |
|
|
|
685 |
sb.append("awbNumber:");
|
|
|
686 |
if (this.awbNumber == null) {
|
|
|
687 |
sb.append("null");
|
|
|
688 |
} else {
|
|
|
689 |
sb.append(this.awbNumber);
|
|
|
690 |
}
|
|
|
691 |
first = false;
|
|
|
692 |
if (!first) sb.append(", ");
|
| 6643 |
rajveer |
693 |
sb.append("providerId:");
|
|
|
694 |
sb.append(this.providerId);
|
| 648 |
chandransh |
695 |
first = false;
|
|
|
696 |
if (!first) sb.append(", ");
|
| 6643 |
rajveer |
697 |
sb.append("date:");
|
|
|
698 |
sb.append(this.date);
|
|
|
699 |
first = false;
|
|
|
700 |
if (!first) sb.append(", ");
|
|
|
701 |
sb.append("status:");
|
|
|
702 |
if (this.status == null) {
|
| 648 |
chandransh |
703 |
sb.append("null");
|
|
|
704 |
} else {
|
| 6643 |
rajveer |
705 |
sb.append(this.status);
|
| 648 |
chandransh |
706 |
}
|
|
|
707 |
first = false;
|
|
|
708 |
if (!first) sb.append(", ");
|
|
|
709 |
sb.append("description:");
|
|
|
710 |
if (this.description == null) {
|
|
|
711 |
sb.append("null");
|
|
|
712 |
} else {
|
|
|
713 |
sb.append(this.description);
|
|
|
714 |
}
|
|
|
715 |
first = false;
|
| 6643 |
rajveer |
716 |
if (!first) sb.append(", ");
|
|
|
717 |
sb.append("location:");
|
|
|
718 |
if (this.location == null) {
|
|
|
719 |
sb.append("null");
|
|
|
720 |
} else {
|
|
|
721 |
sb.append(this.location);
|
|
|
722 |
}
|
|
|
723 |
first = false;
|
| 648 |
chandransh |
724 |
sb.append(")");
|
|
|
725 |
return sb.toString();
|
|
|
726 |
}
|
|
|
727 |
|
| 3430 |
rajveer |
728 |
public void validate() throws org.apache.thrift.TException {
|
| 648 |
chandransh |
729 |
// check for required fields
|
|
|
730 |
}
|
|
|
731 |
|
| 3430 |
rajveer |
732 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
733 |
try {
|
|
|
734 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
735 |
} catch (org.apache.thrift.TException te) {
|
|
|
736 |
throw new java.io.IOException(te);
|
|
|
737 |
}
|
|
|
738 |
}
|
|
|
739 |
|
|
|
740 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
741 |
try {
|
|
|
742 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
743 |
__isset_bit_vector = new BitSet(1);
|
|
|
744 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
745 |
} catch (org.apache.thrift.TException te) {
|
|
|
746 |
throw new java.io.IOException(te);
|
|
|
747 |
}
|
|
|
748 |
}
|
|
|
749 |
|
| 648 |
chandransh |
750 |
}
|
|
|
751 |
|