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