| Line 21... |
Line 21... |
| 21 |
import org.slf4j.LoggerFactory;
|
21 |
import org.slf4j.LoggerFactory;
|
| 22 |
|
22 |
|
| 23 |
public class UserSanction implements org.apache.thrift.TBase<UserSanction, UserSanction._Fields>, java.io.Serializable, Cloneable {
|
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");
|
24 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("UserSanction");
|
| 25 |
|
25 |
|
| - |
|
26 |
private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
|
| 26 |
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)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);
|
| 27 |
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)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);
|
| 28 |
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)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);
|
| 29 |
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)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);
|
| 30 |
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)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);
|
| 31 |
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)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);
|
| 32 |
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)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);
|
| 33 |
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)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);
|
| 34 |
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)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);
|
| 35 |
|
36 |
|
| - |
|
37 |
private long id; // required
|
| 36 |
private long user_id; // required
|
38 |
private long user_id; // required
|
| 37 |
private long creditor_id; // required
|
39 |
private long creditor_id; // required
|
| 38 |
private String user_ref_id; // required
|
40 |
private String user_ref_id; // required
|
| 39 |
private double credit_limit; // required
|
41 |
private double credit_limit; // required
|
| 40 |
private double credit_blocked; // required
|
42 |
private double credit_blocked; // required
|
| Line 43... |
Line 45... |
| 43 |
private long created; // required
|
45 |
private long created; // required
|
| 44 |
private long updated; // required
|
46 |
private long updated; // required
|
| 45 |
|
47 |
|
| 46 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
48 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 47 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
49 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| - |
|
50 |
ID((short)1, "id"),
|
| 48 |
USER_ID((short)1, "user_id"),
|
51 |
USER_ID((short)2, "user_id"),
|
| 49 |
CREDITOR_ID((short)2, "creditor_id"),
|
52 |
CREDITOR_ID((short)3, "creditor_id"),
|
| 50 |
USER_REF_ID((short)3, "user_ref_id"),
|
53 |
USER_REF_ID((short)4, "user_ref_id"),
|
| 51 |
CREDIT_LIMIT((short)4, "credit_limit"),
|
54 |
CREDIT_LIMIT((short)5, "credit_limit"),
|
| 52 |
CREDIT_BLOCKED((short)5, "credit_blocked"),
|
55 |
CREDIT_BLOCKED((short)6, "credit_blocked"),
|
| 53 |
LOAN((short)6, "loan"),
|
56 |
LOAN((short)7, "loan"),
|
| 54 |
ACTIVE((short)7, "active"),
|
57 |
ACTIVE((short)8, "active"),
|
| 55 |
CREATED((short)8, "created"),
|
58 |
CREATED((short)9, "created"),
|
| 56 |
UPDATED((short)9, "updated");
|
59 |
UPDATED((short)10, "updated");
|
| 57 |
|
60 |
|
| 58 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
61 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| 59 |
|
62 |
|
| 60 |
static {
|
63 |
static {
|
| 61 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
64 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| Line 66... |
Line 69... |
| 66 |
/**
|
69 |
/**
|
| 67 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
70 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
| 68 |
*/
|
71 |
*/
|
| 69 |
public static _Fields findByThriftId(int fieldId) {
|
72 |
public static _Fields findByThriftId(int fieldId) {
|
| 70 |
switch(fieldId) {
|
73 |
switch(fieldId) {
|
| - |
|
74 |
case 1: // ID
|
| - |
|
75 |
return ID;
|
| 71 |
case 1: // USER_ID
|
76 |
case 2: // USER_ID
|
| 72 |
return USER_ID;
|
77 |
return USER_ID;
|
| 73 |
case 2: // CREDITOR_ID
|
78 |
case 3: // CREDITOR_ID
|
| 74 |
return CREDITOR_ID;
|
79 |
return CREDITOR_ID;
|
| 75 |
case 3: // USER_REF_ID
|
80 |
case 4: // USER_REF_ID
|
| 76 |
return USER_REF_ID;
|
81 |
return USER_REF_ID;
|
| 77 |
case 4: // CREDIT_LIMIT
|
82 |
case 5: // CREDIT_LIMIT
|
| 78 |
return CREDIT_LIMIT;
|
83 |
return CREDIT_LIMIT;
|
| 79 |
case 5: // CREDIT_BLOCKED
|
84 |
case 6: // CREDIT_BLOCKED
|
| 80 |
return CREDIT_BLOCKED;
|
85 |
return CREDIT_BLOCKED;
|
| 81 |
case 6: // LOAN
|
86 |
case 7: // LOAN
|
| 82 |
return LOAN;
|
87 |
return LOAN;
|
| 83 |
case 7: // ACTIVE
|
88 |
case 8: // ACTIVE
|
| 84 |
return ACTIVE;
|
89 |
return ACTIVE;
|
| 85 |
case 8: // CREATED
|
90 |
case 9: // CREATED
|
| 86 |
return CREATED;
|
91 |
return CREATED;
|
| 87 |
case 9: // UPDATED
|
92 |
case 10: // UPDATED
|
| 88 |
return UPDATED;
|
93 |
return UPDATED;
|
| 89 |
default:
|
94 |
default:
|
| 90 |
return null;
|
95 |
return null;
|
| 91 |
}
|
96 |
}
|
| 92 |
}
|
97 |
}
|
| Line 124... |
Line 129... |
| 124 |
return _fieldName;
|
129 |
return _fieldName;
|
| 125 |
}
|
130 |
}
|
| 126 |
}
|
131 |
}
|
| 127 |
|
132 |
|
| 128 |
// isset id assignments
|
133 |
// isset id assignments
|
| - |
|
134 |
private static final int __ID_ISSET_ID = 0;
|
| 129 |
private static final int __USER_ID_ISSET_ID = 0;
|
135 |
private static final int __USER_ID_ISSET_ID = 1;
|
| 130 |
private static final int __CREDITOR_ID_ISSET_ID = 1;
|
136 |
private static final int __CREDITOR_ID_ISSET_ID = 2;
|
| 131 |
private static final int __CREDIT_LIMIT_ISSET_ID = 2;
|
137 |
private static final int __CREDIT_LIMIT_ISSET_ID = 3;
|
| 132 |
private static final int __CREDIT_BLOCKED_ISSET_ID = 3;
|
138 |
private static final int __CREDIT_BLOCKED_ISSET_ID = 4;
|
| 133 |
private static final int __LOAN_ISSET_ID = 4;
|
139 |
private static final int __LOAN_ISSET_ID = 5;
|
| 134 |
private static final int __ACTIVE_ISSET_ID = 5;
|
140 |
private static final int __ACTIVE_ISSET_ID = 6;
|
| 135 |
private static final int __CREATED_ISSET_ID = 6;
|
141 |
private static final int __CREATED_ISSET_ID = 7;
|
| 136 |
private static final int __UPDATED_ISSET_ID = 7;
|
142 |
private static final int __UPDATED_ISSET_ID = 8;
|
| 137 |
private BitSet __isset_bit_vector = new BitSet(8);
|
143 |
private BitSet __isset_bit_vector = new BitSet(9);
|
| 138 |
|
144 |
|
| 139 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
145 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 140 |
static {
|
146 |
static {
|
| 141 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
147 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| - |
|
148 |
tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
149 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 142 |
tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("user_id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
150 |
tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("user_id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 143 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
151 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 144 |
tmpMap.put(_Fields.CREDITOR_ID, new org.apache.thrift.meta_data.FieldMetaData("creditor_id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
152 |
tmpMap.put(_Fields.CREDITOR_ID, new org.apache.thrift.meta_data.FieldMetaData("creditor_id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 145 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
153 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 146 |
tmpMap.put(_Fields.USER_REF_ID, new org.apache.thrift.meta_data.FieldMetaData("user_ref_id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
154 |
tmpMap.put(_Fields.USER_REF_ID, new org.apache.thrift.meta_data.FieldMetaData("user_ref_id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| Line 163... |
Line 171... |
| 163 |
|
171 |
|
| 164 |
public UserSanction() {
|
172 |
public UserSanction() {
|
| 165 |
}
|
173 |
}
|
| 166 |
|
174 |
|
| 167 |
public UserSanction(
|
175 |
public UserSanction(
|
| - |
|
176 |
long id,
|
| 168 |
long user_id,
|
177 |
long user_id,
|
| 169 |
long creditor_id,
|
178 |
long creditor_id,
|
| 170 |
String user_ref_id,
|
179 |
String user_ref_id,
|
| 171 |
double credit_limit,
|
180 |
double credit_limit,
|
| 172 |
double credit_blocked,
|
181 |
double credit_blocked,
|
| Line 174... |
Line 183... |
| 174 |
boolean active,
|
183 |
boolean active,
|
| 175 |
long created,
|
184 |
long created,
|
| 176 |
long updated)
|
185 |
long updated)
|
| 177 |
{
|
186 |
{
|
| 178 |
this();
|
187 |
this();
|
| - |
|
188 |
this.id = id;
|
| - |
|
189 |
setIdIsSet(true);
|
| 179 |
this.user_id = user_id;
|
190 |
this.user_id = user_id;
|
| 180 |
setUser_idIsSet(true);
|
191 |
setUser_idIsSet(true);
|
| 181 |
this.creditor_id = creditor_id;
|
192 |
this.creditor_id = creditor_id;
|
| 182 |
setCreditor_idIsSet(true);
|
193 |
setCreditor_idIsSet(true);
|
| 183 |
this.user_ref_id = user_ref_id;
|
194 |
this.user_ref_id = user_ref_id;
|
| Line 199... |
Line 210... |
| 199 |
* Performs a deep copy on <i>other</i>.
|
210 |
* Performs a deep copy on <i>other</i>.
|
| 200 |
*/
|
211 |
*/
|
| 201 |
public UserSanction(UserSanction other) {
|
212 |
public UserSanction(UserSanction other) {
|
| 202 |
__isset_bit_vector.clear();
|
213 |
__isset_bit_vector.clear();
|
| 203 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
214 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| - |
|
215 |
this.id = other.id;
|
| 204 |
this.user_id = other.user_id;
|
216 |
this.user_id = other.user_id;
|
| 205 |
this.creditor_id = other.creditor_id;
|
217 |
this.creditor_id = other.creditor_id;
|
| 206 |
if (other.isSetUser_ref_id()) {
|
218 |
if (other.isSetUser_ref_id()) {
|
| 207 |
this.user_ref_id = other.user_ref_id;
|
219 |
this.user_ref_id = other.user_ref_id;
|
| 208 |
}
|
220 |
}
|
| Line 218... |
Line 230... |
| 218 |
return new UserSanction(this);
|
230 |
return new UserSanction(this);
|
| 219 |
}
|
231 |
}
|
| 220 |
|
232 |
|
| 221 |
@Override
|
233 |
@Override
|
| 222 |
public void clear() {
|
234 |
public void clear() {
|
| - |
|
235 |
setIdIsSet(false);
|
| - |
|
236 |
this.id = 0;
|
| 223 |
setUser_idIsSet(false);
|
237 |
setUser_idIsSet(false);
|
| 224 |
this.user_id = 0;
|
238 |
this.user_id = 0;
|
| 225 |
setCreditor_idIsSet(false);
|
239 |
setCreditor_idIsSet(false);
|
| 226 |
this.creditor_id = 0;
|
240 |
this.creditor_id = 0;
|
| 227 |
this.user_ref_id = null;
|
241 |
this.user_ref_id = null;
|
| Line 237... |
Line 251... |
| 237 |
this.created = 0;
|
251 |
this.created = 0;
|
| 238 |
setUpdatedIsSet(false);
|
252 |
setUpdatedIsSet(false);
|
| 239 |
this.updated = 0;
|
253 |
this.updated = 0;
|
| 240 |
}
|
254 |
}
|
| 241 |
|
255 |
|
| - |
|
256 |
public long getId() {
|
| - |
|
257 |
return this.id;
|
| - |
|
258 |
}
|
| - |
|
259 |
|
| - |
|
260 |
public void setId(long id) {
|
| - |
|
261 |
this.id = id;
|
| - |
|
262 |
setIdIsSet(true);
|
| - |
|
263 |
}
|
| - |
|
264 |
|
| - |
|
265 |
public void unsetId() {
|
| - |
|
266 |
__isset_bit_vector.clear(__ID_ISSET_ID);
|
| - |
|
267 |
}
|
| - |
|
268 |
|
| - |
|
269 |
/** Returns true if field id is set (has been assigned a value) and false otherwise */
|
| - |
|
270 |
public boolean isSetId() {
|
| - |
|
271 |
return __isset_bit_vector.get(__ID_ISSET_ID);
|
| - |
|
272 |
}
|
| - |
|
273 |
|
| - |
|
274 |
public void setIdIsSet(boolean value) {
|
| - |
|
275 |
__isset_bit_vector.set(__ID_ISSET_ID, value);
|
| - |
|
276 |
}
|
| - |
|
277 |
|
| 242 |
public long getUser_id() {
|
278 |
public long getUser_id() {
|
| 243 |
return this.user_id;
|
279 |
return this.user_id;
|
| 244 |
}
|
280 |
}
|
| 245 |
|
281 |
|
| 246 |
public void setUser_id(long user_id) {
|
282 |
public void setUser_id(long user_id) {
|
| Line 438... |
Line 474... |
| 438 |
__isset_bit_vector.set(__UPDATED_ISSET_ID, value);
|
474 |
__isset_bit_vector.set(__UPDATED_ISSET_ID, value);
|
| 439 |
}
|
475 |
}
|
| 440 |
|
476 |
|
| 441 |
public void setFieldValue(_Fields field, Object value) {
|
477 |
public void setFieldValue(_Fields field, Object value) {
|
| 442 |
switch (field) {
|
478 |
switch (field) {
|
| - |
|
479 |
case ID:
|
| - |
|
480 |
if (value == null) {
|
| - |
|
481 |
unsetId();
|
| - |
|
482 |
} else {
|
| - |
|
483 |
setId((Long)value);
|
| - |
|
484 |
}
|
| - |
|
485 |
break;
|
| - |
|
486 |
|
| 443 |
case USER_ID:
|
487 |
case USER_ID:
|
| 444 |
if (value == null) {
|
488 |
if (value == null) {
|
| 445 |
unsetUser_id();
|
489 |
unsetUser_id();
|
| 446 |
} else {
|
490 |
} else {
|
| 447 |
setUser_id((Long)value);
|
491 |
setUser_id((Long)value);
|
| Line 515... |
Line 559... |
| 515 |
}
|
559 |
}
|
| 516 |
}
|
560 |
}
|
| 517 |
|
561 |
|
| 518 |
public Object getFieldValue(_Fields field) {
|
562 |
public Object getFieldValue(_Fields field) {
|
| 519 |
switch (field) {
|
563 |
switch (field) {
|
| - |
|
564 |
case ID:
|
| - |
|
565 |
return Long.valueOf(getId());
|
| - |
|
566 |
|
| 520 |
case USER_ID:
|
567 |
case USER_ID:
|
| 521 |
return Long.valueOf(getUser_id());
|
568 |
return Long.valueOf(getUser_id());
|
| 522 |
|
569 |
|
| 523 |
case CREDITOR_ID:
|
570 |
case CREDITOR_ID:
|
| 524 |
return Long.valueOf(getCreditor_id());
|
571 |
return Long.valueOf(getCreditor_id());
|
| Line 553... |
Line 600... |
| 553 |
if (field == null) {
|
600 |
if (field == null) {
|
| 554 |
throw new IllegalArgumentException();
|
601 |
throw new IllegalArgumentException();
|
| 555 |
}
|
602 |
}
|
| 556 |
|
603 |
|
| 557 |
switch (field) {
|
604 |
switch (field) {
|
| - |
|
605 |
case ID:
|
| - |
|
606 |
return isSetId();
|
| 558 |
case USER_ID:
|
607 |
case USER_ID:
|
| 559 |
return isSetUser_id();
|
608 |
return isSetUser_id();
|
| 560 |
case CREDITOR_ID:
|
609 |
case CREDITOR_ID:
|
| 561 |
return isSetCreditor_id();
|
610 |
return isSetCreditor_id();
|
| 562 |
case USER_REF_ID:
|
611 |
case USER_REF_ID:
|
| Line 588... |
Line 637... |
| 588 |
|
637 |
|
| 589 |
public boolean equals(UserSanction that) {
|
638 |
public boolean equals(UserSanction that) {
|
| 590 |
if (that == null)
|
639 |
if (that == null)
|
| 591 |
return false;
|
640 |
return false;
|
| 592 |
|
641 |
|
| - |
|
642 |
boolean this_present_id = true;
|
| - |
|
643 |
boolean that_present_id = true;
|
| - |
|
644 |
if (this_present_id || that_present_id) {
|
| - |
|
645 |
if (!(this_present_id && that_present_id))
|
| - |
|
646 |
return false;
|
| - |
|
647 |
if (this.id != that.id)
|
| - |
|
648 |
return false;
|
| - |
|
649 |
}
|
| - |
|
650 |
|
| 593 |
boolean this_present_user_id = true;
|
651 |
boolean this_present_user_id = true;
|
| 594 |
boolean that_present_user_id = true;
|
652 |
boolean that_present_user_id = true;
|
| 595 |
if (this_present_user_id || that_present_user_id) {
|
653 |
if (this_present_user_id || that_present_user_id) {
|
| 596 |
if (!(this_present_user_id && that_present_user_id))
|
654 |
if (!(this_present_user_id && that_present_user_id))
|
| 597 |
return false;
|
655 |
return false;
|
| Line 685... |
Line 743... |
| 685 |
}
|
743 |
}
|
| 686 |
|
744 |
|
| 687 |
int lastComparison = 0;
|
745 |
int lastComparison = 0;
|
| 688 |
UserSanction typedOther = (UserSanction)other;
|
746 |
UserSanction typedOther = (UserSanction)other;
|
| 689 |
|
747 |
|
| - |
|
748 |
lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
|
| - |
|
749 |
if (lastComparison != 0) {
|
| - |
|
750 |
return lastComparison;
|
| - |
|
751 |
}
|
| - |
|
752 |
if (isSetId()) {
|
| - |
|
753 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
|
| - |
|
754 |
if (lastComparison != 0) {
|
| - |
|
755 |
return lastComparison;
|
| - |
|
756 |
}
|
| - |
|
757 |
}
|
| 690 |
lastComparison = Boolean.valueOf(isSetUser_id()).compareTo(typedOther.isSetUser_id());
|
758 |
lastComparison = Boolean.valueOf(isSetUser_id()).compareTo(typedOther.isSetUser_id());
|
| 691 |
if (lastComparison != 0) {
|
759 |
if (lastComparison != 0) {
|
| 692 |
return lastComparison;
|
760 |
return lastComparison;
|
| 693 |
}
|
761 |
}
|
| 694 |
if (isSetUser_id()) {
|
762 |
if (isSetUser_id()) {
|
| Line 792... |
Line 860... |
| 792 |
field = iprot.readFieldBegin();
|
860 |
field = iprot.readFieldBegin();
|
| 793 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
861 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 794 |
break;
|
862 |
break;
|
| 795 |
}
|
863 |
}
|
| 796 |
switch (field.id) {
|
864 |
switch (field.id) {
|
| - |
|
865 |
case 1: // ID
|
| - |
|
866 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| - |
|
867 |
this.id = iprot.readI64();
|
| - |
|
868 |
setIdIsSet(true);
|
| - |
|
869 |
} else {
|
| - |
|
870 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
871 |
}
|
| - |
|
872 |
break;
|
| 797 |
case 1: // USER_ID
|
873 |
case 2: // USER_ID
|
| 798 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
874 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| 799 |
this.user_id = iprot.readI64();
|
875 |
this.user_id = iprot.readI64();
|
| 800 |
setUser_idIsSet(true);
|
876 |
setUser_idIsSet(true);
|
| 801 |
} else {
|
877 |
} else {
|
| 802 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
878 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 803 |
}
|
879 |
}
|
| 804 |
break;
|
880 |
break;
|
| 805 |
case 2: // CREDITOR_ID
|
881 |
case 3: // CREDITOR_ID
|
| 806 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
882 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| 807 |
this.creditor_id = iprot.readI64();
|
883 |
this.creditor_id = iprot.readI64();
|
| 808 |
setCreditor_idIsSet(true);
|
884 |
setCreditor_idIsSet(true);
|
| 809 |
} else {
|
885 |
} else {
|
| 810 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
886 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 811 |
}
|
887 |
}
|
| 812 |
break;
|
888 |
break;
|
| 813 |
case 3: // USER_REF_ID
|
889 |
case 4: // USER_REF_ID
|
| 814 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
890 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
| 815 |
this.user_ref_id = iprot.readString();
|
891 |
this.user_ref_id = iprot.readString();
|
| 816 |
} else {
|
892 |
} else {
|
| 817 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
893 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 818 |
}
|
894 |
}
|
| 819 |
break;
|
895 |
break;
|
| 820 |
case 4: // CREDIT_LIMIT
|
896 |
case 5: // CREDIT_LIMIT
|
| 821 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
897 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
| 822 |
this.credit_limit = iprot.readDouble();
|
898 |
this.credit_limit = iprot.readDouble();
|
| 823 |
setCredit_limitIsSet(true);
|
899 |
setCredit_limitIsSet(true);
|
| 824 |
} else {
|
900 |
} else {
|
| 825 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
901 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 826 |
}
|
902 |
}
|
| 827 |
break;
|
903 |
break;
|
| 828 |
case 5: // CREDIT_BLOCKED
|
904 |
case 6: // CREDIT_BLOCKED
|
| 829 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
905 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
| 830 |
this.credit_blocked = iprot.readDouble();
|
906 |
this.credit_blocked = iprot.readDouble();
|
| 831 |
setCredit_blockedIsSet(true);
|
907 |
setCredit_blockedIsSet(true);
|
| 832 |
} else {
|
908 |
} else {
|
| 833 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
909 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 834 |
}
|
910 |
}
|
| 835 |
break;
|
911 |
break;
|
| 836 |
case 6: // LOAN
|
912 |
case 7: // LOAN
|
| 837 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
913 |
if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
|
| 838 |
this.loan = iprot.readDouble();
|
914 |
this.loan = iprot.readDouble();
|
| 839 |
setLoanIsSet(true);
|
915 |
setLoanIsSet(true);
|
| 840 |
} else {
|
916 |
} else {
|
| 841 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
917 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 842 |
}
|
918 |
}
|
| 843 |
break;
|
919 |
break;
|
| 844 |
case 7: // ACTIVE
|
920 |
case 8: // ACTIVE
|
| 845 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
921 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
| 846 |
this.active = iprot.readBool();
|
922 |
this.active = iprot.readBool();
|
| 847 |
setActiveIsSet(true);
|
923 |
setActiveIsSet(true);
|
| 848 |
} else {
|
924 |
} else {
|
| 849 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
925 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 850 |
}
|
926 |
}
|
| 851 |
break;
|
927 |
break;
|
| 852 |
case 8: // CREATED
|
928 |
case 9: // CREATED
|
| 853 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
929 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| 854 |
this.created = iprot.readI64();
|
930 |
this.created = iprot.readI64();
|
| 855 |
setCreatedIsSet(true);
|
931 |
setCreatedIsSet(true);
|
| 856 |
} else {
|
932 |
} else {
|
| 857 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
933 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 858 |
}
|
934 |
}
|
| 859 |
break;
|
935 |
break;
|
| 860 |
case 9: // UPDATED
|
936 |
case 10: // UPDATED
|
| 861 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
937 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| 862 |
this.updated = iprot.readI64();
|
938 |
this.updated = iprot.readI64();
|
| 863 |
setUpdatedIsSet(true);
|
939 |
setUpdatedIsSet(true);
|
| 864 |
} else {
|
940 |
} else {
|
| 865 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
941 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| Line 876... |
Line 952... |
| 876 |
|
952 |
|
| 877 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
953 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 878 |
validate();
|
954 |
validate();
|
| 879 |
|
955 |
|
| 880 |
oprot.writeStructBegin(STRUCT_DESC);
|
956 |
oprot.writeStructBegin(STRUCT_DESC);
|
| - |
|
957 |
oprot.writeFieldBegin(ID_FIELD_DESC);
|
| - |
|
958 |
oprot.writeI64(this.id);
|
| - |
|
959 |
oprot.writeFieldEnd();
|
| 881 |
oprot.writeFieldBegin(USER_ID_FIELD_DESC);
|
960 |
oprot.writeFieldBegin(USER_ID_FIELD_DESC);
|
| 882 |
oprot.writeI64(this.user_id);
|
961 |
oprot.writeI64(this.user_id);
|
| 883 |
oprot.writeFieldEnd();
|
962 |
oprot.writeFieldEnd();
|
| 884 |
oprot.writeFieldBegin(CREDITOR_ID_FIELD_DESC);
|
963 |
oprot.writeFieldBegin(CREDITOR_ID_FIELD_DESC);
|
| 885 |
oprot.writeI64(this.creditor_id);
|
964 |
oprot.writeI64(this.creditor_id);
|
| Line 914... |
Line 993... |
| 914 |
@Override
|
993 |
@Override
|
| 915 |
public String toString() {
|
994 |
public String toString() {
|
| 916 |
StringBuilder sb = new StringBuilder("UserSanction(");
|
995 |
StringBuilder sb = new StringBuilder("UserSanction(");
|
| 917 |
boolean first = true;
|
996 |
boolean first = true;
|
| 918 |
|
997 |
|
| - |
|
998 |
sb.append("id:");
|
| - |
|
999 |
sb.append(this.id);
|
| - |
|
1000 |
first = false;
|
| - |
|
1001 |
if (!first) sb.append(", ");
|
| 919 |
sb.append("user_id:");
|
1002 |
sb.append("user_id:");
|
| 920 |
sb.append(this.user_id);
|
1003 |
sb.append(this.user_id);
|
| 921 |
first = false;
|
1004 |
first = false;
|
| 922 |
if (!first) sb.append(", ");
|
1005 |
if (!first) sb.append(", ");
|
| 923 |
sb.append("creditor_id:");
|
1006 |
sb.append("creditor_id:");
|