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