| Line 28... |
Line 28... |
| 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);
|
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);
|
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);
|
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);
|
| 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);
|
31 |
private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)6);
|
| 32 |
private static final org.apache.thrift.protocol.TField RETURN_INVENTORY_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("returnInventoryType", org.apache.thrift.protocol.TType.I32, (short)7);
|
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);
|
| - |
|
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);
|
| 33 |
|
40 |
|
| 34 |
private long id; // required
|
41 |
private long id; // required
|
| 35 |
private long vendorId; // required
|
42 |
private long vendorId; // required
|
| 36 |
private long amount; // required
|
43 |
private long amount; // required
|
| 37 |
private long returnTimestamp; // required
|
44 |
private long returnTimestamp; // required
|
| 38 |
private boolean isSettled; // required
|
45 |
private boolean isSettled; // required
|
| 39 |
private PurchaseReturnType type; // required
|
46 |
private PurchaseReturnType type; // required
|
| 40 |
private PurchaseReturnInventoryType returnInventoryType; // required
|
47 |
private PurchaseReturnInventoryType returnInventoryType; // required
|
| - |
|
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
|
| 41 |
|
55 |
|
| 42 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
56 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 43 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
57 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 44 |
ID((short)1, "id"),
|
58 |
ID((short)1, "id"),
|
| 45 |
VENDOR_ID((short)2, "vendorId"),
|
59 |
VENDOR_ID((short)2, "vendorId"),
|
| Line 53... |
Line 67... |
| 53 |
TYPE((short)6, "type"),
|
67 |
TYPE((short)6, "type"),
|
| 54 |
/**
|
68 |
/**
|
| 55 |
*
|
69 |
*
|
| 56 |
* @see PurchaseReturnInventoryType
|
70 |
* @see PurchaseReturnInventoryType
|
| 57 |
*/
|
71 |
*/
|
| 58 |
RETURN_INVENTORY_TYPE((short)7, "returnInventoryType");
|
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");
|
| 59 |
|
88 |
|
| 60 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
89 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| 61 |
|
90 |
|
| 62 |
static {
|
91 |
static {
|
| 63 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
92 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| Line 82... |
Line 111... |
| 82 |
return IS_SETTLED;
|
111 |
return IS_SETTLED;
|
| 83 |
case 6: // TYPE
|
112 |
case 6: // TYPE
|
| 84 |
return TYPE;
|
113 |
return TYPE;
|
| 85 |
case 7: // RETURN_INVENTORY_TYPE
|
114 |
case 7: // RETURN_INVENTORY_TYPE
|
| 86 |
return RETURN_INVENTORY_TYPE;
|
115 |
return RETURN_INVENTORY_TYPE;
|
| - |
|
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;
|
| 87 |
default:
|
130 |
default:
|
| 88 |
return null;
|
131 |
return null;
|
| 89 |
}
|
132 |
}
|
| 90 |
}
|
133 |
}
|
| 91 |
|
134 |
|
| Line 127... |
Line 170... |
| 127 |
private static final int __ID_ISSET_ID = 0;
|
170 |
private static final int __ID_ISSET_ID = 0;
|
| 128 |
private static final int __VENDORID_ISSET_ID = 1;
|
171 |
private static final int __VENDORID_ISSET_ID = 1;
|
| 129 |
private static final int __AMOUNT_ISSET_ID = 2;
|
172 |
private static final int __AMOUNT_ISSET_ID = 2;
|
| 130 |
private static final int __RETURNTIMESTAMP_ISSET_ID = 3;
|
173 |
private static final int __RETURNTIMESTAMP_ISSET_ID = 3;
|
| 131 |
private static final int __ISSETTLED_ISSET_ID = 4;
|
174 |
private static final int __ISSETTLED_ISSET_ID = 4;
|
| - |
|
175 |
private static final int __LATESTSETTLEMENTDATE_ISSET_ID = 5;
|
| - |
|
176 |
private static final int __UNSETTLEDAMOUNT_ISSET_ID = 6;
|
| 132 |
private BitSet __isset_bit_vector = new BitSet(5);
|
177 |
private BitSet __isset_bit_vector = new BitSet(7);
|
| 133 |
|
178 |
|
| 134 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
179 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 135 |
static {
|
180 |
static {
|
| 136 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
181 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 137 |
tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
182 |
tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| Line 146... |
Line 191... |
| 146 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
191 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
| 147 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
192 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 148 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PurchaseReturnType.class)));
|
193 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PurchaseReturnType.class)));
|
| 149 |
tmpMap.put(_Fields.RETURN_INVENTORY_TYPE, new org.apache.thrift.meta_data.FieldMetaData("returnInventoryType", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
194 |
tmpMap.put(_Fields.RETURN_INVENTORY_TYPE, new org.apache.thrift.meta_data.FieldMetaData("returnInventoryType", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 150 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PurchaseReturnInventoryType.class)));
|
195 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PurchaseReturnInventoryType.class)));
|
| - |
|
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)));
|
| 151 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
210 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 152 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(PurchaseReturn.class, metaDataMap);
|
211 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(PurchaseReturn.class, metaDataMap);
|
| 153 |
}
|
212 |
}
|
| 154 |
|
213 |
|
| 155 |
public PurchaseReturn() {
|
214 |
public PurchaseReturn() {
|
| Line 160... |
Line 219... |
| 160 |
long vendorId,
|
219 |
long vendorId,
|
| 161 |
long amount,
|
220 |
long amount,
|
| 162 |
long returnTimestamp,
|
221 |
long returnTimestamp,
|
| 163 |
boolean isSettled,
|
222 |
boolean isSettled,
|
| 164 |
PurchaseReturnType type,
|
223 |
PurchaseReturnType type,
|
| 165 |
PurchaseReturnInventoryType returnInventoryType)
|
224 |
PurchaseReturnInventoryType returnInventoryType,
|
| - |
|
225 |
SettlementType currentSettlementType,
|
| - |
|
226 |
long latestSettlementDate,
|
| - |
|
227 |
PrReasonType purchaseReturnType,
|
| - |
|
228 |
String reasonText,
|
| - |
|
229 |
String documentNumber,
|
| - |
|
230 |
String createdBy,
|
| - |
|
231 |
long unsettledAmount)
|
| 166 |
{
|
232 |
{
|
| 167 |
this();
|
233 |
this();
|
| 168 |
this.id = id;
|
234 |
this.id = id;
|
| 169 |
setIdIsSet(true);
|
235 |
setIdIsSet(true);
|
| 170 |
this.vendorId = vendorId;
|
236 |
this.vendorId = vendorId;
|
| Line 175... |
Line 241... |
| 175 |
setReturnTimestampIsSet(true);
|
241 |
setReturnTimestampIsSet(true);
|
| 176 |
this.isSettled = isSettled;
|
242 |
this.isSettled = isSettled;
|
| 177 |
setIsSettledIsSet(true);
|
243 |
setIsSettledIsSet(true);
|
| 178 |
this.type = type;
|
244 |
this.type = type;
|
| 179 |
this.returnInventoryType = returnInventoryType;
|
245 |
this.returnInventoryType = returnInventoryType;
|
| - |
|
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);
|
| 180 |
}
|
255 |
}
|
| 181 |
|
256 |
|
| 182 |
/**
|
257 |
/**
|
| 183 |
* Performs a deep copy on <i>other</i>.
|
258 |
* Performs a deep copy on <i>other</i>.
|
| 184 |
*/
|
259 |
*/
|
| Line 194... |
Line 269... |
| 194 |
this.type = other.type;
|
269 |
this.type = other.type;
|
| 195 |
}
|
270 |
}
|
| 196 |
if (other.isSetReturnInventoryType()) {
|
271 |
if (other.isSetReturnInventoryType()) {
|
| 197 |
this.returnInventoryType = other.returnInventoryType;
|
272 |
this.returnInventoryType = other.returnInventoryType;
|
| 198 |
}
|
273 |
}
|
| - |
|
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;
|
| 199 |
}
|
291 |
}
|
| 200 |
|
292 |
|
| 201 |
public PurchaseReturn deepCopy() {
|
293 |
public PurchaseReturn deepCopy() {
|
| 202 |
return new PurchaseReturn(this);
|
294 |
return new PurchaseReturn(this);
|
| 203 |
}
|
295 |
}
|
| Line 214... |
Line 306... |
| 214 |
this.returnTimestamp = 0;
|
306 |
this.returnTimestamp = 0;
|
| 215 |
setIsSettledIsSet(false);
|
307 |
setIsSettledIsSet(false);
|
| 216 |
this.isSettled = false;
|
308 |
this.isSettled = false;
|
| 217 |
this.type = null;
|
309 |
this.type = null;
|
| 218 |
this.returnInventoryType = null;
|
310 |
this.returnInventoryType = null;
|
| - |
|
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;
|
| 219 |
}
|
320 |
}
|
| 220 |
|
321 |
|
| 221 |
public long getId() {
|
322 |
public long getId() {
|
| 222 |
return this.id;
|
323 |
return this.id;
|
| 223 |
}
|
324 |
}
|
| Line 388... |
Line 489... |
| 388 |
if (!value) {
|
489 |
if (!value) {
|
| 389 |
this.returnInventoryType = null;
|
490 |
this.returnInventoryType = null;
|
| 390 |
}
|
491 |
}
|
| 391 |
}
|
492 |
}
|
| 392 |
|
493 |
|
| - |
|
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 |
|
| 393 |
public void setFieldValue(_Fields field, Object value) {
|
669 |
public void setFieldValue(_Fields field, Object value) {
|
| 394 |
switch (field) {
|
670 |
switch (field) {
|
| 395 |
case ID:
|
671 |
case ID:
|
| 396 |
if (value == null) {
|
672 |
if (value == null) {
|
| 397 |
unsetId();
|
673 |
unsetId();
|
| Line 446... |
Line 722... |
| 446 |
} else {
|
722 |
} else {
|
| 447 |
setReturnInventoryType((PurchaseReturnInventoryType)value);
|
723 |
setReturnInventoryType((PurchaseReturnInventoryType)value);
|
| 448 |
}
|
724 |
}
|
| 449 |
break;
|
725 |
break;
|
| 450 |
|
726 |
|
| - |
|
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 |
|
| 451 |
}
|
783 |
}
|
| 452 |
}
|
784 |
}
|
| 453 |
|
785 |
|
| 454 |
public Object getFieldValue(_Fields field) {
|
786 |
public Object getFieldValue(_Fields field) {
|
| 455 |
switch (field) {
|
787 |
switch (field) {
|
| Line 472... |
Line 804... |
| 472 |
return getType();
|
804 |
return getType();
|
| 473 |
|
805 |
|
| 474 |
case RETURN_INVENTORY_TYPE:
|
806 |
case RETURN_INVENTORY_TYPE:
|
| 475 |
return getReturnInventoryType();
|
807 |
return getReturnInventoryType();
|
| 476 |
|
808 |
|
| - |
|
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 |
|
| 477 |
}
|
830 |
}
|
| 478 |
throw new IllegalStateException();
|
831 |
throw new IllegalStateException();
|
| 479 |
}
|
832 |
}
|
| 480 |
|
833 |
|
| 481 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
834 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| Line 497... |
Line 850... |
| 497 |
return isSetIsSettled();
|
850 |
return isSetIsSettled();
|
| 498 |
case TYPE:
|
851 |
case TYPE:
|
| 499 |
return isSetType();
|
852 |
return isSetType();
|
| 500 |
case RETURN_INVENTORY_TYPE:
|
853 |
case RETURN_INVENTORY_TYPE:
|
| 501 |
return isSetReturnInventoryType();
|
854 |
return isSetReturnInventoryType();
|
| - |
|
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();
|
| 502 |
}
|
869 |
}
|
| 503 |
throw new IllegalStateException();
|
870 |
throw new IllegalStateException();
|
| 504 |
}
|
871 |
}
|
| 505 |
|
872 |
|
| 506 |
@Override
|
873 |
@Override
|
| Line 577... |
Line 944... |
| 577 |
return false;
|
944 |
return false;
|
| 578 |
if (!this.returnInventoryType.equals(that.returnInventoryType))
|
945 |
if (!this.returnInventoryType.equals(that.returnInventoryType))
|
| 579 |
return false;
|
946 |
return false;
|
| 580 |
}
|
947 |
}
|
| 581 |
|
948 |
|
| - |
|
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 |
|
| 582 |
return true;
|
1012 |
return true;
|
| 583 |
}
|
1013 |
}
|
| 584 |
|
1014 |
|
| 585 |
@Override
|
1015 |
@Override
|
| 586 |
public int hashCode() {
|
1016 |
public int hashCode() {
|
| Line 663... |
Line 1093... |
| 663 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.returnInventoryType, typedOther.returnInventoryType);
|
1093 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.returnInventoryType, typedOther.returnInventoryType);
|
| 664 |
if (lastComparison != 0) {
|
1094 |
if (lastComparison != 0) {
|
| 665 |
return lastComparison;
|
1095 |
return lastComparison;
|
| 666 |
}
|
1096 |
}
|
| 667 |
}
|
1097 |
}
|
| - |
|
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 |
}
|
| 668 |
return 0;
|
1168 |
return 0;
|
| 669 |
}
|
1169 |
}
|
| 670 |
|
1170 |
|
| 671 |
public _Fields fieldForId(int fieldId) {
|
1171 |
public _Fields fieldForId(int fieldId) {
|
| 672 |
return _Fields.findByThriftId(fieldId);
|
1172 |
return _Fields.findByThriftId(fieldId);
|
| Line 734... |
Line 1234... |
| 734 |
this.returnInventoryType = PurchaseReturnInventoryType.findByValue(iprot.readI32());
|
1234 |
this.returnInventoryType = PurchaseReturnInventoryType.findByValue(iprot.readI32());
|
| 735 |
} else {
|
1235 |
} else {
|
| 736 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
1236 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 737 |
}
|
1237 |
}
|
| 738 |
break;
|
1238 |
break;
|
| - |
|
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;
|
| 739 |
default:
|
1290 |
default:
|
| 740 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
1291 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 741 |
}
|
1292 |
}
|
| 742 |
iprot.readFieldEnd();
|
1293 |
iprot.readFieldEnd();
|
| 743 |
}
|
1294 |
}
|
| Line 772... |
Line 1323... |
| 772 |
if (this.returnInventoryType != null) {
|
1323 |
if (this.returnInventoryType != null) {
|
| 773 |
oprot.writeFieldBegin(RETURN_INVENTORY_TYPE_FIELD_DESC);
|
1324 |
oprot.writeFieldBegin(RETURN_INVENTORY_TYPE_FIELD_DESC);
|
| 774 |
oprot.writeI32(this.returnInventoryType.getValue());
|
1325 |
oprot.writeI32(this.returnInventoryType.getValue());
|
| 775 |
oprot.writeFieldEnd();
|
1326 |
oprot.writeFieldEnd();
|
| 776 |
}
|
1327 |
}
|
| - |
|
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();
|
| 777 |
oprot.writeFieldStop();
|
1359 |
oprot.writeFieldStop();
|
| 778 |
oprot.writeStructEnd();
|
1360 |
oprot.writeStructEnd();
|
| 779 |
}
|
1361 |
}
|
| 780 |
|
1362 |
|
| 781 |
@Override
|
1363 |
@Override
|
| Line 816... |
Line 1398... |
| 816 |
sb.append("null");
|
1398 |
sb.append("null");
|
| 817 |
} else {
|
1399 |
} else {
|
| 818 |
sb.append(this.returnInventoryType);
|
1400 |
sb.append(this.returnInventoryType);
|
| 819 |
}
|
1401 |
}
|
| 820 |
first = false;
|
1402 |
first = false;
|
| - |
|
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;
|
| 821 |
sb.append(")");
|
1451 |
sb.append(")");
|
| 822 |
return sb.toString();
|
1452 |
return sb.toString();
|
| 823 |
}
|
1453 |
}
|
| 824 |
|
1454 |
|
| 825 |
public void validate() throws org.apache.thrift.TException {
|
1455 |
public void validate() throws org.apache.thrift.TException {
|