| 18578 |
manish.sha |
1 |
/**
|
|
|
2 |
* Autogenerated by Thrift Compiler (0.7.0)
|
|
|
3 |
*
|
|
|
4 |
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
|
5 |
*/
|
|
|
6 |
package in.shop2020.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 UserSanction implements org.apache.thrift.TBase<UserSanction, UserSanction._Fields>, java.io.Serializable, Cloneable {
|
|
|
24 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("UserSanction");
|
|
|
25 |
|
| 18634 |
manish.sha |
26 |
private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
27 |
private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("user_id", org.apache.thrift.protocol.TType.I64, (short)2);
|
|
|
28 |
private static final org.apache.thrift.protocol.TField CREDITOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("creditor_id", org.apache.thrift.protocol.TType.I64, (short)3);
|
|
|
29 |
private static final org.apache.thrift.protocol.TField USER_REF_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("user_ref_id", org.apache.thrift.protocol.TType.STRING, (short)4);
|
|
|
30 |
private static final org.apache.thrift.protocol.TField CREDIT_LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("credit_limit", org.apache.thrift.protocol.TType.DOUBLE, (short)5);
|
|
|
31 |
private static final org.apache.thrift.protocol.TField CREDIT_BLOCKED_FIELD_DESC = new org.apache.thrift.protocol.TField("credit_blocked", org.apache.thrift.protocol.TType.DOUBLE, (short)6);
|
|
|
32 |
private static final org.apache.thrift.protocol.TField LOAN_FIELD_DESC = new org.apache.thrift.protocol.TField("loan", org.apache.thrift.protocol.TType.DOUBLE, (short)7);
|
|
|
33 |
private static final org.apache.thrift.protocol.TField ACTIVE_FIELD_DESC = new org.apache.thrift.protocol.TField("active", org.apache.thrift.protocol.TType.BOOL, (short)8);
|
|
|
34 |
private static final org.apache.thrift.protocol.TField CREATED_FIELD_DESC = new org.apache.thrift.protocol.TField("created", org.apache.thrift.protocol.TType.I64, (short)9);
|
|
|
35 |
private static final org.apache.thrift.protocol.TField UPDATED_FIELD_DESC = new org.apache.thrift.protocol.TField("updated", org.apache.thrift.protocol.TType.I64, (short)10);
|
| 18674 |
amit.gupta |
36 |
private static final org.apache.thrift.protocol.TField TICKET_SIZE_FIELD_DESC = new org.apache.thrift.protocol.TField("ticket_size", org.apache.thrift.protocol.TType.DOUBLE, (short)11);
|
|
|
37 |
private static final org.apache.thrift.protocol.TField CREDIT_DUE_DAYS_FIELD_DESC = new org.apache.thrift.protocol.TField("credit_due_days", org.apache.thrift.protocol.TType.I64, (short)12);
|
| 18578 |
manish.sha |
38 |
|
| 18634 |
manish.sha |
39 |
private long id; // required
|
| 18578 |
manish.sha |
40 |
private long user_id; // required
|
|
|
41 |
private long creditor_id; // required
|
|
|
42 |
private String user_ref_id; // required
|
|
|
43 |
private double credit_limit; // required
|
|
|
44 |
private double credit_blocked; // required
|
|
|
45 |
private double loan; // required
|
|
|
46 |
private boolean active; // required
|
|
|
47 |
private long created; // required
|
|
|
48 |
private long updated; // required
|
| 18674 |
amit.gupta |
49 |
private double ticket_size; // required
|
|
|
50 |
private long credit_due_days; // required
|
| 18578 |
manish.sha |
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 {
|
| 18634 |
manish.sha |
54 |
ID((short)1, "id"),
|
|
|
55 |
USER_ID((short)2, "user_id"),
|
|
|
56 |
CREDITOR_ID((short)3, "creditor_id"),
|
|
|
57 |
USER_REF_ID((short)4, "user_ref_id"),
|
|
|
58 |
CREDIT_LIMIT((short)5, "credit_limit"),
|
|
|
59 |
CREDIT_BLOCKED((short)6, "credit_blocked"),
|
|
|
60 |
LOAN((short)7, "loan"),
|
|
|
61 |
ACTIVE((short)8, "active"),
|
|
|
62 |
CREATED((short)9, "created"),
|
| 18674 |
amit.gupta |
63 |
UPDATED((short)10, "updated"),
|
|
|
64 |
TICKET_SIZE((short)11, "ticket_size"),
|
|
|
65 |
CREDIT_DUE_DAYS((short)12, "credit_due_days");
|
| 18578 |
manish.sha |
66 |
|
|
|
67 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
68 |
|
|
|
69 |
static {
|
|
|
70 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
71 |
byName.put(field.getFieldName(), field);
|
|
|
72 |
}
|
|
|
73 |
}
|
|
|
74 |
|
|
|
75 |
/**
|
|
|
76 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
77 |
*/
|
|
|
78 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
79 |
switch(fieldId) {
|
| 18634 |
manish.sha |
80 |
case 1: // ID
|
|
|
81 |
return ID;
|
|
|
82 |
case 2: // USER_ID
|
| 18578 |
manish.sha |
83 |
return USER_ID;
|
| 18634 |
manish.sha |
84 |
case 3: // CREDITOR_ID
|
| 18578 |
manish.sha |
85 |
return CREDITOR_ID;
|
| 18634 |
manish.sha |
86 |
case 4: // USER_REF_ID
|
| 18578 |
manish.sha |
87 |
return USER_REF_ID;
|
| 18634 |
manish.sha |
88 |
case 5: // CREDIT_LIMIT
|
| 18578 |
manish.sha |
89 |
return CREDIT_LIMIT;
|
| 18634 |
manish.sha |
90 |
case 6: // CREDIT_BLOCKED
|
| 18578 |
manish.sha |
91 |
return CREDIT_BLOCKED;
|
| 18634 |
manish.sha |
92 |
case 7: // LOAN
|
| 18578 |
manish.sha |
93 |
return LOAN;
|
| 18634 |
manish.sha |
94 |
case 8: // ACTIVE
|
| 18578 |
manish.sha |
95 |
return ACTIVE;
|
| 18634 |
manish.sha |
96 |
case 9: // CREATED
|
| 18578 |
manish.sha |
97 |
return CREATED;
|
| 18634 |
manish.sha |
98 |
case 10: // UPDATED
|
| 18578 |
manish.sha |
99 |
return UPDATED;
|
| 18674 |
amit.gupta |
100 |
case 11: // TICKET_SIZE
|
|
|
101 |
return TICKET_SIZE;
|
|
|
102 |
case 12: // CREDIT_DUE_DAYS
|
|
|
103 |
return CREDIT_DUE_DAYS;
|
| 18578 |
manish.sha |
104 |
default:
|
|
|
105 |
return null;
|
|
|
106 |
}
|
|
|
107 |
}
|
|
|
108 |
|
|
|
109 |
/**
|
|
|
110 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
111 |
* if it is not found.
|
|
|
112 |
*/
|
|
|
113 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
114 |
_Fields fields = findByThriftId(fieldId);
|
|
|
115 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
116 |
return fields;
|
|
|
117 |
}
|
|
|
118 |
|
|
|
119 |
/**
|
|
|
120 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
121 |
*/
|
|
|
122 |
public static _Fields findByName(String name) {
|
|
|
123 |
return byName.get(name);
|
|
|
124 |
}
|
|
|
125 |
|
|
|
126 |
private final short _thriftId;
|
|
|
127 |
private final String _fieldName;
|
|
|
128 |
|
|
|
129 |
_Fields(short thriftId, String fieldName) {
|
|
|
130 |
_thriftId = thriftId;
|
|
|
131 |
_fieldName = fieldName;
|
|
|
132 |
}
|
|
|
133 |
|
|
|
134 |
public short getThriftFieldId() {
|
|
|
135 |
return _thriftId;
|
|
|
136 |
}
|
|
|
137 |
|
|
|
138 |
public String getFieldName() {
|
|
|
139 |
return _fieldName;
|
|
|
140 |
}
|
|
|
141 |
}
|
|
|
142 |
|
|
|
143 |
// isset id assignments
|
| 18634 |
manish.sha |
144 |
private static final int __ID_ISSET_ID = 0;
|
|
|
145 |
private static final int __USER_ID_ISSET_ID = 1;
|
|
|
146 |
private static final int __CREDITOR_ID_ISSET_ID = 2;
|
|
|
147 |
private static final int __CREDIT_LIMIT_ISSET_ID = 3;
|
|
|
148 |
private static final int __CREDIT_BLOCKED_ISSET_ID = 4;
|
|
|
149 |
private static final int __LOAN_ISSET_ID = 5;
|
|
|
150 |
private static final int __ACTIVE_ISSET_ID = 6;
|
|
|
151 |
private static final int __CREATED_ISSET_ID = 7;
|
|
|
152 |
private static final int __UPDATED_ISSET_ID = 8;
|
| 18674 |
amit.gupta |
153 |
private static final int __TICKET_SIZE_ISSET_ID = 9;
|
|
|
154 |
private static final int __CREDIT_DUE_DAYS_ISSET_ID = 10;
|
|
|
155 |
private BitSet __isset_bit_vector = new BitSet(11);
|
| 18578 |
manish.sha |
156 |
|
|
|
157 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
158 |
static {
|
|
|
159 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 18634 |
manish.sha |
160 |
tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
161 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 18578 |
manish.sha |
162 |
tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("user_id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
163 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
164 |
tmpMap.put(_Fields.CREDITOR_ID, new org.apache.thrift.meta_data.FieldMetaData("creditor_id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
165 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
166 |
tmpMap.put(_Fields.USER_REF_ID, new org.apache.thrift.meta_data.FieldMetaData("user_ref_id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
167 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
168 |
tmpMap.put(_Fields.CREDIT_LIMIT, new org.apache.thrift.meta_data.FieldMetaData("credit_limit", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
169 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
170 |
tmpMap.put(_Fields.CREDIT_BLOCKED, new org.apache.thrift.meta_data.FieldMetaData("credit_blocked", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
171 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
172 |
tmpMap.put(_Fields.LOAN, new org.apache.thrift.meta_data.FieldMetaData("loan", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
173 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
174 |
tmpMap.put(_Fields.ACTIVE, new org.apache.thrift.meta_data.FieldMetaData("active", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
175 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
|
|
176 |
tmpMap.put(_Fields.CREATED, new org.apache.thrift.meta_data.FieldMetaData("created", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
177 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
178 |
tmpMap.put(_Fields.UPDATED, new org.apache.thrift.meta_data.FieldMetaData("updated", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
179 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 18674 |
amit.gupta |
180 |
tmpMap.put(_Fields.TICKET_SIZE, new org.apache.thrift.meta_data.FieldMetaData("ticket_size", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
181 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
|
|
|
182 |
tmpMap.put(_Fields.CREDIT_DUE_DAYS, new org.apache.thrift.meta_data.FieldMetaData("credit_due_days", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
183 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 18578 |
manish.sha |
184 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
185 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(UserSanction.class, metaDataMap);
|
|
|
186 |
}
|
|
|
187 |
|
|
|
188 |
public UserSanction() {
|
|
|
189 |
}
|
|
|
190 |
|
|
|
191 |
public UserSanction(
|
| 18634 |
manish.sha |
192 |
long id,
|
| 18578 |
manish.sha |
193 |
long user_id,
|
|
|
194 |
long creditor_id,
|
|
|
195 |
String user_ref_id,
|
|
|
196 |
double credit_limit,
|
|
|
197 |
double credit_blocked,
|
|
|
198 |
double loan,
|
|
|
199 |
boolean active,
|
|
|
200 |
long created,
|
| 18674 |
amit.gupta |
201 |
long updated,
|
|
|
202 |
double ticket_size,
|
|
|
203 |
long credit_due_days)
|
| 18578 |
manish.sha |
204 |
{
|
|
|
205 |
this();
|
| 18634 |
manish.sha |
206 |
this.id = id;
|
|
|
207 |
setIdIsSet(true);
|
| 18578 |
manish.sha |
208 |
this.user_id = user_id;
|
|
|
209 |
setUser_idIsSet(true);
|
|
|
210 |
this.creditor_id = creditor_id;
|
|
|
211 |
setCreditor_idIsSet(true);
|
|
|
212 |
this.user_ref_id = user_ref_id;
|
|
|
213 |
this.credit_limit = credit_limit;
|
|
|
214 |
setCredit_limitIsSet(true);
|
|
|
215 |
this.credit_blocked = credit_blocked;
|
|
|
216 |
setCredit_blockedIsSet(true);
|
|
|
217 |
this.loan = loan;
|
|
|
218 |
setLoanIsSet(true);
|
|
|
219 |
this.active = active;
|
|
|
220 |
setActiveIsSet(true);
|
|
|
221 |
this.created = created;
|
|
|
222 |
setCreatedIsSet(true);
|
|
|
223 |
this.updated = updated;
|
|
|
224 |
setUpdatedIsSet(true);
|
| 18674 |
amit.gupta |
225 |
this.ticket_size = ticket_size;
|
|
|
226 |
setTicket_sizeIsSet(true);
|
|
|
227 |
this.credit_due_days = credit_due_days;
|
|
|
228 |
setCredit_due_daysIsSet(true);
|
| 18578 |
manish.sha |
229 |
}
|
|
|
230 |
|
|
|
231 |
/**
|
|
|
232 |
* Performs a deep copy on <i>other</i>.
|
|
|
233 |
*/
|
|
|
234 |
public UserSanction(UserSanction other) {
|
|
|
235 |
__isset_bit_vector.clear();
|
|
|
236 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 18634 |
manish.sha |
237 |
this.id = other.id;
|
| 18578 |
manish.sha |
238 |
this.user_id = other.user_id;
|
|
|
239 |
this.creditor_id = other.creditor_id;
|
|
|
240 |
if (other.isSetUser_ref_id()) {
|
|
|
241 |
this.user_ref_id = other.user_ref_id;
|
|
|
242 |
}
|
|
|
243 |
this.credit_limit = other.credit_limit;
|
|
|
244 |
this.credit_blocked = other.credit_blocked;
|
|
|
245 |
this.loan = other.loan;
|
|
|
246 |
this.active = other.active;
|
|
|
247 |
this.created = other.created;
|
|
|
248 |
this.updated = other.updated;
|
| 18674 |
amit.gupta |
249 |
this.ticket_size = other.ticket_size;
|
|
|
250 |
this.credit_due_days = other.credit_due_days;
|
| 18578 |
manish.sha |
251 |
}
|
|
|
252 |
|
|
|
253 |
public UserSanction deepCopy() {
|
|
|
254 |
return new UserSanction(this);
|
|
|
255 |
}
|
|
|
256 |
|
|
|
257 |
@Override
|
|
|
258 |
public void clear() {
|
| 18634 |
manish.sha |
259 |
setIdIsSet(false);
|
|
|
260 |
this.id = 0;
|
| 18578 |
manish.sha |
261 |
setUser_idIsSet(false);
|
|
|
262 |
this.user_id = 0;
|
|
|
263 |
setCreditor_idIsSet(false);
|
|
|
264 |
this.creditor_id = 0;
|
|
|
265 |
this.user_ref_id = null;
|
|
|
266 |
setCredit_limitIsSet(false);
|
|
|
267 |
this.credit_limit = 0.0;
|
|
|
268 |
setCredit_blockedIsSet(false);
|
|
|
269 |
this.credit_blocked = 0.0;
|
|
|
270 |
setLoanIsSet(false);
|
|
|
271 |
this.loan = 0.0;
|
|
|
272 |
setActiveIsSet(false);
|
|
|
273 |
this.active = false;
|
|
|
274 |
setCreatedIsSet(false);
|
|
|
275 |
this.created = 0;
|
|
|
276 |
setUpdatedIsSet(false);
|
|
|
277 |
this.updated = 0;
|
| 18674 |
amit.gupta |
278 |
setTicket_sizeIsSet(false);
|
|
|
279 |
this.ticket_size = 0.0;
|
|
|
280 |
setCredit_due_daysIsSet(false);
|
|
|
281 |
this.credit_due_days = 0;
|
| 18578 |
manish.sha |
282 |
}
|
|
|
283 |
|
| 18634 |
manish.sha |
284 |
public long getId() {
|
|
|
285 |
return this.id;
|
|
|
286 |
}
|
|
|
287 |
|
|
|
288 |
public void setId(long id) {
|
|
|
289 |
this.id = id;
|
|
|
290 |
setIdIsSet(true);
|
|
|
291 |
}
|
|
|
292 |
|
|
|
293 |
public void unsetId() {
|
|
|
294 |
__isset_bit_vector.clear(__ID_ISSET_ID);
|
|
|
295 |
}
|
|
|
296 |
|
|
|
297 |
/** Returns true if field id is set (has been assigned a value) and false otherwise */
|
|
|
298 |
public boolean isSetId() {
|
|
|
299 |
return __isset_bit_vector.get(__ID_ISSET_ID);
|
|
|
300 |
}
|
|
|
301 |
|
|
|
302 |
public void setIdIsSet(boolean value) {
|
|
|
303 |
__isset_bit_vector.set(__ID_ISSET_ID, value);
|
|
|
304 |
}
|
|
|
305 |
|
| 18578 |
manish.sha |
306 |
public long getUser_id() {
|
|
|
307 |
return this.user_id;
|
|
|
308 |
}
|
|
|
309 |
|
|
|
310 |
public void setUser_id(long user_id) {
|
|
|
311 |
this.user_id = user_id;
|
|
|
312 |
setUser_idIsSet(true);
|
|
|
313 |
}
|
|
|
314 |
|
|
|
315 |
public void unsetUser_id() {
|
|
|
316 |
__isset_bit_vector.clear(__USER_ID_ISSET_ID);
|
|
|
317 |
}
|
|
|
318 |
|
|
|
319 |
/** Returns true if field user_id is set (has been assigned a value) and false otherwise */
|
|
|
320 |
public boolean isSetUser_id() {
|
|
|
321 |
return __isset_bit_vector.get(__USER_ID_ISSET_ID);
|
|
|
322 |
}
|
|
|
323 |
|
|
|
324 |
public void setUser_idIsSet(boolean value) {
|
|
|
325 |
__isset_bit_vector.set(__USER_ID_ISSET_ID, value);
|
|
|
326 |
}
|
|
|
327 |
|
|
|
328 |
public long getCreditor_id() {
|
|
|
329 |
return this.creditor_id;
|
|
|
330 |
}
|
|
|
331 |
|
|
|
332 |
public void setCreditor_id(long creditor_id) {
|
|
|
333 |
this.creditor_id = creditor_id;
|
|
|
334 |
setCreditor_idIsSet(true);
|
|
|
335 |
}
|
|
|
336 |
|
|
|
337 |
public void unsetCreditor_id() {
|
|
|
338 |
__isset_bit_vector.clear(__CREDITOR_ID_ISSET_ID);
|
|
|
339 |
}
|
|
|
340 |
|
|
|
341 |
/** Returns true if field creditor_id is set (has been assigned a value) and false otherwise */
|
|
|
342 |
public boolean isSetCreditor_id() {
|
|
|
343 |
return __isset_bit_vector.get(__CREDITOR_ID_ISSET_ID);
|
|
|
344 |
}
|
|
|
345 |
|
|
|
346 |
public void setCreditor_idIsSet(boolean value) {
|
|
|
347 |
__isset_bit_vector.set(__CREDITOR_ID_ISSET_ID, value);
|
|
|
348 |
}
|
|
|
349 |
|
|
|
350 |
public String getUser_ref_id() {
|
|
|
351 |
return this.user_ref_id;
|
|
|
352 |
}
|
|
|
353 |
|
|
|
354 |
public void setUser_ref_id(String user_ref_id) {
|
|
|
355 |
this.user_ref_id = user_ref_id;
|
|
|
356 |
}
|
|
|
357 |
|
|
|
358 |
public void unsetUser_ref_id() {
|
|
|
359 |
this.user_ref_id = null;
|
|
|
360 |
}
|
|
|
361 |
|
|
|
362 |
/** Returns true if field user_ref_id is set (has been assigned a value) and false otherwise */
|
|
|
363 |
public boolean isSetUser_ref_id() {
|
|
|
364 |
return this.user_ref_id != null;
|
|
|
365 |
}
|
|
|
366 |
|
|
|
367 |
public void setUser_ref_idIsSet(boolean value) {
|
|
|
368 |
if (!value) {
|
|
|
369 |
this.user_ref_id = null;
|
|
|
370 |
}
|
|
|
371 |
}
|
|
|
372 |
|
|
|
373 |
public double getCredit_limit() {
|
|
|
374 |
return this.credit_limit;
|
|
|
375 |
}
|
|
|
376 |
|
|
|
377 |
public void setCredit_limit(double credit_limit) {
|
|
|
378 |
this.credit_limit = credit_limit;
|
|
|
379 |
setCredit_limitIsSet(true);
|
|
|
380 |
}
|
|
|
381 |
|
|
|
382 |
public void unsetCredit_limit() {
|
|
|
383 |
__isset_bit_vector.clear(__CREDIT_LIMIT_ISSET_ID);
|
|
|
384 |
}
|
|
|
385 |
|
|
|
386 |
/** Returns true if field credit_limit is set (has been assigned a value) and false otherwise */
|
|
|
387 |
public boolean isSetCredit_limit() {
|
|
|
388 |
return __isset_bit_vector.get(__CREDIT_LIMIT_ISSET_ID);
|
|
|
389 |
}
|
|
|
390 |
|
|
|
391 |
public void setCredit_limitIsSet(boolean value) {
|
|
|
392 |
__isset_bit_vector.set(__CREDIT_LIMIT_ISSET_ID, value);
|
|
|
393 |
}
|
|
|
394 |
|
|
|
395 |
public double getCredit_blocked() {
|
|
|
396 |
return this.credit_blocked;
|
|
|
397 |
}
|
|
|
398 |
|
|
|
399 |
public void setCredit_blocked(double credit_blocked) {
|
|
|
400 |
this.credit_blocked = credit_blocked;
|
|
|
401 |
setCredit_blockedIsSet(true);
|
|
|
402 |
}
|
|
|
403 |
|
|
|
404 |
public void unsetCredit_blocked() {
|
|
|
405 |
__isset_bit_vector.clear(__CREDIT_BLOCKED_ISSET_ID);
|
|
|
406 |
}
|
|
|
407 |
|
|
|
408 |
/** Returns true if field credit_blocked is set (has been assigned a value) and false otherwise */
|
|
|
409 |
public boolean isSetCredit_blocked() {
|
|
|
410 |
return __isset_bit_vector.get(__CREDIT_BLOCKED_ISSET_ID);
|
|
|
411 |
}
|
|
|
412 |
|
|
|
413 |
public void setCredit_blockedIsSet(boolean value) {
|
|
|
414 |
__isset_bit_vector.set(__CREDIT_BLOCKED_ISSET_ID, value);
|
|
|
415 |
}
|
|
|
416 |
|
|
|
417 |
public double getLoan() {
|
|
|
418 |
return this.loan;
|
|
|
419 |
}
|
|
|
420 |
|
|
|
421 |
public void setLoan(double loan) {
|
|
|
422 |
this.loan = loan;
|
|
|
423 |
setLoanIsSet(true);
|
|
|
424 |
}
|
|
|
425 |
|
|
|
426 |
public void unsetLoan() {
|
|
|
427 |
__isset_bit_vector.clear(__LOAN_ISSET_ID);
|
|
|
428 |
}
|
|
|
429 |
|
|
|
430 |
/** Returns true if field loan is set (has been assigned a value) and false otherwise */
|
|
|
431 |
public boolean isSetLoan() {
|
|
|
432 |
return __isset_bit_vector.get(__LOAN_ISSET_ID);
|
|
|
433 |
}
|
|
|
434 |
|
|
|
435 |
public void setLoanIsSet(boolean value) {
|
|
|
436 |
__isset_bit_vector.set(__LOAN_ISSET_ID, value);
|
|
|
437 |
}
|
|
|
438 |
|
|
|
439 |
public boolean isActive() {
|
|
|
440 |
return this.active;
|
|
|
441 |
}
|
|
|
442 |
|
|
|
443 |
public void setActive(boolean active) {
|
|
|
444 |
this.active = active;
|
|
|
445 |
setActiveIsSet(true);
|
|
|
446 |
}
|
|
|
447 |
|
|
|
448 |
public void unsetActive() {
|
|
|
449 |
__isset_bit_vector.clear(__ACTIVE_ISSET_ID);
|
|
|
450 |
}
|
|
|
451 |
|
|
|
452 |
/** Returns true if field active is set (has been assigned a value) and false otherwise */
|
|
|
453 |
public boolean isSetActive() {
|
|
|
454 |
return __isset_bit_vector.get(__ACTIVE_ISSET_ID);
|
|
|
455 |
}
|
|
|
456 |
|
|
|
457 |
public void setActiveIsSet(boolean value) {
|
|
|
458 |
__isset_bit_vector.set(__ACTIVE_ISSET_ID, value);
|
|
|
459 |
}
|
|
|
460 |
|
|
|
461 |
public long getCreated() {
|
|
|
462 |
return this.created;
|
|
|
463 |
}
|
|
|
464 |
|
|
|
465 |
public void setCreated(long created) {
|
|
|
466 |
this.created = created;
|
|
|
467 |
setCreatedIsSet(true);
|
|
|
468 |
}
|
|
|
469 |
|
|
|
470 |
public void unsetCreated() {
|
|
|
471 |
__isset_bit_vector.clear(__CREATED_ISSET_ID);
|
|
|
472 |
}
|
|
|
473 |
|
|
|
474 |
/** Returns true if field created is set (has been assigned a value) and false otherwise */
|
|
|
475 |
public boolean isSetCreated() {
|
|
|
476 |
return __isset_bit_vector.get(__CREATED_ISSET_ID);
|
|
|
477 |
}
|
|
|
478 |
|
|
|
479 |
public void setCreatedIsSet(boolean value) {
|
|
|
480 |
__isset_bit_vector.set(__CREATED_ISSET_ID, value);
|
|
|
481 |
}
|
|
|
482 |
|
|
|
483 |
public long getUpdated() {
|
|
|
484 |
return this.updated;
|
|
|
485 |
}
|
|
|
486 |
|
|
|
487 |
public void setUpdated(long updated) {
|
|
|
488 |
this.updated = updated;
|
|
|
489 |
setUpdatedIsSet(true);
|
|
|
490 |
}
|
|
|
491 |
|
|
|
492 |
public void unsetUpdated() {
|
|
|
493 |
__isset_bit_vector.clear(__UPDATED_ISSET_ID);
|
|
|
494 |
}
|
|
|
495 |
|
|
|
496 |
/** Returns true if field updated is set (has been assigned a value) and false otherwise */
|
|
|
497 |
public boolean isSetUpdated() {
|
|
|
498 |
return __isset_bit_vector.get(__UPDATED_ISSET_ID);
|
|
|
499 |
}
|
|
|
500 |
|
|
|
501 |
public void setUpdatedIsSet(boolean value) {
|
|
|
502 |
__isset_bit_vector.set(__UPDATED_ISSET_ID, value);
|
|
|
503 |
}
|
|
|
504 |
|
| 18674 |
amit.gupta |
505 |
public double getTicket_size() {
|
|
|
506 |
return this.ticket_size;
|
|
|
507 |
}
|
|
|
508 |
|
|
|
509 |
public void setTicket_size(double ticket_size) {
|
|
|
510 |
this.ticket_size = ticket_size;
|
|
|
511 |
setTicket_sizeIsSet(true);
|
|
|
512 |
}
|
|
|
513 |
|
|
|
514 |
public void unsetTicket_size() {
|
|
|
515 |
__isset_bit_vector.clear(__TICKET_SIZE_ISSET_ID);
|
|
|
516 |
}
|
|
|
517 |
|
|
|
518 |
/** Returns true if field ticket_size is set (has been assigned a value) and false otherwise */
|
|
|
519 |
public boolean isSetTicket_size() {
|
|
|
520 |
return __isset_bit_vector.get(__TICKET_SIZE_ISSET_ID);
|
|
|
521 |
}
|
|
|
522 |
|
|
|
523 |
public void setTicket_sizeIsSet(boolean value) {
|
|
|
524 |
__isset_bit_vector.set(__TICKET_SIZE_ISSET_ID, value);
|
|
|
525 |
}
|
|
|
526 |
|
|
|
527 |
public long getCredit_due_days() {
|
|
|
528 |
return this.credit_due_days;
|
|
|
529 |
}
|
|
|
530 |
|
|
|
531 |
public void setCredit_due_days(long credit_due_days) {
|
|
|
532 |
this.credit_due_days = credit_due_days;
|
|
|
533 |
setCredit_due_daysIsSet(true);
|
|
|
534 |
}
|
|
|
535 |
|
|
|
536 |
public void unsetCredit_due_days() {
|
|
|
537 |
__isset_bit_vector.clear(__CREDIT_DUE_DAYS_ISSET_ID);
|
|
|
538 |
}
|
|
|
539 |
|
|
|
540 |
/** Returns true if field credit_due_days is set (has been assigned a value) and false otherwise */
|
|
|
541 |
public boolean isSetCredit_due_days() {
|
|
|
542 |
return __isset_bit_vector.get(__CREDIT_DUE_DAYS_ISSET_ID);
|
|
|
543 |
}
|
|
|
544 |
|
|
|
545 |
public void setCredit_due_daysIsSet(boolean value) {
|
|
|
546 |
__isset_bit_vector.set(__CREDIT_DUE_DAYS_ISSET_ID, value);
|
|
|
547 |
}
|
|
|
548 |
|
| 18578 |
manish.sha |
549 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
550 |
switch (field) {
|
| 18634 |
manish.sha |
551 |
case ID:
|
|
|
552 |
if (value == null) {
|
|
|
553 |
unsetId();
|
|
|
554 |
} else {
|
|
|
555 |
setId((Long)value);
|
|
|
556 |
}
|
|
|
557 |
break;
|
|
|
558 |
|
| 18578 |
manish.sha |
559 |
case USER_ID:
|
|
|
560 |
if (value == null) {
|
|
|
561 |
unsetUser_id();
|
|
|
562 |
} else {
|
|
|
563 |
setUser_id((Long)value);
|
|
|
564 |
}
|
|
|
565 |
break;
|
|
|
566 |
|
|
|
567 |
case CREDITOR_ID:
|
|
|
568 |
if (value == null) {
|
|
|
569 |
unsetCreditor_id();
|
|
|
570 |
} else {
|
|
|
571 |
setCreditor_id((Long)value);
|
|
|
572 |
}
|
|
|
573 |
break;
|
|
|
574 |
|
|
|
575 |
case USER_REF_ID:
|
|
|
576 |
if (value == null) {
|
|
|
577 |
unsetUser_ref_id();
|
|
|
578 |
} else {
|
|
|
579 |
setUser_ref_id((String)value);
|
|
|
580 |
}
|
|
|
581 |
break;
|
|
|
582 |
|
|
|
583 |
case CREDIT_LIMIT:
|
|
|
584 |
if (value == null) {
|
|
|
585 |
unsetCredit_limit();
|
|
|
586 |
} else {
|
|
|
587 |
setCredit_limit((Double)value);
|
|
|
588 |
}
|
|
|
589 |
break;
|
|
|
590 |
|
|
|
591 |
case CREDIT_BLOCKED:
|
|
|
592 |
if (value == null) {
|
|
|
593 |
unsetCredit_blocked();
|
|
|
594 |
} else {
|
|
|
595 |
setCredit_blocked((Double)value);
|
|
|
596 |
}
|
|
|
597 |
break;
|
|
|
598 |
|
|
|
599 |
case LOAN:
|
|
|
600 |
if (value == null) {
|
|
|
601 |
unsetLoan();
|
|
|
602 |
} else {
|
|
|
603 |
setLoan((Double)value);
|
|
|
604 |
}
|
|
|
605 |
break;
|
|
|
606 |
|
|
|
607 |
case ACTIVE:
|
|
|
608 |
if (value == null) {
|
|
|
609 |
unsetActive();
|
|
|
610 |
} else {
|
|
|
611 |
setActive((Boolean)value);
|
|
|
612 |
}
|
|
|
613 |
break;
|
|
|
614 |
|
|
|
615 |
case CREATED:
|
|
|
616 |
if (value == null) {
|
|
|
617 |
unsetCreated();
|
|
|
618 |
} else {
|
|
|
619 |
setCreated((Long)value);
|
|
|
620 |
}
|
|
|
621 |
break;
|
|
|
622 |
|
|
|
623 |
case UPDATED:
|
|
|
624 |
if (value == null) {
|
|
|
625 |
unsetUpdated();
|
|
|
626 |
} else {
|
|
|
627 |
setUpdated((Long)value);
|
|
|
628 |
}
|
|
|
629 |
break;
|
|
|
630 |
|
| 18674 |
amit.gupta |
631 |
case TICKET_SIZE:
|
|
|
632 |
if (value == null) {
|
|
|
633 |
unsetTicket_size();
|
|
|
634 |
} else {
|
|
|
635 |
setTicket_size((Double)value);
|
|
|
636 |
}
|
|
|
637 |
break;
|
|
|
638 |
|
|
|
639 |
case CREDIT_DUE_DAYS:
|
|
|
640 |
if (value == null) {
|
|
|
641 |
unsetCredit_due_days();
|
|
|
642 |
} else {
|
|
|
643 |
setCredit_due_days((Long)value);
|
|
|
644 |
}
|
|
|
645 |
break;
|
|
|
646 |
|
| 18578 |
manish.sha |
647 |
}
|
|
|
648 |
}
|
|
|
649 |
|
|
|
650 |
public Object getFieldValue(_Fields field) {
|
|
|
651 |
switch (field) {
|
| 18634 |
manish.sha |
652 |
case ID:
|
|
|
653 |
return Long.valueOf(getId());
|
|
|
654 |
|
| 18578 |
manish.sha |
655 |
case USER_ID:
|
|
|
656 |
return Long.valueOf(getUser_id());
|
|
|
657 |
|
|
|
658 |
case CREDITOR_ID:
|
|
|
659 |
return Long.valueOf(getCreditor_id());
|
|
|
660 |
|
|
|
661 |
case USER_REF_ID:
|
|
|
662 |
return getUser_ref_id();
|
|
|
663 |
|
|
|
664 |
case CREDIT_LIMIT:
|
|
|
665 |
return Double.valueOf(getCredit_limit());
|
|
|
666 |
|
|
|
667 |
case CREDIT_BLOCKED:
|
|
|
668 |
return Double.valueOf(getCredit_blocked());
|
|
|
669 |
|
|
|
670 |
case LOAN:
|
|
|
671 |
return Double.valueOf(getLoan());
|
|
|
672 |
|
|
|
673 |
case ACTIVE:
|
|
|
674 |
return Boolean.valueOf(isActive());
|
|
|
675 |
|
|
|
676 |
case CREATED:
|
|
|
677 |
return Long.valueOf(getCreated());
|
|
|
678 |
|
|
|
679 |
case UPDATED:
|
|
|
680 |
return Long.valueOf(getUpdated());
|
|
|
681 |
|
| 18674 |
amit.gupta |
682 |
case TICKET_SIZE:
|
|
|
683 |
return Double.valueOf(getTicket_size());
|
|
|
684 |
|
|
|
685 |
case CREDIT_DUE_DAYS:
|
|
|
686 |
return Long.valueOf(getCredit_due_days());
|
|
|
687 |
|
| 18578 |
manish.sha |
688 |
}
|
|
|
689 |
throw new IllegalStateException();
|
|
|
690 |
}
|
|
|
691 |
|
|
|
692 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
693 |
public boolean isSet(_Fields field) {
|
|
|
694 |
if (field == null) {
|
|
|
695 |
throw new IllegalArgumentException();
|
|
|
696 |
}
|
|
|
697 |
|
|
|
698 |
switch (field) {
|
| 18634 |
manish.sha |
699 |
case ID:
|
|
|
700 |
return isSetId();
|
| 18578 |
manish.sha |
701 |
case USER_ID:
|
|
|
702 |
return isSetUser_id();
|
|
|
703 |
case CREDITOR_ID:
|
|
|
704 |
return isSetCreditor_id();
|
|
|
705 |
case USER_REF_ID:
|
|
|
706 |
return isSetUser_ref_id();
|
|
|
707 |
case CREDIT_LIMIT:
|
|
|
708 |
return isSetCredit_limit();
|
|
|
709 |
case CREDIT_BLOCKED:
|
|
|
710 |
return isSetCredit_blocked();
|
|
|
711 |
case LOAN:
|
|
|
712 |
return isSetLoan();
|
|
|
713 |
case ACTIVE:
|
|
|
714 |
return isSetActive();
|
|
|
715 |
case CREATED:
|
|
|
716 |
return isSetCreated();
|
|
|
717 |
case UPDATED:
|
|
|
718 |
return isSetUpdated();
|
| 18674 |
amit.gupta |
719 |
case TICKET_SIZE:
|
|
|
720 |
return isSetTicket_size();
|
|
|
721 |
case CREDIT_DUE_DAYS:
|
|
|
722 |
return isSetCredit_due_days();
|
| 18578 |
manish.sha |
723 |
}
|
|
|
724 |
throw new IllegalStateException();
|
|
|
725 |
}
|
|
|
726 |
|
|
|
727 |
@Override
|
|
|
728 |
public boolean equals(Object that) {
|
|
|
729 |
if (that == null)
|
|
|
730 |
return false;
|
|
|
731 |
if (that instanceof UserSanction)
|
|
|
732 |
return this.equals((UserSanction)that);
|
|
|
733 |
return false;
|
|
|
734 |
}
|
|
|
735 |
|
|
|
736 |
public boolean equals(UserSanction that) {
|
|
|
737 |
if (that == null)
|
|
|
738 |
return false;
|
|
|
739 |
|
| 18634 |
manish.sha |
740 |
boolean this_present_id = true;
|
|
|
741 |
boolean that_present_id = true;
|
|
|
742 |
if (this_present_id || that_present_id) {
|
|
|
743 |
if (!(this_present_id && that_present_id))
|
|
|
744 |
return false;
|
|
|
745 |
if (this.id != that.id)
|
|
|
746 |
return false;
|
|
|
747 |
}
|
|
|
748 |
|
| 18578 |
manish.sha |
749 |
boolean this_present_user_id = true;
|
|
|
750 |
boolean that_present_user_id = true;
|
|
|
751 |
if (this_present_user_id || that_present_user_id) {
|
|
|
752 |
if (!(this_present_user_id && that_present_user_id))
|
|
|
753 |
return false;
|
|
|
754 |
if (this.user_id != that.user_id)
|
|
|
755 |
return false;
|
|
|
756 |
}
|
|
|
757 |
|
|
|
758 |
boolean this_present_creditor_id = true;
|
|
|
759 |
boolean that_present_creditor_id = true;
|
|
|
760 |
if (this_present_creditor_id || that_present_creditor_id) {
|
|
|
761 |
if (!(this_present_creditor_id && that_present_creditor_id))
|
|
|
762 |
return false;
|
|
|
763 |
if (this.creditor_id != that.creditor_id)
|
|
|
764 |
return false;
|
|
|
765 |
}
|
|
|
766 |
|
|
|
767 |
boolean this_present_user_ref_id = true && this.isSetUser_ref_id();
|
|
|
768 |
boolean that_present_user_ref_id = true && that.isSetUser_ref_id();
|
|
|
769 |
if (this_present_user_ref_id || that_present_user_ref_id) {
|
|
|
770 |
if (!(this_present_user_ref_id && that_present_user_ref_id))
|
|
|
771 |
return false;
|
|
|
772 |
if (!this.user_ref_id.equals(that.user_ref_id))
|
|
|
773 |
return false;
|
|
|
774 |
}
|
|
|
775 |
|
|
|
776 |
boolean this_present_credit_limit = true;
|
|
|
777 |
boolean that_present_credit_limit = true;
|
|
|
778 |
if (this_present_credit_limit || that_present_credit_limit) {
|
|
|
779 |
if (!(this_present_credit_limit && that_present_credit_limit))
|
|
|
780 |
return false;
|
|
|
781 |
if (this.credit_limit != that.credit_limit)
|
|
|
782 |
return false;
|
|
|
783 |
}
|
|
|
784 |
|
|
|
785 |
boolean this_present_credit_blocked = true;
|
|
|
786 |
boolean that_present_credit_blocked = true;
|
|
|
787 |
if (this_present_credit_blocked || that_present_credit_blocked) {
|
|
|
788 |
if (!(this_present_credit_blocked && that_present_credit_blocked))
|
|
|
789 |
return false;
|
|
|
790 |
if (this.credit_blocked != that.credit_blocked)
|
|
|
791 |
return false;
|
|
|
792 |
}
|
|
|
793 |
|
|
|
794 |
boolean this_present_loan = true;
|
|
|
795 |
boolean that_present_loan = true;
|
|
|
796 |
if (this_present_loan || that_present_loan) {
|
|
|
797 |
if (!(this_present_loan && that_present_loan))
|
|
|
798 |
return false;
|
|
|
799 |
if (this.loan != that.loan)
|
|
|
800 |
return false;
|
|
|
801 |
}
|
|
|
802 |
|
|
|
803 |
boolean this_present_active = true;
|
|
|
804 |
boolean that_present_active = true;
|
|
|
805 |
if (this_present_active || that_present_active) {
|
|
|
806 |
if (!(this_present_active && that_present_active))
|
|
|
807 |
return false;
|
|
|
808 |
if (this.active != that.active)
|
|
|
809 |
return false;
|
|
|
810 |
}
|
|
|
811 |
|
|
|
812 |
boolean this_present_created = true;
|
|
|
813 |
boolean that_present_created = true;
|
|
|
814 |
if (this_present_created || that_present_created) {
|
|
|
815 |
if (!(this_present_created && that_present_created))
|
|
|
816 |
return false;
|
|
|
817 |
if (this.created != that.created)
|
|
|
818 |
return false;
|
|
|
819 |
}
|
|
|
820 |
|
|
|
821 |
boolean this_present_updated = true;
|
|
|
822 |
boolean that_present_updated = true;
|
|
|
823 |
if (this_present_updated || that_present_updated) {
|
|
|
824 |
if (!(this_present_updated && that_present_updated))
|
|
|
825 |
return false;
|
|
|
826 |
if (this.updated != that.updated)
|
|
|
827 |
return false;
|
|
|
828 |
}
|
|
|
829 |
|
| 18674 |
amit.gupta |
830 |
boolean this_present_ticket_size = true;
|
|
|
831 |
boolean that_present_ticket_size = true;
|
|
|
832 |
if (this_present_ticket_size || that_present_ticket_size) {
|
|
|
833 |
if (!(this_present_ticket_size && that_present_ticket_size))
|
|
|
834 |
return false;
|
|
|
835 |
if (this.ticket_size != that.ticket_size)
|
|
|
836 |
return false;
|
|
|
837 |
}
|
|
|
838 |
|
|
|
839 |
boolean this_present_credit_due_days = true;
|
|
|
840 |
boolean that_present_credit_due_days = true;
|
|
|
841 |
if (this_present_credit_due_days || that_present_credit_due_days) {
|
|
|
842 |
if (!(this_present_credit_due_days && that_present_credit_due_days))
|
|
|
843 |
return false;
|
|
|
844 |
if (this.credit_due_days != that.credit_due_days)
|
|
|
845 |
return false;
|
|
|
846 |
}
|
|
|
847 |
|
| 18578 |
manish.sha |
848 |
return true;
|
|
|
849 |
}
|
|
|
850 |
|
|
|
851 |
@Override
|
|
|
852 |
public int hashCode() {
|
|
|
853 |
return 0;
|
|
|
854 |
}
|
|
|
855 |
|
|
|
856 |
public int compareTo(UserSanction other) {
|
|
|
857 |
if (!getClass().equals(other.getClass())) {
|
|
|
858 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
859 |
}
|
|
|
860 |
|
|
|
861 |
int lastComparison = 0;
|
|
|
862 |
UserSanction typedOther = (UserSanction)other;
|
|
|
863 |
|
| 18634 |
manish.sha |
864 |
lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
|
|
|
865 |
if (lastComparison != 0) {
|
|
|
866 |
return lastComparison;
|
|
|
867 |
}
|
|
|
868 |
if (isSetId()) {
|
|
|
869 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
|
|
|
870 |
if (lastComparison != 0) {
|
|
|
871 |
return lastComparison;
|
|
|
872 |
}
|
|
|
873 |
}
|
| 18578 |
manish.sha |
874 |
lastComparison = Boolean.valueOf(isSetUser_id()).compareTo(typedOther.isSetUser_id());
|
|
|
875 |
if (lastComparison != 0) {
|
|
|
876 |
return lastComparison;
|
|
|
877 |
}
|
|
|
878 |
if (isSetUser_id()) {
|
|
|
879 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_id, typedOther.user_id);
|
|
|
880 |
if (lastComparison != 0) {
|
|
|
881 |
return lastComparison;
|
|
|
882 |
}
|
|
|
883 |
}
|
|
|
884 |
lastComparison = Boolean.valueOf(isSetCreditor_id()).compareTo(typedOther.isSetCreditor_id());
|
|
|
885 |
if (lastComparison != 0) {
|
|
|
886 |
return lastComparison;
|
|
|
887 |
}
|
|
|
888 |
if (isSetCreditor_id()) {
|
|
|
889 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creditor_id, typedOther.creditor_id);
|
|
|
890 |
if (lastComparison != 0) {
|
|
|
891 |
return lastComparison;
|
|
|
892 |
}
|
|
|
893 |
}
|
|
|
894 |
lastComparison = Boolean.valueOf(isSetUser_ref_id()).compareTo(typedOther.isSetUser_ref_id());
|
|
|
895 |
if (lastComparison != 0) {
|
|
|
896 |
return lastComparison;
|
|
|
897 |
}
|
|
|
898 |
if (isSetUser_ref_id()) {
|
|
|
899 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.user_ref_id, typedOther.user_ref_id);
|
|
|
900 |
if (lastComparison != 0) {
|
|
|
901 |
return lastComparison;
|
|
|
902 |
}
|
|
|
903 |
}
|
|
|
904 |
lastComparison = Boolean.valueOf(isSetCredit_limit()).compareTo(typedOther.isSetCredit_limit());
|
|
|
905 |
if (lastComparison != 0) {
|
|
|
906 |
return lastComparison;
|
|
|
907 |
}
|
|
|
908 |
if (isSetCredit_limit()) {
|
|
|
909 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.credit_limit, typedOther.credit_limit);
|
|
|
910 |
if (lastComparison != 0) {
|
|
|
911 |
return lastComparison;
|
|
|
912 |
}
|
|
|
913 |
}
|
|
|
914 |
lastComparison = Boolean.valueOf(isSetCredit_blocked()).compareTo(typedOther.isSetCredit_blocked());
|
|
|
915 |
if (lastComparison != 0) {
|
|
|
916 |
return lastComparison;
|
|
|
917 |
}
|
|
|
918 |
if (isSetCredit_blocked()) {
|
|
|
919 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.credit_blocked, typedOther.credit_blocked);
|
|
|
920 |
if (lastComparison != 0) {
|
|
|
921 |
return lastComparison;
|
|
|
922 |
}
|
|
|
923 |
}
|
|
|
924 |
lastComparison = Boolean.valueOf(isSetLoan()).compareTo(typedOther.isSetLoan());
|
|
|
925 |
if (lastComparison != 0) {
|
|
|
926 |
return lastComparison;
|
|
|
927 |
}
|
|
|
928 |
if (isSetLoan()) {
|
|
|
929 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.loan, typedOther.loan);
|
|
|
930 |
if (lastComparison != 0) {
|
|
|
931 |
return lastComparison;
|
|
|
932 |
}
|
|
|
933 |
}
|
|
|
934 |
lastComparison = Boolean.valueOf(isSetActive()).compareTo(typedOther.isSetActive());
|
|
|
935 |
if (lastComparison != 0) {
|
|
|
936 |
return lastComparison;
|
|
|
937 |
}
|
|
|
938 |
if (isSetActive()) {
|
|
|
939 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.active, typedOther.active);
|
|
|
940 |
if (lastComparison != 0) {
|
|
|
941 |
return lastComparison;
|
|
|
942 |
}
|
|
|
943 |
}
|
|
|
944 |
lastComparison = Boolean.valueOf(isSetCreated()).compareTo(typedOther.isSetCreated());
|
|
|
945 |
if (lastComparison != 0) {
|
|
|
946 |
return lastComparison;
|
|
|
947 |
}
|
|
|
948 |
if (isSetCreated()) {
|
|
|
949 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.created, typedOther.created);
|
|
|
950 |
if (lastComparison != 0) {
|
|
|
951 |
return lastComparison;
|
|
|
952 |
}
|
|
|
953 |
}
|
|
|
954 |
lastComparison = Boolean.valueOf(isSetUpdated()).compareTo(typedOther.isSetUpdated());
|
|
|
955 |
if (lastComparison != 0) {
|
|
|
956 |
return lastComparison;
|
|
|
957 |
}
|
|
|
958 |
if (isSetUpdated()) {
|
|
|
959 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.updated, typedOther.updated);
|
|
|
960 |
if (lastComparison != 0) {
|
|
|
961 |
return lastComparison;
|
|
|
962 |
}
|
|
|
963 |
}
|
| 18674 |
amit.gupta |
964 |
lastComparison = Boolean.valueOf(isSetTicket_size()).compareTo(typedOther.isSetTicket_size());
|
|
|
965 |
if (lastComparison != 0) {
|
|
|
966 |
return lastComparison;
|
|
|
967 |
}
|
|
|
968 |
if (isSetTicket_size()) {
|
|
|
969 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ticket_size, typedOther.ticket_size);
|
|
|
970 |
if (lastComparison != 0) {
|
|
|
971 |
return lastComparison;
|
|
|
972 |
}
|
|
|
973 |
}
|
|
|
974 |
lastComparison = Boolean.valueOf(isSetCredit_due_days()).compareTo(typedOther.isSetCredit_due_days());
|
|
|
975 |
if (lastComparison != 0) {
|
|
|
976 |
return lastComparison;
|
|
|
977 |
}
|
|
|
978 |
if (isSetCredit_due_days()) {
|
|
|
979 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.credit_due_days, typedOther.credit_due_days);
|
|
|
980 |
if (lastComparison != 0) {
|
|
|
981 |
return lastComparison;
|
|
|
982 |
}
|
|
|
983 |
}
|
| 18578 |
manish.sha |
984 |
return 0;
|
|
|
985 |
}
|
|
|
986 |
|
|
|
987 |
public _Fields fieldForId(int fieldId) {
|
|
|
988 |
return _Fields.findByThriftId(fieldId);
|
|
|
989 |
}
|
|
|
990 |
|
|
|
991 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
992 |
org.apache.thrift.protocol.TField field;
|
|
|
993 |
iprot.readStructBegin();
|
|
|
994 |
while (true)
|
|
|
995 |
{
|
|
|
996 |
field = iprot.readFieldBegin();
|
|
|
997 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
998 |
break;
|
|
|
999 |
}
|
|
|
1000 |
switch (field.id) {
|
| 18634 |
manish.sha |
1001 |
case 1: // ID
|
| 18578 |
manish.sha |
1002 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| 18634 |
manish.sha |
1003 |
this.id = iprot.readI64();
|
|
|
1004 |
setIdIsSet(true);
|
|
|
1005 |
} else {
|
|
|
1006 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1007 |
}
|
|
|
1008 |
break;
|
|
|
1009 |
case 2: // USER_ID
|
|
|
1010 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| 18578 |
manish.sha |
1011 |
this.user_id = iprot.readI64();
|
|
|
1012 |
setUser_idIsSet(true);
|
|
|
1013 |
} else {
|
|
|
1014 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1015 |
}
|
|
|
1016 |
break;
|
| 18634 |
manish.sha |
1017 |
case 3: // CREDITOR_ID
|
| 18578 |
manish.sha |
1018 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1019 |
this.creditor_id = iprot.readI64();
|
|
|
1020 |
setCreditor_idIsSet(true);
|
|
|
1021 |
} else {
|
|
|
1022 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1023 |
}
|
|
|
1024 |
break;
|
| 18634 |
manish.sha |
1025 |
case 4: // USER_REF_ID
|
| 18578 |
manish.sha |
1026 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1027 |
this.user_ref_id = iprot.readString();
|
|
|
1028 |
} else {
|
|
|
1029 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1030 |
}
|
|
|
1031 |
break;
|
| 18634 |
manish.sha |
1032 |
case 5: // CREDIT_LIMIT
|
| 18578 |
manish.sha |
1033 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
1034 |
this.credit_limit = iprot.readDouble();
|
|
|
1035 |
setCredit_limitIsSet(true);
|
|
|
1036 |
} else {
|
|
|
1037 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1038 |
}
|
|
|
1039 |
break;
|
| 18634 |
manish.sha |
1040 |
case 6: // CREDIT_BLOCKED
|
| 18578 |
manish.sha |
1041 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
1042 |
this.credit_blocked = iprot.readDouble();
|
|
|
1043 |
setCredit_blockedIsSet(true);
|
|
|
1044 |
} else {
|
|
|
1045 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1046 |
}
|
|
|
1047 |
break;
|
| 18634 |
manish.sha |
1048 |
case 7: // LOAN
|
| 18578 |
manish.sha |
1049 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
1050 |
this.loan = iprot.readDouble();
|
|
|
1051 |
setLoanIsSet(true);
|
|
|
1052 |
} else {
|
|
|
1053 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1054 |
}
|
|
|
1055 |
break;
|
| 18634 |
manish.sha |
1056 |
case 8: // ACTIVE
|
| 18578 |
manish.sha |
1057 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
1058 |
this.active = iprot.readBool();
|
|
|
1059 |
setActiveIsSet(true);
|
|
|
1060 |
} else {
|
|
|
1061 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1062 |
}
|
|
|
1063 |
break;
|
| 18634 |
manish.sha |
1064 |
case 9: // CREATED
|
| 18578 |
manish.sha |
1065 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1066 |
this.created = iprot.readI64();
|
|
|
1067 |
setCreatedIsSet(true);
|
|
|
1068 |
} else {
|
|
|
1069 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1070 |
}
|
|
|
1071 |
break;
|
| 18634 |
manish.sha |
1072 |
case 10: // UPDATED
|
| 18578 |
manish.sha |
1073 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1074 |
this.updated = iprot.readI64();
|
|
|
1075 |
setUpdatedIsSet(true);
|
|
|
1076 |
} else {
|
|
|
1077 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1078 |
}
|
|
|
1079 |
break;
|
| 18674 |
amit.gupta |
1080 |
case 11: // TICKET_SIZE
|
|
|
1081 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
|
|
1082 |
this.ticket_size = iprot.readDouble();
|
|
|
1083 |
setTicket_sizeIsSet(true);
|
|
|
1084 |
} else {
|
|
|
1085 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1086 |
}
|
|
|
1087 |
break;
|
|
|
1088 |
case 12: // CREDIT_DUE_DAYS
|
|
|
1089 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1090 |
this.credit_due_days = iprot.readI64();
|
|
|
1091 |
setCredit_due_daysIsSet(true);
|
|
|
1092 |
} else {
|
|
|
1093 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1094 |
}
|
|
|
1095 |
break;
|
| 18578 |
manish.sha |
1096 |
default:
|
|
|
1097 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1098 |
}
|
|
|
1099 |
iprot.readFieldEnd();
|
|
|
1100 |
}
|
|
|
1101 |
iprot.readStructEnd();
|
|
|
1102 |
validate();
|
|
|
1103 |
}
|
|
|
1104 |
|
|
|
1105 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
1106 |
validate();
|
|
|
1107 |
|
|
|
1108 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 18634 |
manish.sha |
1109 |
oprot.writeFieldBegin(ID_FIELD_DESC);
|
|
|
1110 |
oprot.writeI64(this.id);
|
|
|
1111 |
oprot.writeFieldEnd();
|
| 18578 |
manish.sha |
1112 |
oprot.writeFieldBegin(USER_ID_FIELD_DESC);
|
|
|
1113 |
oprot.writeI64(this.user_id);
|
|
|
1114 |
oprot.writeFieldEnd();
|
|
|
1115 |
oprot.writeFieldBegin(CREDITOR_ID_FIELD_DESC);
|
|
|
1116 |
oprot.writeI64(this.creditor_id);
|
|
|
1117 |
oprot.writeFieldEnd();
|
|
|
1118 |
if (this.user_ref_id != null) {
|
|
|
1119 |
oprot.writeFieldBegin(USER_REF_ID_FIELD_DESC);
|
|
|
1120 |
oprot.writeString(this.user_ref_id);
|
|
|
1121 |
oprot.writeFieldEnd();
|
|
|
1122 |
}
|
|
|
1123 |
oprot.writeFieldBegin(CREDIT_LIMIT_FIELD_DESC);
|
|
|
1124 |
oprot.writeDouble(this.credit_limit);
|
|
|
1125 |
oprot.writeFieldEnd();
|
|
|
1126 |
oprot.writeFieldBegin(CREDIT_BLOCKED_FIELD_DESC);
|
|
|
1127 |
oprot.writeDouble(this.credit_blocked);
|
|
|
1128 |
oprot.writeFieldEnd();
|
|
|
1129 |
oprot.writeFieldBegin(LOAN_FIELD_DESC);
|
|
|
1130 |
oprot.writeDouble(this.loan);
|
|
|
1131 |
oprot.writeFieldEnd();
|
|
|
1132 |
oprot.writeFieldBegin(ACTIVE_FIELD_DESC);
|
|
|
1133 |
oprot.writeBool(this.active);
|
|
|
1134 |
oprot.writeFieldEnd();
|
|
|
1135 |
oprot.writeFieldBegin(CREATED_FIELD_DESC);
|
|
|
1136 |
oprot.writeI64(this.created);
|
|
|
1137 |
oprot.writeFieldEnd();
|
|
|
1138 |
oprot.writeFieldBegin(UPDATED_FIELD_DESC);
|
|
|
1139 |
oprot.writeI64(this.updated);
|
|
|
1140 |
oprot.writeFieldEnd();
|
| 18674 |
amit.gupta |
1141 |
oprot.writeFieldBegin(TICKET_SIZE_FIELD_DESC);
|
|
|
1142 |
oprot.writeDouble(this.ticket_size);
|
|
|
1143 |
oprot.writeFieldEnd();
|
|
|
1144 |
oprot.writeFieldBegin(CREDIT_DUE_DAYS_FIELD_DESC);
|
|
|
1145 |
oprot.writeI64(this.credit_due_days);
|
|
|
1146 |
oprot.writeFieldEnd();
|
| 18578 |
manish.sha |
1147 |
oprot.writeFieldStop();
|
|
|
1148 |
oprot.writeStructEnd();
|
|
|
1149 |
}
|
|
|
1150 |
|
|
|
1151 |
@Override
|
|
|
1152 |
public String toString() {
|
|
|
1153 |
StringBuilder sb = new StringBuilder("UserSanction(");
|
|
|
1154 |
boolean first = true;
|
|
|
1155 |
|
| 18634 |
manish.sha |
1156 |
sb.append("id:");
|
|
|
1157 |
sb.append(this.id);
|
|
|
1158 |
first = false;
|
|
|
1159 |
if (!first) sb.append(", ");
|
| 18578 |
manish.sha |
1160 |
sb.append("user_id:");
|
|
|
1161 |
sb.append(this.user_id);
|
|
|
1162 |
first = false;
|
|
|
1163 |
if (!first) sb.append(", ");
|
|
|
1164 |
sb.append("creditor_id:");
|
|
|
1165 |
sb.append(this.creditor_id);
|
|
|
1166 |
first = false;
|
|
|
1167 |
if (!first) sb.append(", ");
|
|
|
1168 |
sb.append("user_ref_id:");
|
|
|
1169 |
if (this.user_ref_id == null) {
|
|
|
1170 |
sb.append("null");
|
|
|
1171 |
} else {
|
|
|
1172 |
sb.append(this.user_ref_id);
|
|
|
1173 |
}
|
|
|
1174 |
first = false;
|
|
|
1175 |
if (!first) sb.append(", ");
|
|
|
1176 |
sb.append("credit_limit:");
|
|
|
1177 |
sb.append(this.credit_limit);
|
|
|
1178 |
first = false;
|
|
|
1179 |
if (!first) sb.append(", ");
|
|
|
1180 |
sb.append("credit_blocked:");
|
|
|
1181 |
sb.append(this.credit_blocked);
|
|
|
1182 |
first = false;
|
|
|
1183 |
if (!first) sb.append(", ");
|
|
|
1184 |
sb.append("loan:");
|
|
|
1185 |
sb.append(this.loan);
|
|
|
1186 |
first = false;
|
|
|
1187 |
if (!first) sb.append(", ");
|
|
|
1188 |
sb.append("active:");
|
|
|
1189 |
sb.append(this.active);
|
|
|
1190 |
first = false;
|
|
|
1191 |
if (!first) sb.append(", ");
|
|
|
1192 |
sb.append("created:");
|
|
|
1193 |
sb.append(this.created);
|
|
|
1194 |
first = false;
|
|
|
1195 |
if (!first) sb.append(", ");
|
|
|
1196 |
sb.append("updated:");
|
|
|
1197 |
sb.append(this.updated);
|
|
|
1198 |
first = false;
|
| 18674 |
amit.gupta |
1199 |
if (!first) sb.append(", ");
|
|
|
1200 |
sb.append("ticket_size:");
|
|
|
1201 |
sb.append(this.ticket_size);
|
|
|
1202 |
first = false;
|
|
|
1203 |
if (!first) sb.append(", ");
|
|
|
1204 |
sb.append("credit_due_days:");
|
|
|
1205 |
sb.append(this.credit_due_days);
|
|
|
1206 |
first = false;
|
| 18578 |
manish.sha |
1207 |
sb.append(")");
|
|
|
1208 |
return sb.toString();
|
|
|
1209 |
}
|
|
|
1210 |
|
|
|
1211 |
public void validate() throws org.apache.thrift.TException {
|
|
|
1212 |
// check for required fields
|
|
|
1213 |
}
|
|
|
1214 |
|
|
|
1215 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
1216 |
try {
|
|
|
1217 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
1218 |
} catch (org.apache.thrift.TException te) {
|
|
|
1219 |
throw new java.io.IOException(te);
|
|
|
1220 |
}
|
|
|
1221 |
}
|
|
|
1222 |
|
|
|
1223 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
1224 |
try {
|
|
|
1225 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
1226 |
__isset_bit_vector = new BitSet(1);
|
|
|
1227 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
1228 |
} catch (org.apache.thrift.TException te) {
|
|
|
1229 |
throw new java.io.IOException(te);
|
|
|
1230 |
}
|
|
|
1231 |
}
|
|
|
1232 |
|
|
|
1233 |
}
|
|
|
1234 |
|