| 6000 |
mandeep.dh |
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.model.v1.order;
|
|
|
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 RechargeOrder implements org.apache.thrift.TBase<RechargeOrder, RechargeOrder._Fields>, java.io.Serializable, Cloneable {
|
|
|
24 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("RechargeOrder");
|
|
|
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.STRING, (short)1);
|
|
|
27 |
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)2);
|
|
|
28 |
private static final org.apache.thrift.protocol.TField TRANSACTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("transactionId", org.apache.thrift.protocol.TType.I64, (short)3);
|
|
|
29 |
private static final org.apache.thrift.protocol.TField INVOICE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("invoiceNumber", org.apache.thrift.protocol.TType.STRING, (short)4);
|
|
|
30 |
private static final org.apache.thrift.protocol.TField ORDER_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("orderType", org.apache.thrift.protocol.TType.I32, (short)5);
|
|
|
31 |
private static final org.apache.thrift.protocol.TField OPERATOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("operatorId", org.apache.thrift.protocol.TType.I64, (short)6);
|
|
|
32 |
private static final org.apache.thrift.protocol.TField RECHARGE_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("rechargeType", org.apache.thrift.protocol.TType.I32, (short)7);
|
|
|
33 |
private static final org.apache.thrift.protocol.TField RECHARGE_ORDER_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("rechargeOrderStatus", org.apache.thrift.protocol.TType.I32, (short)8);
|
|
|
34 |
private static final org.apache.thrift.protocol.TField DEVICE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("deviceNumber", org.apache.thrift.protocol.TType.STRING, (short)9);
|
|
|
35 |
private static final org.apache.thrift.protocol.TField CUSTOMER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("customerId", org.apache.thrift.protocol.TType.I64, (short)10);
|
|
|
36 |
private static final org.apache.thrift.protocol.TField CUSTOMER_EMAIL_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("customerEmailId", org.apache.thrift.protocol.TType.I64, (short)11);
|
|
|
37 |
private static final org.apache.thrift.protocol.TField CREATION_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("creationTimestamp", org.apache.thrift.protocol.TType.I64, (short)12);
|
|
|
38 |
|
|
|
39 |
private String id; // required
|
|
|
40 |
private long amount; // required
|
|
|
41 |
private long transactionId; // required
|
|
|
42 |
private String invoiceNumber; // required
|
|
|
43 |
private OrderType orderType; // required
|
|
|
44 |
private long operatorId; // required
|
|
|
45 |
private RechargeType rechargeType; // required
|
|
|
46 |
private RechargeOrderStatus rechargeOrderStatus; // required
|
|
|
47 |
private String deviceNumber; // required
|
|
|
48 |
private long customerId; // required
|
|
|
49 |
private long customerEmailId; // required
|
|
|
50 |
private long creationTimestamp; // required
|
|
|
51 |
|
|
|
52 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
53 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
54 |
ID((short)1, "id"),
|
|
|
55 |
AMOUNT((short)2, "amount"),
|
|
|
56 |
TRANSACTION_ID((short)3, "transactionId"),
|
|
|
57 |
INVOICE_NUMBER((short)4, "invoiceNumber"),
|
|
|
58 |
/**
|
|
|
59 |
*
|
|
|
60 |
* @see OrderType
|
|
|
61 |
*/
|
|
|
62 |
ORDER_TYPE((short)5, "orderType"),
|
|
|
63 |
OPERATOR_ID((short)6, "operatorId"),
|
|
|
64 |
/**
|
|
|
65 |
*
|
|
|
66 |
* @see RechargeType
|
|
|
67 |
*/
|
|
|
68 |
RECHARGE_TYPE((short)7, "rechargeType"),
|
|
|
69 |
/**
|
|
|
70 |
*
|
|
|
71 |
* @see RechargeOrderStatus
|
|
|
72 |
*/
|
|
|
73 |
RECHARGE_ORDER_STATUS((short)8, "rechargeOrderStatus"),
|
|
|
74 |
DEVICE_NUMBER((short)9, "deviceNumber"),
|
|
|
75 |
CUSTOMER_ID((short)10, "customerId"),
|
|
|
76 |
CUSTOMER_EMAIL_ID((short)11, "customerEmailId"),
|
|
|
77 |
CREATION_TIMESTAMP((short)12, "creationTimestamp");
|
|
|
78 |
|
|
|
79 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
80 |
|
|
|
81 |
static {
|
|
|
82 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
83 |
byName.put(field.getFieldName(), field);
|
|
|
84 |
}
|
|
|
85 |
}
|
|
|
86 |
|
|
|
87 |
/**
|
|
|
88 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
89 |
*/
|
|
|
90 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
91 |
switch(fieldId) {
|
|
|
92 |
case 1: // ID
|
|
|
93 |
return ID;
|
|
|
94 |
case 2: // AMOUNT
|
|
|
95 |
return AMOUNT;
|
|
|
96 |
case 3: // TRANSACTION_ID
|
|
|
97 |
return TRANSACTION_ID;
|
|
|
98 |
case 4: // INVOICE_NUMBER
|
|
|
99 |
return INVOICE_NUMBER;
|
|
|
100 |
case 5: // ORDER_TYPE
|
|
|
101 |
return ORDER_TYPE;
|
|
|
102 |
case 6: // OPERATOR_ID
|
|
|
103 |
return OPERATOR_ID;
|
|
|
104 |
case 7: // RECHARGE_TYPE
|
|
|
105 |
return RECHARGE_TYPE;
|
|
|
106 |
case 8: // RECHARGE_ORDER_STATUS
|
|
|
107 |
return RECHARGE_ORDER_STATUS;
|
|
|
108 |
case 9: // DEVICE_NUMBER
|
|
|
109 |
return DEVICE_NUMBER;
|
|
|
110 |
case 10: // CUSTOMER_ID
|
|
|
111 |
return CUSTOMER_ID;
|
|
|
112 |
case 11: // CUSTOMER_EMAIL_ID
|
|
|
113 |
return CUSTOMER_EMAIL_ID;
|
|
|
114 |
case 12: // CREATION_TIMESTAMP
|
|
|
115 |
return CREATION_TIMESTAMP;
|
|
|
116 |
default:
|
|
|
117 |
return null;
|
|
|
118 |
}
|
|
|
119 |
}
|
|
|
120 |
|
|
|
121 |
/**
|
|
|
122 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
123 |
* if it is not found.
|
|
|
124 |
*/
|
|
|
125 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
126 |
_Fields fields = findByThriftId(fieldId);
|
|
|
127 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
128 |
return fields;
|
|
|
129 |
}
|
|
|
130 |
|
|
|
131 |
/**
|
|
|
132 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
133 |
*/
|
|
|
134 |
public static _Fields findByName(String name) {
|
|
|
135 |
return byName.get(name);
|
|
|
136 |
}
|
|
|
137 |
|
|
|
138 |
private final short _thriftId;
|
|
|
139 |
private final String _fieldName;
|
|
|
140 |
|
|
|
141 |
_Fields(short thriftId, String fieldName) {
|
|
|
142 |
_thriftId = thriftId;
|
|
|
143 |
_fieldName = fieldName;
|
|
|
144 |
}
|
|
|
145 |
|
|
|
146 |
public short getThriftFieldId() {
|
|
|
147 |
return _thriftId;
|
|
|
148 |
}
|
|
|
149 |
|
|
|
150 |
public String getFieldName() {
|
|
|
151 |
return _fieldName;
|
|
|
152 |
}
|
|
|
153 |
}
|
|
|
154 |
|
|
|
155 |
// isset id assignments
|
|
|
156 |
private static final int __AMOUNT_ISSET_ID = 0;
|
|
|
157 |
private static final int __TRANSACTIONID_ISSET_ID = 1;
|
|
|
158 |
private static final int __OPERATORID_ISSET_ID = 2;
|
|
|
159 |
private static final int __CUSTOMERID_ISSET_ID = 3;
|
|
|
160 |
private static final int __CUSTOMEREMAILID_ISSET_ID = 4;
|
|
|
161 |
private static final int __CREATIONTIMESTAMP_ISSET_ID = 5;
|
|
|
162 |
private BitSet __isset_bit_vector = new BitSet(6);
|
|
|
163 |
|
|
|
164 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
165 |
static {
|
|
|
166 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
167 |
tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
168 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
169 |
tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
170 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
171 |
tmpMap.put(_Fields.TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("transactionId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
172 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
173 |
tmpMap.put(_Fields.INVOICE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("invoiceNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
174 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
175 |
tmpMap.put(_Fields.ORDER_TYPE, new org.apache.thrift.meta_data.FieldMetaData("orderType", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
176 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderType.class)));
|
|
|
177 |
tmpMap.put(_Fields.OPERATOR_ID, new org.apache.thrift.meta_data.FieldMetaData("operatorId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
178 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
179 |
tmpMap.put(_Fields.RECHARGE_TYPE, new org.apache.thrift.meta_data.FieldMetaData("rechargeType", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
180 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, RechargeType.class)));
|
|
|
181 |
tmpMap.put(_Fields.RECHARGE_ORDER_STATUS, new org.apache.thrift.meta_data.FieldMetaData("rechargeOrderStatus", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
182 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, RechargeOrderStatus.class)));
|
|
|
183 |
tmpMap.put(_Fields.DEVICE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("deviceNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
184 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
185 |
tmpMap.put(_Fields.CUSTOMER_ID, new org.apache.thrift.meta_data.FieldMetaData("customerId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
186 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
187 |
tmpMap.put(_Fields.CUSTOMER_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("customerEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
188 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
189 |
tmpMap.put(_Fields.CREATION_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("creationTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
190 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
191 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
192 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(RechargeOrder.class, metaDataMap);
|
|
|
193 |
}
|
|
|
194 |
|
|
|
195 |
public RechargeOrder() {
|
|
|
196 |
}
|
|
|
197 |
|
|
|
198 |
public RechargeOrder(
|
|
|
199 |
String id,
|
|
|
200 |
long amount,
|
|
|
201 |
long transactionId,
|
|
|
202 |
String invoiceNumber,
|
|
|
203 |
OrderType orderType,
|
|
|
204 |
long operatorId,
|
|
|
205 |
RechargeType rechargeType,
|
|
|
206 |
RechargeOrderStatus rechargeOrderStatus,
|
|
|
207 |
String deviceNumber,
|
|
|
208 |
long customerId,
|
|
|
209 |
long customerEmailId,
|
|
|
210 |
long creationTimestamp)
|
|
|
211 |
{
|
|
|
212 |
this();
|
|
|
213 |
this.id = id;
|
|
|
214 |
this.amount = amount;
|
|
|
215 |
setAmountIsSet(true);
|
|
|
216 |
this.transactionId = transactionId;
|
|
|
217 |
setTransactionIdIsSet(true);
|
|
|
218 |
this.invoiceNumber = invoiceNumber;
|
|
|
219 |
this.orderType = orderType;
|
|
|
220 |
this.operatorId = operatorId;
|
|
|
221 |
setOperatorIdIsSet(true);
|
|
|
222 |
this.rechargeType = rechargeType;
|
|
|
223 |
this.rechargeOrderStatus = rechargeOrderStatus;
|
|
|
224 |
this.deviceNumber = deviceNumber;
|
|
|
225 |
this.customerId = customerId;
|
|
|
226 |
setCustomerIdIsSet(true);
|
|
|
227 |
this.customerEmailId = customerEmailId;
|
|
|
228 |
setCustomerEmailIdIsSet(true);
|
|
|
229 |
this.creationTimestamp = creationTimestamp;
|
|
|
230 |
setCreationTimestampIsSet(true);
|
|
|
231 |
}
|
|
|
232 |
|
|
|
233 |
/**
|
|
|
234 |
* Performs a deep copy on <i>other</i>.
|
|
|
235 |
*/
|
|
|
236 |
public RechargeOrder(RechargeOrder other) {
|
|
|
237 |
__isset_bit_vector.clear();
|
|
|
238 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
239 |
if (other.isSetId()) {
|
|
|
240 |
this.id = other.id;
|
|
|
241 |
}
|
|
|
242 |
this.amount = other.amount;
|
|
|
243 |
this.transactionId = other.transactionId;
|
|
|
244 |
if (other.isSetInvoiceNumber()) {
|
|
|
245 |
this.invoiceNumber = other.invoiceNumber;
|
|
|
246 |
}
|
|
|
247 |
if (other.isSetOrderType()) {
|
|
|
248 |
this.orderType = other.orderType;
|
|
|
249 |
}
|
|
|
250 |
this.operatorId = other.operatorId;
|
|
|
251 |
if (other.isSetRechargeType()) {
|
|
|
252 |
this.rechargeType = other.rechargeType;
|
|
|
253 |
}
|
|
|
254 |
if (other.isSetRechargeOrderStatus()) {
|
|
|
255 |
this.rechargeOrderStatus = other.rechargeOrderStatus;
|
|
|
256 |
}
|
|
|
257 |
if (other.isSetDeviceNumber()) {
|
|
|
258 |
this.deviceNumber = other.deviceNumber;
|
|
|
259 |
}
|
|
|
260 |
this.customerId = other.customerId;
|
|
|
261 |
this.customerEmailId = other.customerEmailId;
|
|
|
262 |
this.creationTimestamp = other.creationTimestamp;
|
|
|
263 |
}
|
|
|
264 |
|
|
|
265 |
public RechargeOrder deepCopy() {
|
|
|
266 |
return new RechargeOrder(this);
|
|
|
267 |
}
|
|
|
268 |
|
|
|
269 |
@Override
|
|
|
270 |
public void clear() {
|
|
|
271 |
this.id = null;
|
|
|
272 |
setAmountIsSet(false);
|
|
|
273 |
this.amount = 0;
|
|
|
274 |
setTransactionIdIsSet(false);
|
|
|
275 |
this.transactionId = 0;
|
|
|
276 |
this.invoiceNumber = null;
|
|
|
277 |
this.orderType = null;
|
|
|
278 |
setOperatorIdIsSet(false);
|
|
|
279 |
this.operatorId = 0;
|
|
|
280 |
this.rechargeType = null;
|
|
|
281 |
this.rechargeOrderStatus = null;
|
|
|
282 |
this.deviceNumber = null;
|
|
|
283 |
setCustomerIdIsSet(false);
|
|
|
284 |
this.customerId = 0;
|
|
|
285 |
setCustomerEmailIdIsSet(false);
|
|
|
286 |
this.customerEmailId = 0;
|
|
|
287 |
setCreationTimestampIsSet(false);
|
|
|
288 |
this.creationTimestamp = 0;
|
|
|
289 |
}
|
|
|
290 |
|
|
|
291 |
public String getId() {
|
|
|
292 |
return this.id;
|
|
|
293 |
}
|
|
|
294 |
|
|
|
295 |
public void setId(String id) {
|
|
|
296 |
this.id = id;
|
|
|
297 |
}
|
|
|
298 |
|
|
|
299 |
public void unsetId() {
|
|
|
300 |
this.id = null;
|
|
|
301 |
}
|
|
|
302 |
|
|
|
303 |
/** Returns true if field id is set (has been assigned a value) and false otherwise */
|
|
|
304 |
public boolean isSetId() {
|
|
|
305 |
return this.id != null;
|
|
|
306 |
}
|
|
|
307 |
|
|
|
308 |
public void setIdIsSet(boolean value) {
|
|
|
309 |
if (!value) {
|
|
|
310 |
this.id = null;
|
|
|
311 |
}
|
|
|
312 |
}
|
|
|
313 |
|
|
|
314 |
public long getAmount() {
|
|
|
315 |
return this.amount;
|
|
|
316 |
}
|
|
|
317 |
|
|
|
318 |
public void setAmount(long amount) {
|
|
|
319 |
this.amount = amount;
|
|
|
320 |
setAmountIsSet(true);
|
|
|
321 |
}
|
|
|
322 |
|
|
|
323 |
public void unsetAmount() {
|
|
|
324 |
__isset_bit_vector.clear(__AMOUNT_ISSET_ID);
|
|
|
325 |
}
|
|
|
326 |
|
|
|
327 |
/** Returns true if field amount is set (has been assigned a value) and false otherwise */
|
|
|
328 |
public boolean isSetAmount() {
|
|
|
329 |
return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
|
|
|
330 |
}
|
|
|
331 |
|
|
|
332 |
public void setAmountIsSet(boolean value) {
|
|
|
333 |
__isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
|
|
|
334 |
}
|
|
|
335 |
|
|
|
336 |
public long getTransactionId() {
|
|
|
337 |
return this.transactionId;
|
|
|
338 |
}
|
|
|
339 |
|
|
|
340 |
public void setTransactionId(long transactionId) {
|
|
|
341 |
this.transactionId = transactionId;
|
|
|
342 |
setTransactionIdIsSet(true);
|
|
|
343 |
}
|
|
|
344 |
|
|
|
345 |
public void unsetTransactionId() {
|
|
|
346 |
__isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);
|
|
|
347 |
}
|
|
|
348 |
|
|
|
349 |
/** Returns true if field transactionId is set (has been assigned a value) and false otherwise */
|
|
|
350 |
public boolean isSetTransactionId() {
|
|
|
351 |
return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);
|
|
|
352 |
}
|
|
|
353 |
|
|
|
354 |
public void setTransactionIdIsSet(boolean value) {
|
|
|
355 |
__isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);
|
|
|
356 |
}
|
|
|
357 |
|
|
|
358 |
public String getInvoiceNumber() {
|
|
|
359 |
return this.invoiceNumber;
|
|
|
360 |
}
|
|
|
361 |
|
|
|
362 |
public void setInvoiceNumber(String invoiceNumber) {
|
|
|
363 |
this.invoiceNumber = invoiceNumber;
|
|
|
364 |
}
|
|
|
365 |
|
|
|
366 |
public void unsetInvoiceNumber() {
|
|
|
367 |
this.invoiceNumber = null;
|
|
|
368 |
}
|
|
|
369 |
|
|
|
370 |
/** Returns true if field invoiceNumber is set (has been assigned a value) and false otherwise */
|
|
|
371 |
public boolean isSetInvoiceNumber() {
|
|
|
372 |
return this.invoiceNumber != null;
|
|
|
373 |
}
|
|
|
374 |
|
|
|
375 |
public void setInvoiceNumberIsSet(boolean value) {
|
|
|
376 |
if (!value) {
|
|
|
377 |
this.invoiceNumber = null;
|
|
|
378 |
}
|
|
|
379 |
}
|
|
|
380 |
|
|
|
381 |
/**
|
|
|
382 |
*
|
|
|
383 |
* @see OrderType
|
|
|
384 |
*/
|
|
|
385 |
public OrderType getOrderType() {
|
|
|
386 |
return this.orderType;
|
|
|
387 |
}
|
|
|
388 |
|
|
|
389 |
/**
|
|
|
390 |
*
|
|
|
391 |
* @see OrderType
|
|
|
392 |
*/
|
|
|
393 |
public void setOrderType(OrderType orderType) {
|
|
|
394 |
this.orderType = orderType;
|
|
|
395 |
}
|
|
|
396 |
|
|
|
397 |
public void unsetOrderType() {
|
|
|
398 |
this.orderType = null;
|
|
|
399 |
}
|
|
|
400 |
|
|
|
401 |
/** Returns true if field orderType is set (has been assigned a value) and false otherwise */
|
|
|
402 |
public boolean isSetOrderType() {
|
|
|
403 |
return this.orderType != null;
|
|
|
404 |
}
|
|
|
405 |
|
|
|
406 |
public void setOrderTypeIsSet(boolean value) {
|
|
|
407 |
if (!value) {
|
|
|
408 |
this.orderType = null;
|
|
|
409 |
}
|
|
|
410 |
}
|
|
|
411 |
|
|
|
412 |
public long getOperatorId() {
|
|
|
413 |
return this.operatorId;
|
|
|
414 |
}
|
|
|
415 |
|
|
|
416 |
public void setOperatorId(long operatorId) {
|
|
|
417 |
this.operatorId = operatorId;
|
|
|
418 |
setOperatorIdIsSet(true);
|
|
|
419 |
}
|
|
|
420 |
|
|
|
421 |
public void unsetOperatorId() {
|
|
|
422 |
__isset_bit_vector.clear(__OPERATORID_ISSET_ID);
|
|
|
423 |
}
|
|
|
424 |
|
|
|
425 |
/** Returns true if field operatorId is set (has been assigned a value) and false otherwise */
|
|
|
426 |
public boolean isSetOperatorId() {
|
|
|
427 |
return __isset_bit_vector.get(__OPERATORID_ISSET_ID);
|
|
|
428 |
}
|
|
|
429 |
|
|
|
430 |
public void setOperatorIdIsSet(boolean value) {
|
|
|
431 |
__isset_bit_vector.set(__OPERATORID_ISSET_ID, value);
|
|
|
432 |
}
|
|
|
433 |
|
|
|
434 |
/**
|
|
|
435 |
*
|
|
|
436 |
* @see RechargeType
|
|
|
437 |
*/
|
|
|
438 |
public RechargeType getRechargeType() {
|
|
|
439 |
return this.rechargeType;
|
|
|
440 |
}
|
|
|
441 |
|
|
|
442 |
/**
|
|
|
443 |
*
|
|
|
444 |
* @see RechargeType
|
|
|
445 |
*/
|
|
|
446 |
public void setRechargeType(RechargeType rechargeType) {
|
|
|
447 |
this.rechargeType = rechargeType;
|
|
|
448 |
}
|
|
|
449 |
|
|
|
450 |
public void unsetRechargeType() {
|
|
|
451 |
this.rechargeType = null;
|
|
|
452 |
}
|
|
|
453 |
|
|
|
454 |
/** Returns true if field rechargeType is set (has been assigned a value) and false otherwise */
|
|
|
455 |
public boolean isSetRechargeType() {
|
|
|
456 |
return this.rechargeType != null;
|
|
|
457 |
}
|
|
|
458 |
|
|
|
459 |
public void setRechargeTypeIsSet(boolean value) {
|
|
|
460 |
if (!value) {
|
|
|
461 |
this.rechargeType = null;
|
|
|
462 |
}
|
|
|
463 |
}
|
|
|
464 |
|
|
|
465 |
/**
|
|
|
466 |
*
|
|
|
467 |
* @see RechargeOrderStatus
|
|
|
468 |
*/
|
|
|
469 |
public RechargeOrderStatus getRechargeOrderStatus() {
|
|
|
470 |
return this.rechargeOrderStatus;
|
|
|
471 |
}
|
|
|
472 |
|
|
|
473 |
/**
|
|
|
474 |
*
|
|
|
475 |
* @see RechargeOrderStatus
|
|
|
476 |
*/
|
|
|
477 |
public void setRechargeOrderStatus(RechargeOrderStatus rechargeOrderStatus) {
|
|
|
478 |
this.rechargeOrderStatus = rechargeOrderStatus;
|
|
|
479 |
}
|
|
|
480 |
|
|
|
481 |
public void unsetRechargeOrderStatus() {
|
|
|
482 |
this.rechargeOrderStatus = null;
|
|
|
483 |
}
|
|
|
484 |
|
|
|
485 |
/** Returns true if field rechargeOrderStatus is set (has been assigned a value) and false otherwise */
|
|
|
486 |
public boolean isSetRechargeOrderStatus() {
|
|
|
487 |
return this.rechargeOrderStatus != null;
|
|
|
488 |
}
|
|
|
489 |
|
|
|
490 |
public void setRechargeOrderStatusIsSet(boolean value) {
|
|
|
491 |
if (!value) {
|
|
|
492 |
this.rechargeOrderStatus = null;
|
|
|
493 |
}
|
|
|
494 |
}
|
|
|
495 |
|
|
|
496 |
public String getDeviceNumber() {
|
|
|
497 |
return this.deviceNumber;
|
|
|
498 |
}
|
|
|
499 |
|
|
|
500 |
public void setDeviceNumber(String deviceNumber) {
|
|
|
501 |
this.deviceNumber = deviceNumber;
|
|
|
502 |
}
|
|
|
503 |
|
|
|
504 |
public void unsetDeviceNumber() {
|
|
|
505 |
this.deviceNumber = null;
|
|
|
506 |
}
|
|
|
507 |
|
|
|
508 |
/** Returns true if field deviceNumber is set (has been assigned a value) and false otherwise */
|
|
|
509 |
public boolean isSetDeviceNumber() {
|
|
|
510 |
return this.deviceNumber != null;
|
|
|
511 |
}
|
|
|
512 |
|
|
|
513 |
public void setDeviceNumberIsSet(boolean value) {
|
|
|
514 |
if (!value) {
|
|
|
515 |
this.deviceNumber = null;
|
|
|
516 |
}
|
|
|
517 |
}
|
|
|
518 |
|
|
|
519 |
public long getCustomerId() {
|
|
|
520 |
return this.customerId;
|
|
|
521 |
}
|
|
|
522 |
|
|
|
523 |
public void setCustomerId(long customerId) {
|
|
|
524 |
this.customerId = customerId;
|
|
|
525 |
setCustomerIdIsSet(true);
|
|
|
526 |
}
|
|
|
527 |
|
|
|
528 |
public void unsetCustomerId() {
|
|
|
529 |
__isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);
|
|
|
530 |
}
|
|
|
531 |
|
|
|
532 |
/** Returns true if field customerId is set (has been assigned a value) and false otherwise */
|
|
|
533 |
public boolean isSetCustomerId() {
|
|
|
534 |
return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);
|
|
|
535 |
}
|
|
|
536 |
|
|
|
537 |
public void setCustomerIdIsSet(boolean value) {
|
|
|
538 |
__isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);
|
|
|
539 |
}
|
|
|
540 |
|
|
|
541 |
public long getCustomerEmailId() {
|
|
|
542 |
return this.customerEmailId;
|
|
|
543 |
}
|
|
|
544 |
|
|
|
545 |
public void setCustomerEmailId(long customerEmailId) {
|
|
|
546 |
this.customerEmailId = customerEmailId;
|
|
|
547 |
setCustomerEmailIdIsSet(true);
|
|
|
548 |
}
|
|
|
549 |
|
|
|
550 |
public void unsetCustomerEmailId() {
|
|
|
551 |
__isset_bit_vector.clear(__CUSTOMEREMAILID_ISSET_ID);
|
|
|
552 |
}
|
|
|
553 |
|
|
|
554 |
/** Returns true if field customerEmailId is set (has been assigned a value) and false otherwise */
|
|
|
555 |
public boolean isSetCustomerEmailId() {
|
|
|
556 |
return __isset_bit_vector.get(__CUSTOMEREMAILID_ISSET_ID);
|
|
|
557 |
}
|
|
|
558 |
|
|
|
559 |
public void setCustomerEmailIdIsSet(boolean value) {
|
|
|
560 |
__isset_bit_vector.set(__CUSTOMEREMAILID_ISSET_ID, value);
|
|
|
561 |
}
|
|
|
562 |
|
|
|
563 |
public long getCreationTimestamp() {
|
|
|
564 |
return this.creationTimestamp;
|
|
|
565 |
}
|
|
|
566 |
|
|
|
567 |
public void setCreationTimestamp(long creationTimestamp) {
|
|
|
568 |
this.creationTimestamp = creationTimestamp;
|
|
|
569 |
setCreationTimestampIsSet(true);
|
|
|
570 |
}
|
|
|
571 |
|
|
|
572 |
public void unsetCreationTimestamp() {
|
|
|
573 |
__isset_bit_vector.clear(__CREATIONTIMESTAMP_ISSET_ID);
|
|
|
574 |
}
|
|
|
575 |
|
|
|
576 |
/** Returns true if field creationTimestamp is set (has been assigned a value) and false otherwise */
|
|
|
577 |
public boolean isSetCreationTimestamp() {
|
|
|
578 |
return __isset_bit_vector.get(__CREATIONTIMESTAMP_ISSET_ID);
|
|
|
579 |
}
|
|
|
580 |
|
|
|
581 |
public void setCreationTimestampIsSet(boolean value) {
|
|
|
582 |
__isset_bit_vector.set(__CREATIONTIMESTAMP_ISSET_ID, value);
|
|
|
583 |
}
|
|
|
584 |
|
|
|
585 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
586 |
switch (field) {
|
|
|
587 |
case ID:
|
|
|
588 |
if (value == null) {
|
|
|
589 |
unsetId();
|
|
|
590 |
} else {
|
|
|
591 |
setId((String)value);
|
|
|
592 |
}
|
|
|
593 |
break;
|
|
|
594 |
|
|
|
595 |
case AMOUNT:
|
|
|
596 |
if (value == null) {
|
|
|
597 |
unsetAmount();
|
|
|
598 |
} else {
|
|
|
599 |
setAmount((Long)value);
|
|
|
600 |
}
|
|
|
601 |
break;
|
|
|
602 |
|
|
|
603 |
case TRANSACTION_ID:
|
|
|
604 |
if (value == null) {
|
|
|
605 |
unsetTransactionId();
|
|
|
606 |
} else {
|
|
|
607 |
setTransactionId((Long)value);
|
|
|
608 |
}
|
|
|
609 |
break;
|
|
|
610 |
|
|
|
611 |
case INVOICE_NUMBER:
|
|
|
612 |
if (value == null) {
|
|
|
613 |
unsetInvoiceNumber();
|
|
|
614 |
} else {
|
|
|
615 |
setInvoiceNumber((String)value);
|
|
|
616 |
}
|
|
|
617 |
break;
|
|
|
618 |
|
|
|
619 |
case ORDER_TYPE:
|
|
|
620 |
if (value == null) {
|
|
|
621 |
unsetOrderType();
|
|
|
622 |
} else {
|
|
|
623 |
setOrderType((OrderType)value);
|
|
|
624 |
}
|
|
|
625 |
break;
|
|
|
626 |
|
|
|
627 |
case OPERATOR_ID:
|
|
|
628 |
if (value == null) {
|
|
|
629 |
unsetOperatorId();
|
|
|
630 |
} else {
|
|
|
631 |
setOperatorId((Long)value);
|
|
|
632 |
}
|
|
|
633 |
break;
|
|
|
634 |
|
|
|
635 |
case RECHARGE_TYPE:
|
|
|
636 |
if (value == null) {
|
|
|
637 |
unsetRechargeType();
|
|
|
638 |
} else {
|
|
|
639 |
setRechargeType((RechargeType)value);
|
|
|
640 |
}
|
|
|
641 |
break;
|
|
|
642 |
|
|
|
643 |
case RECHARGE_ORDER_STATUS:
|
|
|
644 |
if (value == null) {
|
|
|
645 |
unsetRechargeOrderStatus();
|
|
|
646 |
} else {
|
|
|
647 |
setRechargeOrderStatus((RechargeOrderStatus)value);
|
|
|
648 |
}
|
|
|
649 |
break;
|
|
|
650 |
|
|
|
651 |
case DEVICE_NUMBER:
|
|
|
652 |
if (value == null) {
|
|
|
653 |
unsetDeviceNumber();
|
|
|
654 |
} else {
|
|
|
655 |
setDeviceNumber((String)value);
|
|
|
656 |
}
|
|
|
657 |
break;
|
|
|
658 |
|
|
|
659 |
case CUSTOMER_ID:
|
|
|
660 |
if (value == null) {
|
|
|
661 |
unsetCustomerId();
|
|
|
662 |
} else {
|
|
|
663 |
setCustomerId((Long)value);
|
|
|
664 |
}
|
|
|
665 |
break;
|
|
|
666 |
|
|
|
667 |
case CUSTOMER_EMAIL_ID:
|
|
|
668 |
if (value == null) {
|
|
|
669 |
unsetCustomerEmailId();
|
|
|
670 |
} else {
|
|
|
671 |
setCustomerEmailId((Long)value);
|
|
|
672 |
}
|
|
|
673 |
break;
|
|
|
674 |
|
|
|
675 |
case CREATION_TIMESTAMP:
|
|
|
676 |
if (value == null) {
|
|
|
677 |
unsetCreationTimestamp();
|
|
|
678 |
} else {
|
|
|
679 |
setCreationTimestamp((Long)value);
|
|
|
680 |
}
|
|
|
681 |
break;
|
|
|
682 |
|
|
|
683 |
}
|
|
|
684 |
}
|
|
|
685 |
|
|
|
686 |
public Object getFieldValue(_Fields field) {
|
|
|
687 |
switch (field) {
|
|
|
688 |
case ID:
|
|
|
689 |
return getId();
|
|
|
690 |
|
|
|
691 |
case AMOUNT:
|
|
|
692 |
return Long.valueOf(getAmount());
|
|
|
693 |
|
|
|
694 |
case TRANSACTION_ID:
|
|
|
695 |
return Long.valueOf(getTransactionId());
|
|
|
696 |
|
|
|
697 |
case INVOICE_NUMBER:
|
|
|
698 |
return getInvoiceNumber();
|
|
|
699 |
|
|
|
700 |
case ORDER_TYPE:
|
|
|
701 |
return getOrderType();
|
|
|
702 |
|
|
|
703 |
case OPERATOR_ID:
|
|
|
704 |
return Long.valueOf(getOperatorId());
|
|
|
705 |
|
|
|
706 |
case RECHARGE_TYPE:
|
|
|
707 |
return getRechargeType();
|
|
|
708 |
|
|
|
709 |
case RECHARGE_ORDER_STATUS:
|
|
|
710 |
return getRechargeOrderStatus();
|
|
|
711 |
|
|
|
712 |
case DEVICE_NUMBER:
|
|
|
713 |
return getDeviceNumber();
|
|
|
714 |
|
|
|
715 |
case CUSTOMER_ID:
|
|
|
716 |
return Long.valueOf(getCustomerId());
|
|
|
717 |
|
|
|
718 |
case CUSTOMER_EMAIL_ID:
|
|
|
719 |
return Long.valueOf(getCustomerEmailId());
|
|
|
720 |
|
|
|
721 |
case CREATION_TIMESTAMP:
|
|
|
722 |
return Long.valueOf(getCreationTimestamp());
|
|
|
723 |
|
|
|
724 |
}
|
|
|
725 |
throw new IllegalStateException();
|
|
|
726 |
}
|
|
|
727 |
|
|
|
728 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
729 |
public boolean isSet(_Fields field) {
|
|
|
730 |
if (field == null) {
|
|
|
731 |
throw new IllegalArgumentException();
|
|
|
732 |
}
|
|
|
733 |
|
|
|
734 |
switch (field) {
|
|
|
735 |
case ID:
|
|
|
736 |
return isSetId();
|
|
|
737 |
case AMOUNT:
|
|
|
738 |
return isSetAmount();
|
|
|
739 |
case TRANSACTION_ID:
|
|
|
740 |
return isSetTransactionId();
|
|
|
741 |
case INVOICE_NUMBER:
|
|
|
742 |
return isSetInvoiceNumber();
|
|
|
743 |
case ORDER_TYPE:
|
|
|
744 |
return isSetOrderType();
|
|
|
745 |
case OPERATOR_ID:
|
|
|
746 |
return isSetOperatorId();
|
|
|
747 |
case RECHARGE_TYPE:
|
|
|
748 |
return isSetRechargeType();
|
|
|
749 |
case RECHARGE_ORDER_STATUS:
|
|
|
750 |
return isSetRechargeOrderStatus();
|
|
|
751 |
case DEVICE_NUMBER:
|
|
|
752 |
return isSetDeviceNumber();
|
|
|
753 |
case CUSTOMER_ID:
|
|
|
754 |
return isSetCustomerId();
|
|
|
755 |
case CUSTOMER_EMAIL_ID:
|
|
|
756 |
return isSetCustomerEmailId();
|
|
|
757 |
case CREATION_TIMESTAMP:
|
|
|
758 |
return isSetCreationTimestamp();
|
|
|
759 |
}
|
|
|
760 |
throw new IllegalStateException();
|
|
|
761 |
}
|
|
|
762 |
|
|
|
763 |
@Override
|
|
|
764 |
public boolean equals(Object that) {
|
|
|
765 |
if (that == null)
|
|
|
766 |
return false;
|
|
|
767 |
if (that instanceof RechargeOrder)
|
|
|
768 |
return this.equals((RechargeOrder)that);
|
|
|
769 |
return false;
|
|
|
770 |
}
|
|
|
771 |
|
|
|
772 |
public boolean equals(RechargeOrder that) {
|
|
|
773 |
if (that == null)
|
|
|
774 |
return false;
|
|
|
775 |
|
|
|
776 |
boolean this_present_id = true && this.isSetId();
|
|
|
777 |
boolean that_present_id = true && that.isSetId();
|
|
|
778 |
if (this_present_id || that_present_id) {
|
|
|
779 |
if (!(this_present_id && that_present_id))
|
|
|
780 |
return false;
|
|
|
781 |
if (!this.id.equals(that.id))
|
|
|
782 |
return false;
|
|
|
783 |
}
|
|
|
784 |
|
|
|
785 |
boolean this_present_amount = true;
|
|
|
786 |
boolean that_present_amount = true;
|
|
|
787 |
if (this_present_amount || that_present_amount) {
|
|
|
788 |
if (!(this_present_amount && that_present_amount))
|
|
|
789 |
return false;
|
|
|
790 |
if (this.amount != that.amount)
|
|
|
791 |
return false;
|
|
|
792 |
}
|
|
|
793 |
|
|
|
794 |
boolean this_present_transactionId = true;
|
|
|
795 |
boolean that_present_transactionId = true;
|
|
|
796 |
if (this_present_transactionId || that_present_transactionId) {
|
|
|
797 |
if (!(this_present_transactionId && that_present_transactionId))
|
|
|
798 |
return false;
|
|
|
799 |
if (this.transactionId != that.transactionId)
|
|
|
800 |
return false;
|
|
|
801 |
}
|
|
|
802 |
|
|
|
803 |
boolean this_present_invoiceNumber = true && this.isSetInvoiceNumber();
|
|
|
804 |
boolean that_present_invoiceNumber = true && that.isSetInvoiceNumber();
|
|
|
805 |
if (this_present_invoiceNumber || that_present_invoiceNumber) {
|
|
|
806 |
if (!(this_present_invoiceNumber && that_present_invoiceNumber))
|
|
|
807 |
return false;
|
|
|
808 |
if (!this.invoiceNumber.equals(that.invoiceNumber))
|
|
|
809 |
return false;
|
|
|
810 |
}
|
|
|
811 |
|
|
|
812 |
boolean this_present_orderType = true && this.isSetOrderType();
|
|
|
813 |
boolean that_present_orderType = true && that.isSetOrderType();
|
|
|
814 |
if (this_present_orderType || that_present_orderType) {
|
|
|
815 |
if (!(this_present_orderType && that_present_orderType))
|
|
|
816 |
return false;
|
|
|
817 |
if (!this.orderType.equals(that.orderType))
|
|
|
818 |
return false;
|
|
|
819 |
}
|
|
|
820 |
|
|
|
821 |
boolean this_present_operatorId = true;
|
|
|
822 |
boolean that_present_operatorId = true;
|
|
|
823 |
if (this_present_operatorId || that_present_operatorId) {
|
|
|
824 |
if (!(this_present_operatorId && that_present_operatorId))
|
|
|
825 |
return false;
|
|
|
826 |
if (this.operatorId != that.operatorId)
|
|
|
827 |
return false;
|
|
|
828 |
}
|
|
|
829 |
|
|
|
830 |
boolean this_present_rechargeType = true && this.isSetRechargeType();
|
|
|
831 |
boolean that_present_rechargeType = true && that.isSetRechargeType();
|
|
|
832 |
if (this_present_rechargeType || that_present_rechargeType) {
|
|
|
833 |
if (!(this_present_rechargeType && that_present_rechargeType))
|
|
|
834 |
return false;
|
|
|
835 |
if (!this.rechargeType.equals(that.rechargeType))
|
|
|
836 |
return false;
|
|
|
837 |
}
|
|
|
838 |
|
|
|
839 |
boolean this_present_rechargeOrderStatus = true && this.isSetRechargeOrderStatus();
|
|
|
840 |
boolean that_present_rechargeOrderStatus = true && that.isSetRechargeOrderStatus();
|
|
|
841 |
if (this_present_rechargeOrderStatus || that_present_rechargeOrderStatus) {
|
|
|
842 |
if (!(this_present_rechargeOrderStatus && that_present_rechargeOrderStatus))
|
|
|
843 |
return false;
|
|
|
844 |
if (!this.rechargeOrderStatus.equals(that.rechargeOrderStatus))
|
|
|
845 |
return false;
|
|
|
846 |
}
|
|
|
847 |
|
|
|
848 |
boolean this_present_deviceNumber = true && this.isSetDeviceNumber();
|
|
|
849 |
boolean that_present_deviceNumber = true && that.isSetDeviceNumber();
|
|
|
850 |
if (this_present_deviceNumber || that_present_deviceNumber) {
|
|
|
851 |
if (!(this_present_deviceNumber && that_present_deviceNumber))
|
|
|
852 |
return false;
|
|
|
853 |
if (!this.deviceNumber.equals(that.deviceNumber))
|
|
|
854 |
return false;
|
|
|
855 |
}
|
|
|
856 |
|
|
|
857 |
boolean this_present_customerId = true;
|
|
|
858 |
boolean that_present_customerId = true;
|
|
|
859 |
if (this_present_customerId || that_present_customerId) {
|
|
|
860 |
if (!(this_present_customerId && that_present_customerId))
|
|
|
861 |
return false;
|
|
|
862 |
if (this.customerId != that.customerId)
|
|
|
863 |
return false;
|
|
|
864 |
}
|
|
|
865 |
|
|
|
866 |
boolean this_present_customerEmailId = true;
|
|
|
867 |
boolean that_present_customerEmailId = true;
|
|
|
868 |
if (this_present_customerEmailId || that_present_customerEmailId) {
|
|
|
869 |
if (!(this_present_customerEmailId && that_present_customerEmailId))
|
|
|
870 |
return false;
|
|
|
871 |
if (this.customerEmailId != that.customerEmailId)
|
|
|
872 |
return false;
|
|
|
873 |
}
|
|
|
874 |
|
|
|
875 |
boolean this_present_creationTimestamp = true;
|
|
|
876 |
boolean that_present_creationTimestamp = true;
|
|
|
877 |
if (this_present_creationTimestamp || that_present_creationTimestamp) {
|
|
|
878 |
if (!(this_present_creationTimestamp && that_present_creationTimestamp))
|
|
|
879 |
return false;
|
|
|
880 |
if (this.creationTimestamp != that.creationTimestamp)
|
|
|
881 |
return false;
|
|
|
882 |
}
|
|
|
883 |
|
|
|
884 |
return true;
|
|
|
885 |
}
|
|
|
886 |
|
|
|
887 |
@Override
|
|
|
888 |
public int hashCode() {
|
|
|
889 |
return 0;
|
|
|
890 |
}
|
|
|
891 |
|
|
|
892 |
public int compareTo(RechargeOrder other) {
|
|
|
893 |
if (!getClass().equals(other.getClass())) {
|
|
|
894 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
895 |
}
|
|
|
896 |
|
|
|
897 |
int lastComparison = 0;
|
|
|
898 |
RechargeOrder typedOther = (RechargeOrder)other;
|
|
|
899 |
|
|
|
900 |
lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
|
|
|
901 |
if (lastComparison != 0) {
|
|
|
902 |
return lastComparison;
|
|
|
903 |
}
|
|
|
904 |
if (isSetId()) {
|
|
|
905 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
|
|
|
906 |
if (lastComparison != 0) {
|
|
|
907 |
return lastComparison;
|
|
|
908 |
}
|
|
|
909 |
}
|
|
|
910 |
lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());
|
|
|
911 |
if (lastComparison != 0) {
|
|
|
912 |
return lastComparison;
|
|
|
913 |
}
|
|
|
914 |
if (isSetAmount()) {
|
|
|
915 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
|
|
|
916 |
if (lastComparison != 0) {
|
|
|
917 |
return lastComparison;
|
|
|
918 |
}
|
|
|
919 |
}
|
|
|
920 |
lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(typedOther.isSetTransactionId());
|
|
|
921 |
if (lastComparison != 0) {
|
|
|
922 |
return lastComparison;
|
|
|
923 |
}
|
|
|
924 |
if (isSetTransactionId()) {
|
|
|
925 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionId, typedOther.transactionId);
|
|
|
926 |
if (lastComparison != 0) {
|
|
|
927 |
return lastComparison;
|
|
|
928 |
}
|
|
|
929 |
}
|
|
|
930 |
lastComparison = Boolean.valueOf(isSetInvoiceNumber()).compareTo(typedOther.isSetInvoiceNumber());
|
|
|
931 |
if (lastComparison != 0) {
|
|
|
932 |
return lastComparison;
|
|
|
933 |
}
|
|
|
934 |
if (isSetInvoiceNumber()) {
|
|
|
935 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.invoiceNumber, typedOther.invoiceNumber);
|
|
|
936 |
if (lastComparison != 0) {
|
|
|
937 |
return lastComparison;
|
|
|
938 |
}
|
|
|
939 |
}
|
|
|
940 |
lastComparison = Boolean.valueOf(isSetOrderType()).compareTo(typedOther.isSetOrderType());
|
|
|
941 |
if (lastComparison != 0) {
|
|
|
942 |
return lastComparison;
|
|
|
943 |
}
|
|
|
944 |
if (isSetOrderType()) {
|
|
|
945 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderType, typedOther.orderType);
|
|
|
946 |
if (lastComparison != 0) {
|
|
|
947 |
return lastComparison;
|
|
|
948 |
}
|
|
|
949 |
}
|
|
|
950 |
lastComparison = Boolean.valueOf(isSetOperatorId()).compareTo(typedOther.isSetOperatorId());
|
|
|
951 |
if (lastComparison != 0) {
|
|
|
952 |
return lastComparison;
|
|
|
953 |
}
|
|
|
954 |
if (isSetOperatorId()) {
|
|
|
955 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.operatorId, typedOther.operatorId);
|
|
|
956 |
if (lastComparison != 0) {
|
|
|
957 |
return lastComparison;
|
|
|
958 |
}
|
|
|
959 |
}
|
|
|
960 |
lastComparison = Boolean.valueOf(isSetRechargeType()).compareTo(typedOther.isSetRechargeType());
|
|
|
961 |
if (lastComparison != 0) {
|
|
|
962 |
return lastComparison;
|
|
|
963 |
}
|
|
|
964 |
if (isSetRechargeType()) {
|
|
|
965 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rechargeType, typedOther.rechargeType);
|
|
|
966 |
if (lastComparison != 0) {
|
|
|
967 |
return lastComparison;
|
|
|
968 |
}
|
|
|
969 |
}
|
|
|
970 |
lastComparison = Boolean.valueOf(isSetRechargeOrderStatus()).compareTo(typedOther.isSetRechargeOrderStatus());
|
|
|
971 |
if (lastComparison != 0) {
|
|
|
972 |
return lastComparison;
|
|
|
973 |
}
|
|
|
974 |
if (isSetRechargeOrderStatus()) {
|
|
|
975 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rechargeOrderStatus, typedOther.rechargeOrderStatus);
|
|
|
976 |
if (lastComparison != 0) {
|
|
|
977 |
return lastComparison;
|
|
|
978 |
}
|
|
|
979 |
}
|
|
|
980 |
lastComparison = Boolean.valueOf(isSetDeviceNumber()).compareTo(typedOther.isSetDeviceNumber());
|
|
|
981 |
if (lastComparison != 0) {
|
|
|
982 |
return lastComparison;
|
|
|
983 |
}
|
|
|
984 |
if (isSetDeviceNumber()) {
|
|
|
985 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deviceNumber, typedOther.deviceNumber);
|
|
|
986 |
if (lastComparison != 0) {
|
|
|
987 |
return lastComparison;
|
|
|
988 |
}
|
|
|
989 |
}
|
|
|
990 |
lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(typedOther.isSetCustomerId());
|
|
|
991 |
if (lastComparison != 0) {
|
|
|
992 |
return lastComparison;
|
|
|
993 |
}
|
|
|
994 |
if (isSetCustomerId()) {
|
|
|
995 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customerId, typedOther.customerId);
|
|
|
996 |
if (lastComparison != 0) {
|
|
|
997 |
return lastComparison;
|
|
|
998 |
}
|
|
|
999 |
}
|
|
|
1000 |
lastComparison = Boolean.valueOf(isSetCustomerEmailId()).compareTo(typedOther.isSetCustomerEmailId());
|
|
|
1001 |
if (lastComparison != 0) {
|
|
|
1002 |
return lastComparison;
|
|
|
1003 |
}
|
|
|
1004 |
if (isSetCustomerEmailId()) {
|
|
|
1005 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customerEmailId, typedOther.customerEmailId);
|
|
|
1006 |
if (lastComparison != 0) {
|
|
|
1007 |
return lastComparison;
|
|
|
1008 |
}
|
|
|
1009 |
}
|
|
|
1010 |
lastComparison = Boolean.valueOf(isSetCreationTimestamp()).compareTo(typedOther.isSetCreationTimestamp());
|
|
|
1011 |
if (lastComparison != 0) {
|
|
|
1012 |
return lastComparison;
|
|
|
1013 |
}
|
|
|
1014 |
if (isSetCreationTimestamp()) {
|
|
|
1015 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creationTimestamp, typedOther.creationTimestamp);
|
|
|
1016 |
if (lastComparison != 0) {
|
|
|
1017 |
return lastComparison;
|
|
|
1018 |
}
|
|
|
1019 |
}
|
|
|
1020 |
return 0;
|
|
|
1021 |
}
|
|
|
1022 |
|
|
|
1023 |
public _Fields fieldForId(int fieldId) {
|
|
|
1024 |
return _Fields.findByThriftId(fieldId);
|
|
|
1025 |
}
|
|
|
1026 |
|
|
|
1027 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
1028 |
org.apache.thrift.protocol.TField field;
|
|
|
1029 |
iprot.readStructBegin();
|
|
|
1030 |
while (true)
|
|
|
1031 |
{
|
|
|
1032 |
field = iprot.readFieldBegin();
|
|
|
1033 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
1034 |
break;
|
|
|
1035 |
}
|
|
|
1036 |
switch (field.id) {
|
|
|
1037 |
case 1: // ID
|
|
|
1038 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1039 |
this.id = iprot.readString();
|
|
|
1040 |
} else {
|
|
|
1041 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1042 |
}
|
|
|
1043 |
break;
|
|
|
1044 |
case 2: // AMOUNT
|
|
|
1045 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1046 |
this.amount = iprot.readI64();
|
|
|
1047 |
setAmountIsSet(true);
|
|
|
1048 |
} else {
|
|
|
1049 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1050 |
}
|
|
|
1051 |
break;
|
|
|
1052 |
case 3: // TRANSACTION_ID
|
|
|
1053 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1054 |
this.transactionId = iprot.readI64();
|
|
|
1055 |
setTransactionIdIsSet(true);
|
|
|
1056 |
} else {
|
|
|
1057 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1058 |
}
|
|
|
1059 |
break;
|
|
|
1060 |
case 4: // INVOICE_NUMBER
|
|
|
1061 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1062 |
this.invoiceNumber = iprot.readString();
|
|
|
1063 |
} else {
|
|
|
1064 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1065 |
}
|
|
|
1066 |
break;
|
|
|
1067 |
case 5: // ORDER_TYPE
|
|
|
1068 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
1069 |
this.orderType = OrderType.findByValue(iprot.readI32());
|
|
|
1070 |
} else {
|
|
|
1071 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1072 |
}
|
|
|
1073 |
break;
|
|
|
1074 |
case 6: // OPERATOR_ID
|
|
|
1075 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1076 |
this.operatorId = iprot.readI64();
|
|
|
1077 |
setOperatorIdIsSet(true);
|
|
|
1078 |
} else {
|
|
|
1079 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1080 |
}
|
|
|
1081 |
break;
|
|
|
1082 |
case 7: // RECHARGE_TYPE
|
|
|
1083 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
1084 |
this.rechargeType = RechargeType.findByValue(iprot.readI32());
|
|
|
1085 |
} else {
|
|
|
1086 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1087 |
}
|
|
|
1088 |
break;
|
|
|
1089 |
case 8: // RECHARGE_ORDER_STATUS
|
|
|
1090 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
1091 |
this.rechargeOrderStatus = RechargeOrderStatus.findByValue(iprot.readI32());
|
|
|
1092 |
} else {
|
|
|
1093 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1094 |
}
|
|
|
1095 |
break;
|
|
|
1096 |
case 9: // DEVICE_NUMBER
|
|
|
1097 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1098 |
this.deviceNumber = iprot.readString();
|
|
|
1099 |
} else {
|
|
|
1100 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1101 |
}
|
|
|
1102 |
break;
|
|
|
1103 |
case 10: // CUSTOMER_ID
|
|
|
1104 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1105 |
this.customerId = iprot.readI64();
|
|
|
1106 |
setCustomerIdIsSet(true);
|
|
|
1107 |
} else {
|
|
|
1108 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1109 |
}
|
|
|
1110 |
break;
|
|
|
1111 |
case 11: // CUSTOMER_EMAIL_ID
|
|
|
1112 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1113 |
this.customerEmailId = iprot.readI64();
|
|
|
1114 |
setCustomerEmailIdIsSet(true);
|
|
|
1115 |
} else {
|
|
|
1116 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1117 |
}
|
|
|
1118 |
break;
|
|
|
1119 |
case 12: // CREATION_TIMESTAMP
|
|
|
1120 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1121 |
this.creationTimestamp = iprot.readI64();
|
|
|
1122 |
setCreationTimestampIsSet(true);
|
|
|
1123 |
} else {
|
|
|
1124 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1125 |
}
|
|
|
1126 |
break;
|
|
|
1127 |
default:
|
|
|
1128 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1129 |
}
|
|
|
1130 |
iprot.readFieldEnd();
|
|
|
1131 |
}
|
|
|
1132 |
iprot.readStructEnd();
|
|
|
1133 |
validate();
|
|
|
1134 |
}
|
|
|
1135 |
|
|
|
1136 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
1137 |
validate();
|
|
|
1138 |
|
|
|
1139 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
1140 |
if (this.id != null) {
|
|
|
1141 |
oprot.writeFieldBegin(ID_FIELD_DESC);
|
|
|
1142 |
oprot.writeString(this.id);
|
|
|
1143 |
oprot.writeFieldEnd();
|
|
|
1144 |
}
|
|
|
1145 |
oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
|
|
|
1146 |
oprot.writeI64(this.amount);
|
|
|
1147 |
oprot.writeFieldEnd();
|
|
|
1148 |
oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
|
|
|
1149 |
oprot.writeI64(this.transactionId);
|
|
|
1150 |
oprot.writeFieldEnd();
|
|
|
1151 |
if (this.invoiceNumber != null) {
|
|
|
1152 |
oprot.writeFieldBegin(INVOICE_NUMBER_FIELD_DESC);
|
|
|
1153 |
oprot.writeString(this.invoiceNumber);
|
|
|
1154 |
oprot.writeFieldEnd();
|
|
|
1155 |
}
|
|
|
1156 |
if (this.orderType != null) {
|
|
|
1157 |
oprot.writeFieldBegin(ORDER_TYPE_FIELD_DESC);
|
|
|
1158 |
oprot.writeI32(this.orderType.getValue());
|
|
|
1159 |
oprot.writeFieldEnd();
|
|
|
1160 |
}
|
|
|
1161 |
oprot.writeFieldBegin(OPERATOR_ID_FIELD_DESC);
|
|
|
1162 |
oprot.writeI64(this.operatorId);
|
|
|
1163 |
oprot.writeFieldEnd();
|
|
|
1164 |
if (this.rechargeType != null) {
|
|
|
1165 |
oprot.writeFieldBegin(RECHARGE_TYPE_FIELD_DESC);
|
|
|
1166 |
oprot.writeI32(this.rechargeType.getValue());
|
|
|
1167 |
oprot.writeFieldEnd();
|
|
|
1168 |
}
|
|
|
1169 |
if (this.rechargeOrderStatus != null) {
|
|
|
1170 |
oprot.writeFieldBegin(RECHARGE_ORDER_STATUS_FIELD_DESC);
|
|
|
1171 |
oprot.writeI32(this.rechargeOrderStatus.getValue());
|
|
|
1172 |
oprot.writeFieldEnd();
|
|
|
1173 |
}
|
|
|
1174 |
if (this.deviceNumber != null) {
|
|
|
1175 |
oprot.writeFieldBegin(DEVICE_NUMBER_FIELD_DESC);
|
|
|
1176 |
oprot.writeString(this.deviceNumber);
|
|
|
1177 |
oprot.writeFieldEnd();
|
|
|
1178 |
}
|
|
|
1179 |
oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
|
|
|
1180 |
oprot.writeI64(this.customerId);
|
|
|
1181 |
oprot.writeFieldEnd();
|
|
|
1182 |
oprot.writeFieldBegin(CUSTOMER_EMAIL_ID_FIELD_DESC);
|
|
|
1183 |
oprot.writeI64(this.customerEmailId);
|
|
|
1184 |
oprot.writeFieldEnd();
|
|
|
1185 |
oprot.writeFieldBegin(CREATION_TIMESTAMP_FIELD_DESC);
|
|
|
1186 |
oprot.writeI64(this.creationTimestamp);
|
|
|
1187 |
oprot.writeFieldEnd();
|
|
|
1188 |
oprot.writeFieldStop();
|
|
|
1189 |
oprot.writeStructEnd();
|
|
|
1190 |
}
|
|
|
1191 |
|
|
|
1192 |
@Override
|
|
|
1193 |
public String toString() {
|
|
|
1194 |
StringBuilder sb = new StringBuilder("RechargeOrder(");
|
|
|
1195 |
boolean first = true;
|
|
|
1196 |
|
|
|
1197 |
sb.append("id:");
|
|
|
1198 |
if (this.id == null) {
|
|
|
1199 |
sb.append("null");
|
|
|
1200 |
} else {
|
|
|
1201 |
sb.append(this.id);
|
|
|
1202 |
}
|
|
|
1203 |
first = false;
|
|
|
1204 |
if (!first) sb.append(", ");
|
|
|
1205 |
sb.append("amount:");
|
|
|
1206 |
sb.append(this.amount);
|
|
|
1207 |
first = false;
|
|
|
1208 |
if (!first) sb.append(", ");
|
|
|
1209 |
sb.append("transactionId:");
|
|
|
1210 |
sb.append(this.transactionId);
|
|
|
1211 |
first = false;
|
|
|
1212 |
if (!first) sb.append(", ");
|
|
|
1213 |
sb.append("invoiceNumber:");
|
|
|
1214 |
if (this.invoiceNumber == null) {
|
|
|
1215 |
sb.append("null");
|
|
|
1216 |
} else {
|
|
|
1217 |
sb.append(this.invoiceNumber);
|
|
|
1218 |
}
|
|
|
1219 |
first = false;
|
|
|
1220 |
if (!first) sb.append(", ");
|
|
|
1221 |
sb.append("orderType:");
|
|
|
1222 |
if (this.orderType == null) {
|
|
|
1223 |
sb.append("null");
|
|
|
1224 |
} else {
|
|
|
1225 |
sb.append(this.orderType);
|
|
|
1226 |
}
|
|
|
1227 |
first = false;
|
|
|
1228 |
if (!first) sb.append(", ");
|
|
|
1229 |
sb.append("operatorId:");
|
|
|
1230 |
sb.append(this.operatorId);
|
|
|
1231 |
first = false;
|
|
|
1232 |
if (!first) sb.append(", ");
|
|
|
1233 |
sb.append("rechargeType:");
|
|
|
1234 |
if (this.rechargeType == null) {
|
|
|
1235 |
sb.append("null");
|
|
|
1236 |
} else {
|
|
|
1237 |
sb.append(this.rechargeType);
|
|
|
1238 |
}
|
|
|
1239 |
first = false;
|
|
|
1240 |
if (!first) sb.append(", ");
|
|
|
1241 |
sb.append("rechargeOrderStatus:");
|
|
|
1242 |
if (this.rechargeOrderStatus == null) {
|
|
|
1243 |
sb.append("null");
|
|
|
1244 |
} else {
|
|
|
1245 |
sb.append(this.rechargeOrderStatus);
|
|
|
1246 |
}
|
|
|
1247 |
first = false;
|
|
|
1248 |
if (!first) sb.append(", ");
|
|
|
1249 |
sb.append("deviceNumber:");
|
|
|
1250 |
if (this.deviceNumber == null) {
|
|
|
1251 |
sb.append("null");
|
|
|
1252 |
} else {
|
|
|
1253 |
sb.append(this.deviceNumber);
|
|
|
1254 |
}
|
|
|
1255 |
first = false;
|
|
|
1256 |
if (!first) sb.append(", ");
|
|
|
1257 |
sb.append("customerId:");
|
|
|
1258 |
sb.append(this.customerId);
|
|
|
1259 |
first = false;
|
|
|
1260 |
if (!first) sb.append(", ");
|
|
|
1261 |
sb.append("customerEmailId:");
|
|
|
1262 |
sb.append(this.customerEmailId);
|
|
|
1263 |
first = false;
|
|
|
1264 |
if (!first) sb.append(", ");
|
|
|
1265 |
sb.append("creationTimestamp:");
|
|
|
1266 |
sb.append(this.creationTimestamp);
|
|
|
1267 |
first = false;
|
|
|
1268 |
sb.append(")");
|
|
|
1269 |
return sb.toString();
|
|
|
1270 |
}
|
|
|
1271 |
|
|
|
1272 |
public void validate() throws org.apache.thrift.TException {
|
|
|
1273 |
// check for required fields
|
|
|
1274 |
}
|
|
|
1275 |
|
|
|
1276 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
1277 |
try {
|
|
|
1278 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
1279 |
} catch (org.apache.thrift.TException te) {
|
|
|
1280 |
throw new java.io.IOException(te);
|
|
|
1281 |
}
|
|
|
1282 |
}
|
|
|
1283 |
|
|
|
1284 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
1285 |
try {
|
|
|
1286 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
1287 |
__isset_bit_vector = new BitSet(1);
|
|
|
1288 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
1289 |
} catch (org.apache.thrift.TException te) {
|
|
|
1290 |
throw new java.io.IOException(te);
|
|
|
1291 |
}
|
|
|
1292 |
}
|
|
|
1293 |
|
|
|
1294 |
}
|
|
|
1295 |
|