| 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 Ticket implements TBase<Ticket._Fields>, java.io.Serializable, Cloneable, Comparable<Ticket> {
|
|
|
27 |
private static final TStruct STRUCT_DESC = new TStruct("Ticket");
|
|
|
28 |
|
|
|
29 |
private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
|
|
|
30 |
private static final TField CUSTOMER_ID_FIELD_DESC = new TField("customerId", TType.I64, (short)2);
|
| 3390 |
mandeep.dh |
31 |
private static final TField OPEN_DATE_FIELD_DESC = new TField("openDate", TType.I64, (short)3);
|
|
|
32 |
private static final TField CLOSE_DATE_FIELD_DESC = new TField("closeDate", TType.I64, (short)4);
|
|
|
33 |
private static final TField DESCRIPTION_FIELD_DESC = new TField("description", TType.STRING, (short)5);
|
|
|
34 |
private static final TField PRIORITY_FIELD_DESC = new TField("priority", TType.I32, (short)6);
|
|
|
35 |
private static final TField CATEGORY_FIELD_DESC = new TField("category", TType.I32, (short)7);
|
|
|
36 |
private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)8);
|
|
|
37 |
private static final TField ASSIGNEE_ID_FIELD_DESC = new TField("assigneeId", TType.I64, (short)9);
|
|
|
38 |
private static final TField CREATOR_ID_FIELD_DESC = new TField("creatorId", TType.I64, (short)10);
|
|
|
39 |
private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)11);
|
|
|
40 |
private static final TField AIRWAY_BILL_NO_FIELD_DESC = new TField("airwayBillNo", TType.STRING, (short)12);
|
|
|
41 |
private static final TField PRODUCT_NAME_FIELD_DESC = new TField("productName", TType.STRING, (short)13);
|
|
|
42 |
private static final TField CUSTOMER_MOBILE_NUMBER_FIELD_DESC = new TField("customerMobileNumber", TType.STRING, (short)14);
|
|
|
43 |
private static final TField CUSTOMER_EMAIL_ID_FIELD_DESC = new TField("customerEmailId", TType.STRING, (short)15);
|
|
|
44 |
private static final TField CUSTOMER_NAME_FIELD_DESC = new TField("customerName", TType.STRING, (short)16);
|
|
|
45 |
private static final TField ASSIGNEE_FIELD_DESC = new TField("assignee", TType.STRUCT, (short)17);
|
|
|
46 |
private static final TField CREATOR_FIELD_DESC = new TField("creator", TType.STRUCT, (short)18);
|
| 3028 |
mandeep.dh |
47 |
|
|
|
48 |
private long id;
|
|
|
49 |
private long customerId;
|
|
|
50 |
private long openDate;
|
|
|
51 |
private long closeDate;
|
| 3106 |
mandeep.dh |
52 |
private String description;
|
|
|
53 |
private TicketPriority priority;
|
|
|
54 |
private TicketCategory category;
|
|
|
55 |
private TicketStatus status;
|
|
|
56 |
private long assigneeId;
|
| 3028 |
mandeep.dh |
57 |
private long creatorId;
|
|
|
58 |
private long orderId;
|
|
|
59 |
private String airwayBillNo;
|
|
|
60 |
private String productName;
|
| 3390 |
mandeep.dh |
61 |
private String customerMobileNumber;
|
|
|
62 |
private String customerEmailId;
|
|
|
63 |
private String customerName;
|
|
|
64 |
private Agent assignee;
|
|
|
65 |
private Agent creator;
|
| 3028 |
mandeep.dh |
66 |
|
|
|
67 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
68 |
public enum _Fields implements TFieldIdEnum {
|
|
|
69 |
ID((short)1, "id"),
|
|
|
70 |
CUSTOMER_ID((short)2, "customerId"),
|
| 3390 |
mandeep.dh |
71 |
OPEN_DATE((short)3, "openDate"),
|
|
|
72 |
CLOSE_DATE((short)4, "closeDate"),
|
|
|
73 |
DESCRIPTION((short)5, "description"),
|
| 3106 |
mandeep.dh |
74 |
/**
|
|
|
75 |
*
|
|
|
76 |
* @see TicketPriority
|
|
|
77 |
*/
|
| 3390 |
mandeep.dh |
78 |
PRIORITY((short)6, "priority"),
|
| 3106 |
mandeep.dh |
79 |
/**
|
|
|
80 |
*
|
|
|
81 |
* @see TicketCategory
|
|
|
82 |
*/
|
| 3390 |
mandeep.dh |
83 |
CATEGORY((short)7, "category"),
|
| 3106 |
mandeep.dh |
84 |
/**
|
|
|
85 |
*
|
|
|
86 |
* @see TicketStatus
|
|
|
87 |
*/
|
| 3390 |
mandeep.dh |
88 |
STATUS((short)8, "status"),
|
|
|
89 |
ASSIGNEE_ID((short)9, "assigneeId"),
|
|
|
90 |
CREATOR_ID((short)10, "creatorId"),
|
|
|
91 |
ORDER_ID((short)11, "orderId"),
|
|
|
92 |
AIRWAY_BILL_NO((short)12, "airwayBillNo"),
|
|
|
93 |
PRODUCT_NAME((short)13, "productName"),
|
|
|
94 |
CUSTOMER_MOBILE_NUMBER((short)14, "customerMobileNumber"),
|
|
|
95 |
CUSTOMER_EMAIL_ID((short)15, "customerEmailId"),
|
|
|
96 |
CUSTOMER_NAME((short)16, "customerName"),
|
|
|
97 |
ASSIGNEE((short)17, "assignee"),
|
|
|
98 |
CREATOR((short)18, "creator");
|
| 3028 |
mandeep.dh |
99 |
|
|
|
100 |
private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
|
|
|
101 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
102 |
|
|
|
103 |
static {
|
|
|
104 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
105 |
byId.put((int)field._thriftId, field);
|
|
|
106 |
byName.put(field.getFieldName(), field);
|
|
|
107 |
}
|
|
|
108 |
}
|
|
|
109 |
|
|
|
110 |
/**
|
|
|
111 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
112 |
*/
|
|
|
113 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
114 |
return byId.get(fieldId);
|
|
|
115 |
}
|
|
|
116 |
|
|
|
117 |
/**
|
|
|
118 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
119 |
* if it is not found.
|
|
|
120 |
*/
|
|
|
121 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
122 |
_Fields fields = findByThriftId(fieldId);
|
|
|
123 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
124 |
return fields;
|
|
|
125 |
}
|
|
|
126 |
|
|
|
127 |
/**
|
|
|
128 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
129 |
*/
|
|
|
130 |
public static _Fields findByName(String name) {
|
|
|
131 |
return byName.get(name);
|
|
|
132 |
}
|
|
|
133 |
|
|
|
134 |
private final short _thriftId;
|
|
|
135 |
private final String _fieldName;
|
|
|
136 |
|
|
|
137 |
_Fields(short thriftId, String fieldName) {
|
|
|
138 |
_thriftId = thriftId;
|
|
|
139 |
_fieldName = fieldName;
|
|
|
140 |
}
|
|
|
141 |
|
|
|
142 |
public short getThriftFieldId() {
|
|
|
143 |
return _thriftId;
|
|
|
144 |
}
|
|
|
145 |
|
|
|
146 |
public String getFieldName() {
|
|
|
147 |
return _fieldName;
|
|
|
148 |
}
|
|
|
149 |
}
|
|
|
150 |
|
|
|
151 |
// isset id assignments
|
|
|
152 |
private static final int __ID_ISSET_ID = 0;
|
|
|
153 |
private static final int __CUSTOMERID_ISSET_ID = 1;
|
|
|
154 |
private static final int __OPENDATE_ISSET_ID = 2;
|
|
|
155 |
private static final int __CLOSEDATE_ISSET_ID = 3;
|
| 3106 |
mandeep.dh |
156 |
private static final int __ASSIGNEEID_ISSET_ID = 4;
|
|
|
157 |
private static final int __CREATORID_ISSET_ID = 5;
|
| 3028 |
mandeep.dh |
158 |
private static final int __ORDERID_ISSET_ID = 6;
|
|
|
159 |
private BitSet __isset_bit_vector = new BitSet(7);
|
|
|
160 |
|
|
|
161 |
public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
|
|
|
162 |
put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT,
|
|
|
163 |
new FieldValueMetaData(TType.I64)));
|
| 3269 |
mandeep.dh |
164 |
put(_Fields.CUSTOMER_ID, new FieldMetaData("customerId", TFieldRequirementType.OPTIONAL,
|
| 3028 |
mandeep.dh |
165 |
new FieldValueMetaData(TType.I64)));
|
|
|
166 |
put(_Fields.OPEN_DATE, new FieldMetaData("openDate", TFieldRequirementType.DEFAULT,
|
|
|
167 |
new FieldValueMetaData(TType.I64)));
|
| 3168 |
mandeep.dh |
168 |
put(_Fields.CLOSE_DATE, new FieldMetaData("closeDate", TFieldRequirementType.OPTIONAL,
|
| 3028 |
mandeep.dh |
169 |
new FieldValueMetaData(TType.I64)));
|
| 3269 |
mandeep.dh |
170 |
put(_Fields.DESCRIPTION, new FieldMetaData("description", TFieldRequirementType.OPTIONAL,
|
| 3028 |
mandeep.dh |
171 |
new FieldValueMetaData(TType.STRING)));
|
| 3106 |
mandeep.dh |
172 |
put(_Fields.PRIORITY, new FieldMetaData("priority", TFieldRequirementType.DEFAULT,
|
|
|
173 |
new EnumMetaData(TType.ENUM, TicketPriority.class)));
|
|
|
174 |
put(_Fields.CATEGORY, new FieldMetaData("category", TFieldRequirementType.DEFAULT,
|
|
|
175 |
new EnumMetaData(TType.ENUM, TicketCategory.class)));
|
|
|
176 |
put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT,
|
|
|
177 |
new EnumMetaData(TType.ENUM, TicketStatus.class)));
|
| 3168 |
mandeep.dh |
178 |
put(_Fields.ASSIGNEE_ID, new FieldMetaData("assigneeId", TFieldRequirementType.OPTIONAL,
|
| 3106 |
mandeep.dh |
179 |
new FieldValueMetaData(TType.I64)));
|
| 3028 |
mandeep.dh |
180 |
put(_Fields.CREATOR_ID, new FieldMetaData("creatorId", TFieldRequirementType.DEFAULT,
|
|
|
181 |
new FieldValueMetaData(TType.I64)));
|
| 3168 |
mandeep.dh |
182 |
put(_Fields.ORDER_ID, new FieldMetaData("orderId", TFieldRequirementType.OPTIONAL,
|
| 3028 |
mandeep.dh |
183 |
new FieldValueMetaData(TType.I64)));
|
| 3168 |
mandeep.dh |
184 |
put(_Fields.AIRWAY_BILL_NO, new FieldMetaData("airwayBillNo", TFieldRequirementType.OPTIONAL,
|
| 3028 |
mandeep.dh |
185 |
new FieldValueMetaData(TType.STRING)));
|
| 3168 |
mandeep.dh |
186 |
put(_Fields.PRODUCT_NAME, new FieldMetaData("productName", TFieldRequirementType.OPTIONAL,
|
| 3028 |
mandeep.dh |
187 |
new FieldValueMetaData(TType.STRING)));
|
| 3390 |
mandeep.dh |
188 |
put(_Fields.CUSTOMER_MOBILE_NUMBER, new FieldMetaData("customerMobileNumber", TFieldRequirementType.OPTIONAL,
|
|
|
189 |
new FieldValueMetaData(TType.STRING)));
|
|
|
190 |
put(_Fields.CUSTOMER_EMAIL_ID, new FieldMetaData("customerEmailId", TFieldRequirementType.OPTIONAL,
|
|
|
191 |
new FieldValueMetaData(TType.STRING)));
|
|
|
192 |
put(_Fields.CUSTOMER_NAME, new FieldMetaData("customerName", TFieldRequirementType.OPTIONAL,
|
|
|
193 |
new FieldValueMetaData(TType.STRING)));
|
|
|
194 |
put(_Fields.ASSIGNEE, new FieldMetaData("assignee", TFieldRequirementType.OPTIONAL,
|
|
|
195 |
new StructMetaData(TType.STRUCT, Agent.class)));
|
|
|
196 |
put(_Fields.CREATOR, new FieldMetaData("creator", TFieldRequirementType.OPTIONAL,
|
|
|
197 |
new StructMetaData(TType.STRUCT, Agent.class)));
|
| 3028 |
mandeep.dh |
198 |
}});
|
|
|
199 |
|
|
|
200 |
static {
|
|
|
201 |
FieldMetaData.addStructMetaDataMap(Ticket.class, metaDataMap);
|
|
|
202 |
}
|
|
|
203 |
|
|
|
204 |
public Ticket() {
|
|
|
205 |
}
|
|
|
206 |
|
|
|
207 |
public Ticket(
|
|
|
208 |
long id,
|
|
|
209 |
long openDate,
|
| 3106 |
mandeep.dh |
210 |
TicketPriority priority,
|
|
|
211 |
TicketCategory category,
|
|
|
212 |
TicketStatus status,
|
| 3168 |
mandeep.dh |
213 |
long creatorId)
|
| 3028 |
mandeep.dh |
214 |
{
|
|
|
215 |
this();
|
|
|
216 |
this.id = id;
|
|
|
217 |
setIdIsSet(true);
|
|
|
218 |
this.openDate = openDate;
|
|
|
219 |
setOpenDateIsSet(true);
|
| 3106 |
mandeep.dh |
220 |
this.priority = priority;
|
|
|
221 |
this.category = category;
|
|
|
222 |
this.status = status;
|
| 3028 |
mandeep.dh |
223 |
this.creatorId = creatorId;
|
|
|
224 |
setCreatorIdIsSet(true);
|
|
|
225 |
}
|
|
|
226 |
|
|
|
227 |
/**
|
|
|
228 |
* Performs a deep copy on <i>other</i>.
|
|
|
229 |
*/
|
|
|
230 |
public Ticket(Ticket other) {
|
|
|
231 |
__isset_bit_vector.clear();
|
|
|
232 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
233 |
this.id = other.id;
|
|
|
234 |
this.customerId = other.customerId;
|
|
|
235 |
this.openDate = other.openDate;
|
|
|
236 |
this.closeDate = other.closeDate;
|
| 3106 |
mandeep.dh |
237 |
if (other.isSetDescription()) {
|
|
|
238 |
this.description = other.description;
|
| 3028 |
mandeep.dh |
239 |
}
|
| 3106 |
mandeep.dh |
240 |
if (other.isSetPriority()) {
|
|
|
241 |
this.priority = other.priority;
|
|
|
242 |
}
|
|
|
243 |
if (other.isSetCategory()) {
|
|
|
244 |
this.category = other.category;
|
|
|
245 |
}
|
|
|
246 |
if (other.isSetStatus()) {
|
|
|
247 |
this.status = other.status;
|
|
|
248 |
}
|
|
|
249 |
this.assigneeId = other.assigneeId;
|
| 3028 |
mandeep.dh |
250 |
this.creatorId = other.creatorId;
|
|
|
251 |
this.orderId = other.orderId;
|
|
|
252 |
if (other.isSetAirwayBillNo()) {
|
|
|
253 |
this.airwayBillNo = other.airwayBillNo;
|
|
|
254 |
}
|
|
|
255 |
if (other.isSetProductName()) {
|
|
|
256 |
this.productName = other.productName;
|
|
|
257 |
}
|
| 3390 |
mandeep.dh |
258 |
if (other.isSetCustomerMobileNumber()) {
|
|
|
259 |
this.customerMobileNumber = other.customerMobileNumber;
|
|
|
260 |
}
|
|
|
261 |
if (other.isSetCustomerEmailId()) {
|
|
|
262 |
this.customerEmailId = other.customerEmailId;
|
|
|
263 |
}
|
|
|
264 |
if (other.isSetCustomerName()) {
|
|
|
265 |
this.customerName = other.customerName;
|
|
|
266 |
}
|
|
|
267 |
if (other.isSetAssignee()) {
|
|
|
268 |
this.assignee = new Agent(other.assignee);
|
|
|
269 |
}
|
|
|
270 |
if (other.isSetCreator()) {
|
|
|
271 |
this.creator = new Agent(other.creator);
|
|
|
272 |
}
|
| 3028 |
mandeep.dh |
273 |
}
|
|
|
274 |
|
|
|
275 |
public Ticket deepCopy() {
|
|
|
276 |
return new Ticket(this);
|
|
|
277 |
}
|
|
|
278 |
|
|
|
279 |
@Deprecated
|
|
|
280 |
public Ticket clone() {
|
|
|
281 |
return new Ticket(this);
|
|
|
282 |
}
|
|
|
283 |
|
|
|
284 |
public long getId() {
|
|
|
285 |
return this.id;
|
|
|
286 |
}
|
|
|
287 |
|
|
|
288 |
public Ticket setId(long id) {
|
|
|
289 |
this.id = id;
|
|
|
290 |
setIdIsSet(true);
|
|
|
291 |
return this;
|
|
|
292 |
}
|
|
|
293 |
|
|
|
294 |
public void unsetId() {
|
|
|
295 |
__isset_bit_vector.clear(__ID_ISSET_ID);
|
|
|
296 |
}
|
|
|
297 |
|
|
|
298 |
/** Returns true if field id is set (has been asigned a value) and false otherwise */
|
|
|
299 |
public boolean isSetId() {
|
|
|
300 |
return __isset_bit_vector.get(__ID_ISSET_ID);
|
|
|
301 |
}
|
|
|
302 |
|
|
|
303 |
public void setIdIsSet(boolean value) {
|
|
|
304 |
__isset_bit_vector.set(__ID_ISSET_ID, value);
|
|
|
305 |
}
|
|
|
306 |
|
|
|
307 |
public long getCustomerId() {
|
|
|
308 |
return this.customerId;
|
|
|
309 |
}
|
|
|
310 |
|
|
|
311 |
public Ticket setCustomerId(long customerId) {
|
|
|
312 |
this.customerId = customerId;
|
|
|
313 |
setCustomerIdIsSet(true);
|
|
|
314 |
return this;
|
|
|
315 |
}
|
|
|
316 |
|
|
|
317 |
public void unsetCustomerId() {
|
|
|
318 |
__isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);
|
|
|
319 |
}
|
|
|
320 |
|
|
|
321 |
/** Returns true if field customerId is set (has been asigned a value) and false otherwise */
|
|
|
322 |
public boolean isSetCustomerId() {
|
|
|
323 |
return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);
|
|
|
324 |
}
|
|
|
325 |
|
|
|
326 |
public void setCustomerIdIsSet(boolean value) {
|
|
|
327 |
__isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);
|
|
|
328 |
}
|
|
|
329 |
|
|
|
330 |
public long getOpenDate() {
|
|
|
331 |
return this.openDate;
|
|
|
332 |
}
|
|
|
333 |
|
|
|
334 |
public Ticket setOpenDate(long openDate) {
|
|
|
335 |
this.openDate = openDate;
|
|
|
336 |
setOpenDateIsSet(true);
|
|
|
337 |
return this;
|
|
|
338 |
}
|
|
|
339 |
|
|
|
340 |
public void unsetOpenDate() {
|
|
|
341 |
__isset_bit_vector.clear(__OPENDATE_ISSET_ID);
|
|
|
342 |
}
|
|
|
343 |
|
|
|
344 |
/** Returns true if field openDate is set (has been asigned a value) and false otherwise */
|
|
|
345 |
public boolean isSetOpenDate() {
|
|
|
346 |
return __isset_bit_vector.get(__OPENDATE_ISSET_ID);
|
|
|
347 |
}
|
|
|
348 |
|
|
|
349 |
public void setOpenDateIsSet(boolean value) {
|
|
|
350 |
__isset_bit_vector.set(__OPENDATE_ISSET_ID, value);
|
|
|
351 |
}
|
|
|
352 |
|
|
|
353 |
public long getCloseDate() {
|
|
|
354 |
return this.closeDate;
|
|
|
355 |
}
|
|
|
356 |
|
|
|
357 |
public Ticket setCloseDate(long closeDate) {
|
|
|
358 |
this.closeDate = closeDate;
|
|
|
359 |
setCloseDateIsSet(true);
|
|
|
360 |
return this;
|
|
|
361 |
}
|
|
|
362 |
|
|
|
363 |
public void unsetCloseDate() {
|
|
|
364 |
__isset_bit_vector.clear(__CLOSEDATE_ISSET_ID);
|
|
|
365 |
}
|
|
|
366 |
|
|
|
367 |
/** Returns true if field closeDate is set (has been asigned a value) and false otherwise */
|
|
|
368 |
public boolean isSetCloseDate() {
|
|
|
369 |
return __isset_bit_vector.get(__CLOSEDATE_ISSET_ID);
|
|
|
370 |
}
|
|
|
371 |
|
|
|
372 |
public void setCloseDateIsSet(boolean value) {
|
|
|
373 |
__isset_bit_vector.set(__CLOSEDATE_ISSET_ID, value);
|
|
|
374 |
}
|
|
|
375 |
|
| 3106 |
mandeep.dh |
376 |
public String getDescription() {
|
|
|
377 |
return this.description;
|
| 3028 |
mandeep.dh |
378 |
}
|
|
|
379 |
|
| 3106 |
mandeep.dh |
380 |
public Ticket setDescription(String description) {
|
|
|
381 |
this.description = description;
|
| 3028 |
mandeep.dh |
382 |
return this;
|
|
|
383 |
}
|
|
|
384 |
|
| 3106 |
mandeep.dh |
385 |
public void unsetDescription() {
|
|
|
386 |
this.description = null;
|
| 3028 |
mandeep.dh |
387 |
}
|
|
|
388 |
|
| 3106 |
mandeep.dh |
389 |
/** Returns true if field description is set (has been asigned a value) and false otherwise */
|
|
|
390 |
public boolean isSetDescription() {
|
|
|
391 |
return this.description != null;
|
| 3028 |
mandeep.dh |
392 |
}
|
|
|
393 |
|
| 3106 |
mandeep.dh |
394 |
public void setDescriptionIsSet(boolean value) {
|
| 3028 |
mandeep.dh |
395 |
if (!value) {
|
| 3106 |
mandeep.dh |
396 |
this.description = null;
|
| 3028 |
mandeep.dh |
397 |
}
|
|
|
398 |
}
|
|
|
399 |
|
| 3106 |
mandeep.dh |
400 |
/**
|
|
|
401 |
*
|
|
|
402 |
* @see TicketPriority
|
|
|
403 |
*/
|
|
|
404 |
public TicketPriority getPriority() {
|
|
|
405 |
return this.priority;
|
|
|
406 |
}
|
|
|
407 |
|
|
|
408 |
/**
|
|
|
409 |
*
|
|
|
410 |
* @see TicketPriority
|
|
|
411 |
*/
|
|
|
412 |
public Ticket setPriority(TicketPriority priority) {
|
|
|
413 |
this.priority = priority;
|
|
|
414 |
return this;
|
|
|
415 |
}
|
|
|
416 |
|
|
|
417 |
public void unsetPriority() {
|
|
|
418 |
this.priority = null;
|
|
|
419 |
}
|
|
|
420 |
|
|
|
421 |
/** Returns true if field priority is set (has been asigned a value) and false otherwise */
|
|
|
422 |
public boolean isSetPriority() {
|
|
|
423 |
return this.priority != null;
|
|
|
424 |
}
|
|
|
425 |
|
|
|
426 |
public void setPriorityIsSet(boolean value) {
|
|
|
427 |
if (!value) {
|
|
|
428 |
this.priority = null;
|
|
|
429 |
}
|
|
|
430 |
}
|
|
|
431 |
|
|
|
432 |
/**
|
|
|
433 |
*
|
|
|
434 |
* @see TicketCategory
|
|
|
435 |
*/
|
|
|
436 |
public TicketCategory getCategory() {
|
|
|
437 |
return this.category;
|
|
|
438 |
}
|
|
|
439 |
|
|
|
440 |
/**
|
|
|
441 |
*
|
|
|
442 |
* @see TicketCategory
|
|
|
443 |
*/
|
|
|
444 |
public Ticket setCategory(TicketCategory category) {
|
|
|
445 |
this.category = category;
|
|
|
446 |
return this;
|
|
|
447 |
}
|
|
|
448 |
|
|
|
449 |
public void unsetCategory() {
|
|
|
450 |
this.category = null;
|
|
|
451 |
}
|
|
|
452 |
|
|
|
453 |
/** Returns true if field category is set (has been asigned a value) and false otherwise */
|
|
|
454 |
public boolean isSetCategory() {
|
|
|
455 |
return this.category != null;
|
|
|
456 |
}
|
|
|
457 |
|
|
|
458 |
public void setCategoryIsSet(boolean value) {
|
|
|
459 |
if (!value) {
|
|
|
460 |
this.category = null;
|
|
|
461 |
}
|
|
|
462 |
}
|
|
|
463 |
|
|
|
464 |
/**
|
|
|
465 |
*
|
|
|
466 |
* @see TicketStatus
|
|
|
467 |
*/
|
|
|
468 |
public TicketStatus getStatus() {
|
|
|
469 |
return this.status;
|
|
|
470 |
}
|
|
|
471 |
|
|
|
472 |
/**
|
|
|
473 |
*
|
|
|
474 |
* @see TicketStatus
|
|
|
475 |
*/
|
|
|
476 |
public Ticket setStatus(TicketStatus status) {
|
|
|
477 |
this.status = status;
|
|
|
478 |
return this;
|
|
|
479 |
}
|
|
|
480 |
|
|
|
481 |
public void unsetStatus() {
|
|
|
482 |
this.status = null;
|
|
|
483 |
}
|
|
|
484 |
|
|
|
485 |
/** Returns true if field status is set (has been asigned a value) and false otherwise */
|
|
|
486 |
public boolean isSetStatus() {
|
|
|
487 |
return this.status != null;
|
|
|
488 |
}
|
|
|
489 |
|
|
|
490 |
public void setStatusIsSet(boolean value) {
|
|
|
491 |
if (!value) {
|
|
|
492 |
this.status = null;
|
|
|
493 |
}
|
|
|
494 |
}
|
|
|
495 |
|
|
|
496 |
public long getAssigneeId() {
|
|
|
497 |
return this.assigneeId;
|
|
|
498 |
}
|
|
|
499 |
|
|
|
500 |
public Ticket setAssigneeId(long assigneeId) {
|
|
|
501 |
this.assigneeId = assigneeId;
|
|
|
502 |
setAssigneeIdIsSet(true);
|
|
|
503 |
return this;
|
|
|
504 |
}
|
|
|
505 |
|
|
|
506 |
public void unsetAssigneeId() {
|
|
|
507 |
__isset_bit_vector.clear(__ASSIGNEEID_ISSET_ID);
|
|
|
508 |
}
|
|
|
509 |
|
|
|
510 |
/** Returns true if field assigneeId is set (has been asigned a value) and false otherwise */
|
|
|
511 |
public boolean isSetAssigneeId() {
|
|
|
512 |
return __isset_bit_vector.get(__ASSIGNEEID_ISSET_ID);
|
|
|
513 |
}
|
|
|
514 |
|
|
|
515 |
public void setAssigneeIdIsSet(boolean value) {
|
|
|
516 |
__isset_bit_vector.set(__ASSIGNEEID_ISSET_ID, value);
|
|
|
517 |
}
|
|
|
518 |
|
| 3028 |
mandeep.dh |
519 |
public long getCreatorId() {
|
|
|
520 |
return this.creatorId;
|
|
|
521 |
}
|
|
|
522 |
|
|
|
523 |
public Ticket setCreatorId(long creatorId) {
|
|
|
524 |
this.creatorId = creatorId;
|
|
|
525 |
setCreatorIdIsSet(true);
|
|
|
526 |
return this;
|
|
|
527 |
}
|
|
|
528 |
|
|
|
529 |
public void unsetCreatorId() {
|
|
|
530 |
__isset_bit_vector.clear(__CREATORID_ISSET_ID);
|
|
|
531 |
}
|
|
|
532 |
|
|
|
533 |
/** Returns true if field creatorId is set (has been asigned a value) and false otherwise */
|
|
|
534 |
public boolean isSetCreatorId() {
|
|
|
535 |
return __isset_bit_vector.get(__CREATORID_ISSET_ID);
|
|
|
536 |
}
|
|
|
537 |
|
|
|
538 |
public void setCreatorIdIsSet(boolean value) {
|
|
|
539 |
__isset_bit_vector.set(__CREATORID_ISSET_ID, value);
|
|
|
540 |
}
|
|
|
541 |
|
|
|
542 |
public long getOrderId() {
|
|
|
543 |
return this.orderId;
|
|
|
544 |
}
|
|
|
545 |
|
|
|
546 |
public Ticket setOrderId(long orderId) {
|
|
|
547 |
this.orderId = orderId;
|
|
|
548 |
setOrderIdIsSet(true);
|
|
|
549 |
return this;
|
|
|
550 |
}
|
|
|
551 |
|
|
|
552 |
public void unsetOrderId() {
|
|
|
553 |
__isset_bit_vector.clear(__ORDERID_ISSET_ID);
|
|
|
554 |
}
|
|
|
555 |
|
|
|
556 |
/** Returns true if field orderId is set (has been asigned a value) and false otherwise */
|
|
|
557 |
public boolean isSetOrderId() {
|
|
|
558 |
return __isset_bit_vector.get(__ORDERID_ISSET_ID);
|
|
|
559 |
}
|
|
|
560 |
|
|
|
561 |
public void setOrderIdIsSet(boolean value) {
|
|
|
562 |
__isset_bit_vector.set(__ORDERID_ISSET_ID, value);
|
|
|
563 |
}
|
|
|
564 |
|
|
|
565 |
public String getAirwayBillNo() {
|
|
|
566 |
return this.airwayBillNo;
|
|
|
567 |
}
|
|
|
568 |
|
|
|
569 |
public Ticket setAirwayBillNo(String airwayBillNo) {
|
|
|
570 |
this.airwayBillNo = airwayBillNo;
|
|
|
571 |
return this;
|
|
|
572 |
}
|
|
|
573 |
|
|
|
574 |
public void unsetAirwayBillNo() {
|
|
|
575 |
this.airwayBillNo = null;
|
|
|
576 |
}
|
|
|
577 |
|
|
|
578 |
/** Returns true if field airwayBillNo is set (has been asigned a value) and false otherwise */
|
|
|
579 |
public boolean isSetAirwayBillNo() {
|
|
|
580 |
return this.airwayBillNo != null;
|
|
|
581 |
}
|
|
|
582 |
|
|
|
583 |
public void setAirwayBillNoIsSet(boolean value) {
|
|
|
584 |
if (!value) {
|
|
|
585 |
this.airwayBillNo = null;
|
|
|
586 |
}
|
|
|
587 |
}
|
|
|
588 |
|
|
|
589 |
public String getProductName() {
|
|
|
590 |
return this.productName;
|
|
|
591 |
}
|
|
|
592 |
|
|
|
593 |
public Ticket setProductName(String productName) {
|
|
|
594 |
this.productName = productName;
|
|
|
595 |
return this;
|
|
|
596 |
}
|
|
|
597 |
|
|
|
598 |
public void unsetProductName() {
|
|
|
599 |
this.productName = null;
|
|
|
600 |
}
|
|
|
601 |
|
|
|
602 |
/** Returns true if field productName is set (has been asigned a value) and false otherwise */
|
|
|
603 |
public boolean isSetProductName() {
|
|
|
604 |
return this.productName != null;
|
|
|
605 |
}
|
|
|
606 |
|
|
|
607 |
public void setProductNameIsSet(boolean value) {
|
|
|
608 |
if (!value) {
|
|
|
609 |
this.productName = null;
|
|
|
610 |
}
|
|
|
611 |
}
|
|
|
612 |
|
| 3390 |
mandeep.dh |
613 |
public String getCustomerMobileNumber() {
|
|
|
614 |
return this.customerMobileNumber;
|
|
|
615 |
}
|
|
|
616 |
|
|
|
617 |
public Ticket setCustomerMobileNumber(String customerMobileNumber) {
|
|
|
618 |
this.customerMobileNumber = customerMobileNumber;
|
|
|
619 |
return this;
|
|
|
620 |
}
|
|
|
621 |
|
|
|
622 |
public void unsetCustomerMobileNumber() {
|
|
|
623 |
this.customerMobileNumber = null;
|
|
|
624 |
}
|
|
|
625 |
|
|
|
626 |
/** Returns true if field customerMobileNumber is set (has been asigned a value) and false otherwise */
|
|
|
627 |
public boolean isSetCustomerMobileNumber() {
|
|
|
628 |
return this.customerMobileNumber != null;
|
|
|
629 |
}
|
|
|
630 |
|
|
|
631 |
public void setCustomerMobileNumberIsSet(boolean value) {
|
|
|
632 |
if (!value) {
|
|
|
633 |
this.customerMobileNumber = null;
|
|
|
634 |
}
|
|
|
635 |
}
|
|
|
636 |
|
|
|
637 |
public String getCustomerEmailId() {
|
|
|
638 |
return this.customerEmailId;
|
|
|
639 |
}
|
|
|
640 |
|
|
|
641 |
public Ticket setCustomerEmailId(String customerEmailId) {
|
|
|
642 |
this.customerEmailId = customerEmailId;
|
|
|
643 |
return this;
|
|
|
644 |
}
|
|
|
645 |
|
|
|
646 |
public void unsetCustomerEmailId() {
|
|
|
647 |
this.customerEmailId = null;
|
|
|
648 |
}
|
|
|
649 |
|
|
|
650 |
/** Returns true if field customerEmailId is set (has been asigned a value) and false otherwise */
|
|
|
651 |
public boolean isSetCustomerEmailId() {
|
|
|
652 |
return this.customerEmailId != null;
|
|
|
653 |
}
|
|
|
654 |
|
|
|
655 |
public void setCustomerEmailIdIsSet(boolean value) {
|
|
|
656 |
if (!value) {
|
|
|
657 |
this.customerEmailId = null;
|
|
|
658 |
}
|
|
|
659 |
}
|
|
|
660 |
|
|
|
661 |
public String getCustomerName() {
|
|
|
662 |
return this.customerName;
|
|
|
663 |
}
|
|
|
664 |
|
|
|
665 |
public Ticket setCustomerName(String customerName) {
|
|
|
666 |
this.customerName = customerName;
|
|
|
667 |
return this;
|
|
|
668 |
}
|
|
|
669 |
|
|
|
670 |
public void unsetCustomerName() {
|
|
|
671 |
this.customerName = null;
|
|
|
672 |
}
|
|
|
673 |
|
|
|
674 |
/** Returns true if field customerName is set (has been asigned a value) and false otherwise */
|
|
|
675 |
public boolean isSetCustomerName() {
|
|
|
676 |
return this.customerName != null;
|
|
|
677 |
}
|
|
|
678 |
|
|
|
679 |
public void setCustomerNameIsSet(boolean value) {
|
|
|
680 |
if (!value) {
|
|
|
681 |
this.customerName = null;
|
|
|
682 |
}
|
|
|
683 |
}
|
|
|
684 |
|
|
|
685 |
public Agent getAssignee() {
|
|
|
686 |
return this.assignee;
|
|
|
687 |
}
|
|
|
688 |
|
|
|
689 |
public Ticket setAssignee(Agent assignee) {
|
|
|
690 |
this.assignee = assignee;
|
|
|
691 |
return this;
|
|
|
692 |
}
|
|
|
693 |
|
|
|
694 |
public void unsetAssignee() {
|
|
|
695 |
this.assignee = null;
|
|
|
696 |
}
|
|
|
697 |
|
|
|
698 |
/** Returns true if field assignee is set (has been asigned a value) and false otherwise */
|
|
|
699 |
public boolean isSetAssignee() {
|
|
|
700 |
return this.assignee != null;
|
|
|
701 |
}
|
|
|
702 |
|
|
|
703 |
public void setAssigneeIsSet(boolean value) {
|
|
|
704 |
if (!value) {
|
|
|
705 |
this.assignee = null;
|
|
|
706 |
}
|
|
|
707 |
}
|
|
|
708 |
|
|
|
709 |
public Agent getCreator() {
|
|
|
710 |
return this.creator;
|
|
|
711 |
}
|
|
|
712 |
|
|
|
713 |
public Ticket setCreator(Agent creator) {
|
|
|
714 |
this.creator = creator;
|
|
|
715 |
return this;
|
|
|
716 |
}
|
|
|
717 |
|
|
|
718 |
public void unsetCreator() {
|
|
|
719 |
this.creator = null;
|
|
|
720 |
}
|
|
|
721 |
|
|
|
722 |
/** Returns true if field creator is set (has been asigned a value) and false otherwise */
|
|
|
723 |
public boolean isSetCreator() {
|
|
|
724 |
return this.creator != null;
|
|
|
725 |
}
|
|
|
726 |
|
|
|
727 |
public void setCreatorIsSet(boolean value) {
|
|
|
728 |
if (!value) {
|
|
|
729 |
this.creator = null;
|
|
|
730 |
}
|
|
|
731 |
}
|
|
|
732 |
|
| 3028 |
mandeep.dh |
733 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
734 |
switch (field) {
|
|
|
735 |
case ID:
|
|
|
736 |
if (value == null) {
|
|
|
737 |
unsetId();
|
|
|
738 |
} else {
|
|
|
739 |
setId((Long)value);
|
|
|
740 |
}
|
|
|
741 |
break;
|
|
|
742 |
|
|
|
743 |
case CUSTOMER_ID:
|
|
|
744 |
if (value == null) {
|
|
|
745 |
unsetCustomerId();
|
|
|
746 |
} else {
|
|
|
747 |
setCustomerId((Long)value);
|
|
|
748 |
}
|
|
|
749 |
break;
|
|
|
750 |
|
|
|
751 |
case OPEN_DATE:
|
|
|
752 |
if (value == null) {
|
|
|
753 |
unsetOpenDate();
|
|
|
754 |
} else {
|
|
|
755 |
setOpenDate((Long)value);
|
|
|
756 |
}
|
|
|
757 |
break;
|
|
|
758 |
|
|
|
759 |
case CLOSE_DATE:
|
|
|
760 |
if (value == null) {
|
|
|
761 |
unsetCloseDate();
|
|
|
762 |
} else {
|
|
|
763 |
setCloseDate((Long)value);
|
|
|
764 |
}
|
|
|
765 |
break;
|
|
|
766 |
|
| 3106 |
mandeep.dh |
767 |
case DESCRIPTION:
|
| 3028 |
mandeep.dh |
768 |
if (value == null) {
|
| 3106 |
mandeep.dh |
769 |
unsetDescription();
|
| 3028 |
mandeep.dh |
770 |
} else {
|
| 3106 |
mandeep.dh |
771 |
setDescription((String)value);
|
| 3028 |
mandeep.dh |
772 |
}
|
|
|
773 |
break;
|
|
|
774 |
|
| 3106 |
mandeep.dh |
775 |
case PRIORITY:
|
| 3028 |
mandeep.dh |
776 |
if (value == null) {
|
| 3106 |
mandeep.dh |
777 |
unsetPriority();
|
| 3028 |
mandeep.dh |
778 |
} else {
|
| 3106 |
mandeep.dh |
779 |
setPriority((TicketPriority)value);
|
| 3028 |
mandeep.dh |
780 |
}
|
|
|
781 |
break;
|
|
|
782 |
|
| 3106 |
mandeep.dh |
783 |
case CATEGORY:
|
| 3028 |
mandeep.dh |
784 |
if (value == null) {
|
| 3106 |
mandeep.dh |
785 |
unsetCategory();
|
| 3028 |
mandeep.dh |
786 |
} else {
|
| 3106 |
mandeep.dh |
787 |
setCategory((TicketCategory)value);
|
| 3028 |
mandeep.dh |
788 |
}
|
|
|
789 |
break;
|
|
|
790 |
|
| 3106 |
mandeep.dh |
791 |
case STATUS:
|
|
|
792 |
if (value == null) {
|
|
|
793 |
unsetStatus();
|
|
|
794 |
} else {
|
|
|
795 |
setStatus((TicketStatus)value);
|
|
|
796 |
}
|
|
|
797 |
break;
|
|
|
798 |
|
|
|
799 |
case ASSIGNEE_ID:
|
|
|
800 |
if (value == null) {
|
|
|
801 |
unsetAssigneeId();
|
|
|
802 |
} else {
|
|
|
803 |
setAssigneeId((Long)value);
|
|
|
804 |
}
|
|
|
805 |
break;
|
|
|
806 |
|
|
|
807 |
case CREATOR_ID:
|
|
|
808 |
if (value == null) {
|
|
|
809 |
unsetCreatorId();
|
|
|
810 |
} else {
|
|
|
811 |
setCreatorId((Long)value);
|
|
|
812 |
}
|
|
|
813 |
break;
|
|
|
814 |
|
| 3028 |
mandeep.dh |
815 |
case ORDER_ID:
|
|
|
816 |
if (value == null) {
|
|
|
817 |
unsetOrderId();
|
|
|
818 |
} else {
|
|
|
819 |
setOrderId((Long)value);
|
|
|
820 |
}
|
|
|
821 |
break;
|
|
|
822 |
|
|
|
823 |
case AIRWAY_BILL_NO:
|
|
|
824 |
if (value == null) {
|
|
|
825 |
unsetAirwayBillNo();
|
|
|
826 |
} else {
|
|
|
827 |
setAirwayBillNo((String)value);
|
|
|
828 |
}
|
|
|
829 |
break;
|
|
|
830 |
|
|
|
831 |
case PRODUCT_NAME:
|
|
|
832 |
if (value == null) {
|
|
|
833 |
unsetProductName();
|
|
|
834 |
} else {
|
|
|
835 |
setProductName((String)value);
|
|
|
836 |
}
|
|
|
837 |
break;
|
|
|
838 |
|
| 3390 |
mandeep.dh |
839 |
case CUSTOMER_MOBILE_NUMBER:
|
|
|
840 |
if (value == null) {
|
|
|
841 |
unsetCustomerMobileNumber();
|
|
|
842 |
} else {
|
|
|
843 |
setCustomerMobileNumber((String)value);
|
|
|
844 |
}
|
|
|
845 |
break;
|
|
|
846 |
|
|
|
847 |
case CUSTOMER_EMAIL_ID:
|
|
|
848 |
if (value == null) {
|
|
|
849 |
unsetCustomerEmailId();
|
|
|
850 |
} else {
|
|
|
851 |
setCustomerEmailId((String)value);
|
|
|
852 |
}
|
|
|
853 |
break;
|
|
|
854 |
|
|
|
855 |
case CUSTOMER_NAME:
|
|
|
856 |
if (value == null) {
|
|
|
857 |
unsetCustomerName();
|
|
|
858 |
} else {
|
|
|
859 |
setCustomerName((String)value);
|
|
|
860 |
}
|
|
|
861 |
break;
|
|
|
862 |
|
|
|
863 |
case ASSIGNEE:
|
|
|
864 |
if (value == null) {
|
|
|
865 |
unsetAssignee();
|
|
|
866 |
} else {
|
|
|
867 |
setAssignee((Agent)value);
|
|
|
868 |
}
|
|
|
869 |
break;
|
|
|
870 |
|
|
|
871 |
case CREATOR:
|
|
|
872 |
if (value == null) {
|
|
|
873 |
unsetCreator();
|
|
|
874 |
} else {
|
|
|
875 |
setCreator((Agent)value);
|
|
|
876 |
}
|
|
|
877 |
break;
|
|
|
878 |
|
| 3028 |
mandeep.dh |
879 |
}
|
|
|
880 |
}
|
|
|
881 |
|
|
|
882 |
public void setFieldValue(int fieldID, Object value) {
|
|
|
883 |
setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
|
|
|
884 |
}
|
|
|
885 |
|
|
|
886 |
public Object getFieldValue(_Fields field) {
|
|
|
887 |
switch (field) {
|
|
|
888 |
case ID:
|
|
|
889 |
return new Long(getId());
|
|
|
890 |
|
|
|
891 |
case CUSTOMER_ID:
|
|
|
892 |
return new Long(getCustomerId());
|
|
|
893 |
|
|
|
894 |
case OPEN_DATE:
|
|
|
895 |
return new Long(getOpenDate());
|
|
|
896 |
|
|
|
897 |
case CLOSE_DATE:
|
|
|
898 |
return new Long(getCloseDate());
|
|
|
899 |
|
| 3106 |
mandeep.dh |
900 |
case DESCRIPTION:
|
|
|
901 |
return getDescription();
|
| 3028 |
mandeep.dh |
902 |
|
| 3106 |
mandeep.dh |
903 |
case PRIORITY:
|
|
|
904 |
return getPriority();
|
|
|
905 |
|
|
|
906 |
case CATEGORY:
|
|
|
907 |
return getCategory();
|
|
|
908 |
|
|
|
909 |
case STATUS:
|
|
|
910 |
return getStatus();
|
|
|
911 |
|
|
|
912 |
case ASSIGNEE_ID:
|
|
|
913 |
return new Long(getAssigneeId());
|
|
|
914 |
|
| 3028 |
mandeep.dh |
915 |
case CREATOR_ID:
|
|
|
916 |
return new Long(getCreatorId());
|
|
|
917 |
|
|
|
918 |
case ORDER_ID:
|
|
|
919 |
return new Long(getOrderId());
|
|
|
920 |
|
|
|
921 |
case AIRWAY_BILL_NO:
|
|
|
922 |
return getAirwayBillNo();
|
|
|
923 |
|
|
|
924 |
case PRODUCT_NAME:
|
|
|
925 |
return getProductName();
|
|
|
926 |
|
| 3390 |
mandeep.dh |
927 |
case CUSTOMER_MOBILE_NUMBER:
|
|
|
928 |
return getCustomerMobileNumber();
|
|
|
929 |
|
|
|
930 |
case CUSTOMER_EMAIL_ID:
|
|
|
931 |
return getCustomerEmailId();
|
|
|
932 |
|
|
|
933 |
case CUSTOMER_NAME:
|
|
|
934 |
return getCustomerName();
|
|
|
935 |
|
|
|
936 |
case ASSIGNEE:
|
|
|
937 |
return getAssignee();
|
|
|
938 |
|
|
|
939 |
case CREATOR:
|
|
|
940 |
return getCreator();
|
|
|
941 |
|
| 3028 |
mandeep.dh |
942 |
}
|
|
|
943 |
throw new IllegalStateException();
|
|
|
944 |
}
|
|
|
945 |
|
|
|
946 |
public Object getFieldValue(int fieldId) {
|
|
|
947 |
return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
|
|
|
948 |
}
|
|
|
949 |
|
|
|
950 |
/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
|
|
|
951 |
public boolean isSet(_Fields field) {
|
|
|
952 |
switch (field) {
|
|
|
953 |
case ID:
|
|
|
954 |
return isSetId();
|
|
|
955 |
case CUSTOMER_ID:
|
|
|
956 |
return isSetCustomerId();
|
|
|
957 |
case OPEN_DATE:
|
|
|
958 |
return isSetOpenDate();
|
|
|
959 |
case CLOSE_DATE:
|
|
|
960 |
return isSetCloseDate();
|
| 3106 |
mandeep.dh |
961 |
case DESCRIPTION:
|
|
|
962 |
return isSetDescription();
|
|
|
963 |
case PRIORITY:
|
|
|
964 |
return isSetPriority();
|
|
|
965 |
case CATEGORY:
|
|
|
966 |
return isSetCategory();
|
|
|
967 |
case STATUS:
|
|
|
968 |
return isSetStatus();
|
|
|
969 |
case ASSIGNEE_ID:
|
|
|
970 |
return isSetAssigneeId();
|
| 3028 |
mandeep.dh |
971 |
case CREATOR_ID:
|
|
|
972 |
return isSetCreatorId();
|
|
|
973 |
case ORDER_ID:
|
|
|
974 |
return isSetOrderId();
|
|
|
975 |
case AIRWAY_BILL_NO:
|
|
|
976 |
return isSetAirwayBillNo();
|
|
|
977 |
case PRODUCT_NAME:
|
|
|
978 |
return isSetProductName();
|
| 3390 |
mandeep.dh |
979 |
case CUSTOMER_MOBILE_NUMBER:
|
|
|
980 |
return isSetCustomerMobileNumber();
|
|
|
981 |
case CUSTOMER_EMAIL_ID:
|
|
|
982 |
return isSetCustomerEmailId();
|
|
|
983 |
case CUSTOMER_NAME:
|
|
|
984 |
return isSetCustomerName();
|
|
|
985 |
case ASSIGNEE:
|
|
|
986 |
return isSetAssignee();
|
|
|
987 |
case CREATOR:
|
|
|
988 |
return isSetCreator();
|
| 3028 |
mandeep.dh |
989 |
}
|
|
|
990 |
throw new IllegalStateException();
|
|
|
991 |
}
|
|
|
992 |
|
|
|
993 |
public boolean isSet(int fieldID) {
|
|
|
994 |
return isSet(_Fields.findByThriftIdOrThrow(fieldID));
|
|
|
995 |
}
|
|
|
996 |
|
|
|
997 |
@Override
|
|
|
998 |
public boolean equals(Object that) {
|
|
|
999 |
if (that == null)
|
|
|
1000 |
return false;
|
|
|
1001 |
if (that instanceof Ticket)
|
|
|
1002 |
return this.equals((Ticket)that);
|
|
|
1003 |
return false;
|
|
|
1004 |
}
|
|
|
1005 |
|
|
|
1006 |
public boolean equals(Ticket that) {
|
|
|
1007 |
if (that == null)
|
|
|
1008 |
return false;
|
|
|
1009 |
|
|
|
1010 |
boolean this_present_id = true;
|
|
|
1011 |
boolean that_present_id = true;
|
|
|
1012 |
if (this_present_id || that_present_id) {
|
|
|
1013 |
if (!(this_present_id && that_present_id))
|
|
|
1014 |
return false;
|
|
|
1015 |
if (this.id != that.id)
|
|
|
1016 |
return false;
|
|
|
1017 |
}
|
|
|
1018 |
|
| 3269 |
mandeep.dh |
1019 |
boolean this_present_customerId = true && this.isSetCustomerId();
|
|
|
1020 |
boolean that_present_customerId = true && that.isSetCustomerId();
|
| 3028 |
mandeep.dh |
1021 |
if (this_present_customerId || that_present_customerId) {
|
|
|
1022 |
if (!(this_present_customerId && that_present_customerId))
|
|
|
1023 |
return false;
|
|
|
1024 |
if (this.customerId != that.customerId)
|
|
|
1025 |
return false;
|
|
|
1026 |
}
|
|
|
1027 |
|
|
|
1028 |
boolean this_present_openDate = true;
|
|
|
1029 |
boolean that_present_openDate = true;
|
|
|
1030 |
if (this_present_openDate || that_present_openDate) {
|
|
|
1031 |
if (!(this_present_openDate && that_present_openDate))
|
|
|
1032 |
return false;
|
|
|
1033 |
if (this.openDate != that.openDate)
|
|
|
1034 |
return false;
|
|
|
1035 |
}
|
|
|
1036 |
|
| 3168 |
mandeep.dh |
1037 |
boolean this_present_closeDate = true && this.isSetCloseDate();
|
|
|
1038 |
boolean that_present_closeDate = true && that.isSetCloseDate();
|
| 3028 |
mandeep.dh |
1039 |
if (this_present_closeDate || that_present_closeDate) {
|
|
|
1040 |
if (!(this_present_closeDate && that_present_closeDate))
|
|
|
1041 |
return false;
|
|
|
1042 |
if (this.closeDate != that.closeDate)
|
|
|
1043 |
return false;
|
|
|
1044 |
}
|
|
|
1045 |
|
| 3106 |
mandeep.dh |
1046 |
boolean this_present_description = true && this.isSetDescription();
|
|
|
1047 |
boolean that_present_description = true && that.isSetDescription();
|
|
|
1048 |
if (this_present_description || that_present_description) {
|
|
|
1049 |
if (!(this_present_description && that_present_description))
|
| 3028 |
mandeep.dh |
1050 |
return false;
|
| 3106 |
mandeep.dh |
1051 |
if (!this.description.equals(that.description))
|
| 3028 |
mandeep.dh |
1052 |
return false;
|
|
|
1053 |
}
|
|
|
1054 |
|
| 3106 |
mandeep.dh |
1055 |
boolean this_present_priority = true && this.isSetPriority();
|
|
|
1056 |
boolean that_present_priority = true && that.isSetPriority();
|
|
|
1057 |
if (this_present_priority || that_present_priority) {
|
|
|
1058 |
if (!(this_present_priority && that_present_priority))
|
|
|
1059 |
return false;
|
|
|
1060 |
if (!this.priority.equals(that.priority))
|
|
|
1061 |
return false;
|
|
|
1062 |
}
|
|
|
1063 |
|
|
|
1064 |
boolean this_present_category = true && this.isSetCategory();
|
|
|
1065 |
boolean that_present_category = true && that.isSetCategory();
|
|
|
1066 |
if (this_present_category || that_present_category) {
|
|
|
1067 |
if (!(this_present_category && that_present_category))
|
|
|
1068 |
return false;
|
|
|
1069 |
if (!this.category.equals(that.category))
|
|
|
1070 |
return false;
|
|
|
1071 |
}
|
|
|
1072 |
|
|
|
1073 |
boolean this_present_status = true && this.isSetStatus();
|
|
|
1074 |
boolean that_present_status = true && that.isSetStatus();
|
|
|
1075 |
if (this_present_status || that_present_status) {
|
|
|
1076 |
if (!(this_present_status && that_present_status))
|
|
|
1077 |
return false;
|
|
|
1078 |
if (!this.status.equals(that.status))
|
|
|
1079 |
return false;
|
|
|
1080 |
}
|
|
|
1081 |
|
| 3168 |
mandeep.dh |
1082 |
boolean this_present_assigneeId = true && this.isSetAssigneeId();
|
|
|
1083 |
boolean that_present_assigneeId = true && that.isSetAssigneeId();
|
| 3106 |
mandeep.dh |
1084 |
if (this_present_assigneeId || that_present_assigneeId) {
|
|
|
1085 |
if (!(this_present_assigneeId && that_present_assigneeId))
|
|
|
1086 |
return false;
|
|
|
1087 |
if (this.assigneeId != that.assigneeId)
|
|
|
1088 |
return false;
|
|
|
1089 |
}
|
|
|
1090 |
|
| 3028 |
mandeep.dh |
1091 |
boolean this_present_creatorId = true;
|
|
|
1092 |
boolean that_present_creatorId = true;
|
|
|
1093 |
if (this_present_creatorId || that_present_creatorId) {
|
|
|
1094 |
if (!(this_present_creatorId && that_present_creatorId))
|
|
|
1095 |
return false;
|
|
|
1096 |
if (this.creatorId != that.creatorId)
|
|
|
1097 |
return false;
|
|
|
1098 |
}
|
|
|
1099 |
|
| 3168 |
mandeep.dh |
1100 |
boolean this_present_orderId = true && this.isSetOrderId();
|
|
|
1101 |
boolean that_present_orderId = true && that.isSetOrderId();
|
| 3028 |
mandeep.dh |
1102 |
if (this_present_orderId || that_present_orderId) {
|
|
|
1103 |
if (!(this_present_orderId && that_present_orderId))
|
|
|
1104 |
return false;
|
|
|
1105 |
if (this.orderId != that.orderId)
|
|
|
1106 |
return false;
|
|
|
1107 |
}
|
|
|
1108 |
|
|
|
1109 |
boolean this_present_airwayBillNo = true && this.isSetAirwayBillNo();
|
|
|
1110 |
boolean that_present_airwayBillNo = true && that.isSetAirwayBillNo();
|
|
|
1111 |
if (this_present_airwayBillNo || that_present_airwayBillNo) {
|
|
|
1112 |
if (!(this_present_airwayBillNo && that_present_airwayBillNo))
|
|
|
1113 |
return false;
|
|
|
1114 |
if (!this.airwayBillNo.equals(that.airwayBillNo))
|
|
|
1115 |
return false;
|
|
|
1116 |
}
|
|
|
1117 |
|
|
|
1118 |
boolean this_present_productName = true && this.isSetProductName();
|
|
|
1119 |
boolean that_present_productName = true && that.isSetProductName();
|
|
|
1120 |
if (this_present_productName || that_present_productName) {
|
|
|
1121 |
if (!(this_present_productName && that_present_productName))
|
|
|
1122 |
return false;
|
|
|
1123 |
if (!this.productName.equals(that.productName))
|
|
|
1124 |
return false;
|
|
|
1125 |
}
|
|
|
1126 |
|
| 3390 |
mandeep.dh |
1127 |
boolean this_present_customerMobileNumber = true && this.isSetCustomerMobileNumber();
|
|
|
1128 |
boolean that_present_customerMobileNumber = true && that.isSetCustomerMobileNumber();
|
|
|
1129 |
if (this_present_customerMobileNumber || that_present_customerMobileNumber) {
|
|
|
1130 |
if (!(this_present_customerMobileNumber && that_present_customerMobileNumber))
|
|
|
1131 |
return false;
|
|
|
1132 |
if (!this.customerMobileNumber.equals(that.customerMobileNumber))
|
|
|
1133 |
return false;
|
|
|
1134 |
}
|
|
|
1135 |
|
|
|
1136 |
boolean this_present_customerEmailId = true && this.isSetCustomerEmailId();
|
|
|
1137 |
boolean that_present_customerEmailId = true && that.isSetCustomerEmailId();
|
|
|
1138 |
if (this_present_customerEmailId || that_present_customerEmailId) {
|
|
|
1139 |
if (!(this_present_customerEmailId && that_present_customerEmailId))
|
|
|
1140 |
return false;
|
|
|
1141 |
if (!this.customerEmailId.equals(that.customerEmailId))
|
|
|
1142 |
return false;
|
|
|
1143 |
}
|
|
|
1144 |
|
|
|
1145 |
boolean this_present_customerName = true && this.isSetCustomerName();
|
|
|
1146 |
boolean that_present_customerName = true && that.isSetCustomerName();
|
|
|
1147 |
if (this_present_customerName || that_present_customerName) {
|
|
|
1148 |
if (!(this_present_customerName && that_present_customerName))
|
|
|
1149 |
return false;
|
|
|
1150 |
if (!this.customerName.equals(that.customerName))
|
|
|
1151 |
return false;
|
|
|
1152 |
}
|
|
|
1153 |
|
|
|
1154 |
boolean this_present_assignee = true && this.isSetAssignee();
|
|
|
1155 |
boolean that_present_assignee = true && that.isSetAssignee();
|
|
|
1156 |
if (this_present_assignee || that_present_assignee) {
|
|
|
1157 |
if (!(this_present_assignee && that_present_assignee))
|
|
|
1158 |
return false;
|
|
|
1159 |
if (!this.assignee.equals(that.assignee))
|
|
|
1160 |
return false;
|
|
|
1161 |
}
|
|
|
1162 |
|
|
|
1163 |
boolean this_present_creator = true && this.isSetCreator();
|
|
|
1164 |
boolean that_present_creator = true && that.isSetCreator();
|
|
|
1165 |
if (this_present_creator || that_present_creator) {
|
|
|
1166 |
if (!(this_present_creator && that_present_creator))
|
|
|
1167 |
return false;
|
|
|
1168 |
if (!this.creator.equals(that.creator))
|
|
|
1169 |
return false;
|
|
|
1170 |
}
|
|
|
1171 |
|
| 3028 |
mandeep.dh |
1172 |
return true;
|
|
|
1173 |
}
|
|
|
1174 |
|
|
|
1175 |
@Override
|
|
|
1176 |
public int hashCode() {
|
|
|
1177 |
return 0;
|
|
|
1178 |
}
|
|
|
1179 |
|
|
|
1180 |
public int compareTo(Ticket other) {
|
|
|
1181 |
if (!getClass().equals(other.getClass())) {
|
|
|
1182 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
1183 |
}
|
|
|
1184 |
|
|
|
1185 |
int lastComparison = 0;
|
|
|
1186 |
Ticket typedOther = (Ticket)other;
|
|
|
1187 |
|
|
|
1188 |
lastComparison = Boolean.valueOf(isSetId()).compareTo(isSetId());
|
|
|
1189 |
if (lastComparison != 0) {
|
|
|
1190 |
return lastComparison;
|
|
|
1191 |
}
|
|
|
1192 |
lastComparison = TBaseHelper.compareTo(id, typedOther.id);
|
|
|
1193 |
if (lastComparison != 0) {
|
|
|
1194 |
return lastComparison;
|
|
|
1195 |
}
|
|
|
1196 |
lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(isSetCustomerId());
|
|
|
1197 |
if (lastComparison != 0) {
|
|
|
1198 |
return lastComparison;
|
|
|
1199 |
}
|
|
|
1200 |
lastComparison = TBaseHelper.compareTo(customerId, typedOther.customerId);
|
|
|
1201 |
if (lastComparison != 0) {
|
|
|
1202 |
return lastComparison;
|
|
|
1203 |
}
|
|
|
1204 |
lastComparison = Boolean.valueOf(isSetOpenDate()).compareTo(isSetOpenDate());
|
|
|
1205 |
if (lastComparison != 0) {
|
|
|
1206 |
return lastComparison;
|
|
|
1207 |
}
|
|
|
1208 |
lastComparison = TBaseHelper.compareTo(openDate, typedOther.openDate);
|
|
|
1209 |
if (lastComparison != 0) {
|
|
|
1210 |
return lastComparison;
|
|
|
1211 |
}
|
|
|
1212 |
lastComparison = Boolean.valueOf(isSetCloseDate()).compareTo(isSetCloseDate());
|
|
|
1213 |
if (lastComparison != 0) {
|
|
|
1214 |
return lastComparison;
|
|
|
1215 |
}
|
|
|
1216 |
lastComparison = TBaseHelper.compareTo(closeDate, typedOther.closeDate);
|
|
|
1217 |
if (lastComparison != 0) {
|
|
|
1218 |
return lastComparison;
|
|
|
1219 |
}
|
| 3106 |
mandeep.dh |
1220 |
lastComparison = Boolean.valueOf(isSetDescription()).compareTo(isSetDescription());
|
| 3028 |
mandeep.dh |
1221 |
if (lastComparison != 0) {
|
|
|
1222 |
return lastComparison;
|
|
|
1223 |
}
|
| 3106 |
mandeep.dh |
1224 |
lastComparison = TBaseHelper.compareTo(description, typedOther.description);
|
| 3028 |
mandeep.dh |
1225 |
if (lastComparison != 0) {
|
|
|
1226 |
return lastComparison;
|
|
|
1227 |
}
|
| 3106 |
mandeep.dh |
1228 |
lastComparison = Boolean.valueOf(isSetPriority()).compareTo(isSetPriority());
|
| 3028 |
mandeep.dh |
1229 |
if (lastComparison != 0) {
|
|
|
1230 |
return lastComparison;
|
|
|
1231 |
}
|
| 3106 |
mandeep.dh |
1232 |
lastComparison = TBaseHelper.compareTo(priority, typedOther.priority);
|
| 3028 |
mandeep.dh |
1233 |
if (lastComparison != 0) {
|
|
|
1234 |
return lastComparison;
|
|
|
1235 |
}
|
| 3106 |
mandeep.dh |
1236 |
lastComparison = Boolean.valueOf(isSetCategory()).compareTo(isSetCategory());
|
| 3028 |
mandeep.dh |
1237 |
if (lastComparison != 0) {
|
|
|
1238 |
return lastComparison;
|
|
|
1239 |
}
|
| 3106 |
mandeep.dh |
1240 |
lastComparison = TBaseHelper.compareTo(category, typedOther.category);
|
| 3028 |
mandeep.dh |
1241 |
if (lastComparison != 0) {
|
|
|
1242 |
return lastComparison;
|
|
|
1243 |
}
|
| 3106 |
mandeep.dh |
1244 |
lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());
|
|
|
1245 |
if (lastComparison != 0) {
|
|
|
1246 |
return lastComparison;
|
|
|
1247 |
}
|
|
|
1248 |
lastComparison = TBaseHelper.compareTo(status, typedOther.status);
|
|
|
1249 |
if (lastComparison != 0) {
|
|
|
1250 |
return lastComparison;
|
|
|
1251 |
}
|
|
|
1252 |
lastComparison = Boolean.valueOf(isSetAssigneeId()).compareTo(isSetAssigneeId());
|
|
|
1253 |
if (lastComparison != 0) {
|
|
|
1254 |
return lastComparison;
|
|
|
1255 |
}
|
|
|
1256 |
lastComparison = TBaseHelper.compareTo(assigneeId, typedOther.assigneeId);
|
|
|
1257 |
if (lastComparison != 0) {
|
|
|
1258 |
return lastComparison;
|
|
|
1259 |
}
|
|
|
1260 |
lastComparison = Boolean.valueOf(isSetCreatorId()).compareTo(isSetCreatorId());
|
|
|
1261 |
if (lastComparison != 0) {
|
|
|
1262 |
return lastComparison;
|
|
|
1263 |
}
|
|
|
1264 |
lastComparison = TBaseHelper.compareTo(creatorId, typedOther.creatorId);
|
|
|
1265 |
if (lastComparison != 0) {
|
|
|
1266 |
return lastComparison;
|
|
|
1267 |
}
|
| 3028 |
mandeep.dh |
1268 |
lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(isSetOrderId());
|
|
|
1269 |
if (lastComparison != 0) {
|
|
|
1270 |
return lastComparison;
|
|
|
1271 |
}
|
|
|
1272 |
lastComparison = TBaseHelper.compareTo(orderId, typedOther.orderId);
|
|
|
1273 |
if (lastComparison != 0) {
|
|
|
1274 |
return lastComparison;
|
|
|
1275 |
}
|
|
|
1276 |
lastComparison = Boolean.valueOf(isSetAirwayBillNo()).compareTo(isSetAirwayBillNo());
|
|
|
1277 |
if (lastComparison != 0) {
|
|
|
1278 |
return lastComparison;
|
|
|
1279 |
}
|
|
|
1280 |
lastComparison = TBaseHelper.compareTo(airwayBillNo, typedOther.airwayBillNo);
|
|
|
1281 |
if (lastComparison != 0) {
|
|
|
1282 |
return lastComparison;
|
|
|
1283 |
}
|
|
|
1284 |
lastComparison = Boolean.valueOf(isSetProductName()).compareTo(isSetProductName());
|
|
|
1285 |
if (lastComparison != 0) {
|
|
|
1286 |
return lastComparison;
|
|
|
1287 |
}
|
|
|
1288 |
lastComparison = TBaseHelper.compareTo(productName, typedOther.productName);
|
|
|
1289 |
if (lastComparison != 0) {
|
|
|
1290 |
return lastComparison;
|
|
|
1291 |
}
|
| 3390 |
mandeep.dh |
1292 |
lastComparison = Boolean.valueOf(isSetCustomerMobileNumber()).compareTo(isSetCustomerMobileNumber());
|
|
|
1293 |
if (lastComparison != 0) {
|
|
|
1294 |
return lastComparison;
|
|
|
1295 |
}
|
|
|
1296 |
lastComparison = TBaseHelper.compareTo(customerMobileNumber, typedOther.customerMobileNumber);
|
|
|
1297 |
if (lastComparison != 0) {
|
|
|
1298 |
return lastComparison;
|
|
|
1299 |
}
|
|
|
1300 |
lastComparison = Boolean.valueOf(isSetCustomerEmailId()).compareTo(isSetCustomerEmailId());
|
|
|
1301 |
if (lastComparison != 0) {
|
|
|
1302 |
return lastComparison;
|
|
|
1303 |
}
|
|
|
1304 |
lastComparison = TBaseHelper.compareTo(customerEmailId, typedOther.customerEmailId);
|
|
|
1305 |
if (lastComparison != 0) {
|
|
|
1306 |
return lastComparison;
|
|
|
1307 |
}
|
|
|
1308 |
lastComparison = Boolean.valueOf(isSetCustomerName()).compareTo(isSetCustomerName());
|
|
|
1309 |
if (lastComparison != 0) {
|
|
|
1310 |
return lastComparison;
|
|
|
1311 |
}
|
|
|
1312 |
lastComparison = TBaseHelper.compareTo(customerName, typedOther.customerName);
|
|
|
1313 |
if (lastComparison != 0) {
|
|
|
1314 |
return lastComparison;
|
|
|
1315 |
}
|
|
|
1316 |
lastComparison = Boolean.valueOf(isSetAssignee()).compareTo(isSetAssignee());
|
|
|
1317 |
if (lastComparison != 0) {
|
|
|
1318 |
return lastComparison;
|
|
|
1319 |
}
|
|
|
1320 |
lastComparison = TBaseHelper.compareTo(assignee, typedOther.assignee);
|
|
|
1321 |
if (lastComparison != 0) {
|
|
|
1322 |
return lastComparison;
|
|
|
1323 |
}
|
|
|
1324 |
lastComparison = Boolean.valueOf(isSetCreator()).compareTo(isSetCreator());
|
|
|
1325 |
if (lastComparison != 0) {
|
|
|
1326 |
return lastComparison;
|
|
|
1327 |
}
|
|
|
1328 |
lastComparison = TBaseHelper.compareTo(creator, typedOther.creator);
|
|
|
1329 |
if (lastComparison != 0) {
|
|
|
1330 |
return lastComparison;
|
|
|
1331 |
}
|
| 3028 |
mandeep.dh |
1332 |
return 0;
|
|
|
1333 |
}
|
|
|
1334 |
|
|
|
1335 |
public void read(TProtocol iprot) throws TException {
|
|
|
1336 |
TField field;
|
|
|
1337 |
iprot.readStructBegin();
|
|
|
1338 |
while (true)
|
|
|
1339 |
{
|
|
|
1340 |
field = iprot.readFieldBegin();
|
|
|
1341 |
if (field.type == TType.STOP) {
|
|
|
1342 |
break;
|
|
|
1343 |
}
|
|
|
1344 |
_Fields fieldId = _Fields.findByThriftId(field.id);
|
|
|
1345 |
if (fieldId == null) {
|
|
|
1346 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1347 |
} else {
|
|
|
1348 |
switch (fieldId) {
|
|
|
1349 |
case ID:
|
|
|
1350 |
if (field.type == TType.I64) {
|
|
|
1351 |
this.id = iprot.readI64();
|
|
|
1352 |
setIdIsSet(true);
|
|
|
1353 |
} else {
|
|
|
1354 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1355 |
}
|
|
|
1356 |
break;
|
|
|
1357 |
case CUSTOMER_ID:
|
|
|
1358 |
if (field.type == TType.I64) {
|
|
|
1359 |
this.customerId = iprot.readI64();
|
|
|
1360 |
setCustomerIdIsSet(true);
|
|
|
1361 |
} else {
|
|
|
1362 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1363 |
}
|
|
|
1364 |
break;
|
|
|
1365 |
case OPEN_DATE:
|
|
|
1366 |
if (field.type == TType.I64) {
|
|
|
1367 |
this.openDate = iprot.readI64();
|
|
|
1368 |
setOpenDateIsSet(true);
|
|
|
1369 |
} else {
|
|
|
1370 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1371 |
}
|
|
|
1372 |
break;
|
|
|
1373 |
case CLOSE_DATE:
|
|
|
1374 |
if (field.type == TType.I64) {
|
|
|
1375 |
this.closeDate = iprot.readI64();
|
|
|
1376 |
setCloseDateIsSet(true);
|
|
|
1377 |
} else {
|
|
|
1378 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1379 |
}
|
|
|
1380 |
break;
|
| 3106 |
mandeep.dh |
1381 |
case DESCRIPTION:
|
| 3028 |
mandeep.dh |
1382 |
if (field.type == TType.STRING) {
|
| 3106 |
mandeep.dh |
1383 |
this.description = iprot.readString();
|
| 3028 |
mandeep.dh |
1384 |
} else {
|
|
|
1385 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1386 |
}
|
|
|
1387 |
break;
|
| 3106 |
mandeep.dh |
1388 |
case PRIORITY:
|
|
|
1389 |
if (field.type == TType.I32) {
|
|
|
1390 |
this.priority = TicketPriority.findByValue(iprot.readI32());
|
|
|
1391 |
} else {
|
|
|
1392 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1393 |
}
|
|
|
1394 |
break;
|
|
|
1395 |
case CATEGORY:
|
|
|
1396 |
if (field.type == TType.I32) {
|
|
|
1397 |
this.category = TicketCategory.findByValue(iprot.readI32());
|
|
|
1398 |
} else {
|
|
|
1399 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1400 |
}
|
|
|
1401 |
break;
|
|
|
1402 |
case STATUS:
|
|
|
1403 |
if (field.type == TType.I32) {
|
|
|
1404 |
this.status = TicketStatus.findByValue(iprot.readI32());
|
|
|
1405 |
} else {
|
|
|
1406 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1407 |
}
|
|
|
1408 |
break;
|
|
|
1409 |
case ASSIGNEE_ID:
|
| 3028 |
mandeep.dh |
1410 |
if (field.type == TType.I64) {
|
| 3106 |
mandeep.dh |
1411 |
this.assigneeId = iprot.readI64();
|
|
|
1412 |
setAssigneeIdIsSet(true);
|
| 3028 |
mandeep.dh |
1413 |
} else {
|
|
|
1414 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1415 |
}
|
|
|
1416 |
break;
|
| 3106 |
mandeep.dh |
1417 |
case CREATOR_ID:
|
| 3028 |
mandeep.dh |
1418 |
if (field.type == TType.I64) {
|
| 3106 |
mandeep.dh |
1419 |
this.creatorId = iprot.readI64();
|
|
|
1420 |
setCreatorIdIsSet(true);
|
| 3028 |
mandeep.dh |
1421 |
} else {
|
|
|
1422 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1423 |
}
|
|
|
1424 |
break;
|
|
|
1425 |
case ORDER_ID:
|
|
|
1426 |
if (field.type == TType.I64) {
|
|
|
1427 |
this.orderId = iprot.readI64();
|
|
|
1428 |
setOrderIdIsSet(true);
|
|
|
1429 |
} else {
|
|
|
1430 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1431 |
}
|
|
|
1432 |
break;
|
|
|
1433 |
case AIRWAY_BILL_NO:
|
|
|
1434 |
if (field.type == TType.STRING) {
|
|
|
1435 |
this.airwayBillNo = iprot.readString();
|
|
|
1436 |
} else {
|
|
|
1437 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1438 |
}
|
|
|
1439 |
break;
|
|
|
1440 |
case PRODUCT_NAME:
|
|
|
1441 |
if (field.type == TType.STRING) {
|
|
|
1442 |
this.productName = iprot.readString();
|
|
|
1443 |
} else {
|
|
|
1444 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1445 |
}
|
|
|
1446 |
break;
|
| 3390 |
mandeep.dh |
1447 |
case CUSTOMER_MOBILE_NUMBER:
|
|
|
1448 |
if (field.type == TType.STRING) {
|
|
|
1449 |
this.customerMobileNumber = iprot.readString();
|
|
|
1450 |
} else {
|
|
|
1451 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1452 |
}
|
|
|
1453 |
break;
|
|
|
1454 |
case CUSTOMER_EMAIL_ID:
|
|
|
1455 |
if (field.type == TType.STRING) {
|
|
|
1456 |
this.customerEmailId = iprot.readString();
|
|
|
1457 |
} else {
|
|
|
1458 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1459 |
}
|
|
|
1460 |
break;
|
|
|
1461 |
case CUSTOMER_NAME:
|
|
|
1462 |
if (field.type == TType.STRING) {
|
|
|
1463 |
this.customerName = iprot.readString();
|
|
|
1464 |
} else {
|
|
|
1465 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1466 |
}
|
|
|
1467 |
break;
|
|
|
1468 |
case ASSIGNEE:
|
|
|
1469 |
if (field.type == TType.STRUCT) {
|
|
|
1470 |
this.assignee = new Agent();
|
|
|
1471 |
this.assignee.read(iprot);
|
|
|
1472 |
} else {
|
|
|
1473 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1474 |
}
|
|
|
1475 |
break;
|
|
|
1476 |
case CREATOR:
|
|
|
1477 |
if (field.type == TType.STRUCT) {
|
|
|
1478 |
this.creator = new Agent();
|
|
|
1479 |
this.creator.read(iprot);
|
|
|
1480 |
} else {
|
|
|
1481 |
TProtocolUtil.skip(iprot, field.type);
|
|
|
1482 |
}
|
|
|
1483 |
break;
|
| 3028 |
mandeep.dh |
1484 |
}
|
|
|
1485 |
iprot.readFieldEnd();
|
|
|
1486 |
}
|
|
|
1487 |
}
|
|
|
1488 |
iprot.readStructEnd();
|
|
|
1489 |
validate();
|
|
|
1490 |
}
|
|
|
1491 |
|
|
|
1492 |
public void write(TProtocol oprot) throws TException {
|
|
|
1493 |
validate();
|
|
|
1494 |
|
|
|
1495 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
1496 |
oprot.writeFieldBegin(ID_FIELD_DESC);
|
|
|
1497 |
oprot.writeI64(this.id);
|
|
|
1498 |
oprot.writeFieldEnd();
|
| 3269 |
mandeep.dh |
1499 |
if (isSetCustomerId()) {
|
|
|
1500 |
oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
|
|
|
1501 |
oprot.writeI64(this.customerId);
|
|
|
1502 |
oprot.writeFieldEnd();
|
|
|
1503 |
}
|
| 3028 |
mandeep.dh |
1504 |
oprot.writeFieldBegin(OPEN_DATE_FIELD_DESC);
|
|
|
1505 |
oprot.writeI64(this.openDate);
|
|
|
1506 |
oprot.writeFieldEnd();
|
| 3168 |
mandeep.dh |
1507 |
if (isSetCloseDate()) {
|
|
|
1508 |
oprot.writeFieldBegin(CLOSE_DATE_FIELD_DESC);
|
|
|
1509 |
oprot.writeI64(this.closeDate);
|
|
|
1510 |
oprot.writeFieldEnd();
|
|
|
1511 |
}
|
| 3106 |
mandeep.dh |
1512 |
if (this.description != null) {
|
| 3269 |
mandeep.dh |
1513 |
if (isSetDescription()) {
|
|
|
1514 |
oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
|
|
|
1515 |
oprot.writeString(this.description);
|
|
|
1516 |
oprot.writeFieldEnd();
|
|
|
1517 |
}
|
| 3028 |
mandeep.dh |
1518 |
}
|
| 3106 |
mandeep.dh |
1519 |
if (this.priority != null) {
|
|
|
1520 |
oprot.writeFieldBegin(PRIORITY_FIELD_DESC);
|
|
|
1521 |
oprot.writeI32(this.priority.getValue());
|
|
|
1522 |
oprot.writeFieldEnd();
|
|
|
1523 |
}
|
|
|
1524 |
if (this.category != null) {
|
|
|
1525 |
oprot.writeFieldBegin(CATEGORY_FIELD_DESC);
|
|
|
1526 |
oprot.writeI32(this.category.getValue());
|
|
|
1527 |
oprot.writeFieldEnd();
|
|
|
1528 |
}
|
|
|
1529 |
if (this.status != null) {
|
|
|
1530 |
oprot.writeFieldBegin(STATUS_FIELD_DESC);
|
|
|
1531 |
oprot.writeI32(this.status.getValue());
|
|
|
1532 |
oprot.writeFieldEnd();
|
|
|
1533 |
}
|
| 3168 |
mandeep.dh |
1534 |
if (isSetAssigneeId()) {
|
|
|
1535 |
oprot.writeFieldBegin(ASSIGNEE_ID_FIELD_DESC);
|
|
|
1536 |
oprot.writeI64(this.assigneeId);
|
|
|
1537 |
oprot.writeFieldEnd();
|
|
|
1538 |
}
|
| 3028 |
mandeep.dh |
1539 |
oprot.writeFieldBegin(CREATOR_ID_FIELD_DESC);
|
|
|
1540 |
oprot.writeI64(this.creatorId);
|
|
|
1541 |
oprot.writeFieldEnd();
|
| 3168 |
mandeep.dh |
1542 |
if (isSetOrderId()) {
|
|
|
1543 |
oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
|
|
|
1544 |
oprot.writeI64(this.orderId);
|
| 3028 |
mandeep.dh |
1545 |
oprot.writeFieldEnd();
|
|
|
1546 |
}
|
| 3168 |
mandeep.dh |
1547 |
if (this.airwayBillNo != null) {
|
|
|
1548 |
if (isSetAirwayBillNo()) {
|
|
|
1549 |
oprot.writeFieldBegin(AIRWAY_BILL_NO_FIELD_DESC);
|
|
|
1550 |
oprot.writeString(this.airwayBillNo);
|
|
|
1551 |
oprot.writeFieldEnd();
|
|
|
1552 |
}
|
|
|
1553 |
}
|
| 3028 |
mandeep.dh |
1554 |
if (this.productName != null) {
|
| 3168 |
mandeep.dh |
1555 |
if (isSetProductName()) {
|
|
|
1556 |
oprot.writeFieldBegin(PRODUCT_NAME_FIELD_DESC);
|
|
|
1557 |
oprot.writeString(this.productName);
|
|
|
1558 |
oprot.writeFieldEnd();
|
|
|
1559 |
}
|
| 3028 |
mandeep.dh |
1560 |
}
|
| 3390 |
mandeep.dh |
1561 |
if (this.customerMobileNumber != null) {
|
|
|
1562 |
if (isSetCustomerMobileNumber()) {
|
|
|
1563 |
oprot.writeFieldBegin(CUSTOMER_MOBILE_NUMBER_FIELD_DESC);
|
|
|
1564 |
oprot.writeString(this.customerMobileNumber);
|
|
|
1565 |
oprot.writeFieldEnd();
|
|
|
1566 |
}
|
|
|
1567 |
}
|
|
|
1568 |
if (this.customerEmailId != null) {
|
|
|
1569 |
if (isSetCustomerEmailId()) {
|
|
|
1570 |
oprot.writeFieldBegin(CUSTOMER_EMAIL_ID_FIELD_DESC);
|
|
|
1571 |
oprot.writeString(this.customerEmailId);
|
|
|
1572 |
oprot.writeFieldEnd();
|
|
|
1573 |
}
|
|
|
1574 |
}
|
|
|
1575 |
if (this.customerName != null) {
|
|
|
1576 |
if (isSetCustomerName()) {
|
|
|
1577 |
oprot.writeFieldBegin(CUSTOMER_NAME_FIELD_DESC);
|
|
|
1578 |
oprot.writeString(this.customerName);
|
|
|
1579 |
oprot.writeFieldEnd();
|
|
|
1580 |
}
|
|
|
1581 |
}
|
|
|
1582 |
if (this.assignee != null) {
|
|
|
1583 |
if (isSetAssignee()) {
|
|
|
1584 |
oprot.writeFieldBegin(ASSIGNEE_FIELD_DESC);
|
|
|
1585 |
this.assignee.write(oprot);
|
|
|
1586 |
oprot.writeFieldEnd();
|
|
|
1587 |
}
|
|
|
1588 |
}
|
|
|
1589 |
if (this.creator != null) {
|
|
|
1590 |
if (isSetCreator()) {
|
|
|
1591 |
oprot.writeFieldBegin(CREATOR_FIELD_DESC);
|
|
|
1592 |
this.creator.write(oprot);
|
|
|
1593 |
oprot.writeFieldEnd();
|
|
|
1594 |
}
|
|
|
1595 |
}
|
| 3028 |
mandeep.dh |
1596 |
oprot.writeFieldStop();
|
|
|
1597 |
oprot.writeStructEnd();
|
|
|
1598 |
}
|
|
|
1599 |
|
|
|
1600 |
@Override
|
|
|
1601 |
public String toString() {
|
|
|
1602 |
StringBuilder sb = new StringBuilder("Ticket(");
|
|
|
1603 |
boolean first = true;
|
|
|
1604 |
|
|
|
1605 |
sb.append("id:");
|
|
|
1606 |
sb.append(this.id);
|
|
|
1607 |
first = false;
|
| 3269 |
mandeep.dh |
1608 |
if (isSetCustomerId()) {
|
|
|
1609 |
if (!first) sb.append(", ");
|
|
|
1610 |
sb.append("customerId:");
|
|
|
1611 |
sb.append(this.customerId);
|
|
|
1612 |
first = false;
|
|
|
1613 |
}
|
| 3028 |
mandeep.dh |
1614 |
if (!first) sb.append(", ");
|
|
|
1615 |
sb.append("openDate:");
|
|
|
1616 |
sb.append(this.openDate);
|
|
|
1617 |
first = false;
|
| 3168 |
mandeep.dh |
1618 |
if (isSetCloseDate()) {
|
|
|
1619 |
if (!first) sb.append(", ");
|
|
|
1620 |
sb.append("closeDate:");
|
|
|
1621 |
sb.append(this.closeDate);
|
|
|
1622 |
first = false;
|
|
|
1623 |
}
|
| 3269 |
mandeep.dh |
1624 |
if (isSetDescription()) {
|
|
|
1625 |
if (!first) sb.append(", ");
|
|
|
1626 |
sb.append("description:");
|
|
|
1627 |
if (this.description == null) {
|
|
|
1628 |
sb.append("null");
|
|
|
1629 |
} else {
|
|
|
1630 |
sb.append(this.description);
|
|
|
1631 |
}
|
|
|
1632 |
first = false;
|
| 3028 |
mandeep.dh |
1633 |
}
|
|
|
1634 |
if (!first) sb.append(", ");
|
| 3106 |
mandeep.dh |
1635 |
sb.append("priority:");
|
|
|
1636 |
if (this.priority == null) {
|
|
|
1637 |
sb.append("null");
|
|
|
1638 |
} else {
|
|
|
1639 |
String priority_name = priority.name();
|
|
|
1640 |
if (priority_name != null) {
|
|
|
1641 |
sb.append(priority_name);
|
|
|
1642 |
sb.append(" (");
|
|
|
1643 |
}
|
|
|
1644 |
sb.append(this.priority);
|
|
|
1645 |
if (priority_name != null) {
|
|
|
1646 |
sb.append(")");
|
|
|
1647 |
}
|
|
|
1648 |
}
|
|
|
1649 |
first = false;
|
|
|
1650 |
if (!first) sb.append(", ");
|
|
|
1651 |
sb.append("category:");
|
|
|
1652 |
if (this.category == null) {
|
|
|
1653 |
sb.append("null");
|
|
|
1654 |
} else {
|
|
|
1655 |
String category_name = category.name();
|
|
|
1656 |
if (category_name != null) {
|
|
|
1657 |
sb.append(category_name);
|
|
|
1658 |
sb.append(" (");
|
|
|
1659 |
}
|
|
|
1660 |
sb.append(this.category);
|
|
|
1661 |
if (category_name != null) {
|
|
|
1662 |
sb.append(")");
|
|
|
1663 |
}
|
|
|
1664 |
}
|
|
|
1665 |
first = false;
|
|
|
1666 |
if (!first) sb.append(", ");
|
|
|
1667 |
sb.append("status:");
|
|
|
1668 |
if (this.status == null) {
|
|
|
1669 |
sb.append("null");
|
|
|
1670 |
} else {
|
|
|
1671 |
String status_name = status.name();
|
|
|
1672 |
if (status_name != null) {
|
|
|
1673 |
sb.append(status_name);
|
|
|
1674 |
sb.append(" (");
|
|
|
1675 |
}
|
|
|
1676 |
sb.append(this.status);
|
|
|
1677 |
if (status_name != null) {
|
|
|
1678 |
sb.append(")");
|
|
|
1679 |
}
|
|
|
1680 |
}
|
|
|
1681 |
first = false;
|
| 3168 |
mandeep.dh |
1682 |
if (isSetAssigneeId()) {
|
|
|
1683 |
if (!first) sb.append(", ");
|
|
|
1684 |
sb.append("assigneeId:");
|
|
|
1685 |
sb.append(this.assigneeId);
|
|
|
1686 |
first = false;
|
|
|
1687 |
}
|
| 3106 |
mandeep.dh |
1688 |
if (!first) sb.append(", ");
|
| 3028 |
mandeep.dh |
1689 |
sb.append("creatorId:");
|
|
|
1690 |
sb.append(this.creatorId);
|
|
|
1691 |
first = false;
|
| 3168 |
mandeep.dh |
1692 |
if (isSetOrderId()) {
|
|
|
1693 |
if (!first) sb.append(", ");
|
|
|
1694 |
sb.append("orderId:");
|
|
|
1695 |
sb.append(this.orderId);
|
|
|
1696 |
first = false;
|
| 3028 |
mandeep.dh |
1697 |
}
|
| 3168 |
mandeep.dh |
1698 |
if (isSetAirwayBillNo()) {
|
|
|
1699 |
if (!first) sb.append(", ");
|
|
|
1700 |
sb.append("airwayBillNo:");
|
|
|
1701 |
if (this.airwayBillNo == null) {
|
|
|
1702 |
sb.append("null");
|
|
|
1703 |
} else {
|
|
|
1704 |
sb.append(this.airwayBillNo);
|
|
|
1705 |
}
|
|
|
1706 |
first = false;
|
| 3028 |
mandeep.dh |
1707 |
}
|
| 3168 |
mandeep.dh |
1708 |
if (isSetProductName()) {
|
|
|
1709 |
if (!first) sb.append(", ");
|
|
|
1710 |
sb.append("productName:");
|
|
|
1711 |
if (this.productName == null) {
|
|
|
1712 |
sb.append("null");
|
|
|
1713 |
} else {
|
|
|
1714 |
sb.append(this.productName);
|
|
|
1715 |
}
|
|
|
1716 |
first = false;
|
|
|
1717 |
}
|
| 3390 |
mandeep.dh |
1718 |
if (isSetCustomerMobileNumber()) {
|
|
|
1719 |
if (!first) sb.append(", ");
|
|
|
1720 |
sb.append("customerMobileNumber:");
|
|
|
1721 |
if (this.customerMobileNumber == null) {
|
|
|
1722 |
sb.append("null");
|
|
|
1723 |
} else {
|
|
|
1724 |
sb.append(this.customerMobileNumber);
|
|
|
1725 |
}
|
|
|
1726 |
first = false;
|
|
|
1727 |
}
|
|
|
1728 |
if (isSetCustomerEmailId()) {
|
|
|
1729 |
if (!first) sb.append(", ");
|
|
|
1730 |
sb.append("customerEmailId:");
|
|
|
1731 |
if (this.customerEmailId == null) {
|
|
|
1732 |
sb.append("null");
|
|
|
1733 |
} else {
|
|
|
1734 |
sb.append(this.customerEmailId);
|
|
|
1735 |
}
|
|
|
1736 |
first = false;
|
|
|
1737 |
}
|
|
|
1738 |
if (isSetCustomerName()) {
|
|
|
1739 |
if (!first) sb.append(", ");
|
|
|
1740 |
sb.append("customerName:");
|
|
|
1741 |
if (this.customerName == null) {
|
|
|
1742 |
sb.append("null");
|
|
|
1743 |
} else {
|
|
|
1744 |
sb.append(this.customerName);
|
|
|
1745 |
}
|
|
|
1746 |
first = false;
|
|
|
1747 |
}
|
|
|
1748 |
if (isSetAssignee()) {
|
|
|
1749 |
if (!first) sb.append(", ");
|
|
|
1750 |
sb.append("assignee:");
|
|
|
1751 |
if (this.assignee == null) {
|
|
|
1752 |
sb.append("null");
|
|
|
1753 |
} else {
|
|
|
1754 |
sb.append(this.assignee);
|
|
|
1755 |
}
|
|
|
1756 |
first = false;
|
|
|
1757 |
}
|
|
|
1758 |
if (isSetCreator()) {
|
|
|
1759 |
if (!first) sb.append(", ");
|
|
|
1760 |
sb.append("creator:");
|
|
|
1761 |
if (this.creator == null) {
|
|
|
1762 |
sb.append("null");
|
|
|
1763 |
} else {
|
|
|
1764 |
sb.append(this.creator);
|
|
|
1765 |
}
|
|
|
1766 |
first = false;
|
|
|
1767 |
}
|
| 3028 |
mandeep.dh |
1768 |
sb.append(")");
|
|
|
1769 |
return sb.toString();
|
|
|
1770 |
}
|
|
|
1771 |
|
|
|
1772 |
public void validate() throws TException {
|
|
|
1773 |
// check for required fields
|
|
|
1774 |
}
|
|
|
1775 |
|
|
|
1776 |
}
|
|
|
1777 |
|