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