| 7410 |
amar.kumar |
1 |
/**
|
|
|
2 |
* Autogenerated by Thrift Compiler (0.7.0)
|
|
|
3 |
*
|
|
|
4 |
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
|
5 |
*/
|
|
|
6 |
package in.shop2020.warehouse;
|
|
|
7 |
|
| 31223 |
amit.gupta |
8 |
import java.util.*;
|
| 7410 |
amar.kumar |
9 |
|
|
|
10 |
public class TransferLot implements org.apache.thrift.TBase<TransferLot, TransferLot._Fields>, java.io.Serializable, Cloneable {
|
| 31223 |
amit.gupta |
11 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TransferLot");
|
| 7410 |
amar.kumar |
12 |
|
| 31223 |
amit.gupta |
13 |
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);
|
|
|
14 |
private static final org.apache.thrift.protocol.TField ORIGIN_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("originWarehouseId", org.apache.thrift.protocol.TType.I64, (short) 2);
|
|
|
15 |
private static final org.apache.thrift.protocol.TField DESTINATION_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("destinationWarehouseId", org.apache.thrift.protocol.TType.I64, (short) 3);
|
|
|
16 |
private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.I32, (short) 4);
|
|
|
17 |
private static final org.apache.thrift.protocol.TField TRANSFER_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("transferDate", org.apache.thrift.protocol.TType.I64, (short) 5);
|
|
|
18 |
private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short) 6);
|
|
|
19 |
private static final org.apache.thrift.protocol.TField TRANSIT_COMPLETION_REFERENCE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("transitCompletionReferenceNumber", org.apache.thrift.protocol.TType.STRING, (short) 7);
|
|
|
20 |
private static final org.apache.thrift.protocol.TField REFERENCE_UPDATION_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("referenceUpdationDate", org.apache.thrift.protocol.TType.I64, (short) 8);
|
|
|
21 |
private static final org.apache.thrift.protocol.TField REMARKS_FIELD_DESC = new org.apache.thrift.protocol.TField("remarks", org.apache.thrift.protocol.TType.STRING, (short) 9);
|
|
|
22 |
private static final org.apache.thrift.protocol.TField SHIPMENT_REFERENCE_FIELD_DESC = new org.apache.thrift.protocol.TField("shipmentReference", org.apache.thrift.protocol.TType.I64, (short) 10);
|
| 7410 |
amar.kumar |
23 |
|
| 31223 |
amit.gupta |
24 |
private long id; // required
|
|
|
25 |
private long originWarehouseId; // required
|
|
|
26 |
private long destinationWarehouseId; // required
|
|
|
27 |
private TransferLotStatus status; // required
|
|
|
28 |
private long transferDate; // required
|
|
|
29 |
private TransferType type; // required
|
|
|
30 |
private String transitCompletionReferenceNumber; // required
|
|
|
31 |
private long referenceUpdationDate; // required
|
|
|
32 |
private String remarks; // required
|
|
|
33 |
private long shipmentReference; // required
|
| 7410 |
amar.kumar |
34 |
|
|
|
35 |
/**
|
| 31223 |
amit.gupta |
36 |
* The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
| 7410 |
amar.kumar |
37 |
*/
|
| 31223 |
amit.gupta |
38 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
39 |
ID((short) 1, "id"),
|
|
|
40 |
ORIGIN_WAREHOUSE_ID((short) 2, "originWarehouseId"),
|
|
|
41 |
DESTINATION_WAREHOUSE_ID((short) 3, "destinationWarehouseId"),
|
|
|
42 |
/**
|
|
|
43 |
* @see TransferLotStatus
|
|
|
44 |
*/
|
|
|
45 |
STATUS((short) 4, "status"),
|
|
|
46 |
TRANSFER_DATE((short) 5, "transferDate"),
|
|
|
47 |
/**
|
|
|
48 |
* @see TransferType
|
|
|
49 |
*/
|
|
|
50 |
TYPE((short) 6, "type"),
|
|
|
51 |
TRANSIT_COMPLETION_REFERENCE_NUMBER((short) 7, "transitCompletionReferenceNumber"),
|
|
|
52 |
REFERENCE_UPDATION_DATE((short) 8, "referenceUpdationDate"),
|
|
|
53 |
REMARKS((short) 9, "remarks"),
|
|
|
54 |
SHIPMENT_REFERENCE((short) 10, "shipmentReference");
|
| 7410 |
amar.kumar |
55 |
|
| 31223 |
amit.gupta |
56 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| 7410 |
amar.kumar |
57 |
|
| 31223 |
amit.gupta |
58 |
static {
|
|
|
59 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
60 |
byName.put(field.getFieldName(), field);
|
|
|
61 |
}
|
|
|
62 |
}
|
| 7410 |
amar.kumar |
63 |
|
| 31223 |
amit.gupta |
64 |
/**
|
| 7410 |
amar.kumar |
65 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
66 |
*/
|
|
|
67 |
public static _Fields findByThriftId(int fieldId) {
|
| 31223 |
amit.gupta |
68 |
switch (fieldId) {
|
|
|
69 |
case 1: // ID
|
|
|
70 |
return ID;
|
|
|
71 |
case 2: // ORIGIN_WAREHOUSE_ID
|
|
|
72 |
return ORIGIN_WAREHOUSE_ID;
|
|
|
73 |
case 3: // DESTINATION_WAREHOUSE_ID
|
|
|
74 |
return DESTINATION_WAREHOUSE_ID;
|
|
|
75 |
case 4: // STATUS
|
|
|
76 |
return STATUS;
|
|
|
77 |
case 5: // TRANSFER_DATE
|
|
|
78 |
return TRANSFER_DATE;
|
| 7410 |
amar.kumar |
79 |
case 6: // TYPE
|
|
|
80 |
return TYPE;
|
|
|
81 |
case 7: // TRANSIT_COMPLETION_REFERENCE_NUMBER
|
|
|
82 |
return TRANSIT_COMPLETION_REFERENCE_NUMBER;
|
|
|
83 |
case 8: // REFERENCE_UPDATION_DATE
|
|
|
84 |
return REFERENCE_UPDATION_DATE;
|
|
|
85 |
case 9: // REMARKS
|
|
|
86 |
return REMARKS;
|
| 15045 |
manish.sha |
87 |
case 10: // SHIPMENT_REFERENCE
|
|
|
88 |
return SHIPMENT_REFERENCE;
|
| 7410 |
amar.kumar |
89 |
default:
|
|
|
90 |
return null;
|
|
|
91 |
}
|
|
|
92 |
}
|
|
|
93 |
|
|
|
94 |
/**
|
|
|
95 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
96 |
* if it is not found.
|
|
|
97 |
*/
|
|
|
98 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
99 |
_Fields fields = findByThriftId(fieldId);
|
|
|
100 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
101 |
return fields;
|
|
|
102 |
}
|
|
|
103 |
|
|
|
104 |
/**
|
|
|
105 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
106 |
*/
|
|
|
107 |
public static _Fields findByName(String name) {
|
|
|
108 |
return byName.get(name);
|
|
|
109 |
}
|
|
|
110 |
|
|
|
111 |
private final short _thriftId;
|
|
|
112 |
private final String _fieldName;
|
|
|
113 |
|
|
|
114 |
_Fields(short thriftId, String fieldName) {
|
|
|
115 |
_thriftId = thriftId;
|
|
|
116 |
_fieldName = fieldName;
|
|
|
117 |
}
|
|
|
118 |
|
|
|
119 |
public short getThriftFieldId() {
|
|
|
120 |
return _thriftId;
|
|
|
121 |
}
|
|
|
122 |
|
|
|
123 |
public String getFieldName() {
|
|
|
124 |
return _fieldName;
|
|
|
125 |
}
|
|
|
126 |
}
|
|
|
127 |
|
|
|
128 |
// isset id assignments
|
|
|
129 |
private static final int __ID_ISSET_ID = 0;
|
|
|
130 |
private static final int __ORIGINWAREHOUSEID_ISSET_ID = 1;
|
|
|
131 |
private static final int __DESTINATIONWAREHOUSEID_ISSET_ID = 2;
|
|
|
132 |
private static final int __TRANSFERDATE_ISSET_ID = 3;
|
|
|
133 |
private static final int __REFERENCEUPDATIONDATE_ISSET_ID = 4;
|
| 15045 |
manish.sha |
134 |
private static final int __SHIPMENTREFERENCE_ISSET_ID = 5;
|
|
|
135 |
private BitSet __isset_bit_vector = new BitSet(6);
|
| 7410 |
amar.kumar |
136 |
|
|
|
137 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 31223 |
amit.gupta |
138 |
|
| 7410 |
amar.kumar |
139 |
static {
|
| 31223 |
amit.gupta |
140 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
141 |
tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
142 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
143 |
tmpMap.put(_Fields.ORIGIN_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("originWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
144 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
145 |
tmpMap.put(_Fields.DESTINATION_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("destinationWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
146 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
147 |
tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
148 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TransferLotStatus.class)));
|
|
|
149 |
tmpMap.put(_Fields.TRANSFER_DATE, new org.apache.thrift.meta_data.FieldMetaData("transferDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
150 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
151 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
152 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TransferType.class)));
|
|
|
153 |
tmpMap.put(_Fields.TRANSIT_COMPLETION_REFERENCE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("transitCompletionReferenceNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
154 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
155 |
tmpMap.put(_Fields.REFERENCE_UPDATION_DATE, new org.apache.thrift.meta_data.FieldMetaData("referenceUpdationDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
156 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
157 |
tmpMap.put(_Fields.REMARKS, new org.apache.thrift.meta_data.FieldMetaData("remarks", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
158 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
159 |
tmpMap.put(_Fields.SHIPMENT_REFERENCE, new org.apache.thrift.meta_data.FieldMetaData("shipmentReference", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
160 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
161 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
162 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TransferLot.class, metaDataMap);
|
| 7410 |
amar.kumar |
163 |
}
|
|
|
164 |
|
|
|
165 |
public TransferLot() {
|
|
|
166 |
}
|
|
|
167 |
|
| 31223 |
amit.gupta |
168 |
public TransferLot(
|
|
|
169 |
long id,
|
|
|
170 |
long originWarehouseId,
|
|
|
171 |
long destinationWarehouseId,
|
|
|
172 |
TransferLotStatus status,
|
|
|
173 |
long transferDate,
|
|
|
174 |
TransferType type,
|
|
|
175 |
String transitCompletionReferenceNumber,
|
|
|
176 |
long referenceUpdationDate,
|
|
|
177 |
String remarks,
|
|
|
178 |
long shipmentReference) {
|
|
|
179 |
this();
|
|
|
180 |
this.id = id;
|
|
|
181 |
setIdIsSet(true);
|
|
|
182 |
this.originWarehouseId = originWarehouseId;
|
|
|
183 |
setOriginWarehouseIdIsSet(true);
|
|
|
184 |
this.destinationWarehouseId = destinationWarehouseId;
|
|
|
185 |
setDestinationWarehouseIdIsSet(true);
|
|
|
186 |
this.status = status;
|
|
|
187 |
this.transferDate = transferDate;
|
|
|
188 |
setTransferDateIsSet(true);
|
| 7410 |
amar.kumar |
189 |
this.type = type;
|
|
|
190 |
this.transitCompletionReferenceNumber = transitCompletionReferenceNumber;
|
|
|
191 |
this.referenceUpdationDate = referenceUpdationDate;
|
|
|
192 |
setReferenceUpdationDateIsSet(true);
|
|
|
193 |
this.remarks = remarks;
|
| 15045 |
manish.sha |
194 |
this.shipmentReference = shipmentReference;
|
|
|
195 |
setShipmentReferenceIsSet(true);
|
| 7410 |
amar.kumar |
196 |
}
|
|
|
197 |
|
|
|
198 |
/**
|
|
|
199 |
* Performs a deep copy on <i>other</i>.
|
|
|
200 |
*/
|
|
|
201 |
public TransferLot(TransferLot other) {
|
|
|
202 |
__isset_bit_vector.clear();
|
|
|
203 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
204 |
this.id = other.id;
|
|
|
205 |
this.originWarehouseId = other.originWarehouseId;
|
|
|
206 |
this.destinationWarehouseId = other.destinationWarehouseId;
|
|
|
207 |
if (other.isSetStatus()) {
|
|
|
208 |
this.status = other.status;
|
|
|
209 |
}
|
|
|
210 |
this.transferDate = other.transferDate;
|
|
|
211 |
if (other.isSetType()) {
|
|
|
212 |
this.type = other.type;
|
|
|
213 |
}
|
|
|
214 |
if (other.isSetTransitCompletionReferenceNumber()) {
|
|
|
215 |
this.transitCompletionReferenceNumber = other.transitCompletionReferenceNumber;
|
|
|
216 |
}
|
|
|
217 |
this.referenceUpdationDate = other.referenceUpdationDate;
|
|
|
218 |
if (other.isSetRemarks()) {
|
|
|
219 |
this.remarks = other.remarks;
|
|
|
220 |
}
|
| 15045 |
manish.sha |
221 |
this.shipmentReference = other.shipmentReference;
|
| 7410 |
amar.kumar |
222 |
}
|
|
|
223 |
|
|
|
224 |
public TransferLot deepCopy() {
|
|
|
225 |
return new TransferLot(this);
|
|
|
226 |
}
|
|
|
227 |
|
|
|
228 |
@Override
|
|
|
229 |
public void clear() {
|
|
|
230 |
setIdIsSet(false);
|
|
|
231 |
this.id = 0;
|
|
|
232 |
setOriginWarehouseIdIsSet(false);
|
|
|
233 |
this.originWarehouseId = 0;
|
|
|
234 |
setDestinationWarehouseIdIsSet(false);
|
|
|
235 |
this.destinationWarehouseId = 0;
|
|
|
236 |
this.status = null;
|
|
|
237 |
setTransferDateIsSet(false);
|
|
|
238 |
this.transferDate = 0;
|
|
|
239 |
this.type = null;
|
|
|
240 |
this.transitCompletionReferenceNumber = null;
|
|
|
241 |
setReferenceUpdationDateIsSet(false);
|
|
|
242 |
this.referenceUpdationDate = 0;
|
|
|
243 |
this.remarks = null;
|
| 15045 |
manish.sha |
244 |
setShipmentReferenceIsSet(false);
|
|
|
245 |
this.shipmentReference = 0;
|
| 7410 |
amar.kumar |
246 |
}
|
|
|
247 |
|
|
|
248 |
public long getId() {
|
|
|
249 |
return this.id;
|
|
|
250 |
}
|
|
|
251 |
|
|
|
252 |
public void setId(long id) {
|
|
|
253 |
this.id = id;
|
|
|
254 |
setIdIsSet(true);
|
|
|
255 |
}
|
|
|
256 |
|
|
|
257 |
public void unsetId() {
|
|
|
258 |
__isset_bit_vector.clear(__ID_ISSET_ID);
|
|
|
259 |
}
|
|
|
260 |
|
|
|
261 |
/** Returns true if field id is set (has been assigned a value) and false otherwise */
|
|
|
262 |
public boolean isSetId() {
|
|
|
263 |
return __isset_bit_vector.get(__ID_ISSET_ID);
|
|
|
264 |
}
|
|
|
265 |
|
|
|
266 |
public void setIdIsSet(boolean value) {
|
|
|
267 |
__isset_bit_vector.set(__ID_ISSET_ID, value);
|
|
|
268 |
}
|
|
|
269 |
|
|
|
270 |
public long getOriginWarehouseId() {
|
|
|
271 |
return this.originWarehouseId;
|
|
|
272 |
}
|
|
|
273 |
|
|
|
274 |
public void setOriginWarehouseId(long originWarehouseId) {
|
|
|
275 |
this.originWarehouseId = originWarehouseId;
|
|
|
276 |
setOriginWarehouseIdIsSet(true);
|
|
|
277 |
}
|
|
|
278 |
|
|
|
279 |
public void unsetOriginWarehouseId() {
|
|
|
280 |
__isset_bit_vector.clear(__ORIGINWAREHOUSEID_ISSET_ID);
|
|
|
281 |
}
|
|
|
282 |
|
|
|
283 |
/** Returns true if field originWarehouseId is set (has been assigned a value) and false otherwise */
|
|
|
284 |
public boolean isSetOriginWarehouseId() {
|
|
|
285 |
return __isset_bit_vector.get(__ORIGINWAREHOUSEID_ISSET_ID);
|
|
|
286 |
}
|
|
|
287 |
|
|
|
288 |
public void setOriginWarehouseIdIsSet(boolean value) {
|
|
|
289 |
__isset_bit_vector.set(__ORIGINWAREHOUSEID_ISSET_ID, value);
|
|
|
290 |
}
|
|
|
291 |
|
|
|
292 |
public long getDestinationWarehouseId() {
|
|
|
293 |
return this.destinationWarehouseId;
|
|
|
294 |
}
|
|
|
295 |
|
|
|
296 |
public void setDestinationWarehouseId(long destinationWarehouseId) {
|
|
|
297 |
this.destinationWarehouseId = destinationWarehouseId;
|
|
|
298 |
setDestinationWarehouseIdIsSet(true);
|
|
|
299 |
}
|
|
|
300 |
|
|
|
301 |
public void unsetDestinationWarehouseId() {
|
|
|
302 |
__isset_bit_vector.clear(__DESTINATIONWAREHOUSEID_ISSET_ID);
|
|
|
303 |
}
|
|
|
304 |
|
|
|
305 |
/** Returns true if field destinationWarehouseId is set (has been assigned a value) and false otherwise */
|
|
|
306 |
public boolean isSetDestinationWarehouseId() {
|
|
|
307 |
return __isset_bit_vector.get(__DESTINATIONWAREHOUSEID_ISSET_ID);
|
|
|
308 |
}
|
|
|
309 |
|
|
|
310 |
public void setDestinationWarehouseIdIsSet(boolean value) {
|
|
|
311 |
__isset_bit_vector.set(__DESTINATIONWAREHOUSEID_ISSET_ID, value);
|
|
|
312 |
}
|
|
|
313 |
|
|
|
314 |
/**
|
|
|
315 |
*
|
|
|
316 |
* @see TransferLotStatus
|
|
|
317 |
*/
|
|
|
318 |
public TransferLotStatus getStatus() {
|
|
|
319 |
return this.status;
|
|
|
320 |
}
|
|
|
321 |
|
|
|
322 |
/**
|
|
|
323 |
*
|
|
|
324 |
* @see TransferLotStatus
|
|
|
325 |
*/
|
|
|
326 |
public void setStatus(TransferLotStatus status) {
|
|
|
327 |
this.status = status;
|
|
|
328 |
}
|
|
|
329 |
|
|
|
330 |
public void unsetStatus() {
|
|
|
331 |
this.status = null;
|
|
|
332 |
}
|
|
|
333 |
|
|
|
334 |
/** Returns true if field status is set (has been assigned a value) and false otherwise */
|
|
|
335 |
public boolean isSetStatus() {
|
|
|
336 |
return this.status != null;
|
|
|
337 |
}
|
|
|
338 |
|
|
|
339 |
public void setStatusIsSet(boolean value) {
|
|
|
340 |
if (!value) {
|
|
|
341 |
this.status = null;
|
|
|
342 |
}
|
|
|
343 |
}
|
|
|
344 |
|
|
|
345 |
public long getTransferDate() {
|
|
|
346 |
return this.transferDate;
|
|
|
347 |
}
|
|
|
348 |
|
| 31223 |
amit.gupta |
349 |
public void setTransferDate(long transferDate) {
|
|
|
350 |
this.transferDate = transferDate;
|
|
|
351 |
setTransferDateIsSet(true);
|
|
|
352 |
}
|
| 7410 |
amar.kumar |
353 |
|
| 31223 |
amit.gupta |
354 |
public void unsetTransferDate() {
|
|
|
355 |
__isset_bit_vector.clear(__TRANSFERDATE_ISSET_ID);
|
|
|
356 |
}
|
| 7410 |
amar.kumar |
357 |
|
| 31223 |
amit.gupta |
358 |
/**
|
|
|
359 |
* Returns true if field transferDate is set (has been assigned a value) and false otherwise
|
|
|
360 |
*/
|
|
|
361 |
public boolean isSetTransferDate() {
|
|
|
362 |
return __isset_bit_vector.get(__TRANSFERDATE_ISSET_ID);
|
|
|
363 |
}
|
| 7410 |
amar.kumar |
364 |
|
| 31223 |
amit.gupta |
365 |
public void setTransferDateIsSet(boolean value) {
|
|
|
366 |
__isset_bit_vector.set(__TRANSFERDATE_ISSET_ID, value);
|
|
|
367 |
}
|
| 7410 |
amar.kumar |
368 |
|
| 31223 |
amit.gupta |
369 |
/**
|
|
|
370 |
* @see TransferType
|
| 7410 |
amar.kumar |
371 |
*/
|
|
|
372 |
public TransferType getType() {
|
|
|
373 |
return this.type;
|
|
|
374 |
}
|
|
|
375 |
|
| 31223 |
amit.gupta |
376 |
/**
|
|
|
377 |
* @see TransferType
|
|
|
378 |
*/
|
|
|
379 |
public void setType(TransferType type) {
|
|
|
380 |
this.type = type;
|
|
|
381 |
}
|
| 7410 |
amar.kumar |
382 |
|
| 31223 |
amit.gupta |
383 |
public void unsetType() {
|
|
|
384 |
this.type = null;
|
|
|
385 |
}
|
| 7410 |
amar.kumar |
386 |
|
| 31223 |
amit.gupta |
387 |
/**
|
|
|
388 |
* Returns true if field type is set (has been assigned a value) and false otherwise
|
|
|
389 |
*/
|
|
|
390 |
public boolean isSetType() {
|
|
|
391 |
return this.type != null;
|
|
|
392 |
}
|
| 7410 |
amar.kumar |
393 |
|
| 31223 |
amit.gupta |
394 |
public void setTypeIsSet(boolean value) {
|
|
|
395 |
if (!value) {
|
|
|
396 |
this.type = null;
|
|
|
397 |
}
|
| 7410 |
amar.kumar |
398 |
}
|
|
|
399 |
|
|
|
400 |
public String getTransitCompletionReferenceNumber() {
|
|
|
401 |
return this.transitCompletionReferenceNumber;
|
|
|
402 |
}
|
|
|
403 |
|
|
|
404 |
public void setTransitCompletionReferenceNumber(String transitCompletionReferenceNumber) {
|
|
|
405 |
this.transitCompletionReferenceNumber = transitCompletionReferenceNumber;
|
|
|
406 |
}
|
|
|
407 |
|
|
|
408 |
public void unsetTransitCompletionReferenceNumber() {
|
|
|
409 |
this.transitCompletionReferenceNumber = null;
|
|
|
410 |
}
|
|
|
411 |
|
|
|
412 |
/** Returns true if field transitCompletionReferenceNumber is set (has been assigned a value) and false otherwise */
|
|
|
413 |
public boolean isSetTransitCompletionReferenceNumber() {
|
|
|
414 |
return this.transitCompletionReferenceNumber != null;
|
|
|
415 |
}
|
|
|
416 |
|
|
|
417 |
public void setTransitCompletionReferenceNumberIsSet(boolean value) {
|
|
|
418 |
if (!value) {
|
|
|
419 |
this.transitCompletionReferenceNumber = null;
|
|
|
420 |
}
|
|
|
421 |
}
|
|
|
422 |
|
|
|
423 |
public long getReferenceUpdationDate() {
|
|
|
424 |
return this.referenceUpdationDate;
|
|
|
425 |
}
|
|
|
426 |
|
|
|
427 |
public void setReferenceUpdationDate(long referenceUpdationDate) {
|
|
|
428 |
this.referenceUpdationDate = referenceUpdationDate;
|
|
|
429 |
setReferenceUpdationDateIsSet(true);
|
|
|
430 |
}
|
|
|
431 |
|
|
|
432 |
public void unsetReferenceUpdationDate() {
|
|
|
433 |
__isset_bit_vector.clear(__REFERENCEUPDATIONDATE_ISSET_ID);
|
|
|
434 |
}
|
|
|
435 |
|
|
|
436 |
/** Returns true if field referenceUpdationDate is set (has been assigned a value) and false otherwise */
|
|
|
437 |
public boolean isSetReferenceUpdationDate() {
|
|
|
438 |
return __isset_bit_vector.get(__REFERENCEUPDATIONDATE_ISSET_ID);
|
|
|
439 |
}
|
|
|
440 |
|
|
|
441 |
public void setReferenceUpdationDateIsSet(boolean value) {
|
|
|
442 |
__isset_bit_vector.set(__REFERENCEUPDATIONDATE_ISSET_ID, value);
|
|
|
443 |
}
|
|
|
444 |
|
|
|
445 |
public String getRemarks() {
|
|
|
446 |
return this.remarks;
|
|
|
447 |
}
|
|
|
448 |
|
|
|
449 |
public void setRemarks(String remarks) {
|
|
|
450 |
this.remarks = remarks;
|
|
|
451 |
}
|
|
|
452 |
|
|
|
453 |
public void unsetRemarks() {
|
|
|
454 |
this.remarks = null;
|
|
|
455 |
}
|
|
|
456 |
|
|
|
457 |
/** Returns true if field remarks is set (has been assigned a value) and false otherwise */
|
|
|
458 |
public boolean isSetRemarks() {
|
|
|
459 |
return this.remarks != null;
|
|
|
460 |
}
|
|
|
461 |
|
|
|
462 |
public void setRemarksIsSet(boolean value) {
|
|
|
463 |
if (!value) {
|
|
|
464 |
this.remarks = null;
|
|
|
465 |
}
|
|
|
466 |
}
|
|
|
467 |
|
| 15045 |
manish.sha |
468 |
public long getShipmentReference() {
|
|
|
469 |
return this.shipmentReference;
|
|
|
470 |
}
|
|
|
471 |
|
| 31223 |
amit.gupta |
472 |
public void setShipmentReference(long shipmentReference) {
|
|
|
473 |
this.shipmentReference = shipmentReference;
|
|
|
474 |
setShipmentReferenceIsSet(true);
|
|
|
475 |
}
|
| 15045 |
manish.sha |
476 |
|
| 31223 |
amit.gupta |
477 |
public void unsetShipmentReference() {
|
|
|
478 |
__isset_bit_vector.clear(__SHIPMENTREFERENCE_ISSET_ID);
|
|
|
479 |
}
|
| 15045 |
manish.sha |
480 |
|
| 31223 |
amit.gupta |
481 |
/**
|
|
|
482 |
* Returns true if field shipmentReference is set (has been assigned a value) and false otherwise
|
|
|
483 |
*/
|
|
|
484 |
public boolean isSetShipmentReference() {
|
|
|
485 |
return __isset_bit_vector.get(__SHIPMENTREFERENCE_ISSET_ID);
|
|
|
486 |
}
|
| 15045 |
manish.sha |
487 |
|
| 31223 |
amit.gupta |
488 |
public void setShipmentReferenceIsSet(boolean value) {
|
|
|
489 |
__isset_bit_vector.set(__SHIPMENTREFERENCE_ISSET_ID, value);
|
|
|
490 |
}
|
| 15045 |
manish.sha |
491 |
|
| 31223 |
amit.gupta |
492 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
493 |
switch (field) {
|
|
|
494 |
case ID:
|
|
|
495 |
if (value == null) {
|
|
|
496 |
unsetId();
|
|
|
497 |
} else {
|
|
|
498 |
setId((Long) value);
|
|
|
499 |
}
|
|
|
500 |
break;
|
| 7410 |
amar.kumar |
501 |
|
| 31223 |
amit.gupta |
502 |
case ORIGIN_WAREHOUSE_ID:
|
|
|
503 |
if (value == null) {
|
|
|
504 |
unsetOriginWarehouseId();
|
|
|
505 |
} else {
|
|
|
506 |
setOriginWarehouseId((Long) value);
|
|
|
507 |
}
|
|
|
508 |
break;
|
| 7410 |
amar.kumar |
509 |
|
| 31223 |
amit.gupta |
510 |
case DESTINATION_WAREHOUSE_ID:
|
|
|
511 |
if (value == null) {
|
|
|
512 |
unsetDestinationWarehouseId();
|
|
|
513 |
} else {
|
|
|
514 |
setDestinationWarehouseId((Long) value);
|
|
|
515 |
}
|
|
|
516 |
break;
|
| 7410 |
amar.kumar |
517 |
|
| 31223 |
amit.gupta |
518 |
case STATUS:
|
|
|
519 |
if (value == null) {
|
|
|
520 |
unsetStatus();
|
|
|
521 |
} else {
|
|
|
522 |
setStatus((TransferLotStatus) value);
|
|
|
523 |
}
|
|
|
524 |
break;
|
| 7410 |
amar.kumar |
525 |
|
| 31223 |
amit.gupta |
526 |
case TRANSFER_DATE:
|
|
|
527 |
if (value == null) {
|
|
|
528 |
unsetTransferDate();
|
|
|
529 |
} else {
|
|
|
530 |
setTransferDate((Long) value);
|
|
|
531 |
}
|
|
|
532 |
break;
|
| 7410 |
amar.kumar |
533 |
|
| 31223 |
amit.gupta |
534 |
case TYPE:
|
|
|
535 |
if (value == null) {
|
|
|
536 |
unsetType();
|
|
|
537 |
} else {
|
|
|
538 |
setType((TransferType) value);
|
|
|
539 |
}
|
|
|
540 |
break;
|
| 7410 |
amar.kumar |
541 |
|
| 31223 |
amit.gupta |
542 |
case TRANSIT_COMPLETION_REFERENCE_NUMBER:
|
|
|
543 |
if (value == null) {
|
|
|
544 |
unsetTransitCompletionReferenceNumber();
|
|
|
545 |
} else {
|
|
|
546 |
setTransitCompletionReferenceNumber((String) value);
|
|
|
547 |
}
|
|
|
548 |
break;
|
| 7410 |
amar.kumar |
549 |
|
| 31223 |
amit.gupta |
550 |
case REFERENCE_UPDATION_DATE:
|
|
|
551 |
if (value == null) {
|
|
|
552 |
unsetReferenceUpdationDate();
|
|
|
553 |
} else {
|
|
|
554 |
setReferenceUpdationDate((Long) value);
|
|
|
555 |
}
|
|
|
556 |
break;
|
| 7410 |
amar.kumar |
557 |
|
| 31223 |
amit.gupta |
558 |
case REMARKS:
|
|
|
559 |
if (value == null) {
|
|
|
560 |
unsetRemarks();
|
|
|
561 |
} else {
|
|
|
562 |
setRemarks((String) value);
|
|
|
563 |
}
|
|
|
564 |
break;
|
| 7410 |
amar.kumar |
565 |
|
| 31223 |
amit.gupta |
566 |
case SHIPMENT_REFERENCE:
|
|
|
567 |
if (value == null) {
|
|
|
568 |
unsetShipmentReference();
|
|
|
569 |
} else {
|
|
|
570 |
setShipmentReference((Long) value);
|
|
|
571 |
}
|
|
|
572 |
break;
|
| 15045 |
manish.sha |
573 |
|
| 7410 |
amar.kumar |
574 |
}
|
|
|
575 |
}
|
|
|
576 |
|
|
|
577 |
public Object getFieldValue(_Fields field) {
|
| 31223 |
amit.gupta |
578 |
switch (field) {
|
|
|
579 |
case ID:
|
|
|
580 |
return Long.valueOf(getId());
|
| 7410 |
amar.kumar |
581 |
|
| 31223 |
amit.gupta |
582 |
case ORIGIN_WAREHOUSE_ID:
|
|
|
583 |
return Long.valueOf(getOriginWarehouseId());
|
| 7410 |
amar.kumar |
584 |
|
| 31223 |
amit.gupta |
585 |
case DESTINATION_WAREHOUSE_ID:
|
|
|
586 |
return Long.valueOf(getDestinationWarehouseId());
|
| 7410 |
amar.kumar |
587 |
|
| 31223 |
amit.gupta |
588 |
case STATUS:
|
|
|
589 |
return getStatus();
|
| 7410 |
amar.kumar |
590 |
|
| 31223 |
amit.gupta |
591 |
case TRANSFER_DATE:
|
|
|
592 |
return Long.valueOf(getTransferDate());
|
| 7410 |
amar.kumar |
593 |
|
| 31223 |
amit.gupta |
594 |
case TYPE:
|
|
|
595 |
return getType();
|
| 7410 |
amar.kumar |
596 |
|
| 31223 |
amit.gupta |
597 |
case TRANSIT_COMPLETION_REFERENCE_NUMBER:
|
|
|
598 |
return getTransitCompletionReferenceNumber();
|
| 7410 |
amar.kumar |
599 |
|
| 31223 |
amit.gupta |
600 |
case REFERENCE_UPDATION_DATE:
|
|
|
601 |
return Long.valueOf(getReferenceUpdationDate());
|
| 7410 |
amar.kumar |
602 |
|
| 31223 |
amit.gupta |
603 |
case REMARKS:
|
|
|
604 |
return getRemarks();
|
| 7410 |
amar.kumar |
605 |
|
| 31223 |
amit.gupta |
606 |
case SHIPMENT_REFERENCE:
|
|
|
607 |
return Long.valueOf(getShipmentReference());
|
| 15045 |
manish.sha |
608 |
|
| 7410 |
amar.kumar |
609 |
}
|
|
|
610 |
throw new IllegalStateException();
|
|
|
611 |
}
|
|
|
612 |
|
|
|
613 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
614 |
public boolean isSet(_Fields field) {
|
|
|
615 |
if (field == null) {
|
|
|
616 |
throw new IllegalArgumentException();
|
|
|
617 |
}
|
|
|
618 |
|
| 31223 |
amit.gupta |
619 |
switch (field) {
|
|
|
620 |
case ID:
|
|
|
621 |
return isSetId();
|
|
|
622 |
case ORIGIN_WAREHOUSE_ID:
|
|
|
623 |
return isSetOriginWarehouseId();
|
|
|
624 |
case DESTINATION_WAREHOUSE_ID:
|
|
|
625 |
return isSetDestinationWarehouseId();
|
|
|
626 |
case STATUS:
|
|
|
627 |
return isSetStatus();
|
|
|
628 |
case TRANSFER_DATE:
|
|
|
629 |
return isSetTransferDate();
|
|
|
630 |
case TYPE:
|
|
|
631 |
return isSetType();
|
|
|
632 |
case TRANSIT_COMPLETION_REFERENCE_NUMBER:
|
|
|
633 |
return isSetTransitCompletionReferenceNumber();
|
|
|
634 |
case REFERENCE_UPDATION_DATE:
|
|
|
635 |
return isSetReferenceUpdationDate();
|
|
|
636 |
case REMARKS:
|
|
|
637 |
return isSetRemarks();
|
|
|
638 |
case SHIPMENT_REFERENCE:
|
|
|
639 |
return isSetShipmentReference();
|
| 7410 |
amar.kumar |
640 |
}
|
|
|
641 |
throw new IllegalStateException();
|
|
|
642 |
}
|
|
|
643 |
|
|
|
644 |
@Override
|
|
|
645 |
public boolean equals(Object that) {
|
|
|
646 |
if (that == null)
|
|
|
647 |
return false;
|
|
|
648 |
if (that instanceof TransferLot)
|
| 31223 |
amit.gupta |
649 |
return this.equals((TransferLot) that);
|
| 7410 |
amar.kumar |
650 |
return false;
|
|
|
651 |
}
|
|
|
652 |
|
|
|
653 |
public boolean equals(TransferLot that) {
|
|
|
654 |
if (that == null)
|
|
|
655 |
return false;
|
|
|
656 |
|
|
|
657 |
boolean this_present_id = true;
|
|
|
658 |
boolean that_present_id = true;
|
|
|
659 |
if (this_present_id || that_present_id) {
|
|
|
660 |
if (!(this_present_id && that_present_id))
|
|
|
661 |
return false;
|
|
|
662 |
if (this.id != that.id)
|
|
|
663 |
return false;
|
|
|
664 |
}
|
|
|
665 |
|
|
|
666 |
boolean this_present_originWarehouseId = true;
|
|
|
667 |
boolean that_present_originWarehouseId = true;
|
|
|
668 |
if (this_present_originWarehouseId || that_present_originWarehouseId) {
|
|
|
669 |
if (!(this_present_originWarehouseId && that_present_originWarehouseId))
|
|
|
670 |
return false;
|
|
|
671 |
if (this.originWarehouseId != that.originWarehouseId)
|
|
|
672 |
return false;
|
|
|
673 |
}
|
|
|
674 |
|
|
|
675 |
boolean this_present_destinationWarehouseId = true;
|
|
|
676 |
boolean that_present_destinationWarehouseId = true;
|
|
|
677 |
if (this_present_destinationWarehouseId || that_present_destinationWarehouseId) {
|
|
|
678 |
if (!(this_present_destinationWarehouseId && that_present_destinationWarehouseId))
|
|
|
679 |
return false;
|
|
|
680 |
if (this.destinationWarehouseId != that.destinationWarehouseId)
|
|
|
681 |
return false;
|
|
|
682 |
}
|
|
|
683 |
|
|
|
684 |
boolean this_present_status = true && this.isSetStatus();
|
|
|
685 |
boolean that_present_status = true && that.isSetStatus();
|
|
|
686 |
if (this_present_status || that_present_status) {
|
|
|
687 |
if (!(this_present_status && that_present_status))
|
|
|
688 |
return false;
|
|
|
689 |
if (!this.status.equals(that.status))
|
|
|
690 |
return false;
|
|
|
691 |
}
|
|
|
692 |
|
|
|
693 |
boolean this_present_transferDate = true;
|
|
|
694 |
boolean that_present_transferDate = true;
|
|
|
695 |
if (this_present_transferDate || that_present_transferDate) {
|
|
|
696 |
if (!(this_present_transferDate && that_present_transferDate))
|
|
|
697 |
return false;
|
|
|
698 |
if (this.transferDate != that.transferDate)
|
|
|
699 |
return false;
|
|
|
700 |
}
|
|
|
701 |
|
|
|
702 |
boolean this_present_type = true && this.isSetType();
|
|
|
703 |
boolean that_present_type = true && that.isSetType();
|
|
|
704 |
if (this_present_type || that_present_type) {
|
|
|
705 |
if (!(this_present_type && that_present_type))
|
|
|
706 |
return false;
|
|
|
707 |
if (!this.type.equals(that.type))
|
|
|
708 |
return false;
|
|
|
709 |
}
|
|
|
710 |
|
|
|
711 |
boolean this_present_transitCompletionReferenceNumber = true && this.isSetTransitCompletionReferenceNumber();
|
|
|
712 |
boolean that_present_transitCompletionReferenceNumber = true && that.isSetTransitCompletionReferenceNumber();
|
|
|
713 |
if (this_present_transitCompletionReferenceNumber || that_present_transitCompletionReferenceNumber) {
|
|
|
714 |
if (!(this_present_transitCompletionReferenceNumber && that_present_transitCompletionReferenceNumber))
|
|
|
715 |
return false;
|
|
|
716 |
if (!this.transitCompletionReferenceNumber.equals(that.transitCompletionReferenceNumber))
|
|
|
717 |
return false;
|
|
|
718 |
}
|
|
|
719 |
|
|
|
720 |
boolean this_present_referenceUpdationDate = true;
|
|
|
721 |
boolean that_present_referenceUpdationDate = true;
|
|
|
722 |
if (this_present_referenceUpdationDate || that_present_referenceUpdationDate) {
|
|
|
723 |
if (!(this_present_referenceUpdationDate && that_present_referenceUpdationDate))
|
|
|
724 |
return false;
|
|
|
725 |
if (this.referenceUpdationDate != that.referenceUpdationDate)
|
|
|
726 |
return false;
|
|
|
727 |
}
|
|
|
728 |
|
|
|
729 |
boolean this_present_remarks = true && this.isSetRemarks();
|
|
|
730 |
boolean that_present_remarks = true && that.isSetRemarks();
|
|
|
731 |
if (this_present_remarks || that_present_remarks) {
|
|
|
732 |
if (!(this_present_remarks && that_present_remarks))
|
|
|
733 |
return false;
|
|
|
734 |
if (!this.remarks.equals(that.remarks))
|
|
|
735 |
return false;
|
|
|
736 |
}
|
|
|
737 |
|
| 15045 |
manish.sha |
738 |
boolean this_present_shipmentReference = true;
|
|
|
739 |
boolean that_present_shipmentReference = true;
|
|
|
740 |
if (this_present_shipmentReference || that_present_shipmentReference) {
|
|
|
741 |
if (!(this_present_shipmentReference && that_present_shipmentReference))
|
|
|
742 |
return false;
|
|
|
743 |
if (this.shipmentReference != that.shipmentReference)
|
|
|
744 |
return false;
|
|
|
745 |
}
|
|
|
746 |
|
| 7410 |
amar.kumar |
747 |
return true;
|
|
|
748 |
}
|
|
|
749 |
|
|
|
750 |
@Override
|
|
|
751 |
public int hashCode() {
|
|
|
752 |
return 0;
|
|
|
753 |
}
|
|
|
754 |
|
|
|
755 |
public int compareTo(TransferLot other) {
|
|
|
756 |
if (!getClass().equals(other.getClass())) {
|
|
|
757 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
758 |
}
|
|
|
759 |
|
| 31223 |
amit.gupta |
760 |
int lastComparison = 0;
|
|
|
761 |
TransferLot typedOther = (TransferLot) other;
|
| 7410 |
amar.kumar |
762 |
|
|
|
763 |
lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
|
|
|
764 |
if (lastComparison != 0) {
|
|
|
765 |
return lastComparison;
|
|
|
766 |
}
|
|
|
767 |
if (isSetId()) {
|
|
|
768 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
|
|
|
769 |
if (lastComparison != 0) {
|
|
|
770 |
return lastComparison;
|
|
|
771 |
}
|
|
|
772 |
}
|
|
|
773 |
lastComparison = Boolean.valueOf(isSetOriginWarehouseId()).compareTo(typedOther.isSetOriginWarehouseId());
|
|
|
774 |
if (lastComparison != 0) {
|
|
|
775 |
return lastComparison;
|
|
|
776 |
}
|
|
|
777 |
if (isSetOriginWarehouseId()) {
|
|
|
778 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.originWarehouseId, typedOther.originWarehouseId);
|
|
|
779 |
if (lastComparison != 0) {
|
|
|
780 |
return lastComparison;
|
|
|
781 |
}
|
|
|
782 |
}
|
|
|
783 |
lastComparison = Boolean.valueOf(isSetDestinationWarehouseId()).compareTo(typedOther.isSetDestinationWarehouseId());
|
|
|
784 |
if (lastComparison != 0) {
|
|
|
785 |
return lastComparison;
|
|
|
786 |
}
|
|
|
787 |
if (isSetDestinationWarehouseId()) {
|
|
|
788 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destinationWarehouseId, typedOther.destinationWarehouseId);
|
|
|
789 |
if (lastComparison != 0) {
|
|
|
790 |
return lastComparison;
|
|
|
791 |
}
|
|
|
792 |
}
|
|
|
793 |
lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
|
|
|
794 |
if (lastComparison != 0) {
|
|
|
795 |
return lastComparison;
|
|
|
796 |
}
|
|
|
797 |
if (isSetStatus()) {
|
|
|
798 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
|
|
|
799 |
if (lastComparison != 0) {
|
|
|
800 |
return lastComparison;
|
|
|
801 |
}
|
|
|
802 |
}
|
|
|
803 |
lastComparison = Boolean.valueOf(isSetTransferDate()).compareTo(typedOther.isSetTransferDate());
|
|
|
804 |
if (lastComparison != 0) {
|
|
|
805 |
return lastComparison;
|
|
|
806 |
}
|
|
|
807 |
if (isSetTransferDate()) {
|
|
|
808 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferDate, typedOther.transferDate);
|
|
|
809 |
if (lastComparison != 0) {
|
|
|
810 |
return lastComparison;
|
|
|
811 |
}
|
|
|
812 |
}
|
|
|
813 |
lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
|
|
|
814 |
if (lastComparison != 0) {
|
|
|
815 |
return lastComparison;
|
|
|
816 |
}
|
|
|
817 |
if (isSetType()) {
|
|
|
818 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
|
|
|
819 |
if (lastComparison != 0) {
|
|
|
820 |
return lastComparison;
|
|
|
821 |
}
|
|
|
822 |
}
|
|
|
823 |
lastComparison = Boolean.valueOf(isSetTransitCompletionReferenceNumber()).compareTo(typedOther.isSetTransitCompletionReferenceNumber());
|
|
|
824 |
if (lastComparison != 0) {
|
|
|
825 |
return lastComparison;
|
|
|
826 |
}
|
|
|
827 |
if (isSetTransitCompletionReferenceNumber()) {
|
|
|
828 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transitCompletionReferenceNumber, typedOther.transitCompletionReferenceNumber);
|
|
|
829 |
if (lastComparison != 0) {
|
|
|
830 |
return lastComparison;
|
|
|
831 |
}
|
|
|
832 |
}
|
|
|
833 |
lastComparison = Boolean.valueOf(isSetReferenceUpdationDate()).compareTo(typedOther.isSetReferenceUpdationDate());
|
|
|
834 |
if (lastComparison != 0) {
|
|
|
835 |
return lastComparison;
|
|
|
836 |
}
|
|
|
837 |
if (isSetReferenceUpdationDate()) {
|
|
|
838 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.referenceUpdationDate, typedOther.referenceUpdationDate);
|
|
|
839 |
if (lastComparison != 0) {
|
|
|
840 |
return lastComparison;
|
|
|
841 |
}
|
|
|
842 |
}
|
|
|
843 |
lastComparison = Boolean.valueOf(isSetRemarks()).compareTo(typedOther.isSetRemarks());
|
|
|
844 |
if (lastComparison != 0) {
|
|
|
845 |
return lastComparison;
|
|
|
846 |
}
|
|
|
847 |
if (isSetRemarks()) {
|
|
|
848 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.remarks, typedOther.remarks);
|
|
|
849 |
if (lastComparison != 0) {
|
|
|
850 |
return lastComparison;
|
|
|
851 |
}
|
|
|
852 |
}
|
| 15045 |
manish.sha |
853 |
lastComparison = Boolean.valueOf(isSetShipmentReference()).compareTo(typedOther.isSetShipmentReference());
|
|
|
854 |
if (lastComparison != 0) {
|
|
|
855 |
return lastComparison;
|
|
|
856 |
}
|
|
|
857 |
if (isSetShipmentReference()) {
|
|
|
858 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shipmentReference, typedOther.shipmentReference);
|
|
|
859 |
if (lastComparison != 0) {
|
|
|
860 |
return lastComparison;
|
|
|
861 |
}
|
|
|
862 |
}
|
| 7410 |
amar.kumar |
863 |
return 0;
|
|
|
864 |
}
|
|
|
865 |
|
|
|
866 |
public _Fields fieldForId(int fieldId) {
|
|
|
867 |
return _Fields.findByThriftId(fieldId);
|
|
|
868 |
}
|
|
|
869 |
|
|
|
870 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
871 |
org.apache.thrift.protocol.TField field;
|
|
|
872 |
iprot.readStructBegin();
|
|
|
873 |
while (true)
|
|
|
874 |
{
|
|
|
875 |
field = iprot.readFieldBegin();
|
|
|
876 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
877 |
break;
|
|
|
878 |
}
|
|
|
879 |
switch (field.id) {
|
|
|
880 |
case 1: // ID
|
|
|
881 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
882 |
this.id = iprot.readI64();
|
|
|
883 |
setIdIsSet(true);
|
|
|
884 |
} else {
|
|
|
885 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
886 |
}
|
|
|
887 |
break;
|
|
|
888 |
case 2: // ORIGIN_WAREHOUSE_ID
|
|
|
889 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
890 |
this.originWarehouseId = iprot.readI64();
|
|
|
891 |
setOriginWarehouseIdIsSet(true);
|
|
|
892 |
} else {
|
|
|
893 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
894 |
}
|
|
|
895 |
break;
|
|
|
896 |
case 3: // DESTINATION_WAREHOUSE_ID
|
|
|
897 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
898 |
this.destinationWarehouseId = iprot.readI64();
|
|
|
899 |
setDestinationWarehouseIdIsSet(true);
|
|
|
900 |
} else {
|
|
|
901 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
902 |
}
|
|
|
903 |
break;
|
|
|
904 |
case 4: // STATUS
|
|
|
905 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
906 |
this.status = TransferLotStatus.findByValue(iprot.readI32());
|
|
|
907 |
} else {
|
|
|
908 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
909 |
}
|
|
|
910 |
break;
|
|
|
911 |
case 5: // TRANSFER_DATE
|
| 31223 |
amit.gupta |
912 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
913 |
this.transferDate = iprot.readI64();
|
|
|
914 |
setTransferDateIsSet(true);
|
|
|
915 |
} else {
|
|
|
916 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 7410 |
amar.kumar |
917 |
}
|
|
|
918 |
break;
|
|
|
919 |
case 6: // TYPE
|
| 31223 |
amit.gupta |
920 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
921 |
this.type = TransferType.findByValue(iprot.readI32());
|
|
|
922 |
} else {
|
|
|
923 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 7410 |
amar.kumar |
924 |
}
|
|
|
925 |
break;
|
|
|
926 |
case 7: // TRANSIT_COMPLETION_REFERENCE_NUMBER
|
| 31223 |
amit.gupta |
927 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
928 |
this.transitCompletionReferenceNumber = iprot.readString();
|
|
|
929 |
} else {
|
|
|
930 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 7410 |
amar.kumar |
931 |
}
|
|
|
932 |
break;
|
|
|
933 |
case 8: // REFERENCE_UPDATION_DATE
|
| 31223 |
amit.gupta |
934 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
935 |
this.referenceUpdationDate = iprot.readI64();
|
|
|
936 |
setReferenceUpdationDateIsSet(true);
|
|
|
937 |
} else {
|
|
|
938 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 7410 |
amar.kumar |
939 |
}
|
|
|
940 |
break;
|
|
|
941 |
case 9: // REMARKS
|
| 31223 |
amit.gupta |
942 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
943 |
this.remarks = iprot.readString();
|
|
|
944 |
} else {
|
|
|
945 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 7410 |
amar.kumar |
946 |
}
|
|
|
947 |
break;
|
| 15045 |
manish.sha |
948 |
case 10: // SHIPMENT_REFERENCE
|
| 31223 |
amit.gupta |
949 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
950 |
this.shipmentReference = iprot.readI64();
|
|
|
951 |
setShipmentReferenceIsSet(true);
|
|
|
952 |
} else {
|
|
|
953 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
954 |
}
|
| 15045 |
manish.sha |
955 |
break;
|
| 7410 |
amar.kumar |
956 |
default:
|
|
|
957 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
958 |
}
|
|
|
959 |
iprot.readFieldEnd();
|
|
|
960 |
}
|
|
|
961 |
iprot.readStructEnd();
|
|
|
962 |
validate();
|
|
|
963 |
}
|
|
|
964 |
|
|
|
965 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
966 |
validate();
|
|
|
967 |
|
|
|
968 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
969 |
oprot.writeFieldBegin(ID_FIELD_DESC);
|
|
|
970 |
oprot.writeI64(this.id);
|
|
|
971 |
oprot.writeFieldEnd();
|
|
|
972 |
oprot.writeFieldBegin(ORIGIN_WAREHOUSE_ID_FIELD_DESC);
|
|
|
973 |
oprot.writeI64(this.originWarehouseId);
|
|
|
974 |
oprot.writeFieldEnd();
|
|
|
975 |
oprot.writeFieldBegin(DESTINATION_WAREHOUSE_ID_FIELD_DESC);
|
|
|
976 |
oprot.writeI64(this.destinationWarehouseId);
|
|
|
977 |
oprot.writeFieldEnd();
|
|
|
978 |
if (this.status != null) {
|
|
|
979 |
oprot.writeFieldBegin(STATUS_FIELD_DESC);
|
|
|
980 |
oprot.writeI32(this.status.getValue());
|
|
|
981 |
oprot.writeFieldEnd();
|
|
|
982 |
}
|
|
|
983 |
oprot.writeFieldBegin(TRANSFER_DATE_FIELD_DESC);
|
|
|
984 |
oprot.writeI64(this.transferDate);
|
|
|
985 |
oprot.writeFieldEnd();
|
|
|
986 |
if (this.type != null) {
|
|
|
987 |
oprot.writeFieldBegin(TYPE_FIELD_DESC);
|
|
|
988 |
oprot.writeI32(this.type.getValue());
|
|
|
989 |
oprot.writeFieldEnd();
|
|
|
990 |
}
|
|
|
991 |
if (this.transitCompletionReferenceNumber != null) {
|
|
|
992 |
oprot.writeFieldBegin(TRANSIT_COMPLETION_REFERENCE_NUMBER_FIELD_DESC);
|
|
|
993 |
oprot.writeString(this.transitCompletionReferenceNumber);
|
|
|
994 |
oprot.writeFieldEnd();
|
|
|
995 |
}
|
|
|
996 |
oprot.writeFieldBegin(REFERENCE_UPDATION_DATE_FIELD_DESC);
|
|
|
997 |
oprot.writeI64(this.referenceUpdationDate);
|
|
|
998 |
oprot.writeFieldEnd();
|
|
|
999 |
if (this.remarks != null) {
|
|
|
1000 |
oprot.writeFieldBegin(REMARKS_FIELD_DESC);
|
|
|
1001 |
oprot.writeString(this.remarks);
|
|
|
1002 |
oprot.writeFieldEnd();
|
|
|
1003 |
}
|
| 15045 |
manish.sha |
1004 |
oprot.writeFieldBegin(SHIPMENT_REFERENCE_FIELD_DESC);
|
|
|
1005 |
oprot.writeI64(this.shipmentReference);
|
|
|
1006 |
oprot.writeFieldEnd();
|
| 7410 |
amar.kumar |
1007 |
oprot.writeFieldStop();
|
|
|
1008 |
oprot.writeStructEnd();
|
|
|
1009 |
}
|
|
|
1010 |
|
|
|
1011 |
@Override
|
|
|
1012 |
public String toString() {
|
|
|
1013 |
StringBuilder sb = new StringBuilder("TransferLot(");
|
|
|
1014 |
boolean first = true;
|
|
|
1015 |
|
|
|
1016 |
sb.append("id:");
|
|
|
1017 |
sb.append(this.id);
|
|
|
1018 |
first = false;
|
|
|
1019 |
if (!first) sb.append(", ");
|
|
|
1020 |
sb.append("originWarehouseId:");
|
|
|
1021 |
sb.append(this.originWarehouseId);
|
|
|
1022 |
first = false;
|
|
|
1023 |
if (!first) sb.append(", ");
|
|
|
1024 |
sb.append("destinationWarehouseId:");
|
|
|
1025 |
sb.append(this.destinationWarehouseId);
|
|
|
1026 |
first = false;
|
|
|
1027 |
if (!first) sb.append(", ");
|
|
|
1028 |
sb.append("status:");
|
|
|
1029 |
if (this.status == null) {
|
|
|
1030 |
sb.append("null");
|
|
|
1031 |
} else {
|
|
|
1032 |
sb.append(this.status);
|
|
|
1033 |
}
|
|
|
1034 |
first = false;
|
|
|
1035 |
if (!first) sb.append(", ");
|
|
|
1036 |
sb.append("transferDate:");
|
|
|
1037 |
sb.append(this.transferDate);
|
|
|
1038 |
first = false;
|
|
|
1039 |
if (!first) sb.append(", ");
|
|
|
1040 |
sb.append("type:");
|
|
|
1041 |
if (this.type == null) {
|
|
|
1042 |
sb.append("null");
|
|
|
1043 |
} else {
|
|
|
1044 |
sb.append(this.type);
|
|
|
1045 |
}
|
|
|
1046 |
first = false;
|
|
|
1047 |
if (!first) sb.append(", ");
|
|
|
1048 |
sb.append("transitCompletionReferenceNumber:");
|
|
|
1049 |
if (this.transitCompletionReferenceNumber == null) {
|
|
|
1050 |
sb.append("null");
|
|
|
1051 |
} else {
|
|
|
1052 |
sb.append(this.transitCompletionReferenceNumber);
|
|
|
1053 |
}
|
|
|
1054 |
first = false;
|
|
|
1055 |
if (!first) sb.append(", ");
|
|
|
1056 |
sb.append("referenceUpdationDate:");
|
|
|
1057 |
sb.append(this.referenceUpdationDate);
|
|
|
1058 |
first = false;
|
|
|
1059 |
if (!first) sb.append(", ");
|
|
|
1060 |
sb.append("remarks:");
|
|
|
1061 |
if (this.remarks == null) {
|
|
|
1062 |
sb.append("null");
|
|
|
1063 |
} else {
|
|
|
1064 |
sb.append(this.remarks);
|
|
|
1065 |
}
|
|
|
1066 |
first = false;
|
| 15045 |
manish.sha |
1067 |
if (!first) sb.append(", ");
|
|
|
1068 |
sb.append("shipmentReference:");
|
|
|
1069 |
sb.append(this.shipmentReference);
|
|
|
1070 |
first = false;
|
| 7410 |
amar.kumar |
1071 |
sb.append(")");
|
|
|
1072 |
return sb.toString();
|
|
|
1073 |
}
|
|
|
1074 |
|
|
|
1075 |
public void validate() throws org.apache.thrift.TException {
|
|
|
1076 |
// check for required fields
|
|
|
1077 |
}
|
|
|
1078 |
|
|
|
1079 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
1080 |
try {
|
|
|
1081 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
1082 |
} catch (org.apache.thrift.TException te) {
|
|
|
1083 |
throw new java.io.IOException(te);
|
|
|
1084 |
}
|
|
|
1085 |
}
|
|
|
1086 |
|
|
|
1087 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
1088 |
try {
|
|
|
1089 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
1090 |
__isset_bit_vector = new BitSet(1);
|
|
|
1091 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
1092 |
} catch (org.apache.thrift.TException te) {
|
|
|
1093 |
throw new java.io.IOException(te);
|
|
|
1094 |
}
|
|
|
1095 |
}
|
|
|
1096 |
|
|
|
1097 |
}
|
|
|
1098 |
|