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