| 6467 |
amar.kumar |
1 |
/**
|
|
|
2 |
* Autogenerated by Thrift Compiler (0.7.0)
|
|
|
3 |
*
|
|
|
4 |
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
|
5 |
*/
|
|
|
6 |
package in.shop2020.purchase;
|
|
|
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 PurchaseReturn implements org.apache.thrift.TBase<PurchaseReturn, PurchaseReturn._Fields>, java.io.Serializable, Cloneable {
|
|
|
24 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PurchaseReturn");
|
|
|
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 VENDOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("vendorId", org.apache.thrift.protocol.TType.I64, (short)2);
|
|
|
28 |
private static final org.apache.thrift.protocol.TField AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("amount", org.apache.thrift.protocol.TType.I64, (short)3);
|
|
|
29 |
private static final org.apache.thrift.protocol.TField RETURN_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("returnTimestamp", org.apache.thrift.protocol.TType.I64, (short)4);
|
|
|
30 |
private static final org.apache.thrift.protocol.TField IS_SETTLED_FIELD_DESC = new org.apache.thrift.protocol.TField("isSettled", org.apache.thrift.protocol.TType.BOOL, (short)5);
|
| 6821 |
amar.kumar |
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);
|
| 10864 |
manish.sha |
32 |
private static final org.apache.thrift.protocol.TField RETURN_INVENTORY_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("returnInventoryType", org.apache.thrift.protocol.TType.I32, (short)7);
|
| 13600 |
manish.sha |
33 |
private static final org.apache.thrift.protocol.TField CURRENT_SETTLEMENT_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("currentSettlementType", org.apache.thrift.protocol.TType.I32, (short)8);
|
|
|
34 |
private static final org.apache.thrift.protocol.TField LATEST_SETTLEMENT_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("latestSettlementDate", org.apache.thrift.protocol.TType.I64, (short)9);
|
|
|
35 |
private static final org.apache.thrift.protocol.TField PURCHASE_RETURN_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseReturnType", org.apache.thrift.protocol.TType.I32, (short)10);
|
|
|
36 |
private static final org.apache.thrift.protocol.TField REASON_TEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("reasonText", org.apache.thrift.protocol.TType.STRING, (short)11);
|
|
|
37 |
private static final org.apache.thrift.protocol.TField DOCUMENT_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("documentNumber", org.apache.thrift.protocol.TType.STRING, (short)12);
|
|
|
38 |
private static final org.apache.thrift.protocol.TField CREATED_BY_FIELD_DESC = new org.apache.thrift.protocol.TField("createdBy", org.apache.thrift.protocol.TType.STRING, (short)13);
|
|
|
39 |
private static final org.apache.thrift.protocol.TField UNSETTLED_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("unsettledAmount", org.apache.thrift.protocol.TType.I64, (short)14);
|
| 6467 |
amar.kumar |
40 |
|
|
|
41 |
private long id; // required
|
|
|
42 |
private long vendorId; // required
|
|
|
43 |
private long amount; // required
|
|
|
44 |
private long returnTimestamp; // required
|
|
|
45 |
private boolean isSettled; // required
|
| 6821 |
amar.kumar |
46 |
private PurchaseReturnType type; // required
|
| 10864 |
manish.sha |
47 |
private PurchaseReturnInventoryType returnInventoryType; // required
|
| 13600 |
manish.sha |
48 |
private SettlementType currentSettlementType; // required
|
|
|
49 |
private long latestSettlementDate; // required
|
|
|
50 |
private PrReasonType purchaseReturnType; // required
|
|
|
51 |
private String reasonText; // required
|
|
|
52 |
private String documentNumber; // required
|
|
|
53 |
private String createdBy; // required
|
|
|
54 |
private long unsettledAmount; // required
|
| 6467 |
amar.kumar |
55 |
|
|
|
56 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
57 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
58 |
ID((short)1, "id"),
|
|
|
59 |
VENDOR_ID((short)2, "vendorId"),
|
|
|
60 |
AMOUNT((short)3, "amount"),
|
|
|
61 |
RETURN_TIMESTAMP((short)4, "returnTimestamp"),
|
| 6821 |
amar.kumar |
62 |
IS_SETTLED((short)5, "isSettled"),
|
|
|
63 |
/**
|
|
|
64 |
*
|
|
|
65 |
* @see PurchaseReturnType
|
|
|
66 |
*/
|
| 10864 |
manish.sha |
67 |
TYPE((short)6, "type"),
|
|
|
68 |
/**
|
|
|
69 |
*
|
|
|
70 |
* @see PurchaseReturnInventoryType
|
|
|
71 |
*/
|
| 13600 |
manish.sha |
72 |
RETURN_INVENTORY_TYPE((short)7, "returnInventoryType"),
|
|
|
73 |
/**
|
|
|
74 |
*
|
|
|
75 |
* @see SettlementType
|
|
|
76 |
*/
|
|
|
77 |
CURRENT_SETTLEMENT_TYPE((short)8, "currentSettlementType"),
|
|
|
78 |
LATEST_SETTLEMENT_DATE((short)9, "latestSettlementDate"),
|
|
|
79 |
/**
|
|
|
80 |
*
|
|
|
81 |
* @see PrReasonType
|
|
|
82 |
*/
|
|
|
83 |
PURCHASE_RETURN_TYPE((short)10, "purchaseReturnType"),
|
|
|
84 |
REASON_TEXT((short)11, "reasonText"),
|
|
|
85 |
DOCUMENT_NUMBER((short)12, "documentNumber"),
|
|
|
86 |
CREATED_BY((short)13, "createdBy"),
|
|
|
87 |
UNSETTLED_AMOUNT((short)14, "unsettledAmount");
|
| 6467 |
amar.kumar |
88 |
|
|
|
89 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
90 |
|
|
|
91 |
static {
|
|
|
92 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
93 |
byName.put(field.getFieldName(), field);
|
|
|
94 |
}
|
|
|
95 |
}
|
|
|
96 |
|
|
|
97 |
/**
|
|
|
98 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
99 |
*/
|
|
|
100 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
101 |
switch(fieldId) {
|
|
|
102 |
case 1: // ID
|
|
|
103 |
return ID;
|
|
|
104 |
case 2: // VENDOR_ID
|
|
|
105 |
return VENDOR_ID;
|
|
|
106 |
case 3: // AMOUNT
|
|
|
107 |
return AMOUNT;
|
|
|
108 |
case 4: // RETURN_TIMESTAMP
|
|
|
109 |
return RETURN_TIMESTAMP;
|
|
|
110 |
case 5: // IS_SETTLED
|
|
|
111 |
return IS_SETTLED;
|
| 6821 |
amar.kumar |
112 |
case 6: // TYPE
|
|
|
113 |
return TYPE;
|
| 10864 |
manish.sha |
114 |
case 7: // RETURN_INVENTORY_TYPE
|
|
|
115 |
return RETURN_INVENTORY_TYPE;
|
| 13600 |
manish.sha |
116 |
case 8: // CURRENT_SETTLEMENT_TYPE
|
|
|
117 |
return CURRENT_SETTLEMENT_TYPE;
|
|
|
118 |
case 9: // LATEST_SETTLEMENT_DATE
|
|
|
119 |
return LATEST_SETTLEMENT_DATE;
|
|
|
120 |
case 10: // PURCHASE_RETURN_TYPE
|
|
|
121 |
return PURCHASE_RETURN_TYPE;
|
|
|
122 |
case 11: // REASON_TEXT
|
|
|
123 |
return REASON_TEXT;
|
|
|
124 |
case 12: // DOCUMENT_NUMBER
|
|
|
125 |
return DOCUMENT_NUMBER;
|
|
|
126 |
case 13: // CREATED_BY
|
|
|
127 |
return CREATED_BY;
|
|
|
128 |
case 14: // UNSETTLED_AMOUNT
|
|
|
129 |
return UNSETTLED_AMOUNT;
|
| 6467 |
amar.kumar |
130 |
default:
|
|
|
131 |
return null;
|
|
|
132 |
}
|
|
|
133 |
}
|
|
|
134 |
|
|
|
135 |
/**
|
|
|
136 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
137 |
* if it is not found.
|
|
|
138 |
*/
|
|
|
139 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
140 |
_Fields fields = findByThriftId(fieldId);
|
|
|
141 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
142 |
return fields;
|
|
|
143 |
}
|
|
|
144 |
|
|
|
145 |
/**
|
|
|
146 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
147 |
*/
|
|
|
148 |
public static _Fields findByName(String name) {
|
|
|
149 |
return byName.get(name);
|
|
|
150 |
}
|
|
|
151 |
|
|
|
152 |
private final short _thriftId;
|
|
|
153 |
private final String _fieldName;
|
|
|
154 |
|
|
|
155 |
_Fields(short thriftId, String fieldName) {
|
|
|
156 |
_thriftId = thriftId;
|
|
|
157 |
_fieldName = fieldName;
|
|
|
158 |
}
|
|
|
159 |
|
|
|
160 |
public short getThriftFieldId() {
|
|
|
161 |
return _thriftId;
|
|
|
162 |
}
|
|
|
163 |
|
|
|
164 |
public String getFieldName() {
|
|
|
165 |
return _fieldName;
|
|
|
166 |
}
|
|
|
167 |
}
|
|
|
168 |
|
|
|
169 |
// isset id assignments
|
|
|
170 |
private static final int __ID_ISSET_ID = 0;
|
|
|
171 |
private static final int __VENDORID_ISSET_ID = 1;
|
|
|
172 |
private static final int __AMOUNT_ISSET_ID = 2;
|
|
|
173 |
private static final int __RETURNTIMESTAMP_ISSET_ID = 3;
|
|
|
174 |
private static final int __ISSETTLED_ISSET_ID = 4;
|
| 13600 |
manish.sha |
175 |
private static final int __LATESTSETTLEMENTDATE_ISSET_ID = 5;
|
|
|
176 |
private static final int __UNSETTLEDAMOUNT_ISSET_ID = 6;
|
|
|
177 |
private BitSet __isset_bit_vector = new BitSet(7);
|
| 6467 |
amar.kumar |
178 |
|
|
|
179 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
180 |
static {
|
|
|
181 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
182 |
tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
183 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
184 |
tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
185 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
186 |
tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
187 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
188 |
tmpMap.put(_Fields.RETURN_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("returnTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
189 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
190 |
tmpMap.put(_Fields.IS_SETTLED, new org.apache.thrift.meta_data.FieldMetaData("isSettled", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
191 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
| 6821 |
amar.kumar |
192 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
193 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PurchaseReturnType.class)));
|
| 10864 |
manish.sha |
194 |
tmpMap.put(_Fields.RETURN_INVENTORY_TYPE, new org.apache.thrift.meta_data.FieldMetaData("returnInventoryType", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
195 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PurchaseReturnInventoryType.class)));
|
| 13600 |
manish.sha |
196 |
tmpMap.put(_Fields.CURRENT_SETTLEMENT_TYPE, new org.apache.thrift.meta_data.FieldMetaData("currentSettlementType", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
197 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, SettlementType.class)));
|
|
|
198 |
tmpMap.put(_Fields.LATEST_SETTLEMENT_DATE, new org.apache.thrift.meta_data.FieldMetaData("latestSettlementDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
199 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
200 |
tmpMap.put(_Fields.PURCHASE_RETURN_TYPE, new org.apache.thrift.meta_data.FieldMetaData("purchaseReturnType", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
201 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PrReasonType.class)));
|
|
|
202 |
tmpMap.put(_Fields.REASON_TEXT, new org.apache.thrift.meta_data.FieldMetaData("reasonText", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
203 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
204 |
tmpMap.put(_Fields.DOCUMENT_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("documentNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
205 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
206 |
tmpMap.put(_Fields.CREATED_BY, new org.apache.thrift.meta_data.FieldMetaData("createdBy", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
207 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
208 |
tmpMap.put(_Fields.UNSETTLED_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("unsettledAmount", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
209 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 6467 |
amar.kumar |
210 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
211 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(PurchaseReturn.class, metaDataMap);
|
|
|
212 |
}
|
|
|
213 |
|
|
|
214 |
public PurchaseReturn() {
|
|
|
215 |
}
|
|
|
216 |
|
|
|
217 |
public PurchaseReturn(
|
|
|
218 |
long id,
|
|
|
219 |
long vendorId,
|
|
|
220 |
long amount,
|
|
|
221 |
long returnTimestamp,
|
| 6821 |
amar.kumar |
222 |
boolean isSettled,
|
| 10864 |
manish.sha |
223 |
PurchaseReturnType type,
|
| 13600 |
manish.sha |
224 |
PurchaseReturnInventoryType returnInventoryType,
|
|
|
225 |
SettlementType currentSettlementType,
|
|
|
226 |
long latestSettlementDate,
|
|
|
227 |
PrReasonType purchaseReturnType,
|
|
|
228 |
String reasonText,
|
|
|
229 |
String documentNumber,
|
|
|
230 |
String createdBy,
|
|
|
231 |
long unsettledAmount)
|
| 6467 |
amar.kumar |
232 |
{
|
|
|
233 |
this();
|
|
|
234 |
this.id = id;
|
|
|
235 |
setIdIsSet(true);
|
|
|
236 |
this.vendorId = vendorId;
|
|
|
237 |
setVendorIdIsSet(true);
|
|
|
238 |
this.amount = amount;
|
|
|
239 |
setAmountIsSet(true);
|
|
|
240 |
this.returnTimestamp = returnTimestamp;
|
|
|
241 |
setReturnTimestampIsSet(true);
|
|
|
242 |
this.isSettled = isSettled;
|
|
|
243 |
setIsSettledIsSet(true);
|
| 6821 |
amar.kumar |
244 |
this.type = type;
|
| 10864 |
manish.sha |
245 |
this.returnInventoryType = returnInventoryType;
|
| 13600 |
manish.sha |
246 |
this.currentSettlementType = currentSettlementType;
|
|
|
247 |
this.latestSettlementDate = latestSettlementDate;
|
|
|
248 |
setLatestSettlementDateIsSet(true);
|
|
|
249 |
this.purchaseReturnType = purchaseReturnType;
|
|
|
250 |
this.reasonText = reasonText;
|
|
|
251 |
this.documentNumber = documentNumber;
|
|
|
252 |
this.createdBy = createdBy;
|
|
|
253 |
this.unsettledAmount = unsettledAmount;
|
|
|
254 |
setUnsettledAmountIsSet(true);
|
| 6467 |
amar.kumar |
255 |
}
|
|
|
256 |
|
|
|
257 |
/**
|
|
|
258 |
* Performs a deep copy on <i>other</i>.
|
|
|
259 |
*/
|
|
|
260 |
public PurchaseReturn(PurchaseReturn other) {
|
|
|
261 |
__isset_bit_vector.clear();
|
|
|
262 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
263 |
this.id = other.id;
|
|
|
264 |
this.vendorId = other.vendorId;
|
|
|
265 |
this.amount = other.amount;
|
|
|
266 |
this.returnTimestamp = other.returnTimestamp;
|
|
|
267 |
this.isSettled = other.isSettled;
|
| 6821 |
amar.kumar |
268 |
if (other.isSetType()) {
|
|
|
269 |
this.type = other.type;
|
|
|
270 |
}
|
| 10864 |
manish.sha |
271 |
if (other.isSetReturnInventoryType()) {
|
|
|
272 |
this.returnInventoryType = other.returnInventoryType;
|
|
|
273 |
}
|
| 13600 |
manish.sha |
274 |
if (other.isSetCurrentSettlementType()) {
|
|
|
275 |
this.currentSettlementType = other.currentSettlementType;
|
|
|
276 |
}
|
|
|
277 |
this.latestSettlementDate = other.latestSettlementDate;
|
|
|
278 |
if (other.isSetPurchaseReturnType()) {
|
|
|
279 |
this.purchaseReturnType = other.purchaseReturnType;
|
|
|
280 |
}
|
|
|
281 |
if (other.isSetReasonText()) {
|
|
|
282 |
this.reasonText = other.reasonText;
|
|
|
283 |
}
|
|
|
284 |
if (other.isSetDocumentNumber()) {
|
|
|
285 |
this.documentNumber = other.documentNumber;
|
|
|
286 |
}
|
|
|
287 |
if (other.isSetCreatedBy()) {
|
|
|
288 |
this.createdBy = other.createdBy;
|
|
|
289 |
}
|
|
|
290 |
this.unsettledAmount = other.unsettledAmount;
|
| 6467 |
amar.kumar |
291 |
}
|
|
|
292 |
|
|
|
293 |
public PurchaseReturn deepCopy() {
|
|
|
294 |
return new PurchaseReturn(this);
|
|
|
295 |
}
|
|
|
296 |
|
|
|
297 |
@Override
|
|
|
298 |
public void clear() {
|
|
|
299 |
setIdIsSet(false);
|
|
|
300 |
this.id = 0;
|
|
|
301 |
setVendorIdIsSet(false);
|
|
|
302 |
this.vendorId = 0;
|
|
|
303 |
setAmountIsSet(false);
|
|
|
304 |
this.amount = 0;
|
|
|
305 |
setReturnTimestampIsSet(false);
|
|
|
306 |
this.returnTimestamp = 0;
|
|
|
307 |
setIsSettledIsSet(false);
|
|
|
308 |
this.isSettled = false;
|
| 6821 |
amar.kumar |
309 |
this.type = null;
|
| 10864 |
manish.sha |
310 |
this.returnInventoryType = null;
|
| 13600 |
manish.sha |
311 |
this.currentSettlementType = null;
|
|
|
312 |
setLatestSettlementDateIsSet(false);
|
|
|
313 |
this.latestSettlementDate = 0;
|
|
|
314 |
this.purchaseReturnType = null;
|
|
|
315 |
this.reasonText = null;
|
|
|
316 |
this.documentNumber = null;
|
|
|
317 |
this.createdBy = null;
|
|
|
318 |
setUnsettledAmountIsSet(false);
|
|
|
319 |
this.unsettledAmount = 0;
|
| 6467 |
amar.kumar |
320 |
}
|
|
|
321 |
|
|
|
322 |
public long getId() {
|
|
|
323 |
return this.id;
|
|
|
324 |
}
|
|
|
325 |
|
|
|
326 |
public void setId(long id) {
|
|
|
327 |
this.id = id;
|
|
|
328 |
setIdIsSet(true);
|
|
|
329 |
}
|
|
|
330 |
|
|
|
331 |
public void unsetId() {
|
|
|
332 |
__isset_bit_vector.clear(__ID_ISSET_ID);
|
|
|
333 |
}
|
|
|
334 |
|
|
|
335 |
/** Returns true if field id is set (has been assigned a value) and false otherwise */
|
|
|
336 |
public boolean isSetId() {
|
|
|
337 |
return __isset_bit_vector.get(__ID_ISSET_ID);
|
|
|
338 |
}
|
|
|
339 |
|
|
|
340 |
public void setIdIsSet(boolean value) {
|
|
|
341 |
__isset_bit_vector.set(__ID_ISSET_ID, value);
|
|
|
342 |
}
|
|
|
343 |
|
|
|
344 |
public long getVendorId() {
|
|
|
345 |
return this.vendorId;
|
|
|
346 |
}
|
|
|
347 |
|
|
|
348 |
public void setVendorId(long vendorId) {
|
|
|
349 |
this.vendorId = vendorId;
|
|
|
350 |
setVendorIdIsSet(true);
|
|
|
351 |
}
|
|
|
352 |
|
|
|
353 |
public void unsetVendorId() {
|
|
|
354 |
__isset_bit_vector.clear(__VENDORID_ISSET_ID);
|
|
|
355 |
}
|
|
|
356 |
|
|
|
357 |
/** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
|
|
|
358 |
public boolean isSetVendorId() {
|
|
|
359 |
return __isset_bit_vector.get(__VENDORID_ISSET_ID);
|
|
|
360 |
}
|
|
|
361 |
|
|
|
362 |
public void setVendorIdIsSet(boolean value) {
|
|
|
363 |
__isset_bit_vector.set(__VENDORID_ISSET_ID, value);
|
|
|
364 |
}
|
|
|
365 |
|
|
|
366 |
public long getAmount() {
|
|
|
367 |
return this.amount;
|
|
|
368 |
}
|
|
|
369 |
|
|
|
370 |
public void setAmount(long amount) {
|
|
|
371 |
this.amount = amount;
|
|
|
372 |
setAmountIsSet(true);
|
|
|
373 |
}
|
|
|
374 |
|
|
|
375 |
public void unsetAmount() {
|
|
|
376 |
__isset_bit_vector.clear(__AMOUNT_ISSET_ID);
|
|
|
377 |
}
|
|
|
378 |
|
|
|
379 |
/** Returns true if field amount is set (has been assigned a value) and false otherwise */
|
|
|
380 |
public boolean isSetAmount() {
|
|
|
381 |
return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
|
|
|
382 |
}
|
|
|
383 |
|
|
|
384 |
public void setAmountIsSet(boolean value) {
|
|
|
385 |
__isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
|
|
|
386 |
}
|
|
|
387 |
|
|
|
388 |
public long getReturnTimestamp() {
|
|
|
389 |
return this.returnTimestamp;
|
|
|
390 |
}
|
|
|
391 |
|
|
|
392 |
public void setReturnTimestamp(long returnTimestamp) {
|
|
|
393 |
this.returnTimestamp = returnTimestamp;
|
|
|
394 |
setReturnTimestampIsSet(true);
|
|
|
395 |
}
|
|
|
396 |
|
|
|
397 |
public void unsetReturnTimestamp() {
|
|
|
398 |
__isset_bit_vector.clear(__RETURNTIMESTAMP_ISSET_ID);
|
|
|
399 |
}
|
|
|
400 |
|
|
|
401 |
/** Returns true if field returnTimestamp is set (has been assigned a value) and false otherwise */
|
|
|
402 |
public boolean isSetReturnTimestamp() {
|
|
|
403 |
return __isset_bit_vector.get(__RETURNTIMESTAMP_ISSET_ID);
|
|
|
404 |
}
|
|
|
405 |
|
|
|
406 |
public void setReturnTimestampIsSet(boolean value) {
|
|
|
407 |
__isset_bit_vector.set(__RETURNTIMESTAMP_ISSET_ID, value);
|
|
|
408 |
}
|
|
|
409 |
|
|
|
410 |
public boolean isIsSettled() {
|
|
|
411 |
return this.isSettled;
|
|
|
412 |
}
|
|
|
413 |
|
|
|
414 |
public void setIsSettled(boolean isSettled) {
|
|
|
415 |
this.isSettled = isSettled;
|
|
|
416 |
setIsSettledIsSet(true);
|
|
|
417 |
}
|
|
|
418 |
|
|
|
419 |
public void unsetIsSettled() {
|
|
|
420 |
__isset_bit_vector.clear(__ISSETTLED_ISSET_ID);
|
|
|
421 |
}
|
|
|
422 |
|
|
|
423 |
/** Returns true if field isSettled is set (has been assigned a value) and false otherwise */
|
|
|
424 |
public boolean isSetIsSettled() {
|
|
|
425 |
return __isset_bit_vector.get(__ISSETTLED_ISSET_ID);
|
|
|
426 |
}
|
|
|
427 |
|
|
|
428 |
public void setIsSettledIsSet(boolean value) {
|
|
|
429 |
__isset_bit_vector.set(__ISSETTLED_ISSET_ID, value);
|
|
|
430 |
}
|
|
|
431 |
|
| 6821 |
amar.kumar |
432 |
/**
|
|
|
433 |
*
|
|
|
434 |
* @see PurchaseReturnType
|
|
|
435 |
*/
|
|
|
436 |
public PurchaseReturnType getType() {
|
|
|
437 |
return this.type;
|
|
|
438 |
}
|
|
|
439 |
|
|
|
440 |
/**
|
|
|
441 |
*
|
|
|
442 |
* @see PurchaseReturnType
|
|
|
443 |
*/
|
|
|
444 |
public void setType(PurchaseReturnType type) {
|
|
|
445 |
this.type = type;
|
|
|
446 |
}
|
|
|
447 |
|
|
|
448 |
public void unsetType() {
|
|
|
449 |
this.type = null;
|
|
|
450 |
}
|
|
|
451 |
|
|
|
452 |
/** Returns true if field type is set (has been assigned a value) and false otherwise */
|
|
|
453 |
public boolean isSetType() {
|
|
|
454 |
return this.type != null;
|
|
|
455 |
}
|
|
|
456 |
|
|
|
457 |
public void setTypeIsSet(boolean value) {
|
|
|
458 |
if (!value) {
|
|
|
459 |
this.type = null;
|
|
|
460 |
}
|
|
|
461 |
}
|
|
|
462 |
|
| 10864 |
manish.sha |
463 |
/**
|
|
|
464 |
*
|
|
|
465 |
* @see PurchaseReturnInventoryType
|
|
|
466 |
*/
|
|
|
467 |
public PurchaseReturnInventoryType getReturnInventoryType() {
|
|
|
468 |
return this.returnInventoryType;
|
|
|
469 |
}
|
|
|
470 |
|
|
|
471 |
/**
|
|
|
472 |
*
|
|
|
473 |
* @see PurchaseReturnInventoryType
|
|
|
474 |
*/
|
|
|
475 |
public void setReturnInventoryType(PurchaseReturnInventoryType returnInventoryType) {
|
|
|
476 |
this.returnInventoryType = returnInventoryType;
|
|
|
477 |
}
|
|
|
478 |
|
|
|
479 |
public void unsetReturnInventoryType() {
|
|
|
480 |
this.returnInventoryType = null;
|
|
|
481 |
}
|
|
|
482 |
|
|
|
483 |
/** Returns true if field returnInventoryType is set (has been assigned a value) and false otherwise */
|
|
|
484 |
public boolean isSetReturnInventoryType() {
|
|
|
485 |
return this.returnInventoryType != null;
|
|
|
486 |
}
|
|
|
487 |
|
|
|
488 |
public void setReturnInventoryTypeIsSet(boolean value) {
|
|
|
489 |
if (!value) {
|
|
|
490 |
this.returnInventoryType = null;
|
|
|
491 |
}
|
|
|
492 |
}
|
|
|
493 |
|
| 13600 |
manish.sha |
494 |
/**
|
|
|
495 |
*
|
|
|
496 |
* @see SettlementType
|
|
|
497 |
*/
|
|
|
498 |
public SettlementType getCurrentSettlementType() {
|
|
|
499 |
return this.currentSettlementType;
|
|
|
500 |
}
|
|
|
501 |
|
|
|
502 |
/**
|
|
|
503 |
*
|
|
|
504 |
* @see SettlementType
|
|
|
505 |
*/
|
|
|
506 |
public void setCurrentSettlementType(SettlementType currentSettlementType) {
|
|
|
507 |
this.currentSettlementType = currentSettlementType;
|
|
|
508 |
}
|
|
|
509 |
|
|
|
510 |
public void unsetCurrentSettlementType() {
|
|
|
511 |
this.currentSettlementType = null;
|
|
|
512 |
}
|
|
|
513 |
|
|
|
514 |
/** Returns true if field currentSettlementType is set (has been assigned a value) and false otherwise */
|
|
|
515 |
public boolean isSetCurrentSettlementType() {
|
|
|
516 |
return this.currentSettlementType != null;
|
|
|
517 |
}
|
|
|
518 |
|
|
|
519 |
public void setCurrentSettlementTypeIsSet(boolean value) {
|
|
|
520 |
if (!value) {
|
|
|
521 |
this.currentSettlementType = null;
|
|
|
522 |
}
|
|
|
523 |
}
|
|
|
524 |
|
|
|
525 |
public long getLatestSettlementDate() {
|
|
|
526 |
return this.latestSettlementDate;
|
|
|
527 |
}
|
|
|
528 |
|
|
|
529 |
public void setLatestSettlementDate(long latestSettlementDate) {
|
|
|
530 |
this.latestSettlementDate = latestSettlementDate;
|
|
|
531 |
setLatestSettlementDateIsSet(true);
|
|
|
532 |
}
|
|
|
533 |
|
|
|
534 |
public void unsetLatestSettlementDate() {
|
|
|
535 |
__isset_bit_vector.clear(__LATESTSETTLEMENTDATE_ISSET_ID);
|
|
|
536 |
}
|
|
|
537 |
|
|
|
538 |
/** Returns true if field latestSettlementDate is set (has been assigned a value) and false otherwise */
|
|
|
539 |
public boolean isSetLatestSettlementDate() {
|
|
|
540 |
return __isset_bit_vector.get(__LATESTSETTLEMENTDATE_ISSET_ID);
|
|
|
541 |
}
|
|
|
542 |
|
|
|
543 |
public void setLatestSettlementDateIsSet(boolean value) {
|
|
|
544 |
__isset_bit_vector.set(__LATESTSETTLEMENTDATE_ISSET_ID, value);
|
|
|
545 |
}
|
|
|
546 |
|
|
|
547 |
/**
|
|
|
548 |
*
|
|
|
549 |
* @see PrReasonType
|
|
|
550 |
*/
|
|
|
551 |
public PrReasonType getPurchaseReturnType() {
|
|
|
552 |
return this.purchaseReturnType;
|
|
|
553 |
}
|
|
|
554 |
|
|
|
555 |
/**
|
|
|
556 |
*
|
|
|
557 |
* @see PrReasonType
|
|
|
558 |
*/
|
|
|
559 |
public void setPurchaseReturnType(PrReasonType purchaseReturnType) {
|
|
|
560 |
this.purchaseReturnType = purchaseReturnType;
|
|
|
561 |
}
|
|
|
562 |
|
|
|
563 |
public void unsetPurchaseReturnType() {
|
|
|
564 |
this.purchaseReturnType = null;
|
|
|
565 |
}
|
|
|
566 |
|
|
|
567 |
/** Returns true if field purchaseReturnType is set (has been assigned a value) and false otherwise */
|
|
|
568 |
public boolean isSetPurchaseReturnType() {
|
|
|
569 |
return this.purchaseReturnType != null;
|
|
|
570 |
}
|
|
|
571 |
|
|
|
572 |
public void setPurchaseReturnTypeIsSet(boolean value) {
|
|
|
573 |
if (!value) {
|
|
|
574 |
this.purchaseReturnType = null;
|
|
|
575 |
}
|
|
|
576 |
}
|
|
|
577 |
|
|
|
578 |
public String getReasonText() {
|
|
|
579 |
return this.reasonText;
|
|
|
580 |
}
|
|
|
581 |
|
|
|
582 |
public void setReasonText(String reasonText) {
|
|
|
583 |
this.reasonText = reasonText;
|
|
|
584 |
}
|
|
|
585 |
|
|
|
586 |
public void unsetReasonText() {
|
|
|
587 |
this.reasonText = null;
|
|
|
588 |
}
|
|
|
589 |
|
|
|
590 |
/** Returns true if field reasonText is set (has been assigned a value) and false otherwise */
|
|
|
591 |
public boolean isSetReasonText() {
|
|
|
592 |
return this.reasonText != null;
|
|
|
593 |
}
|
|
|
594 |
|
|
|
595 |
public void setReasonTextIsSet(boolean value) {
|
|
|
596 |
if (!value) {
|
|
|
597 |
this.reasonText = null;
|
|
|
598 |
}
|
|
|
599 |
}
|
|
|
600 |
|
|
|
601 |
public String getDocumentNumber() {
|
|
|
602 |
return this.documentNumber;
|
|
|
603 |
}
|
|
|
604 |
|
|
|
605 |
public void setDocumentNumber(String documentNumber) {
|
|
|
606 |
this.documentNumber = documentNumber;
|
|
|
607 |
}
|
|
|
608 |
|
|
|
609 |
public void unsetDocumentNumber() {
|
|
|
610 |
this.documentNumber = null;
|
|
|
611 |
}
|
|
|
612 |
|
|
|
613 |
/** Returns true if field documentNumber is set (has been assigned a value) and false otherwise */
|
|
|
614 |
public boolean isSetDocumentNumber() {
|
|
|
615 |
return this.documentNumber != null;
|
|
|
616 |
}
|
|
|
617 |
|
|
|
618 |
public void setDocumentNumberIsSet(boolean value) {
|
|
|
619 |
if (!value) {
|
|
|
620 |
this.documentNumber = null;
|
|
|
621 |
}
|
|
|
622 |
}
|
|
|
623 |
|
|
|
624 |
public String getCreatedBy() {
|
|
|
625 |
return this.createdBy;
|
|
|
626 |
}
|
|
|
627 |
|
|
|
628 |
public void setCreatedBy(String createdBy) {
|
|
|
629 |
this.createdBy = createdBy;
|
|
|
630 |
}
|
|
|
631 |
|
|
|
632 |
public void unsetCreatedBy() {
|
|
|
633 |
this.createdBy = null;
|
|
|
634 |
}
|
|
|
635 |
|
|
|
636 |
/** Returns true if field createdBy is set (has been assigned a value) and false otherwise */
|
|
|
637 |
public boolean isSetCreatedBy() {
|
|
|
638 |
return this.createdBy != null;
|
|
|
639 |
}
|
|
|
640 |
|
|
|
641 |
public void setCreatedByIsSet(boolean value) {
|
|
|
642 |
if (!value) {
|
|
|
643 |
this.createdBy = null;
|
|
|
644 |
}
|
|
|
645 |
}
|
|
|
646 |
|
|
|
647 |
public long getUnsettledAmount() {
|
|
|
648 |
return this.unsettledAmount;
|
|
|
649 |
}
|
|
|
650 |
|
|
|
651 |
public void setUnsettledAmount(long unsettledAmount) {
|
|
|
652 |
this.unsettledAmount = unsettledAmount;
|
|
|
653 |
setUnsettledAmountIsSet(true);
|
|
|
654 |
}
|
|
|
655 |
|
|
|
656 |
public void unsetUnsettledAmount() {
|
|
|
657 |
__isset_bit_vector.clear(__UNSETTLEDAMOUNT_ISSET_ID);
|
|
|
658 |
}
|
|
|
659 |
|
|
|
660 |
/** Returns true if field unsettledAmount is set (has been assigned a value) and false otherwise */
|
|
|
661 |
public boolean isSetUnsettledAmount() {
|
|
|
662 |
return __isset_bit_vector.get(__UNSETTLEDAMOUNT_ISSET_ID);
|
|
|
663 |
}
|
|
|
664 |
|
|
|
665 |
public void setUnsettledAmountIsSet(boolean value) {
|
|
|
666 |
__isset_bit_vector.set(__UNSETTLEDAMOUNT_ISSET_ID, value);
|
|
|
667 |
}
|
|
|
668 |
|
| 6467 |
amar.kumar |
669 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
670 |
switch (field) {
|
|
|
671 |
case ID:
|
|
|
672 |
if (value == null) {
|
|
|
673 |
unsetId();
|
|
|
674 |
} else {
|
|
|
675 |
setId((Long)value);
|
|
|
676 |
}
|
|
|
677 |
break;
|
|
|
678 |
|
|
|
679 |
case VENDOR_ID:
|
|
|
680 |
if (value == null) {
|
|
|
681 |
unsetVendorId();
|
|
|
682 |
} else {
|
|
|
683 |
setVendorId((Long)value);
|
|
|
684 |
}
|
|
|
685 |
break;
|
|
|
686 |
|
|
|
687 |
case AMOUNT:
|
|
|
688 |
if (value == null) {
|
|
|
689 |
unsetAmount();
|
|
|
690 |
} else {
|
|
|
691 |
setAmount((Long)value);
|
|
|
692 |
}
|
|
|
693 |
break;
|
|
|
694 |
|
|
|
695 |
case RETURN_TIMESTAMP:
|
|
|
696 |
if (value == null) {
|
|
|
697 |
unsetReturnTimestamp();
|
|
|
698 |
} else {
|
|
|
699 |
setReturnTimestamp((Long)value);
|
|
|
700 |
}
|
|
|
701 |
break;
|
|
|
702 |
|
|
|
703 |
case IS_SETTLED:
|
|
|
704 |
if (value == null) {
|
|
|
705 |
unsetIsSettled();
|
|
|
706 |
} else {
|
|
|
707 |
setIsSettled((Boolean)value);
|
|
|
708 |
}
|
|
|
709 |
break;
|
|
|
710 |
|
| 6821 |
amar.kumar |
711 |
case TYPE:
|
|
|
712 |
if (value == null) {
|
|
|
713 |
unsetType();
|
|
|
714 |
} else {
|
|
|
715 |
setType((PurchaseReturnType)value);
|
|
|
716 |
}
|
|
|
717 |
break;
|
|
|
718 |
|
| 10864 |
manish.sha |
719 |
case RETURN_INVENTORY_TYPE:
|
|
|
720 |
if (value == null) {
|
|
|
721 |
unsetReturnInventoryType();
|
|
|
722 |
} else {
|
|
|
723 |
setReturnInventoryType((PurchaseReturnInventoryType)value);
|
|
|
724 |
}
|
|
|
725 |
break;
|
|
|
726 |
|
| 13600 |
manish.sha |
727 |
case CURRENT_SETTLEMENT_TYPE:
|
|
|
728 |
if (value == null) {
|
|
|
729 |
unsetCurrentSettlementType();
|
|
|
730 |
} else {
|
|
|
731 |
setCurrentSettlementType((SettlementType)value);
|
|
|
732 |
}
|
|
|
733 |
break;
|
|
|
734 |
|
|
|
735 |
case LATEST_SETTLEMENT_DATE:
|
|
|
736 |
if (value == null) {
|
|
|
737 |
unsetLatestSettlementDate();
|
|
|
738 |
} else {
|
|
|
739 |
setLatestSettlementDate((Long)value);
|
|
|
740 |
}
|
|
|
741 |
break;
|
|
|
742 |
|
|
|
743 |
case PURCHASE_RETURN_TYPE:
|
|
|
744 |
if (value == null) {
|
|
|
745 |
unsetPurchaseReturnType();
|
|
|
746 |
} else {
|
|
|
747 |
setPurchaseReturnType((PrReasonType)value);
|
|
|
748 |
}
|
|
|
749 |
break;
|
|
|
750 |
|
|
|
751 |
case REASON_TEXT:
|
|
|
752 |
if (value == null) {
|
|
|
753 |
unsetReasonText();
|
|
|
754 |
} else {
|
|
|
755 |
setReasonText((String)value);
|
|
|
756 |
}
|
|
|
757 |
break;
|
|
|
758 |
|
|
|
759 |
case DOCUMENT_NUMBER:
|
|
|
760 |
if (value == null) {
|
|
|
761 |
unsetDocumentNumber();
|
|
|
762 |
} else {
|
|
|
763 |
setDocumentNumber((String)value);
|
|
|
764 |
}
|
|
|
765 |
break;
|
|
|
766 |
|
|
|
767 |
case CREATED_BY:
|
|
|
768 |
if (value == null) {
|
|
|
769 |
unsetCreatedBy();
|
|
|
770 |
} else {
|
|
|
771 |
setCreatedBy((String)value);
|
|
|
772 |
}
|
|
|
773 |
break;
|
|
|
774 |
|
|
|
775 |
case UNSETTLED_AMOUNT:
|
|
|
776 |
if (value == null) {
|
|
|
777 |
unsetUnsettledAmount();
|
|
|
778 |
} else {
|
|
|
779 |
setUnsettledAmount((Long)value);
|
|
|
780 |
}
|
|
|
781 |
break;
|
|
|
782 |
|
| 6467 |
amar.kumar |
783 |
}
|
|
|
784 |
}
|
|
|
785 |
|
|
|
786 |
public Object getFieldValue(_Fields field) {
|
|
|
787 |
switch (field) {
|
|
|
788 |
case ID:
|
|
|
789 |
return Long.valueOf(getId());
|
|
|
790 |
|
|
|
791 |
case VENDOR_ID:
|
|
|
792 |
return Long.valueOf(getVendorId());
|
|
|
793 |
|
|
|
794 |
case AMOUNT:
|
|
|
795 |
return Long.valueOf(getAmount());
|
|
|
796 |
|
|
|
797 |
case RETURN_TIMESTAMP:
|
|
|
798 |
return Long.valueOf(getReturnTimestamp());
|
|
|
799 |
|
|
|
800 |
case IS_SETTLED:
|
|
|
801 |
return Boolean.valueOf(isIsSettled());
|
|
|
802 |
|
| 6821 |
amar.kumar |
803 |
case TYPE:
|
|
|
804 |
return getType();
|
|
|
805 |
|
| 10864 |
manish.sha |
806 |
case RETURN_INVENTORY_TYPE:
|
|
|
807 |
return getReturnInventoryType();
|
|
|
808 |
|
| 13600 |
manish.sha |
809 |
case CURRENT_SETTLEMENT_TYPE:
|
|
|
810 |
return getCurrentSettlementType();
|
|
|
811 |
|
|
|
812 |
case LATEST_SETTLEMENT_DATE:
|
|
|
813 |
return Long.valueOf(getLatestSettlementDate());
|
|
|
814 |
|
|
|
815 |
case PURCHASE_RETURN_TYPE:
|
|
|
816 |
return getPurchaseReturnType();
|
|
|
817 |
|
|
|
818 |
case REASON_TEXT:
|
|
|
819 |
return getReasonText();
|
|
|
820 |
|
|
|
821 |
case DOCUMENT_NUMBER:
|
|
|
822 |
return getDocumentNumber();
|
|
|
823 |
|
|
|
824 |
case CREATED_BY:
|
|
|
825 |
return getCreatedBy();
|
|
|
826 |
|
|
|
827 |
case UNSETTLED_AMOUNT:
|
|
|
828 |
return Long.valueOf(getUnsettledAmount());
|
|
|
829 |
|
| 6467 |
amar.kumar |
830 |
}
|
|
|
831 |
throw new IllegalStateException();
|
|
|
832 |
}
|
|
|
833 |
|
|
|
834 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
835 |
public boolean isSet(_Fields field) {
|
|
|
836 |
if (field == null) {
|
|
|
837 |
throw new IllegalArgumentException();
|
|
|
838 |
}
|
|
|
839 |
|
|
|
840 |
switch (field) {
|
|
|
841 |
case ID:
|
|
|
842 |
return isSetId();
|
|
|
843 |
case VENDOR_ID:
|
|
|
844 |
return isSetVendorId();
|
|
|
845 |
case AMOUNT:
|
|
|
846 |
return isSetAmount();
|
|
|
847 |
case RETURN_TIMESTAMP:
|
|
|
848 |
return isSetReturnTimestamp();
|
|
|
849 |
case IS_SETTLED:
|
|
|
850 |
return isSetIsSettled();
|
| 6821 |
amar.kumar |
851 |
case TYPE:
|
|
|
852 |
return isSetType();
|
| 10864 |
manish.sha |
853 |
case RETURN_INVENTORY_TYPE:
|
|
|
854 |
return isSetReturnInventoryType();
|
| 13600 |
manish.sha |
855 |
case CURRENT_SETTLEMENT_TYPE:
|
|
|
856 |
return isSetCurrentSettlementType();
|
|
|
857 |
case LATEST_SETTLEMENT_DATE:
|
|
|
858 |
return isSetLatestSettlementDate();
|
|
|
859 |
case PURCHASE_RETURN_TYPE:
|
|
|
860 |
return isSetPurchaseReturnType();
|
|
|
861 |
case REASON_TEXT:
|
|
|
862 |
return isSetReasonText();
|
|
|
863 |
case DOCUMENT_NUMBER:
|
|
|
864 |
return isSetDocumentNumber();
|
|
|
865 |
case CREATED_BY:
|
|
|
866 |
return isSetCreatedBy();
|
|
|
867 |
case UNSETTLED_AMOUNT:
|
|
|
868 |
return isSetUnsettledAmount();
|
| 6467 |
amar.kumar |
869 |
}
|
|
|
870 |
throw new IllegalStateException();
|
|
|
871 |
}
|
|
|
872 |
|
|
|
873 |
@Override
|
|
|
874 |
public boolean equals(Object that) {
|
|
|
875 |
if (that == null)
|
|
|
876 |
return false;
|
|
|
877 |
if (that instanceof PurchaseReturn)
|
|
|
878 |
return this.equals((PurchaseReturn)that);
|
|
|
879 |
return false;
|
|
|
880 |
}
|
|
|
881 |
|
|
|
882 |
public boolean equals(PurchaseReturn that) {
|
|
|
883 |
if (that == null)
|
|
|
884 |
return false;
|
|
|
885 |
|
|
|
886 |
boolean this_present_id = true;
|
|
|
887 |
boolean that_present_id = true;
|
|
|
888 |
if (this_present_id || that_present_id) {
|
|
|
889 |
if (!(this_present_id && that_present_id))
|
|
|
890 |
return false;
|
|
|
891 |
if (this.id != that.id)
|
|
|
892 |
return false;
|
|
|
893 |
}
|
|
|
894 |
|
|
|
895 |
boolean this_present_vendorId = true;
|
|
|
896 |
boolean that_present_vendorId = true;
|
|
|
897 |
if (this_present_vendorId || that_present_vendorId) {
|
|
|
898 |
if (!(this_present_vendorId && that_present_vendorId))
|
|
|
899 |
return false;
|
|
|
900 |
if (this.vendorId != that.vendorId)
|
|
|
901 |
return false;
|
|
|
902 |
}
|
|
|
903 |
|
|
|
904 |
boolean this_present_amount = true;
|
|
|
905 |
boolean that_present_amount = true;
|
|
|
906 |
if (this_present_amount || that_present_amount) {
|
|
|
907 |
if (!(this_present_amount && that_present_amount))
|
|
|
908 |
return false;
|
|
|
909 |
if (this.amount != that.amount)
|
|
|
910 |
return false;
|
|
|
911 |
}
|
|
|
912 |
|
|
|
913 |
boolean this_present_returnTimestamp = true;
|
|
|
914 |
boolean that_present_returnTimestamp = true;
|
|
|
915 |
if (this_present_returnTimestamp || that_present_returnTimestamp) {
|
|
|
916 |
if (!(this_present_returnTimestamp && that_present_returnTimestamp))
|
|
|
917 |
return false;
|
|
|
918 |
if (this.returnTimestamp != that.returnTimestamp)
|
|
|
919 |
return false;
|
|
|
920 |
}
|
|
|
921 |
|
|
|
922 |
boolean this_present_isSettled = true;
|
|
|
923 |
boolean that_present_isSettled = true;
|
|
|
924 |
if (this_present_isSettled || that_present_isSettled) {
|
|
|
925 |
if (!(this_present_isSettled && that_present_isSettled))
|
|
|
926 |
return false;
|
|
|
927 |
if (this.isSettled != that.isSettled)
|
|
|
928 |
return false;
|
|
|
929 |
}
|
|
|
930 |
|
| 6821 |
amar.kumar |
931 |
boolean this_present_type = true && this.isSetType();
|
|
|
932 |
boolean that_present_type = true && that.isSetType();
|
|
|
933 |
if (this_present_type || that_present_type) {
|
|
|
934 |
if (!(this_present_type && that_present_type))
|
|
|
935 |
return false;
|
|
|
936 |
if (!this.type.equals(that.type))
|
|
|
937 |
return false;
|
|
|
938 |
}
|
|
|
939 |
|
| 10864 |
manish.sha |
940 |
boolean this_present_returnInventoryType = true && this.isSetReturnInventoryType();
|
|
|
941 |
boolean that_present_returnInventoryType = true && that.isSetReturnInventoryType();
|
|
|
942 |
if (this_present_returnInventoryType || that_present_returnInventoryType) {
|
|
|
943 |
if (!(this_present_returnInventoryType && that_present_returnInventoryType))
|
|
|
944 |
return false;
|
|
|
945 |
if (!this.returnInventoryType.equals(that.returnInventoryType))
|
|
|
946 |
return false;
|
|
|
947 |
}
|
|
|
948 |
|
| 13600 |
manish.sha |
949 |
boolean this_present_currentSettlementType = true && this.isSetCurrentSettlementType();
|
|
|
950 |
boolean that_present_currentSettlementType = true && that.isSetCurrentSettlementType();
|
|
|
951 |
if (this_present_currentSettlementType || that_present_currentSettlementType) {
|
|
|
952 |
if (!(this_present_currentSettlementType && that_present_currentSettlementType))
|
|
|
953 |
return false;
|
|
|
954 |
if (!this.currentSettlementType.equals(that.currentSettlementType))
|
|
|
955 |
return false;
|
|
|
956 |
}
|
|
|
957 |
|
|
|
958 |
boolean this_present_latestSettlementDate = true;
|
|
|
959 |
boolean that_present_latestSettlementDate = true;
|
|
|
960 |
if (this_present_latestSettlementDate || that_present_latestSettlementDate) {
|
|
|
961 |
if (!(this_present_latestSettlementDate && that_present_latestSettlementDate))
|
|
|
962 |
return false;
|
|
|
963 |
if (this.latestSettlementDate != that.latestSettlementDate)
|
|
|
964 |
return false;
|
|
|
965 |
}
|
|
|
966 |
|
|
|
967 |
boolean this_present_purchaseReturnType = true && this.isSetPurchaseReturnType();
|
|
|
968 |
boolean that_present_purchaseReturnType = true && that.isSetPurchaseReturnType();
|
|
|
969 |
if (this_present_purchaseReturnType || that_present_purchaseReturnType) {
|
|
|
970 |
if (!(this_present_purchaseReturnType && that_present_purchaseReturnType))
|
|
|
971 |
return false;
|
|
|
972 |
if (!this.purchaseReturnType.equals(that.purchaseReturnType))
|
|
|
973 |
return false;
|
|
|
974 |
}
|
|
|
975 |
|
|
|
976 |
boolean this_present_reasonText = true && this.isSetReasonText();
|
|
|
977 |
boolean that_present_reasonText = true && that.isSetReasonText();
|
|
|
978 |
if (this_present_reasonText || that_present_reasonText) {
|
|
|
979 |
if (!(this_present_reasonText && that_present_reasonText))
|
|
|
980 |
return false;
|
|
|
981 |
if (!this.reasonText.equals(that.reasonText))
|
|
|
982 |
return false;
|
|
|
983 |
}
|
|
|
984 |
|
|
|
985 |
boolean this_present_documentNumber = true && this.isSetDocumentNumber();
|
|
|
986 |
boolean that_present_documentNumber = true && that.isSetDocumentNumber();
|
|
|
987 |
if (this_present_documentNumber || that_present_documentNumber) {
|
|
|
988 |
if (!(this_present_documentNumber && that_present_documentNumber))
|
|
|
989 |
return false;
|
|
|
990 |
if (!this.documentNumber.equals(that.documentNumber))
|
|
|
991 |
return false;
|
|
|
992 |
}
|
|
|
993 |
|
|
|
994 |
boolean this_present_createdBy = true && this.isSetCreatedBy();
|
|
|
995 |
boolean that_present_createdBy = true && that.isSetCreatedBy();
|
|
|
996 |
if (this_present_createdBy || that_present_createdBy) {
|
|
|
997 |
if (!(this_present_createdBy && that_present_createdBy))
|
|
|
998 |
return false;
|
|
|
999 |
if (!this.createdBy.equals(that.createdBy))
|
|
|
1000 |
return false;
|
|
|
1001 |
}
|
|
|
1002 |
|
|
|
1003 |
boolean this_present_unsettledAmount = true;
|
|
|
1004 |
boolean that_present_unsettledAmount = true;
|
|
|
1005 |
if (this_present_unsettledAmount || that_present_unsettledAmount) {
|
|
|
1006 |
if (!(this_present_unsettledAmount && that_present_unsettledAmount))
|
|
|
1007 |
return false;
|
|
|
1008 |
if (this.unsettledAmount != that.unsettledAmount)
|
|
|
1009 |
return false;
|
|
|
1010 |
}
|
|
|
1011 |
|
| 6467 |
amar.kumar |
1012 |
return true;
|
|
|
1013 |
}
|
|
|
1014 |
|
|
|
1015 |
@Override
|
|
|
1016 |
public int hashCode() {
|
|
|
1017 |
return 0;
|
|
|
1018 |
}
|
|
|
1019 |
|
|
|
1020 |
public int compareTo(PurchaseReturn other) {
|
|
|
1021 |
if (!getClass().equals(other.getClass())) {
|
|
|
1022 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
1023 |
}
|
|
|
1024 |
|
|
|
1025 |
int lastComparison = 0;
|
|
|
1026 |
PurchaseReturn typedOther = (PurchaseReturn)other;
|
|
|
1027 |
|
|
|
1028 |
lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
|
|
|
1029 |
if (lastComparison != 0) {
|
|
|
1030 |
return lastComparison;
|
|
|
1031 |
}
|
|
|
1032 |
if (isSetId()) {
|
|
|
1033 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
|
|
|
1034 |
if (lastComparison != 0) {
|
|
|
1035 |
return lastComparison;
|
|
|
1036 |
}
|
|
|
1037 |
}
|
|
|
1038 |
lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
|
|
|
1039 |
if (lastComparison != 0) {
|
|
|
1040 |
return lastComparison;
|
|
|
1041 |
}
|
|
|
1042 |
if (isSetVendorId()) {
|
|
|
1043 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
|
|
|
1044 |
if (lastComparison != 0) {
|
|
|
1045 |
return lastComparison;
|
|
|
1046 |
}
|
|
|
1047 |
}
|
|
|
1048 |
lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());
|
|
|
1049 |
if (lastComparison != 0) {
|
|
|
1050 |
return lastComparison;
|
|
|
1051 |
}
|
|
|
1052 |
if (isSetAmount()) {
|
|
|
1053 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
|
|
|
1054 |
if (lastComparison != 0) {
|
|
|
1055 |
return lastComparison;
|
|
|
1056 |
}
|
|
|
1057 |
}
|
|
|
1058 |
lastComparison = Boolean.valueOf(isSetReturnTimestamp()).compareTo(typedOther.isSetReturnTimestamp());
|
|
|
1059 |
if (lastComparison != 0) {
|
|
|
1060 |
return lastComparison;
|
|
|
1061 |
}
|
|
|
1062 |
if (isSetReturnTimestamp()) {
|
|
|
1063 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.returnTimestamp, typedOther.returnTimestamp);
|
|
|
1064 |
if (lastComparison != 0) {
|
|
|
1065 |
return lastComparison;
|
|
|
1066 |
}
|
|
|
1067 |
}
|
|
|
1068 |
lastComparison = Boolean.valueOf(isSetIsSettled()).compareTo(typedOther.isSetIsSettled());
|
|
|
1069 |
if (lastComparison != 0) {
|
|
|
1070 |
return lastComparison;
|
|
|
1071 |
}
|
|
|
1072 |
if (isSetIsSettled()) {
|
|
|
1073 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isSettled, typedOther.isSettled);
|
|
|
1074 |
if (lastComparison != 0) {
|
|
|
1075 |
return lastComparison;
|
|
|
1076 |
}
|
|
|
1077 |
}
|
| 6821 |
amar.kumar |
1078 |
lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
|
|
|
1079 |
if (lastComparison != 0) {
|
|
|
1080 |
return lastComparison;
|
|
|
1081 |
}
|
|
|
1082 |
if (isSetType()) {
|
|
|
1083 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
|
|
|
1084 |
if (lastComparison != 0) {
|
|
|
1085 |
return lastComparison;
|
|
|
1086 |
}
|
|
|
1087 |
}
|
| 10864 |
manish.sha |
1088 |
lastComparison = Boolean.valueOf(isSetReturnInventoryType()).compareTo(typedOther.isSetReturnInventoryType());
|
|
|
1089 |
if (lastComparison != 0) {
|
|
|
1090 |
return lastComparison;
|
|
|
1091 |
}
|
|
|
1092 |
if (isSetReturnInventoryType()) {
|
|
|
1093 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.returnInventoryType, typedOther.returnInventoryType);
|
|
|
1094 |
if (lastComparison != 0) {
|
|
|
1095 |
return lastComparison;
|
|
|
1096 |
}
|
|
|
1097 |
}
|
| 13600 |
manish.sha |
1098 |
lastComparison = Boolean.valueOf(isSetCurrentSettlementType()).compareTo(typedOther.isSetCurrentSettlementType());
|
|
|
1099 |
if (lastComparison != 0) {
|
|
|
1100 |
return lastComparison;
|
|
|
1101 |
}
|
|
|
1102 |
if (isSetCurrentSettlementType()) {
|
|
|
1103 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.currentSettlementType, typedOther.currentSettlementType);
|
|
|
1104 |
if (lastComparison != 0) {
|
|
|
1105 |
return lastComparison;
|
|
|
1106 |
}
|
|
|
1107 |
}
|
|
|
1108 |
lastComparison = Boolean.valueOf(isSetLatestSettlementDate()).compareTo(typedOther.isSetLatestSettlementDate());
|
|
|
1109 |
if (lastComparison != 0) {
|
|
|
1110 |
return lastComparison;
|
|
|
1111 |
}
|
|
|
1112 |
if (isSetLatestSettlementDate()) {
|
|
|
1113 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.latestSettlementDate, typedOther.latestSettlementDate);
|
|
|
1114 |
if (lastComparison != 0) {
|
|
|
1115 |
return lastComparison;
|
|
|
1116 |
}
|
|
|
1117 |
}
|
|
|
1118 |
lastComparison = Boolean.valueOf(isSetPurchaseReturnType()).compareTo(typedOther.isSetPurchaseReturnType());
|
|
|
1119 |
if (lastComparison != 0) {
|
|
|
1120 |
return lastComparison;
|
|
|
1121 |
}
|
|
|
1122 |
if (isSetPurchaseReturnType()) {
|
|
|
1123 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseReturnType, typedOther.purchaseReturnType);
|
|
|
1124 |
if (lastComparison != 0) {
|
|
|
1125 |
return lastComparison;
|
|
|
1126 |
}
|
|
|
1127 |
}
|
|
|
1128 |
lastComparison = Boolean.valueOf(isSetReasonText()).compareTo(typedOther.isSetReasonText());
|
|
|
1129 |
if (lastComparison != 0) {
|
|
|
1130 |
return lastComparison;
|
|
|
1131 |
}
|
|
|
1132 |
if (isSetReasonText()) {
|
|
|
1133 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.reasonText, typedOther.reasonText);
|
|
|
1134 |
if (lastComparison != 0) {
|
|
|
1135 |
return lastComparison;
|
|
|
1136 |
}
|
|
|
1137 |
}
|
|
|
1138 |
lastComparison = Boolean.valueOf(isSetDocumentNumber()).compareTo(typedOther.isSetDocumentNumber());
|
|
|
1139 |
if (lastComparison != 0) {
|
|
|
1140 |
return lastComparison;
|
|
|
1141 |
}
|
|
|
1142 |
if (isSetDocumentNumber()) {
|
|
|
1143 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.documentNumber, typedOther.documentNumber);
|
|
|
1144 |
if (lastComparison != 0) {
|
|
|
1145 |
return lastComparison;
|
|
|
1146 |
}
|
|
|
1147 |
}
|
|
|
1148 |
lastComparison = Boolean.valueOf(isSetCreatedBy()).compareTo(typedOther.isSetCreatedBy());
|
|
|
1149 |
if (lastComparison != 0) {
|
|
|
1150 |
return lastComparison;
|
|
|
1151 |
}
|
|
|
1152 |
if (isSetCreatedBy()) {
|
|
|
1153 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createdBy, typedOther.createdBy);
|
|
|
1154 |
if (lastComparison != 0) {
|
|
|
1155 |
return lastComparison;
|
|
|
1156 |
}
|
|
|
1157 |
}
|
|
|
1158 |
lastComparison = Boolean.valueOf(isSetUnsettledAmount()).compareTo(typedOther.isSetUnsettledAmount());
|
|
|
1159 |
if (lastComparison != 0) {
|
|
|
1160 |
return lastComparison;
|
|
|
1161 |
}
|
|
|
1162 |
if (isSetUnsettledAmount()) {
|
|
|
1163 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unsettledAmount, typedOther.unsettledAmount);
|
|
|
1164 |
if (lastComparison != 0) {
|
|
|
1165 |
return lastComparison;
|
|
|
1166 |
}
|
|
|
1167 |
}
|
| 6467 |
amar.kumar |
1168 |
return 0;
|
|
|
1169 |
}
|
|
|
1170 |
|
|
|
1171 |
public _Fields fieldForId(int fieldId) {
|
|
|
1172 |
return _Fields.findByThriftId(fieldId);
|
|
|
1173 |
}
|
|
|
1174 |
|
|
|
1175 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
1176 |
org.apache.thrift.protocol.TField field;
|
|
|
1177 |
iprot.readStructBegin();
|
|
|
1178 |
while (true)
|
|
|
1179 |
{
|
|
|
1180 |
field = iprot.readFieldBegin();
|
|
|
1181 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
1182 |
break;
|
|
|
1183 |
}
|
|
|
1184 |
switch (field.id) {
|
|
|
1185 |
case 1: // ID
|
|
|
1186 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1187 |
this.id = iprot.readI64();
|
|
|
1188 |
setIdIsSet(true);
|
|
|
1189 |
} else {
|
|
|
1190 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1191 |
}
|
|
|
1192 |
break;
|
|
|
1193 |
case 2: // VENDOR_ID
|
|
|
1194 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1195 |
this.vendorId = iprot.readI64();
|
|
|
1196 |
setVendorIdIsSet(true);
|
|
|
1197 |
} else {
|
|
|
1198 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1199 |
}
|
|
|
1200 |
break;
|
|
|
1201 |
case 3: // AMOUNT
|
|
|
1202 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1203 |
this.amount = iprot.readI64();
|
|
|
1204 |
setAmountIsSet(true);
|
|
|
1205 |
} else {
|
|
|
1206 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1207 |
}
|
|
|
1208 |
break;
|
|
|
1209 |
case 4: // RETURN_TIMESTAMP
|
|
|
1210 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1211 |
this.returnTimestamp = iprot.readI64();
|
|
|
1212 |
setReturnTimestampIsSet(true);
|
|
|
1213 |
} else {
|
|
|
1214 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1215 |
}
|
|
|
1216 |
break;
|
|
|
1217 |
case 5: // IS_SETTLED
|
|
|
1218 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
1219 |
this.isSettled = iprot.readBool();
|
|
|
1220 |
setIsSettledIsSet(true);
|
|
|
1221 |
} else {
|
|
|
1222 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1223 |
}
|
|
|
1224 |
break;
|
| 6821 |
amar.kumar |
1225 |
case 6: // TYPE
|
|
|
1226 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
1227 |
this.type = PurchaseReturnType.findByValue(iprot.readI32());
|
|
|
1228 |
} else {
|
|
|
1229 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1230 |
}
|
|
|
1231 |
break;
|
| 10864 |
manish.sha |
1232 |
case 7: // RETURN_INVENTORY_TYPE
|
|
|
1233 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
1234 |
this.returnInventoryType = PurchaseReturnInventoryType.findByValue(iprot.readI32());
|
|
|
1235 |
} else {
|
|
|
1236 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1237 |
}
|
|
|
1238 |
break;
|
| 13600 |
manish.sha |
1239 |
case 8: // CURRENT_SETTLEMENT_TYPE
|
|
|
1240 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
1241 |
this.currentSettlementType = SettlementType.findByValue(iprot.readI32());
|
|
|
1242 |
} else {
|
|
|
1243 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1244 |
}
|
|
|
1245 |
break;
|
|
|
1246 |
case 9: // LATEST_SETTLEMENT_DATE
|
|
|
1247 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1248 |
this.latestSettlementDate = iprot.readI64();
|
|
|
1249 |
setLatestSettlementDateIsSet(true);
|
|
|
1250 |
} else {
|
|
|
1251 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1252 |
}
|
|
|
1253 |
break;
|
|
|
1254 |
case 10: // PURCHASE_RETURN_TYPE
|
|
|
1255 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
1256 |
this.purchaseReturnType = PrReasonType.findByValue(iprot.readI32());
|
|
|
1257 |
} else {
|
|
|
1258 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1259 |
}
|
|
|
1260 |
break;
|
|
|
1261 |
case 11: // REASON_TEXT
|
|
|
1262 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1263 |
this.reasonText = iprot.readString();
|
|
|
1264 |
} else {
|
|
|
1265 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1266 |
}
|
|
|
1267 |
break;
|
|
|
1268 |
case 12: // DOCUMENT_NUMBER
|
|
|
1269 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1270 |
this.documentNumber = iprot.readString();
|
|
|
1271 |
} else {
|
|
|
1272 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1273 |
}
|
|
|
1274 |
break;
|
|
|
1275 |
case 13: // CREATED_BY
|
|
|
1276 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1277 |
this.createdBy = iprot.readString();
|
|
|
1278 |
} else {
|
|
|
1279 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1280 |
}
|
|
|
1281 |
break;
|
|
|
1282 |
case 14: // UNSETTLED_AMOUNT
|
|
|
1283 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1284 |
this.unsettledAmount = iprot.readI64();
|
|
|
1285 |
setUnsettledAmountIsSet(true);
|
|
|
1286 |
} else {
|
|
|
1287 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1288 |
}
|
|
|
1289 |
break;
|
| 6467 |
amar.kumar |
1290 |
default:
|
|
|
1291 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1292 |
}
|
|
|
1293 |
iprot.readFieldEnd();
|
|
|
1294 |
}
|
|
|
1295 |
iprot.readStructEnd();
|
|
|
1296 |
validate();
|
|
|
1297 |
}
|
|
|
1298 |
|
|
|
1299 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
1300 |
validate();
|
|
|
1301 |
|
|
|
1302 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
1303 |
oprot.writeFieldBegin(ID_FIELD_DESC);
|
|
|
1304 |
oprot.writeI64(this.id);
|
|
|
1305 |
oprot.writeFieldEnd();
|
|
|
1306 |
oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
|
|
|
1307 |
oprot.writeI64(this.vendorId);
|
|
|
1308 |
oprot.writeFieldEnd();
|
|
|
1309 |
oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
|
|
|
1310 |
oprot.writeI64(this.amount);
|
|
|
1311 |
oprot.writeFieldEnd();
|
|
|
1312 |
oprot.writeFieldBegin(RETURN_TIMESTAMP_FIELD_DESC);
|
|
|
1313 |
oprot.writeI64(this.returnTimestamp);
|
|
|
1314 |
oprot.writeFieldEnd();
|
|
|
1315 |
oprot.writeFieldBegin(IS_SETTLED_FIELD_DESC);
|
|
|
1316 |
oprot.writeBool(this.isSettled);
|
|
|
1317 |
oprot.writeFieldEnd();
|
| 6821 |
amar.kumar |
1318 |
if (this.type != null) {
|
|
|
1319 |
oprot.writeFieldBegin(TYPE_FIELD_DESC);
|
|
|
1320 |
oprot.writeI32(this.type.getValue());
|
|
|
1321 |
oprot.writeFieldEnd();
|
|
|
1322 |
}
|
| 10864 |
manish.sha |
1323 |
if (this.returnInventoryType != null) {
|
|
|
1324 |
oprot.writeFieldBegin(RETURN_INVENTORY_TYPE_FIELD_DESC);
|
|
|
1325 |
oprot.writeI32(this.returnInventoryType.getValue());
|
|
|
1326 |
oprot.writeFieldEnd();
|
|
|
1327 |
}
|
| 13600 |
manish.sha |
1328 |
if (this.currentSettlementType != null) {
|
|
|
1329 |
oprot.writeFieldBegin(CURRENT_SETTLEMENT_TYPE_FIELD_DESC);
|
|
|
1330 |
oprot.writeI32(this.currentSettlementType.getValue());
|
|
|
1331 |
oprot.writeFieldEnd();
|
|
|
1332 |
}
|
|
|
1333 |
oprot.writeFieldBegin(LATEST_SETTLEMENT_DATE_FIELD_DESC);
|
|
|
1334 |
oprot.writeI64(this.latestSettlementDate);
|
|
|
1335 |
oprot.writeFieldEnd();
|
|
|
1336 |
if (this.purchaseReturnType != null) {
|
|
|
1337 |
oprot.writeFieldBegin(PURCHASE_RETURN_TYPE_FIELD_DESC);
|
|
|
1338 |
oprot.writeI32(this.purchaseReturnType.getValue());
|
|
|
1339 |
oprot.writeFieldEnd();
|
|
|
1340 |
}
|
|
|
1341 |
if (this.reasonText != null) {
|
|
|
1342 |
oprot.writeFieldBegin(REASON_TEXT_FIELD_DESC);
|
|
|
1343 |
oprot.writeString(this.reasonText);
|
|
|
1344 |
oprot.writeFieldEnd();
|
|
|
1345 |
}
|
|
|
1346 |
if (this.documentNumber != null) {
|
|
|
1347 |
oprot.writeFieldBegin(DOCUMENT_NUMBER_FIELD_DESC);
|
|
|
1348 |
oprot.writeString(this.documentNumber);
|
|
|
1349 |
oprot.writeFieldEnd();
|
|
|
1350 |
}
|
|
|
1351 |
if (this.createdBy != null) {
|
|
|
1352 |
oprot.writeFieldBegin(CREATED_BY_FIELD_DESC);
|
|
|
1353 |
oprot.writeString(this.createdBy);
|
|
|
1354 |
oprot.writeFieldEnd();
|
|
|
1355 |
}
|
|
|
1356 |
oprot.writeFieldBegin(UNSETTLED_AMOUNT_FIELD_DESC);
|
|
|
1357 |
oprot.writeI64(this.unsettledAmount);
|
|
|
1358 |
oprot.writeFieldEnd();
|
| 6467 |
amar.kumar |
1359 |
oprot.writeFieldStop();
|
|
|
1360 |
oprot.writeStructEnd();
|
|
|
1361 |
}
|
|
|
1362 |
|
|
|
1363 |
@Override
|
|
|
1364 |
public String toString() {
|
|
|
1365 |
StringBuilder sb = new StringBuilder("PurchaseReturn(");
|
|
|
1366 |
boolean first = true;
|
|
|
1367 |
|
|
|
1368 |
sb.append("id:");
|
|
|
1369 |
sb.append(this.id);
|
|
|
1370 |
first = false;
|
|
|
1371 |
if (!first) sb.append(", ");
|
|
|
1372 |
sb.append("vendorId:");
|
|
|
1373 |
sb.append(this.vendorId);
|
|
|
1374 |
first = false;
|
|
|
1375 |
if (!first) sb.append(", ");
|
|
|
1376 |
sb.append("amount:");
|
|
|
1377 |
sb.append(this.amount);
|
|
|
1378 |
first = false;
|
|
|
1379 |
if (!first) sb.append(", ");
|
|
|
1380 |
sb.append("returnTimestamp:");
|
|
|
1381 |
sb.append(this.returnTimestamp);
|
|
|
1382 |
first = false;
|
|
|
1383 |
if (!first) sb.append(", ");
|
|
|
1384 |
sb.append("isSettled:");
|
|
|
1385 |
sb.append(this.isSettled);
|
|
|
1386 |
first = false;
|
| 6821 |
amar.kumar |
1387 |
if (!first) sb.append(", ");
|
|
|
1388 |
sb.append("type:");
|
|
|
1389 |
if (this.type == null) {
|
|
|
1390 |
sb.append("null");
|
|
|
1391 |
} else {
|
|
|
1392 |
sb.append(this.type);
|
|
|
1393 |
}
|
|
|
1394 |
first = false;
|
| 10864 |
manish.sha |
1395 |
if (!first) sb.append(", ");
|
|
|
1396 |
sb.append("returnInventoryType:");
|
|
|
1397 |
if (this.returnInventoryType == null) {
|
|
|
1398 |
sb.append("null");
|
|
|
1399 |
} else {
|
|
|
1400 |
sb.append(this.returnInventoryType);
|
|
|
1401 |
}
|
|
|
1402 |
first = false;
|
| 13600 |
manish.sha |
1403 |
if (!first) sb.append(", ");
|
|
|
1404 |
sb.append("currentSettlementType:");
|
|
|
1405 |
if (this.currentSettlementType == null) {
|
|
|
1406 |
sb.append("null");
|
|
|
1407 |
} else {
|
|
|
1408 |
sb.append(this.currentSettlementType);
|
|
|
1409 |
}
|
|
|
1410 |
first = false;
|
|
|
1411 |
if (!first) sb.append(", ");
|
|
|
1412 |
sb.append("latestSettlementDate:");
|
|
|
1413 |
sb.append(this.latestSettlementDate);
|
|
|
1414 |
first = false;
|
|
|
1415 |
if (!first) sb.append(", ");
|
|
|
1416 |
sb.append("purchaseReturnType:");
|
|
|
1417 |
if (this.purchaseReturnType == null) {
|
|
|
1418 |
sb.append("null");
|
|
|
1419 |
} else {
|
|
|
1420 |
sb.append(this.purchaseReturnType);
|
|
|
1421 |
}
|
|
|
1422 |
first = false;
|
|
|
1423 |
if (!first) sb.append(", ");
|
|
|
1424 |
sb.append("reasonText:");
|
|
|
1425 |
if (this.reasonText == null) {
|
|
|
1426 |
sb.append("null");
|
|
|
1427 |
} else {
|
|
|
1428 |
sb.append(this.reasonText);
|
|
|
1429 |
}
|
|
|
1430 |
first = false;
|
|
|
1431 |
if (!first) sb.append(", ");
|
|
|
1432 |
sb.append("documentNumber:");
|
|
|
1433 |
if (this.documentNumber == null) {
|
|
|
1434 |
sb.append("null");
|
|
|
1435 |
} else {
|
|
|
1436 |
sb.append(this.documentNumber);
|
|
|
1437 |
}
|
|
|
1438 |
first = false;
|
|
|
1439 |
if (!first) sb.append(", ");
|
|
|
1440 |
sb.append("createdBy:");
|
|
|
1441 |
if (this.createdBy == null) {
|
|
|
1442 |
sb.append("null");
|
|
|
1443 |
} else {
|
|
|
1444 |
sb.append(this.createdBy);
|
|
|
1445 |
}
|
|
|
1446 |
first = false;
|
|
|
1447 |
if (!first) sb.append(", ");
|
|
|
1448 |
sb.append("unsettledAmount:");
|
|
|
1449 |
sb.append(this.unsettledAmount);
|
|
|
1450 |
first = false;
|
| 6467 |
amar.kumar |
1451 |
sb.append(")");
|
|
|
1452 |
return sb.toString();
|
|
|
1453 |
}
|
|
|
1454 |
|
|
|
1455 |
public void validate() throws org.apache.thrift.TException {
|
|
|
1456 |
// check for required fields
|
|
|
1457 |
}
|
|
|
1458 |
|
|
|
1459 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
1460 |
try {
|
|
|
1461 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
1462 |
} catch (org.apache.thrift.TException te) {
|
|
|
1463 |
throw new java.io.IOException(te);
|
|
|
1464 |
}
|
|
|
1465 |
}
|
|
|
1466 |
|
|
|
1467 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
1468 |
try {
|
|
|
1469 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
1470 |
__isset_bit_vector = new BitSet(1);
|
|
|
1471 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
1472 |
} catch (org.apache.thrift.TException te) {
|
|
|
1473 |
throw new java.io.IOException(te);
|
|
|
1474 |
}
|
|
|
1475 |
}
|
|
|
1476 |
|
|
|
1477 |
}
|
|
|
1478 |
|