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