| 4496 |
mandeep.dh |
1 |
/**
|
|
|
2 |
* Autogenerated by Thrift Compiler (0.7.0)
|
|
|
3 |
*
|
|
|
4 |
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
|
5 |
*/
|
|
|
6 |
package in.shop2020.purchase;
|
|
|
7 |
|
|
|
8 |
import java.util.List;
|
|
|
9 |
import java.util.ArrayList;
|
|
|
10 |
import java.util.Map;
|
|
|
11 |
import java.util.HashMap;
|
|
|
12 |
import java.util.EnumMap;
|
|
|
13 |
import java.util.Set;
|
|
|
14 |
import java.util.HashSet;
|
|
|
15 |
import java.util.EnumSet;
|
|
|
16 |
import java.util.Collections;
|
|
|
17 |
import java.util.BitSet;
|
|
|
18 |
import java.nio.ByteBuffer;
|
|
|
19 |
import java.util.Arrays;
|
|
|
20 |
import org.slf4j.Logger;
|
|
|
21 |
import org.slf4j.LoggerFactory;
|
|
|
22 |
|
|
|
23 |
public class Supplier implements org.apache.thrift.TBase<Supplier, Supplier._Fields>, java.io.Serializable, Cloneable {
|
|
|
24 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Supplier");
|
|
|
25 |
|
|
|
26 |
private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
27 |
private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)2);
|
|
|
28 |
private static final org.apache.thrift.protocol.TField PHONE_FIELD_DESC = new org.apache.thrift.protocol.TField("phone", org.apache.thrift.protocol.TType.STRING, (short)3);
|
|
|
29 |
private static final org.apache.thrift.protocol.TField FAX_FIELD_DESC = new org.apache.thrift.protocol.TField("fax", org.apache.thrift.protocol.TType.STRING, (short)4);
|
|
|
30 |
private static final org.apache.thrift.protocol.TField TIN_FIELD_DESC = new org.apache.thrift.protocol.TField("tin", org.apache.thrift.protocol.TType.STRING, (short)5);
|
|
|
31 |
private static final org.apache.thrift.protocol.TField PAN_FIELD_DESC = new org.apache.thrift.protocol.TField("pan", org.apache.thrift.protocol.TType.STRING, (short)6);
|
|
|
32 |
private static final org.apache.thrift.protocol.TField HEAD_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("headName", org.apache.thrift.protocol.TType.STRING, (short)7);
|
|
|
33 |
private static final org.apache.thrift.protocol.TField HEAD_DESIGNATION_FIELD_DESC = new org.apache.thrift.protocol.TField("headDesignation", org.apache.thrift.protocol.TType.STRING, (short)8);
|
|
|
34 |
private static final org.apache.thrift.protocol.TField HEAD_EMAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("headEmail", org.apache.thrift.protocol.TType.STRING, (short)9);
|
|
|
35 |
private static final org.apache.thrift.protocol.TField CONTACT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("contactName", org.apache.thrift.protocol.TType.STRING, (short)10);
|
|
|
36 |
private static final org.apache.thrift.protocol.TField CONTACT_PHONE_FIELD_DESC = new org.apache.thrift.protocol.TField("contactPhone", org.apache.thrift.protocol.TType.STRING, (short)11);
|
|
|
37 |
private static final org.apache.thrift.protocol.TField CONTACT_FAX_FIELD_DESC = new org.apache.thrift.protocol.TField("contactFax", org.apache.thrift.protocol.TType.STRING, (short)12);
|
|
|
38 |
private static final org.apache.thrift.protocol.TField CONTACT_EMAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("contactEmail", org.apache.thrift.protocol.TType.STRING, (short)13);
|
|
|
39 |
private static final org.apache.thrift.protocol.TField REGISTERED_ADDRESS_FIELD_DESC = new org.apache.thrift.protocol.TField("registeredAddress", org.apache.thrift.protocol.TType.STRING, (short)14);
|
|
|
40 |
private static final org.apache.thrift.protocol.TField COMMUNICATION_ADDRESS_FIELD_DESC = new org.apache.thrift.protocol.TField("communicationAddress", org.apache.thrift.protocol.TType.STRING, (short)15);
|
| 10295 |
amar.kumar |
41 |
private static final org.apache.thrift.protocol.TField STATE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("stateId", org.apache.thrift.protocol.TType.I64, (short)16);
|
| 14072 |
manish.sha |
42 |
private static final org.apache.thrift.protocol.TField PO_VALIDITY_LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("poValidityLimit", org.apache.thrift.protocol.TType.I64, (short)17);
|
| 4496 |
mandeep.dh |
43 |
|
|
|
44 |
private long id; // required
|
|
|
45 |
private String name; // required
|
|
|
46 |
private String phone; // required
|
|
|
47 |
private String fax; // required
|
|
|
48 |
private String tin; // required
|
|
|
49 |
private String pan; // required
|
|
|
50 |
private String headName; // required
|
|
|
51 |
private String headDesignation; // required
|
|
|
52 |
private String headEmail; // required
|
|
|
53 |
private String contactName; // required
|
|
|
54 |
private String contactPhone; // required
|
|
|
55 |
private String contactFax; // required
|
|
|
56 |
private String contactEmail; // required
|
|
|
57 |
private String registeredAddress; // required
|
|
|
58 |
private String communicationAddress; // required
|
| 10295 |
amar.kumar |
59 |
private long stateId; // required
|
| 14072 |
manish.sha |
60 |
private long poValidityLimit; // required
|
| 4496 |
mandeep.dh |
61 |
|
|
|
62 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
63 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
64 |
ID((short)1, "id"),
|
|
|
65 |
NAME((short)2, "name"),
|
|
|
66 |
PHONE((short)3, "phone"),
|
|
|
67 |
FAX((short)4, "fax"),
|
|
|
68 |
TIN((short)5, "tin"),
|
|
|
69 |
PAN((short)6, "pan"),
|
|
|
70 |
HEAD_NAME((short)7, "headName"),
|
|
|
71 |
HEAD_DESIGNATION((short)8, "headDesignation"),
|
|
|
72 |
HEAD_EMAIL((short)9, "headEmail"),
|
|
|
73 |
CONTACT_NAME((short)10, "contactName"),
|
|
|
74 |
CONTACT_PHONE((short)11, "contactPhone"),
|
|
|
75 |
CONTACT_FAX((short)12, "contactFax"),
|
|
|
76 |
CONTACT_EMAIL((short)13, "contactEmail"),
|
|
|
77 |
REGISTERED_ADDRESS((short)14, "registeredAddress"),
|
| 10295 |
amar.kumar |
78 |
COMMUNICATION_ADDRESS((short)15, "communicationAddress"),
|
| 14072 |
manish.sha |
79 |
STATE_ID((short)16, "stateId"),
|
|
|
80 |
PO_VALIDITY_LIMIT((short)17, "poValidityLimit");
|
| 4496 |
mandeep.dh |
81 |
|
|
|
82 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
83 |
|
|
|
84 |
static {
|
|
|
85 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
86 |
byName.put(field.getFieldName(), field);
|
|
|
87 |
}
|
|
|
88 |
}
|
|
|
89 |
|
|
|
90 |
/**
|
|
|
91 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
92 |
*/
|
|
|
93 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
94 |
switch(fieldId) {
|
|
|
95 |
case 1: // ID
|
|
|
96 |
return ID;
|
|
|
97 |
case 2: // NAME
|
|
|
98 |
return NAME;
|
|
|
99 |
case 3: // PHONE
|
|
|
100 |
return PHONE;
|
|
|
101 |
case 4: // FAX
|
|
|
102 |
return FAX;
|
|
|
103 |
case 5: // TIN
|
|
|
104 |
return TIN;
|
|
|
105 |
case 6: // PAN
|
|
|
106 |
return PAN;
|
|
|
107 |
case 7: // HEAD_NAME
|
|
|
108 |
return HEAD_NAME;
|
|
|
109 |
case 8: // HEAD_DESIGNATION
|
|
|
110 |
return HEAD_DESIGNATION;
|
|
|
111 |
case 9: // HEAD_EMAIL
|
|
|
112 |
return HEAD_EMAIL;
|
|
|
113 |
case 10: // CONTACT_NAME
|
|
|
114 |
return CONTACT_NAME;
|
|
|
115 |
case 11: // CONTACT_PHONE
|
|
|
116 |
return CONTACT_PHONE;
|
|
|
117 |
case 12: // CONTACT_FAX
|
|
|
118 |
return CONTACT_FAX;
|
|
|
119 |
case 13: // CONTACT_EMAIL
|
|
|
120 |
return CONTACT_EMAIL;
|
|
|
121 |
case 14: // REGISTERED_ADDRESS
|
|
|
122 |
return REGISTERED_ADDRESS;
|
|
|
123 |
case 15: // COMMUNICATION_ADDRESS
|
|
|
124 |
return COMMUNICATION_ADDRESS;
|
| 10295 |
amar.kumar |
125 |
case 16: // STATE_ID
|
|
|
126 |
return STATE_ID;
|
| 14072 |
manish.sha |
127 |
case 17: // PO_VALIDITY_LIMIT
|
|
|
128 |
return PO_VALIDITY_LIMIT;
|
| 4496 |
mandeep.dh |
129 |
default:
|
|
|
130 |
return null;
|
|
|
131 |
}
|
|
|
132 |
}
|
|
|
133 |
|
|
|
134 |
/**
|
|
|
135 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
136 |
* if it is not found.
|
|
|
137 |
*/
|
|
|
138 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
139 |
_Fields fields = findByThriftId(fieldId);
|
|
|
140 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
141 |
return fields;
|
|
|
142 |
}
|
|
|
143 |
|
|
|
144 |
/**
|
|
|
145 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
146 |
*/
|
|
|
147 |
public static _Fields findByName(String name) {
|
|
|
148 |
return byName.get(name);
|
|
|
149 |
}
|
|
|
150 |
|
|
|
151 |
private final short _thriftId;
|
|
|
152 |
private final String _fieldName;
|
|
|
153 |
|
|
|
154 |
_Fields(short thriftId, String fieldName) {
|
|
|
155 |
_thriftId = thriftId;
|
|
|
156 |
_fieldName = fieldName;
|
|
|
157 |
}
|
|
|
158 |
|
|
|
159 |
public short getThriftFieldId() {
|
|
|
160 |
return _thriftId;
|
|
|
161 |
}
|
|
|
162 |
|
|
|
163 |
public String getFieldName() {
|
|
|
164 |
return _fieldName;
|
|
|
165 |
}
|
|
|
166 |
}
|
|
|
167 |
|
|
|
168 |
// isset id assignments
|
|
|
169 |
private static final int __ID_ISSET_ID = 0;
|
| 10295 |
amar.kumar |
170 |
private static final int __STATEID_ISSET_ID = 1;
|
| 14072 |
manish.sha |
171 |
private static final int __POVALIDITYLIMIT_ISSET_ID = 2;
|
|
|
172 |
private BitSet __isset_bit_vector = new BitSet(3);
|
| 4496 |
mandeep.dh |
173 |
|
|
|
174 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
175 |
static {
|
|
|
176 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
177 |
tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
178 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
179 |
tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
180 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
181 |
tmpMap.put(_Fields.PHONE, new org.apache.thrift.meta_data.FieldMetaData("phone", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
182 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
183 |
tmpMap.put(_Fields.FAX, new org.apache.thrift.meta_data.FieldMetaData("fax", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
184 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
185 |
tmpMap.put(_Fields.TIN, new org.apache.thrift.meta_data.FieldMetaData("tin", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
186 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
187 |
tmpMap.put(_Fields.PAN, new org.apache.thrift.meta_data.FieldMetaData("pan", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
188 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
189 |
tmpMap.put(_Fields.HEAD_NAME, new org.apache.thrift.meta_data.FieldMetaData("headName", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
190 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
191 |
tmpMap.put(_Fields.HEAD_DESIGNATION, new org.apache.thrift.meta_data.FieldMetaData("headDesignation", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
192 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
193 |
tmpMap.put(_Fields.HEAD_EMAIL, new org.apache.thrift.meta_data.FieldMetaData("headEmail", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
194 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
195 |
tmpMap.put(_Fields.CONTACT_NAME, new org.apache.thrift.meta_data.FieldMetaData("contactName", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
196 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
197 |
tmpMap.put(_Fields.CONTACT_PHONE, new org.apache.thrift.meta_data.FieldMetaData("contactPhone", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
198 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
199 |
tmpMap.put(_Fields.CONTACT_FAX, new org.apache.thrift.meta_data.FieldMetaData("contactFax", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
200 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
201 |
tmpMap.put(_Fields.CONTACT_EMAIL, new org.apache.thrift.meta_data.FieldMetaData("contactEmail", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
202 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
203 |
tmpMap.put(_Fields.REGISTERED_ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("registeredAddress", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
204 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
205 |
tmpMap.put(_Fields.COMMUNICATION_ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("communicationAddress", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
206 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 10295 |
amar.kumar |
207 |
tmpMap.put(_Fields.STATE_ID, new org.apache.thrift.meta_data.FieldMetaData("stateId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
208 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 14072 |
manish.sha |
209 |
tmpMap.put(_Fields.PO_VALIDITY_LIMIT, new org.apache.thrift.meta_data.FieldMetaData("poValidityLimit", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
210 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 4496 |
mandeep.dh |
211 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
212 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Supplier.class, metaDataMap);
|
|
|
213 |
}
|
|
|
214 |
|
|
|
215 |
public Supplier() {
|
|
|
216 |
}
|
|
|
217 |
|
|
|
218 |
public Supplier(
|
|
|
219 |
long id,
|
|
|
220 |
String name,
|
|
|
221 |
String phone,
|
|
|
222 |
String fax,
|
|
|
223 |
String tin,
|
|
|
224 |
String pan,
|
|
|
225 |
String headName,
|
|
|
226 |
String headDesignation,
|
|
|
227 |
String headEmail,
|
|
|
228 |
String contactName,
|
|
|
229 |
String contactPhone,
|
|
|
230 |
String contactFax,
|
|
|
231 |
String contactEmail,
|
|
|
232 |
String registeredAddress,
|
| 10295 |
amar.kumar |
233 |
String communicationAddress,
|
| 14072 |
manish.sha |
234 |
long stateId,
|
|
|
235 |
long poValidityLimit)
|
| 4496 |
mandeep.dh |
236 |
{
|
|
|
237 |
this();
|
|
|
238 |
this.id = id;
|
|
|
239 |
setIdIsSet(true);
|
|
|
240 |
this.name = name;
|
|
|
241 |
this.phone = phone;
|
|
|
242 |
this.fax = fax;
|
|
|
243 |
this.tin = tin;
|
|
|
244 |
this.pan = pan;
|
|
|
245 |
this.headName = headName;
|
|
|
246 |
this.headDesignation = headDesignation;
|
|
|
247 |
this.headEmail = headEmail;
|
|
|
248 |
this.contactName = contactName;
|
|
|
249 |
this.contactPhone = contactPhone;
|
|
|
250 |
this.contactFax = contactFax;
|
|
|
251 |
this.contactEmail = contactEmail;
|
|
|
252 |
this.registeredAddress = registeredAddress;
|
|
|
253 |
this.communicationAddress = communicationAddress;
|
| 10295 |
amar.kumar |
254 |
this.stateId = stateId;
|
|
|
255 |
setStateIdIsSet(true);
|
| 14072 |
manish.sha |
256 |
this.poValidityLimit = poValidityLimit;
|
|
|
257 |
setPoValidityLimitIsSet(true);
|
| 4496 |
mandeep.dh |
258 |
}
|
|
|
259 |
|
|
|
260 |
/**
|
|
|
261 |
* Performs a deep copy on <i>other</i>.
|
|
|
262 |
*/
|
|
|
263 |
public Supplier(Supplier other) {
|
|
|
264 |
__isset_bit_vector.clear();
|
|
|
265 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
266 |
this.id = other.id;
|
|
|
267 |
if (other.isSetName()) {
|
|
|
268 |
this.name = other.name;
|
|
|
269 |
}
|
|
|
270 |
if (other.isSetPhone()) {
|
|
|
271 |
this.phone = other.phone;
|
|
|
272 |
}
|
|
|
273 |
if (other.isSetFax()) {
|
|
|
274 |
this.fax = other.fax;
|
|
|
275 |
}
|
|
|
276 |
if (other.isSetTin()) {
|
|
|
277 |
this.tin = other.tin;
|
|
|
278 |
}
|
|
|
279 |
if (other.isSetPan()) {
|
|
|
280 |
this.pan = other.pan;
|
|
|
281 |
}
|
|
|
282 |
if (other.isSetHeadName()) {
|
|
|
283 |
this.headName = other.headName;
|
|
|
284 |
}
|
|
|
285 |
if (other.isSetHeadDesignation()) {
|
|
|
286 |
this.headDesignation = other.headDesignation;
|
|
|
287 |
}
|
|
|
288 |
if (other.isSetHeadEmail()) {
|
|
|
289 |
this.headEmail = other.headEmail;
|
|
|
290 |
}
|
|
|
291 |
if (other.isSetContactName()) {
|
|
|
292 |
this.contactName = other.contactName;
|
|
|
293 |
}
|
|
|
294 |
if (other.isSetContactPhone()) {
|
|
|
295 |
this.contactPhone = other.contactPhone;
|
|
|
296 |
}
|
|
|
297 |
if (other.isSetContactFax()) {
|
|
|
298 |
this.contactFax = other.contactFax;
|
|
|
299 |
}
|
|
|
300 |
if (other.isSetContactEmail()) {
|
|
|
301 |
this.contactEmail = other.contactEmail;
|
|
|
302 |
}
|
|
|
303 |
if (other.isSetRegisteredAddress()) {
|
|
|
304 |
this.registeredAddress = other.registeredAddress;
|
|
|
305 |
}
|
|
|
306 |
if (other.isSetCommunicationAddress()) {
|
|
|
307 |
this.communicationAddress = other.communicationAddress;
|
|
|
308 |
}
|
| 10295 |
amar.kumar |
309 |
this.stateId = other.stateId;
|
| 14072 |
manish.sha |
310 |
this.poValidityLimit = other.poValidityLimit;
|
| 4496 |
mandeep.dh |
311 |
}
|
|
|
312 |
|
|
|
313 |
public Supplier deepCopy() {
|
|
|
314 |
return new Supplier(this);
|
|
|
315 |
}
|
|
|
316 |
|
|
|
317 |
@Override
|
|
|
318 |
public void clear() {
|
|
|
319 |
setIdIsSet(false);
|
|
|
320 |
this.id = 0;
|
|
|
321 |
this.name = null;
|
|
|
322 |
this.phone = null;
|
|
|
323 |
this.fax = null;
|
|
|
324 |
this.tin = null;
|
|
|
325 |
this.pan = null;
|
|
|
326 |
this.headName = null;
|
|
|
327 |
this.headDesignation = null;
|
|
|
328 |
this.headEmail = null;
|
|
|
329 |
this.contactName = null;
|
|
|
330 |
this.contactPhone = null;
|
|
|
331 |
this.contactFax = null;
|
|
|
332 |
this.contactEmail = null;
|
|
|
333 |
this.registeredAddress = null;
|
|
|
334 |
this.communicationAddress = null;
|
| 10295 |
amar.kumar |
335 |
setStateIdIsSet(false);
|
|
|
336 |
this.stateId = 0;
|
| 14072 |
manish.sha |
337 |
setPoValidityLimitIsSet(false);
|
|
|
338 |
this.poValidityLimit = 0;
|
| 4496 |
mandeep.dh |
339 |
}
|
|
|
340 |
|
|
|
341 |
public long getId() {
|
|
|
342 |
return this.id;
|
|
|
343 |
}
|
|
|
344 |
|
|
|
345 |
public void setId(long id) {
|
|
|
346 |
this.id = id;
|
|
|
347 |
setIdIsSet(true);
|
|
|
348 |
}
|
|
|
349 |
|
|
|
350 |
public void unsetId() {
|
|
|
351 |
__isset_bit_vector.clear(__ID_ISSET_ID);
|
|
|
352 |
}
|
|
|
353 |
|
|
|
354 |
/** Returns true if field id is set (has been assigned a value) and false otherwise */
|
|
|
355 |
public boolean isSetId() {
|
|
|
356 |
return __isset_bit_vector.get(__ID_ISSET_ID);
|
|
|
357 |
}
|
|
|
358 |
|
|
|
359 |
public void setIdIsSet(boolean value) {
|
|
|
360 |
__isset_bit_vector.set(__ID_ISSET_ID, value);
|
|
|
361 |
}
|
|
|
362 |
|
|
|
363 |
public String getName() {
|
|
|
364 |
return this.name;
|
|
|
365 |
}
|
|
|
366 |
|
|
|
367 |
public void setName(String name) {
|
|
|
368 |
this.name = name;
|
|
|
369 |
}
|
|
|
370 |
|
|
|
371 |
public void unsetName() {
|
|
|
372 |
this.name = null;
|
|
|
373 |
}
|
|
|
374 |
|
|
|
375 |
/** Returns true if field name is set (has been assigned a value) and false otherwise */
|
|
|
376 |
public boolean isSetName() {
|
|
|
377 |
return this.name != null;
|
|
|
378 |
}
|
|
|
379 |
|
|
|
380 |
public void setNameIsSet(boolean value) {
|
|
|
381 |
if (!value) {
|
|
|
382 |
this.name = null;
|
|
|
383 |
}
|
|
|
384 |
}
|
|
|
385 |
|
|
|
386 |
public String getPhone() {
|
|
|
387 |
return this.phone;
|
|
|
388 |
}
|
|
|
389 |
|
|
|
390 |
public void setPhone(String phone) {
|
|
|
391 |
this.phone = phone;
|
|
|
392 |
}
|
|
|
393 |
|
|
|
394 |
public void unsetPhone() {
|
|
|
395 |
this.phone = null;
|
|
|
396 |
}
|
|
|
397 |
|
|
|
398 |
/** Returns true if field phone is set (has been assigned a value) and false otherwise */
|
|
|
399 |
public boolean isSetPhone() {
|
|
|
400 |
return this.phone != null;
|
|
|
401 |
}
|
|
|
402 |
|
|
|
403 |
public void setPhoneIsSet(boolean value) {
|
|
|
404 |
if (!value) {
|
|
|
405 |
this.phone = null;
|
|
|
406 |
}
|
|
|
407 |
}
|
|
|
408 |
|
|
|
409 |
public String getFax() {
|
|
|
410 |
return this.fax;
|
|
|
411 |
}
|
|
|
412 |
|
|
|
413 |
public void setFax(String fax) {
|
|
|
414 |
this.fax = fax;
|
|
|
415 |
}
|
|
|
416 |
|
|
|
417 |
public void unsetFax() {
|
|
|
418 |
this.fax = null;
|
|
|
419 |
}
|
|
|
420 |
|
|
|
421 |
/** Returns true if field fax is set (has been assigned a value) and false otherwise */
|
|
|
422 |
public boolean isSetFax() {
|
|
|
423 |
return this.fax != null;
|
|
|
424 |
}
|
|
|
425 |
|
|
|
426 |
public void setFaxIsSet(boolean value) {
|
|
|
427 |
if (!value) {
|
|
|
428 |
this.fax = null;
|
|
|
429 |
}
|
|
|
430 |
}
|
|
|
431 |
|
|
|
432 |
public String getTin() {
|
|
|
433 |
return this.tin;
|
|
|
434 |
}
|
|
|
435 |
|
|
|
436 |
public void setTin(String tin) {
|
|
|
437 |
this.tin = tin;
|
|
|
438 |
}
|
|
|
439 |
|
|
|
440 |
public void unsetTin() {
|
|
|
441 |
this.tin = null;
|
|
|
442 |
}
|
|
|
443 |
|
|
|
444 |
/** Returns true if field tin is set (has been assigned a value) and false otherwise */
|
|
|
445 |
public boolean isSetTin() {
|
|
|
446 |
return this.tin != null;
|
|
|
447 |
}
|
|
|
448 |
|
|
|
449 |
public void setTinIsSet(boolean value) {
|
|
|
450 |
if (!value) {
|
|
|
451 |
this.tin = null;
|
|
|
452 |
}
|
|
|
453 |
}
|
|
|
454 |
|
|
|
455 |
public String getPan() {
|
|
|
456 |
return this.pan;
|
|
|
457 |
}
|
|
|
458 |
|
|
|
459 |
public void setPan(String pan) {
|
|
|
460 |
this.pan = pan;
|
|
|
461 |
}
|
|
|
462 |
|
|
|
463 |
public void unsetPan() {
|
|
|
464 |
this.pan = null;
|
|
|
465 |
}
|
|
|
466 |
|
|
|
467 |
/** Returns true if field pan is set (has been assigned a value) and false otherwise */
|
|
|
468 |
public boolean isSetPan() {
|
|
|
469 |
return this.pan != null;
|
|
|
470 |
}
|
|
|
471 |
|
|
|
472 |
public void setPanIsSet(boolean value) {
|
|
|
473 |
if (!value) {
|
|
|
474 |
this.pan = null;
|
|
|
475 |
}
|
|
|
476 |
}
|
|
|
477 |
|
|
|
478 |
public String getHeadName() {
|
|
|
479 |
return this.headName;
|
|
|
480 |
}
|
|
|
481 |
|
|
|
482 |
public void setHeadName(String headName) {
|
|
|
483 |
this.headName = headName;
|
|
|
484 |
}
|
|
|
485 |
|
|
|
486 |
public void unsetHeadName() {
|
|
|
487 |
this.headName = null;
|
|
|
488 |
}
|
|
|
489 |
|
|
|
490 |
/** Returns true if field headName is set (has been assigned a value) and false otherwise */
|
|
|
491 |
public boolean isSetHeadName() {
|
|
|
492 |
return this.headName != null;
|
|
|
493 |
}
|
|
|
494 |
|
|
|
495 |
public void setHeadNameIsSet(boolean value) {
|
|
|
496 |
if (!value) {
|
|
|
497 |
this.headName = null;
|
|
|
498 |
}
|
|
|
499 |
}
|
|
|
500 |
|
|
|
501 |
public String getHeadDesignation() {
|
|
|
502 |
return this.headDesignation;
|
|
|
503 |
}
|
|
|
504 |
|
|
|
505 |
public void setHeadDesignation(String headDesignation) {
|
|
|
506 |
this.headDesignation = headDesignation;
|
|
|
507 |
}
|
|
|
508 |
|
|
|
509 |
public void unsetHeadDesignation() {
|
|
|
510 |
this.headDesignation = null;
|
|
|
511 |
}
|
|
|
512 |
|
|
|
513 |
/** Returns true if field headDesignation is set (has been assigned a value) and false otherwise */
|
|
|
514 |
public boolean isSetHeadDesignation() {
|
|
|
515 |
return this.headDesignation != null;
|
|
|
516 |
}
|
|
|
517 |
|
|
|
518 |
public void setHeadDesignationIsSet(boolean value) {
|
|
|
519 |
if (!value) {
|
|
|
520 |
this.headDesignation = null;
|
|
|
521 |
}
|
|
|
522 |
}
|
|
|
523 |
|
|
|
524 |
public String getHeadEmail() {
|
|
|
525 |
return this.headEmail;
|
|
|
526 |
}
|
|
|
527 |
|
|
|
528 |
public void setHeadEmail(String headEmail) {
|
|
|
529 |
this.headEmail = headEmail;
|
|
|
530 |
}
|
|
|
531 |
|
|
|
532 |
public void unsetHeadEmail() {
|
|
|
533 |
this.headEmail = null;
|
|
|
534 |
}
|
|
|
535 |
|
|
|
536 |
/** Returns true if field headEmail is set (has been assigned a value) and false otherwise */
|
|
|
537 |
public boolean isSetHeadEmail() {
|
|
|
538 |
return this.headEmail != null;
|
|
|
539 |
}
|
|
|
540 |
|
|
|
541 |
public void setHeadEmailIsSet(boolean value) {
|
|
|
542 |
if (!value) {
|
|
|
543 |
this.headEmail = null;
|
|
|
544 |
}
|
|
|
545 |
}
|
|
|
546 |
|
|
|
547 |
public String getContactName() {
|
|
|
548 |
return this.contactName;
|
|
|
549 |
}
|
|
|
550 |
|
|
|
551 |
public void setContactName(String contactName) {
|
|
|
552 |
this.contactName = contactName;
|
|
|
553 |
}
|
|
|
554 |
|
|
|
555 |
public void unsetContactName() {
|
|
|
556 |
this.contactName = null;
|
|
|
557 |
}
|
|
|
558 |
|
|
|
559 |
/** Returns true if field contactName is set (has been assigned a value) and false otherwise */
|
|
|
560 |
public boolean isSetContactName() {
|
|
|
561 |
return this.contactName != null;
|
|
|
562 |
}
|
|
|
563 |
|
|
|
564 |
public void setContactNameIsSet(boolean value) {
|
|
|
565 |
if (!value) {
|
|
|
566 |
this.contactName = null;
|
|
|
567 |
}
|
|
|
568 |
}
|
|
|
569 |
|
|
|
570 |
public String getContactPhone() {
|
|
|
571 |
return this.contactPhone;
|
|
|
572 |
}
|
|
|
573 |
|
|
|
574 |
public void setContactPhone(String contactPhone) {
|
|
|
575 |
this.contactPhone = contactPhone;
|
|
|
576 |
}
|
|
|
577 |
|
|
|
578 |
public void unsetContactPhone() {
|
|
|
579 |
this.contactPhone = null;
|
|
|
580 |
}
|
|
|
581 |
|
|
|
582 |
/** Returns true if field contactPhone is set (has been assigned a value) and false otherwise */
|
|
|
583 |
public boolean isSetContactPhone() {
|
|
|
584 |
return this.contactPhone != null;
|
|
|
585 |
}
|
|
|
586 |
|
|
|
587 |
public void setContactPhoneIsSet(boolean value) {
|
|
|
588 |
if (!value) {
|
|
|
589 |
this.contactPhone = null;
|
|
|
590 |
}
|
|
|
591 |
}
|
|
|
592 |
|
|
|
593 |
public String getContactFax() {
|
|
|
594 |
return this.contactFax;
|
|
|
595 |
}
|
|
|
596 |
|
|
|
597 |
public void setContactFax(String contactFax) {
|
|
|
598 |
this.contactFax = contactFax;
|
|
|
599 |
}
|
|
|
600 |
|
|
|
601 |
public void unsetContactFax() {
|
|
|
602 |
this.contactFax = null;
|
|
|
603 |
}
|
|
|
604 |
|
|
|
605 |
/** Returns true if field contactFax is set (has been assigned a value) and false otherwise */
|
|
|
606 |
public boolean isSetContactFax() {
|
|
|
607 |
return this.contactFax != null;
|
|
|
608 |
}
|
|
|
609 |
|
|
|
610 |
public void setContactFaxIsSet(boolean value) {
|
|
|
611 |
if (!value) {
|
|
|
612 |
this.contactFax = null;
|
|
|
613 |
}
|
|
|
614 |
}
|
|
|
615 |
|
|
|
616 |
public String getContactEmail() {
|
|
|
617 |
return this.contactEmail;
|
|
|
618 |
}
|
|
|
619 |
|
|
|
620 |
public void setContactEmail(String contactEmail) {
|
|
|
621 |
this.contactEmail = contactEmail;
|
|
|
622 |
}
|
|
|
623 |
|
|
|
624 |
public void unsetContactEmail() {
|
|
|
625 |
this.contactEmail = null;
|
|
|
626 |
}
|
|
|
627 |
|
|
|
628 |
/** Returns true if field contactEmail is set (has been assigned a value) and false otherwise */
|
|
|
629 |
public boolean isSetContactEmail() {
|
|
|
630 |
return this.contactEmail != null;
|
|
|
631 |
}
|
|
|
632 |
|
|
|
633 |
public void setContactEmailIsSet(boolean value) {
|
|
|
634 |
if (!value) {
|
|
|
635 |
this.contactEmail = null;
|
|
|
636 |
}
|
|
|
637 |
}
|
|
|
638 |
|
|
|
639 |
public String getRegisteredAddress() {
|
|
|
640 |
return this.registeredAddress;
|
|
|
641 |
}
|
|
|
642 |
|
|
|
643 |
public void setRegisteredAddress(String registeredAddress) {
|
|
|
644 |
this.registeredAddress = registeredAddress;
|
|
|
645 |
}
|
|
|
646 |
|
|
|
647 |
public void unsetRegisteredAddress() {
|
|
|
648 |
this.registeredAddress = null;
|
|
|
649 |
}
|
|
|
650 |
|
|
|
651 |
/** Returns true if field registeredAddress is set (has been assigned a value) and false otherwise */
|
|
|
652 |
public boolean isSetRegisteredAddress() {
|
|
|
653 |
return this.registeredAddress != null;
|
|
|
654 |
}
|
|
|
655 |
|
|
|
656 |
public void setRegisteredAddressIsSet(boolean value) {
|
|
|
657 |
if (!value) {
|
|
|
658 |
this.registeredAddress = null;
|
|
|
659 |
}
|
|
|
660 |
}
|
|
|
661 |
|
|
|
662 |
public String getCommunicationAddress() {
|
|
|
663 |
return this.communicationAddress;
|
|
|
664 |
}
|
|
|
665 |
|
|
|
666 |
public void setCommunicationAddress(String communicationAddress) {
|
|
|
667 |
this.communicationAddress = communicationAddress;
|
|
|
668 |
}
|
|
|
669 |
|
|
|
670 |
public void unsetCommunicationAddress() {
|
|
|
671 |
this.communicationAddress = null;
|
|
|
672 |
}
|
|
|
673 |
|
|
|
674 |
/** Returns true if field communicationAddress is set (has been assigned a value) and false otherwise */
|
|
|
675 |
public boolean isSetCommunicationAddress() {
|
|
|
676 |
return this.communicationAddress != null;
|
|
|
677 |
}
|
|
|
678 |
|
|
|
679 |
public void setCommunicationAddressIsSet(boolean value) {
|
|
|
680 |
if (!value) {
|
|
|
681 |
this.communicationAddress = null;
|
|
|
682 |
}
|
|
|
683 |
}
|
|
|
684 |
|
| 10295 |
amar.kumar |
685 |
public long getStateId() {
|
|
|
686 |
return this.stateId;
|
|
|
687 |
}
|
|
|
688 |
|
|
|
689 |
public void setStateId(long stateId) {
|
|
|
690 |
this.stateId = stateId;
|
|
|
691 |
setStateIdIsSet(true);
|
|
|
692 |
}
|
|
|
693 |
|
|
|
694 |
public void unsetStateId() {
|
|
|
695 |
__isset_bit_vector.clear(__STATEID_ISSET_ID);
|
|
|
696 |
}
|
|
|
697 |
|
|
|
698 |
/** Returns true if field stateId is set (has been assigned a value) and false otherwise */
|
|
|
699 |
public boolean isSetStateId() {
|
|
|
700 |
return __isset_bit_vector.get(__STATEID_ISSET_ID);
|
|
|
701 |
}
|
|
|
702 |
|
|
|
703 |
public void setStateIdIsSet(boolean value) {
|
|
|
704 |
__isset_bit_vector.set(__STATEID_ISSET_ID, value);
|
|
|
705 |
}
|
|
|
706 |
|
| 14072 |
manish.sha |
707 |
public long getPoValidityLimit() {
|
|
|
708 |
return this.poValidityLimit;
|
|
|
709 |
}
|
|
|
710 |
|
|
|
711 |
public void setPoValidityLimit(long poValidityLimit) {
|
|
|
712 |
this.poValidityLimit = poValidityLimit;
|
|
|
713 |
setPoValidityLimitIsSet(true);
|
|
|
714 |
}
|
|
|
715 |
|
|
|
716 |
public void unsetPoValidityLimit() {
|
|
|
717 |
__isset_bit_vector.clear(__POVALIDITYLIMIT_ISSET_ID);
|
|
|
718 |
}
|
|
|
719 |
|
|
|
720 |
/** Returns true if field poValidityLimit is set (has been assigned a value) and false otherwise */
|
|
|
721 |
public boolean isSetPoValidityLimit() {
|
|
|
722 |
return __isset_bit_vector.get(__POVALIDITYLIMIT_ISSET_ID);
|
|
|
723 |
}
|
|
|
724 |
|
|
|
725 |
public void setPoValidityLimitIsSet(boolean value) {
|
|
|
726 |
__isset_bit_vector.set(__POVALIDITYLIMIT_ISSET_ID, value);
|
|
|
727 |
}
|
|
|
728 |
|
| 4496 |
mandeep.dh |
729 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
730 |
switch (field) {
|
|
|
731 |
case ID:
|
|
|
732 |
if (value == null) {
|
|
|
733 |
unsetId();
|
|
|
734 |
} else {
|
|
|
735 |
setId((Long)value);
|
|
|
736 |
}
|
|
|
737 |
break;
|
|
|
738 |
|
|
|
739 |
case NAME:
|
|
|
740 |
if (value == null) {
|
|
|
741 |
unsetName();
|
|
|
742 |
} else {
|
|
|
743 |
setName((String)value);
|
|
|
744 |
}
|
|
|
745 |
break;
|
|
|
746 |
|
|
|
747 |
case PHONE:
|
|
|
748 |
if (value == null) {
|
|
|
749 |
unsetPhone();
|
|
|
750 |
} else {
|
|
|
751 |
setPhone((String)value);
|
|
|
752 |
}
|
|
|
753 |
break;
|
|
|
754 |
|
|
|
755 |
case FAX:
|
|
|
756 |
if (value == null) {
|
|
|
757 |
unsetFax();
|
|
|
758 |
} else {
|
|
|
759 |
setFax((String)value);
|
|
|
760 |
}
|
|
|
761 |
break;
|
|
|
762 |
|
|
|
763 |
case TIN:
|
|
|
764 |
if (value == null) {
|
|
|
765 |
unsetTin();
|
|
|
766 |
} else {
|
|
|
767 |
setTin((String)value);
|
|
|
768 |
}
|
|
|
769 |
break;
|
|
|
770 |
|
|
|
771 |
case PAN:
|
|
|
772 |
if (value == null) {
|
|
|
773 |
unsetPan();
|
|
|
774 |
} else {
|
|
|
775 |
setPan((String)value);
|
|
|
776 |
}
|
|
|
777 |
break;
|
|
|
778 |
|
|
|
779 |
case HEAD_NAME:
|
|
|
780 |
if (value == null) {
|
|
|
781 |
unsetHeadName();
|
|
|
782 |
} else {
|
|
|
783 |
setHeadName((String)value);
|
|
|
784 |
}
|
|
|
785 |
break;
|
|
|
786 |
|
|
|
787 |
case HEAD_DESIGNATION:
|
|
|
788 |
if (value == null) {
|
|
|
789 |
unsetHeadDesignation();
|
|
|
790 |
} else {
|
|
|
791 |
setHeadDesignation((String)value);
|
|
|
792 |
}
|
|
|
793 |
break;
|
|
|
794 |
|
|
|
795 |
case HEAD_EMAIL:
|
|
|
796 |
if (value == null) {
|
|
|
797 |
unsetHeadEmail();
|
|
|
798 |
} else {
|
|
|
799 |
setHeadEmail((String)value);
|
|
|
800 |
}
|
|
|
801 |
break;
|
|
|
802 |
|
|
|
803 |
case CONTACT_NAME:
|
|
|
804 |
if (value == null) {
|
|
|
805 |
unsetContactName();
|
|
|
806 |
} else {
|
|
|
807 |
setContactName((String)value);
|
|
|
808 |
}
|
|
|
809 |
break;
|
|
|
810 |
|
|
|
811 |
case CONTACT_PHONE:
|
|
|
812 |
if (value == null) {
|
|
|
813 |
unsetContactPhone();
|
|
|
814 |
} else {
|
|
|
815 |
setContactPhone((String)value);
|
|
|
816 |
}
|
|
|
817 |
break;
|
|
|
818 |
|
|
|
819 |
case CONTACT_FAX:
|
|
|
820 |
if (value == null) {
|
|
|
821 |
unsetContactFax();
|
|
|
822 |
} else {
|
|
|
823 |
setContactFax((String)value);
|
|
|
824 |
}
|
|
|
825 |
break;
|
|
|
826 |
|
|
|
827 |
case CONTACT_EMAIL:
|
|
|
828 |
if (value == null) {
|
|
|
829 |
unsetContactEmail();
|
|
|
830 |
} else {
|
|
|
831 |
setContactEmail((String)value);
|
|
|
832 |
}
|
|
|
833 |
break;
|
|
|
834 |
|
|
|
835 |
case REGISTERED_ADDRESS:
|
|
|
836 |
if (value == null) {
|
|
|
837 |
unsetRegisteredAddress();
|
|
|
838 |
} else {
|
|
|
839 |
setRegisteredAddress((String)value);
|
|
|
840 |
}
|
|
|
841 |
break;
|
|
|
842 |
|
|
|
843 |
case COMMUNICATION_ADDRESS:
|
|
|
844 |
if (value == null) {
|
|
|
845 |
unsetCommunicationAddress();
|
|
|
846 |
} else {
|
|
|
847 |
setCommunicationAddress((String)value);
|
|
|
848 |
}
|
|
|
849 |
break;
|
|
|
850 |
|
| 10295 |
amar.kumar |
851 |
case STATE_ID:
|
|
|
852 |
if (value == null) {
|
|
|
853 |
unsetStateId();
|
|
|
854 |
} else {
|
|
|
855 |
setStateId((Long)value);
|
|
|
856 |
}
|
|
|
857 |
break;
|
|
|
858 |
|
| 14072 |
manish.sha |
859 |
case PO_VALIDITY_LIMIT:
|
|
|
860 |
if (value == null) {
|
|
|
861 |
unsetPoValidityLimit();
|
|
|
862 |
} else {
|
|
|
863 |
setPoValidityLimit((Long)value);
|
|
|
864 |
}
|
|
|
865 |
break;
|
|
|
866 |
|
| 4496 |
mandeep.dh |
867 |
}
|
|
|
868 |
}
|
|
|
869 |
|
|
|
870 |
public Object getFieldValue(_Fields field) {
|
|
|
871 |
switch (field) {
|
|
|
872 |
case ID:
|
|
|
873 |
return Long.valueOf(getId());
|
|
|
874 |
|
|
|
875 |
case NAME:
|
|
|
876 |
return getName();
|
|
|
877 |
|
|
|
878 |
case PHONE:
|
|
|
879 |
return getPhone();
|
|
|
880 |
|
|
|
881 |
case FAX:
|
|
|
882 |
return getFax();
|
|
|
883 |
|
|
|
884 |
case TIN:
|
|
|
885 |
return getTin();
|
|
|
886 |
|
|
|
887 |
case PAN:
|
|
|
888 |
return getPan();
|
|
|
889 |
|
|
|
890 |
case HEAD_NAME:
|
|
|
891 |
return getHeadName();
|
|
|
892 |
|
|
|
893 |
case HEAD_DESIGNATION:
|
|
|
894 |
return getHeadDesignation();
|
|
|
895 |
|
|
|
896 |
case HEAD_EMAIL:
|
|
|
897 |
return getHeadEmail();
|
|
|
898 |
|
|
|
899 |
case CONTACT_NAME:
|
|
|
900 |
return getContactName();
|
|
|
901 |
|
|
|
902 |
case CONTACT_PHONE:
|
|
|
903 |
return getContactPhone();
|
|
|
904 |
|
|
|
905 |
case CONTACT_FAX:
|
|
|
906 |
return getContactFax();
|
|
|
907 |
|
|
|
908 |
case CONTACT_EMAIL:
|
|
|
909 |
return getContactEmail();
|
|
|
910 |
|
|
|
911 |
case REGISTERED_ADDRESS:
|
|
|
912 |
return getRegisteredAddress();
|
|
|
913 |
|
|
|
914 |
case COMMUNICATION_ADDRESS:
|
|
|
915 |
return getCommunicationAddress();
|
|
|
916 |
|
| 10295 |
amar.kumar |
917 |
case STATE_ID:
|
|
|
918 |
return Long.valueOf(getStateId());
|
|
|
919 |
|
| 14072 |
manish.sha |
920 |
case PO_VALIDITY_LIMIT:
|
|
|
921 |
return Long.valueOf(getPoValidityLimit());
|
|
|
922 |
|
| 4496 |
mandeep.dh |
923 |
}
|
|
|
924 |
throw new IllegalStateException();
|
|
|
925 |
}
|
|
|
926 |
|
|
|
927 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
928 |
public boolean isSet(_Fields field) {
|
|
|
929 |
if (field == null) {
|
|
|
930 |
throw new IllegalArgumentException();
|
|
|
931 |
}
|
|
|
932 |
|
|
|
933 |
switch (field) {
|
|
|
934 |
case ID:
|
|
|
935 |
return isSetId();
|
|
|
936 |
case NAME:
|
|
|
937 |
return isSetName();
|
|
|
938 |
case PHONE:
|
|
|
939 |
return isSetPhone();
|
|
|
940 |
case FAX:
|
|
|
941 |
return isSetFax();
|
|
|
942 |
case TIN:
|
|
|
943 |
return isSetTin();
|
|
|
944 |
case PAN:
|
|
|
945 |
return isSetPan();
|
|
|
946 |
case HEAD_NAME:
|
|
|
947 |
return isSetHeadName();
|
|
|
948 |
case HEAD_DESIGNATION:
|
|
|
949 |
return isSetHeadDesignation();
|
|
|
950 |
case HEAD_EMAIL:
|
|
|
951 |
return isSetHeadEmail();
|
|
|
952 |
case CONTACT_NAME:
|
|
|
953 |
return isSetContactName();
|
|
|
954 |
case CONTACT_PHONE:
|
|
|
955 |
return isSetContactPhone();
|
|
|
956 |
case CONTACT_FAX:
|
|
|
957 |
return isSetContactFax();
|
|
|
958 |
case CONTACT_EMAIL:
|
|
|
959 |
return isSetContactEmail();
|
|
|
960 |
case REGISTERED_ADDRESS:
|
|
|
961 |
return isSetRegisteredAddress();
|
|
|
962 |
case COMMUNICATION_ADDRESS:
|
|
|
963 |
return isSetCommunicationAddress();
|
| 10295 |
amar.kumar |
964 |
case STATE_ID:
|
|
|
965 |
return isSetStateId();
|
| 14072 |
manish.sha |
966 |
case PO_VALIDITY_LIMIT:
|
|
|
967 |
return isSetPoValidityLimit();
|
| 4496 |
mandeep.dh |
968 |
}
|
|
|
969 |
throw new IllegalStateException();
|
|
|
970 |
}
|
|
|
971 |
|
|
|
972 |
@Override
|
|
|
973 |
public boolean equals(Object that) {
|
|
|
974 |
if (that == null)
|
|
|
975 |
return false;
|
|
|
976 |
if (that instanceof Supplier)
|
|
|
977 |
return this.equals((Supplier)that);
|
|
|
978 |
return false;
|
|
|
979 |
}
|
|
|
980 |
|
|
|
981 |
public boolean equals(Supplier that) {
|
|
|
982 |
if (that == null)
|
|
|
983 |
return false;
|
|
|
984 |
|
|
|
985 |
boolean this_present_id = true;
|
|
|
986 |
boolean that_present_id = true;
|
|
|
987 |
if (this_present_id || that_present_id) {
|
|
|
988 |
if (!(this_present_id && that_present_id))
|
|
|
989 |
return false;
|
|
|
990 |
if (this.id != that.id)
|
|
|
991 |
return false;
|
|
|
992 |
}
|
|
|
993 |
|
|
|
994 |
boolean this_present_name = true && this.isSetName();
|
|
|
995 |
boolean that_present_name = true && that.isSetName();
|
|
|
996 |
if (this_present_name || that_present_name) {
|
|
|
997 |
if (!(this_present_name && that_present_name))
|
|
|
998 |
return false;
|
|
|
999 |
if (!this.name.equals(that.name))
|
|
|
1000 |
return false;
|
|
|
1001 |
}
|
|
|
1002 |
|
|
|
1003 |
boolean this_present_phone = true && this.isSetPhone();
|
|
|
1004 |
boolean that_present_phone = true && that.isSetPhone();
|
|
|
1005 |
if (this_present_phone || that_present_phone) {
|
|
|
1006 |
if (!(this_present_phone && that_present_phone))
|
|
|
1007 |
return false;
|
|
|
1008 |
if (!this.phone.equals(that.phone))
|
|
|
1009 |
return false;
|
|
|
1010 |
}
|
|
|
1011 |
|
|
|
1012 |
boolean this_present_fax = true && this.isSetFax();
|
|
|
1013 |
boolean that_present_fax = true && that.isSetFax();
|
|
|
1014 |
if (this_present_fax || that_present_fax) {
|
|
|
1015 |
if (!(this_present_fax && that_present_fax))
|
|
|
1016 |
return false;
|
|
|
1017 |
if (!this.fax.equals(that.fax))
|
|
|
1018 |
return false;
|
|
|
1019 |
}
|
|
|
1020 |
|
|
|
1021 |
boolean this_present_tin = true && this.isSetTin();
|
|
|
1022 |
boolean that_present_tin = true && that.isSetTin();
|
|
|
1023 |
if (this_present_tin || that_present_tin) {
|
|
|
1024 |
if (!(this_present_tin && that_present_tin))
|
|
|
1025 |
return false;
|
|
|
1026 |
if (!this.tin.equals(that.tin))
|
|
|
1027 |
return false;
|
|
|
1028 |
}
|
|
|
1029 |
|
|
|
1030 |
boolean this_present_pan = true && this.isSetPan();
|
|
|
1031 |
boolean that_present_pan = true && that.isSetPan();
|
|
|
1032 |
if (this_present_pan || that_present_pan) {
|
|
|
1033 |
if (!(this_present_pan && that_present_pan))
|
|
|
1034 |
return false;
|
|
|
1035 |
if (!this.pan.equals(that.pan))
|
|
|
1036 |
return false;
|
|
|
1037 |
}
|
|
|
1038 |
|
|
|
1039 |
boolean this_present_headName = true && this.isSetHeadName();
|
|
|
1040 |
boolean that_present_headName = true && that.isSetHeadName();
|
|
|
1041 |
if (this_present_headName || that_present_headName) {
|
|
|
1042 |
if (!(this_present_headName && that_present_headName))
|
|
|
1043 |
return false;
|
|
|
1044 |
if (!this.headName.equals(that.headName))
|
|
|
1045 |
return false;
|
|
|
1046 |
}
|
|
|
1047 |
|
|
|
1048 |
boolean this_present_headDesignation = true && this.isSetHeadDesignation();
|
|
|
1049 |
boolean that_present_headDesignation = true && that.isSetHeadDesignation();
|
|
|
1050 |
if (this_present_headDesignation || that_present_headDesignation) {
|
|
|
1051 |
if (!(this_present_headDesignation && that_present_headDesignation))
|
|
|
1052 |
return false;
|
|
|
1053 |
if (!this.headDesignation.equals(that.headDesignation))
|
|
|
1054 |
return false;
|
|
|
1055 |
}
|
|
|
1056 |
|
|
|
1057 |
boolean this_present_headEmail = true && this.isSetHeadEmail();
|
|
|
1058 |
boolean that_present_headEmail = true && that.isSetHeadEmail();
|
|
|
1059 |
if (this_present_headEmail || that_present_headEmail) {
|
|
|
1060 |
if (!(this_present_headEmail && that_present_headEmail))
|
|
|
1061 |
return false;
|
|
|
1062 |
if (!this.headEmail.equals(that.headEmail))
|
|
|
1063 |
return false;
|
|
|
1064 |
}
|
|
|
1065 |
|
|
|
1066 |
boolean this_present_contactName = true && this.isSetContactName();
|
|
|
1067 |
boolean that_present_contactName = true && that.isSetContactName();
|
|
|
1068 |
if (this_present_contactName || that_present_contactName) {
|
|
|
1069 |
if (!(this_present_contactName && that_present_contactName))
|
|
|
1070 |
return false;
|
|
|
1071 |
if (!this.contactName.equals(that.contactName))
|
|
|
1072 |
return false;
|
|
|
1073 |
}
|
|
|
1074 |
|
|
|
1075 |
boolean this_present_contactPhone = true && this.isSetContactPhone();
|
|
|
1076 |
boolean that_present_contactPhone = true && that.isSetContactPhone();
|
|
|
1077 |
if (this_present_contactPhone || that_present_contactPhone) {
|
|
|
1078 |
if (!(this_present_contactPhone && that_present_contactPhone))
|
|
|
1079 |
return false;
|
|
|
1080 |
if (!this.contactPhone.equals(that.contactPhone))
|
|
|
1081 |
return false;
|
|
|
1082 |
}
|
|
|
1083 |
|
|
|
1084 |
boolean this_present_contactFax = true && this.isSetContactFax();
|
|
|
1085 |
boolean that_present_contactFax = true && that.isSetContactFax();
|
|
|
1086 |
if (this_present_contactFax || that_present_contactFax) {
|
|
|
1087 |
if (!(this_present_contactFax && that_present_contactFax))
|
|
|
1088 |
return false;
|
|
|
1089 |
if (!this.contactFax.equals(that.contactFax))
|
|
|
1090 |
return false;
|
|
|
1091 |
}
|
|
|
1092 |
|
|
|
1093 |
boolean this_present_contactEmail = true && this.isSetContactEmail();
|
|
|
1094 |
boolean that_present_contactEmail = true && that.isSetContactEmail();
|
|
|
1095 |
if (this_present_contactEmail || that_present_contactEmail) {
|
|
|
1096 |
if (!(this_present_contactEmail && that_present_contactEmail))
|
|
|
1097 |
return false;
|
|
|
1098 |
if (!this.contactEmail.equals(that.contactEmail))
|
|
|
1099 |
return false;
|
|
|
1100 |
}
|
|
|
1101 |
|
|
|
1102 |
boolean this_present_registeredAddress = true && this.isSetRegisteredAddress();
|
|
|
1103 |
boolean that_present_registeredAddress = true && that.isSetRegisteredAddress();
|
|
|
1104 |
if (this_present_registeredAddress || that_present_registeredAddress) {
|
|
|
1105 |
if (!(this_present_registeredAddress && that_present_registeredAddress))
|
|
|
1106 |
return false;
|
|
|
1107 |
if (!this.registeredAddress.equals(that.registeredAddress))
|
|
|
1108 |
return false;
|
|
|
1109 |
}
|
|
|
1110 |
|
|
|
1111 |
boolean this_present_communicationAddress = true && this.isSetCommunicationAddress();
|
|
|
1112 |
boolean that_present_communicationAddress = true && that.isSetCommunicationAddress();
|
|
|
1113 |
if (this_present_communicationAddress || that_present_communicationAddress) {
|
|
|
1114 |
if (!(this_present_communicationAddress && that_present_communicationAddress))
|
|
|
1115 |
return false;
|
|
|
1116 |
if (!this.communicationAddress.equals(that.communicationAddress))
|
|
|
1117 |
return false;
|
|
|
1118 |
}
|
|
|
1119 |
|
| 10295 |
amar.kumar |
1120 |
boolean this_present_stateId = true;
|
|
|
1121 |
boolean that_present_stateId = true;
|
|
|
1122 |
if (this_present_stateId || that_present_stateId) {
|
|
|
1123 |
if (!(this_present_stateId && that_present_stateId))
|
|
|
1124 |
return false;
|
|
|
1125 |
if (this.stateId != that.stateId)
|
|
|
1126 |
return false;
|
|
|
1127 |
}
|
|
|
1128 |
|
| 14072 |
manish.sha |
1129 |
boolean this_present_poValidityLimit = true;
|
|
|
1130 |
boolean that_present_poValidityLimit = true;
|
|
|
1131 |
if (this_present_poValidityLimit || that_present_poValidityLimit) {
|
|
|
1132 |
if (!(this_present_poValidityLimit && that_present_poValidityLimit))
|
|
|
1133 |
return false;
|
|
|
1134 |
if (this.poValidityLimit != that.poValidityLimit)
|
|
|
1135 |
return false;
|
|
|
1136 |
}
|
|
|
1137 |
|
| 4496 |
mandeep.dh |
1138 |
return true;
|
|
|
1139 |
}
|
|
|
1140 |
|
|
|
1141 |
@Override
|
|
|
1142 |
public int hashCode() {
|
|
|
1143 |
return 0;
|
|
|
1144 |
}
|
|
|
1145 |
|
|
|
1146 |
public int compareTo(Supplier other) {
|
|
|
1147 |
if (!getClass().equals(other.getClass())) {
|
|
|
1148 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
1149 |
}
|
|
|
1150 |
|
|
|
1151 |
int lastComparison = 0;
|
|
|
1152 |
Supplier typedOther = (Supplier)other;
|
|
|
1153 |
|
|
|
1154 |
lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
|
|
|
1155 |
if (lastComparison != 0) {
|
|
|
1156 |
return lastComparison;
|
|
|
1157 |
}
|
|
|
1158 |
if (isSetId()) {
|
|
|
1159 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
|
|
|
1160 |
if (lastComparison != 0) {
|
|
|
1161 |
return lastComparison;
|
|
|
1162 |
}
|
|
|
1163 |
}
|
|
|
1164 |
lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
|
|
|
1165 |
if (lastComparison != 0) {
|
|
|
1166 |
return lastComparison;
|
|
|
1167 |
}
|
|
|
1168 |
if (isSetName()) {
|
|
|
1169 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
|
|
|
1170 |
if (lastComparison != 0) {
|
|
|
1171 |
return lastComparison;
|
|
|
1172 |
}
|
|
|
1173 |
}
|
|
|
1174 |
lastComparison = Boolean.valueOf(isSetPhone()).compareTo(typedOther.isSetPhone());
|
|
|
1175 |
if (lastComparison != 0) {
|
|
|
1176 |
return lastComparison;
|
|
|
1177 |
}
|
|
|
1178 |
if (isSetPhone()) {
|
|
|
1179 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.phone, typedOther.phone);
|
|
|
1180 |
if (lastComparison != 0) {
|
|
|
1181 |
return lastComparison;
|
|
|
1182 |
}
|
|
|
1183 |
}
|
|
|
1184 |
lastComparison = Boolean.valueOf(isSetFax()).compareTo(typedOther.isSetFax());
|
|
|
1185 |
if (lastComparison != 0) {
|
|
|
1186 |
return lastComparison;
|
|
|
1187 |
}
|
|
|
1188 |
if (isSetFax()) {
|
|
|
1189 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fax, typedOther.fax);
|
|
|
1190 |
if (lastComparison != 0) {
|
|
|
1191 |
return lastComparison;
|
|
|
1192 |
}
|
|
|
1193 |
}
|
|
|
1194 |
lastComparison = Boolean.valueOf(isSetTin()).compareTo(typedOther.isSetTin());
|
|
|
1195 |
if (lastComparison != 0) {
|
|
|
1196 |
return lastComparison;
|
|
|
1197 |
}
|
|
|
1198 |
if (isSetTin()) {
|
|
|
1199 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tin, typedOther.tin);
|
|
|
1200 |
if (lastComparison != 0) {
|
|
|
1201 |
return lastComparison;
|
|
|
1202 |
}
|
|
|
1203 |
}
|
|
|
1204 |
lastComparison = Boolean.valueOf(isSetPan()).compareTo(typedOther.isSetPan());
|
|
|
1205 |
if (lastComparison != 0) {
|
|
|
1206 |
return lastComparison;
|
|
|
1207 |
}
|
|
|
1208 |
if (isSetPan()) {
|
|
|
1209 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pan, typedOther.pan);
|
|
|
1210 |
if (lastComparison != 0) {
|
|
|
1211 |
return lastComparison;
|
|
|
1212 |
}
|
|
|
1213 |
}
|
|
|
1214 |
lastComparison = Boolean.valueOf(isSetHeadName()).compareTo(typedOther.isSetHeadName());
|
|
|
1215 |
if (lastComparison != 0) {
|
|
|
1216 |
return lastComparison;
|
|
|
1217 |
}
|
|
|
1218 |
if (isSetHeadName()) {
|
|
|
1219 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.headName, typedOther.headName);
|
|
|
1220 |
if (lastComparison != 0) {
|
|
|
1221 |
return lastComparison;
|
|
|
1222 |
}
|
|
|
1223 |
}
|
|
|
1224 |
lastComparison = Boolean.valueOf(isSetHeadDesignation()).compareTo(typedOther.isSetHeadDesignation());
|
|
|
1225 |
if (lastComparison != 0) {
|
|
|
1226 |
return lastComparison;
|
|
|
1227 |
}
|
|
|
1228 |
if (isSetHeadDesignation()) {
|
|
|
1229 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.headDesignation, typedOther.headDesignation);
|
|
|
1230 |
if (lastComparison != 0) {
|
|
|
1231 |
return lastComparison;
|
|
|
1232 |
}
|
|
|
1233 |
}
|
|
|
1234 |
lastComparison = Boolean.valueOf(isSetHeadEmail()).compareTo(typedOther.isSetHeadEmail());
|
|
|
1235 |
if (lastComparison != 0) {
|
|
|
1236 |
return lastComparison;
|
|
|
1237 |
}
|
|
|
1238 |
if (isSetHeadEmail()) {
|
|
|
1239 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.headEmail, typedOther.headEmail);
|
|
|
1240 |
if (lastComparison != 0) {
|
|
|
1241 |
return lastComparison;
|
|
|
1242 |
}
|
|
|
1243 |
}
|
|
|
1244 |
lastComparison = Boolean.valueOf(isSetContactName()).compareTo(typedOther.isSetContactName());
|
|
|
1245 |
if (lastComparison != 0) {
|
|
|
1246 |
return lastComparison;
|
|
|
1247 |
}
|
|
|
1248 |
if (isSetContactName()) {
|
|
|
1249 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.contactName, typedOther.contactName);
|
|
|
1250 |
if (lastComparison != 0) {
|
|
|
1251 |
return lastComparison;
|
|
|
1252 |
}
|
|
|
1253 |
}
|
|
|
1254 |
lastComparison = Boolean.valueOf(isSetContactPhone()).compareTo(typedOther.isSetContactPhone());
|
|
|
1255 |
if (lastComparison != 0) {
|
|
|
1256 |
return lastComparison;
|
|
|
1257 |
}
|
|
|
1258 |
if (isSetContactPhone()) {
|
|
|
1259 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.contactPhone, typedOther.contactPhone);
|
|
|
1260 |
if (lastComparison != 0) {
|
|
|
1261 |
return lastComparison;
|
|
|
1262 |
}
|
|
|
1263 |
}
|
|
|
1264 |
lastComparison = Boolean.valueOf(isSetContactFax()).compareTo(typedOther.isSetContactFax());
|
|
|
1265 |
if (lastComparison != 0) {
|
|
|
1266 |
return lastComparison;
|
|
|
1267 |
}
|
|
|
1268 |
if (isSetContactFax()) {
|
|
|
1269 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.contactFax, typedOther.contactFax);
|
|
|
1270 |
if (lastComparison != 0) {
|
|
|
1271 |
return lastComparison;
|
|
|
1272 |
}
|
|
|
1273 |
}
|
|
|
1274 |
lastComparison = Boolean.valueOf(isSetContactEmail()).compareTo(typedOther.isSetContactEmail());
|
|
|
1275 |
if (lastComparison != 0) {
|
|
|
1276 |
return lastComparison;
|
|
|
1277 |
}
|
|
|
1278 |
if (isSetContactEmail()) {
|
|
|
1279 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.contactEmail, typedOther.contactEmail);
|
|
|
1280 |
if (lastComparison != 0) {
|
|
|
1281 |
return lastComparison;
|
|
|
1282 |
}
|
|
|
1283 |
}
|
|
|
1284 |
lastComparison = Boolean.valueOf(isSetRegisteredAddress()).compareTo(typedOther.isSetRegisteredAddress());
|
|
|
1285 |
if (lastComparison != 0) {
|
|
|
1286 |
return lastComparison;
|
|
|
1287 |
}
|
|
|
1288 |
if (isSetRegisteredAddress()) {
|
|
|
1289 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.registeredAddress, typedOther.registeredAddress);
|
|
|
1290 |
if (lastComparison != 0) {
|
|
|
1291 |
return lastComparison;
|
|
|
1292 |
}
|
|
|
1293 |
}
|
|
|
1294 |
lastComparison = Boolean.valueOf(isSetCommunicationAddress()).compareTo(typedOther.isSetCommunicationAddress());
|
|
|
1295 |
if (lastComparison != 0) {
|
|
|
1296 |
return lastComparison;
|
|
|
1297 |
}
|
|
|
1298 |
if (isSetCommunicationAddress()) {
|
|
|
1299 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.communicationAddress, typedOther.communicationAddress);
|
|
|
1300 |
if (lastComparison != 0) {
|
|
|
1301 |
return lastComparison;
|
|
|
1302 |
}
|
|
|
1303 |
}
|
| 10295 |
amar.kumar |
1304 |
lastComparison = Boolean.valueOf(isSetStateId()).compareTo(typedOther.isSetStateId());
|
|
|
1305 |
if (lastComparison != 0) {
|
|
|
1306 |
return lastComparison;
|
|
|
1307 |
}
|
|
|
1308 |
if (isSetStateId()) {
|
|
|
1309 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stateId, typedOther.stateId);
|
|
|
1310 |
if (lastComparison != 0) {
|
|
|
1311 |
return lastComparison;
|
|
|
1312 |
}
|
|
|
1313 |
}
|
| 14072 |
manish.sha |
1314 |
lastComparison = Boolean.valueOf(isSetPoValidityLimit()).compareTo(typedOther.isSetPoValidityLimit());
|
|
|
1315 |
if (lastComparison != 0) {
|
|
|
1316 |
return lastComparison;
|
|
|
1317 |
}
|
|
|
1318 |
if (isSetPoValidityLimit()) {
|
|
|
1319 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.poValidityLimit, typedOther.poValidityLimit);
|
|
|
1320 |
if (lastComparison != 0) {
|
|
|
1321 |
return lastComparison;
|
|
|
1322 |
}
|
|
|
1323 |
}
|
| 4496 |
mandeep.dh |
1324 |
return 0;
|
|
|
1325 |
}
|
|
|
1326 |
|
|
|
1327 |
public _Fields fieldForId(int fieldId) {
|
|
|
1328 |
return _Fields.findByThriftId(fieldId);
|
|
|
1329 |
}
|
|
|
1330 |
|
|
|
1331 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
1332 |
org.apache.thrift.protocol.TField field;
|
|
|
1333 |
iprot.readStructBegin();
|
|
|
1334 |
while (true)
|
|
|
1335 |
{
|
|
|
1336 |
field = iprot.readFieldBegin();
|
|
|
1337 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
1338 |
break;
|
|
|
1339 |
}
|
|
|
1340 |
switch (field.id) {
|
|
|
1341 |
case 1: // ID
|
|
|
1342 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1343 |
this.id = iprot.readI64();
|
|
|
1344 |
setIdIsSet(true);
|
|
|
1345 |
} else {
|
|
|
1346 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1347 |
}
|
|
|
1348 |
break;
|
|
|
1349 |
case 2: // NAME
|
|
|
1350 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1351 |
this.name = iprot.readString();
|
|
|
1352 |
} else {
|
|
|
1353 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1354 |
}
|
|
|
1355 |
break;
|
|
|
1356 |
case 3: // PHONE
|
|
|
1357 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1358 |
this.phone = iprot.readString();
|
|
|
1359 |
} else {
|
|
|
1360 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1361 |
}
|
|
|
1362 |
break;
|
|
|
1363 |
case 4: // FAX
|
|
|
1364 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1365 |
this.fax = iprot.readString();
|
|
|
1366 |
} else {
|
|
|
1367 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1368 |
}
|
|
|
1369 |
break;
|
|
|
1370 |
case 5: // TIN
|
|
|
1371 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1372 |
this.tin = iprot.readString();
|
|
|
1373 |
} else {
|
|
|
1374 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1375 |
}
|
|
|
1376 |
break;
|
|
|
1377 |
case 6: // PAN
|
|
|
1378 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1379 |
this.pan = iprot.readString();
|
|
|
1380 |
} else {
|
|
|
1381 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1382 |
}
|
|
|
1383 |
break;
|
|
|
1384 |
case 7: // HEAD_NAME
|
|
|
1385 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1386 |
this.headName = iprot.readString();
|
|
|
1387 |
} else {
|
|
|
1388 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1389 |
}
|
|
|
1390 |
break;
|
|
|
1391 |
case 8: // HEAD_DESIGNATION
|
|
|
1392 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1393 |
this.headDesignation = iprot.readString();
|
|
|
1394 |
} else {
|
|
|
1395 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1396 |
}
|
|
|
1397 |
break;
|
|
|
1398 |
case 9: // HEAD_EMAIL
|
|
|
1399 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1400 |
this.headEmail = iprot.readString();
|
|
|
1401 |
} else {
|
|
|
1402 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1403 |
}
|
|
|
1404 |
break;
|
|
|
1405 |
case 10: // CONTACT_NAME
|
|
|
1406 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1407 |
this.contactName = iprot.readString();
|
|
|
1408 |
} else {
|
|
|
1409 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1410 |
}
|
|
|
1411 |
break;
|
|
|
1412 |
case 11: // CONTACT_PHONE
|
|
|
1413 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1414 |
this.contactPhone = iprot.readString();
|
|
|
1415 |
} else {
|
|
|
1416 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1417 |
}
|
|
|
1418 |
break;
|
|
|
1419 |
case 12: // CONTACT_FAX
|
|
|
1420 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1421 |
this.contactFax = iprot.readString();
|
|
|
1422 |
} else {
|
|
|
1423 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1424 |
}
|
|
|
1425 |
break;
|
|
|
1426 |
case 13: // CONTACT_EMAIL
|
|
|
1427 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1428 |
this.contactEmail = iprot.readString();
|
|
|
1429 |
} else {
|
|
|
1430 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1431 |
}
|
|
|
1432 |
break;
|
|
|
1433 |
case 14: // REGISTERED_ADDRESS
|
|
|
1434 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1435 |
this.registeredAddress = iprot.readString();
|
|
|
1436 |
} else {
|
|
|
1437 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1438 |
}
|
|
|
1439 |
break;
|
|
|
1440 |
case 15: // COMMUNICATION_ADDRESS
|
|
|
1441 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1442 |
this.communicationAddress = iprot.readString();
|
|
|
1443 |
} else {
|
|
|
1444 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1445 |
}
|
|
|
1446 |
break;
|
| 10295 |
amar.kumar |
1447 |
case 16: // STATE_ID
|
|
|
1448 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1449 |
this.stateId = iprot.readI64();
|
|
|
1450 |
setStateIdIsSet(true);
|
|
|
1451 |
} else {
|
|
|
1452 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1453 |
}
|
|
|
1454 |
break;
|
| 14072 |
manish.sha |
1455 |
case 17: // PO_VALIDITY_LIMIT
|
|
|
1456 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1457 |
this.poValidityLimit = iprot.readI64();
|
|
|
1458 |
setPoValidityLimitIsSet(true);
|
|
|
1459 |
} else {
|
|
|
1460 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1461 |
}
|
|
|
1462 |
break;
|
| 4496 |
mandeep.dh |
1463 |
default:
|
|
|
1464 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1465 |
}
|
|
|
1466 |
iprot.readFieldEnd();
|
|
|
1467 |
}
|
|
|
1468 |
iprot.readStructEnd();
|
|
|
1469 |
validate();
|
|
|
1470 |
}
|
|
|
1471 |
|
|
|
1472 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
1473 |
validate();
|
|
|
1474 |
|
|
|
1475 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
1476 |
oprot.writeFieldBegin(ID_FIELD_DESC);
|
|
|
1477 |
oprot.writeI64(this.id);
|
|
|
1478 |
oprot.writeFieldEnd();
|
|
|
1479 |
if (this.name != null) {
|
|
|
1480 |
oprot.writeFieldBegin(NAME_FIELD_DESC);
|
|
|
1481 |
oprot.writeString(this.name);
|
|
|
1482 |
oprot.writeFieldEnd();
|
|
|
1483 |
}
|
|
|
1484 |
if (this.phone != null) {
|
|
|
1485 |
oprot.writeFieldBegin(PHONE_FIELD_DESC);
|
|
|
1486 |
oprot.writeString(this.phone);
|
|
|
1487 |
oprot.writeFieldEnd();
|
|
|
1488 |
}
|
|
|
1489 |
if (this.fax != null) {
|
|
|
1490 |
oprot.writeFieldBegin(FAX_FIELD_DESC);
|
|
|
1491 |
oprot.writeString(this.fax);
|
|
|
1492 |
oprot.writeFieldEnd();
|
|
|
1493 |
}
|
|
|
1494 |
if (this.tin != null) {
|
|
|
1495 |
oprot.writeFieldBegin(TIN_FIELD_DESC);
|
|
|
1496 |
oprot.writeString(this.tin);
|
|
|
1497 |
oprot.writeFieldEnd();
|
|
|
1498 |
}
|
|
|
1499 |
if (this.pan != null) {
|
|
|
1500 |
oprot.writeFieldBegin(PAN_FIELD_DESC);
|
|
|
1501 |
oprot.writeString(this.pan);
|
|
|
1502 |
oprot.writeFieldEnd();
|
|
|
1503 |
}
|
|
|
1504 |
if (this.headName != null) {
|
|
|
1505 |
oprot.writeFieldBegin(HEAD_NAME_FIELD_DESC);
|
|
|
1506 |
oprot.writeString(this.headName);
|
|
|
1507 |
oprot.writeFieldEnd();
|
|
|
1508 |
}
|
|
|
1509 |
if (this.headDesignation != null) {
|
|
|
1510 |
oprot.writeFieldBegin(HEAD_DESIGNATION_FIELD_DESC);
|
|
|
1511 |
oprot.writeString(this.headDesignation);
|
|
|
1512 |
oprot.writeFieldEnd();
|
|
|
1513 |
}
|
|
|
1514 |
if (this.headEmail != null) {
|
|
|
1515 |
oprot.writeFieldBegin(HEAD_EMAIL_FIELD_DESC);
|
|
|
1516 |
oprot.writeString(this.headEmail);
|
|
|
1517 |
oprot.writeFieldEnd();
|
|
|
1518 |
}
|
|
|
1519 |
if (this.contactName != null) {
|
|
|
1520 |
oprot.writeFieldBegin(CONTACT_NAME_FIELD_DESC);
|
|
|
1521 |
oprot.writeString(this.contactName);
|
|
|
1522 |
oprot.writeFieldEnd();
|
|
|
1523 |
}
|
|
|
1524 |
if (this.contactPhone != null) {
|
|
|
1525 |
oprot.writeFieldBegin(CONTACT_PHONE_FIELD_DESC);
|
|
|
1526 |
oprot.writeString(this.contactPhone);
|
|
|
1527 |
oprot.writeFieldEnd();
|
|
|
1528 |
}
|
|
|
1529 |
if (this.contactFax != null) {
|
|
|
1530 |
oprot.writeFieldBegin(CONTACT_FAX_FIELD_DESC);
|
|
|
1531 |
oprot.writeString(this.contactFax);
|
|
|
1532 |
oprot.writeFieldEnd();
|
|
|
1533 |
}
|
|
|
1534 |
if (this.contactEmail != null) {
|
|
|
1535 |
oprot.writeFieldBegin(CONTACT_EMAIL_FIELD_DESC);
|
|
|
1536 |
oprot.writeString(this.contactEmail);
|
|
|
1537 |
oprot.writeFieldEnd();
|
|
|
1538 |
}
|
|
|
1539 |
if (this.registeredAddress != null) {
|
|
|
1540 |
oprot.writeFieldBegin(REGISTERED_ADDRESS_FIELD_DESC);
|
|
|
1541 |
oprot.writeString(this.registeredAddress);
|
|
|
1542 |
oprot.writeFieldEnd();
|
|
|
1543 |
}
|
|
|
1544 |
if (this.communicationAddress != null) {
|
|
|
1545 |
oprot.writeFieldBegin(COMMUNICATION_ADDRESS_FIELD_DESC);
|
|
|
1546 |
oprot.writeString(this.communicationAddress);
|
|
|
1547 |
oprot.writeFieldEnd();
|
|
|
1548 |
}
|
| 10295 |
amar.kumar |
1549 |
oprot.writeFieldBegin(STATE_ID_FIELD_DESC);
|
|
|
1550 |
oprot.writeI64(this.stateId);
|
|
|
1551 |
oprot.writeFieldEnd();
|
| 14072 |
manish.sha |
1552 |
oprot.writeFieldBegin(PO_VALIDITY_LIMIT_FIELD_DESC);
|
|
|
1553 |
oprot.writeI64(this.poValidityLimit);
|
|
|
1554 |
oprot.writeFieldEnd();
|
| 4496 |
mandeep.dh |
1555 |
oprot.writeFieldStop();
|
|
|
1556 |
oprot.writeStructEnd();
|
|
|
1557 |
}
|
|
|
1558 |
|
|
|
1559 |
@Override
|
|
|
1560 |
public String toString() {
|
|
|
1561 |
StringBuilder sb = new StringBuilder("Supplier(");
|
|
|
1562 |
boolean first = true;
|
|
|
1563 |
|
|
|
1564 |
sb.append("id:");
|
|
|
1565 |
sb.append(this.id);
|
|
|
1566 |
first = false;
|
|
|
1567 |
if (!first) sb.append(", ");
|
|
|
1568 |
sb.append("name:");
|
|
|
1569 |
if (this.name == null) {
|
|
|
1570 |
sb.append("null");
|
|
|
1571 |
} else {
|
|
|
1572 |
sb.append(this.name);
|
|
|
1573 |
}
|
|
|
1574 |
first = false;
|
|
|
1575 |
if (!first) sb.append(", ");
|
|
|
1576 |
sb.append("phone:");
|
|
|
1577 |
if (this.phone == null) {
|
|
|
1578 |
sb.append("null");
|
|
|
1579 |
} else {
|
|
|
1580 |
sb.append(this.phone);
|
|
|
1581 |
}
|
|
|
1582 |
first = false;
|
|
|
1583 |
if (!first) sb.append(", ");
|
|
|
1584 |
sb.append("fax:");
|
|
|
1585 |
if (this.fax == null) {
|
|
|
1586 |
sb.append("null");
|
|
|
1587 |
} else {
|
|
|
1588 |
sb.append(this.fax);
|
|
|
1589 |
}
|
|
|
1590 |
first = false;
|
|
|
1591 |
if (!first) sb.append(", ");
|
|
|
1592 |
sb.append("tin:");
|
|
|
1593 |
if (this.tin == null) {
|
|
|
1594 |
sb.append("null");
|
|
|
1595 |
} else {
|
|
|
1596 |
sb.append(this.tin);
|
|
|
1597 |
}
|
|
|
1598 |
first = false;
|
|
|
1599 |
if (!first) sb.append(", ");
|
|
|
1600 |
sb.append("pan:");
|
|
|
1601 |
if (this.pan == null) {
|
|
|
1602 |
sb.append("null");
|
|
|
1603 |
} else {
|
|
|
1604 |
sb.append(this.pan);
|
|
|
1605 |
}
|
|
|
1606 |
first = false;
|
|
|
1607 |
if (!first) sb.append(", ");
|
|
|
1608 |
sb.append("headName:");
|
|
|
1609 |
if (this.headName == null) {
|
|
|
1610 |
sb.append("null");
|
|
|
1611 |
} else {
|
|
|
1612 |
sb.append(this.headName);
|
|
|
1613 |
}
|
|
|
1614 |
first = false;
|
|
|
1615 |
if (!first) sb.append(", ");
|
|
|
1616 |
sb.append("headDesignation:");
|
|
|
1617 |
if (this.headDesignation == null) {
|
|
|
1618 |
sb.append("null");
|
|
|
1619 |
} else {
|
|
|
1620 |
sb.append(this.headDesignation);
|
|
|
1621 |
}
|
|
|
1622 |
first = false;
|
|
|
1623 |
if (!first) sb.append(", ");
|
|
|
1624 |
sb.append("headEmail:");
|
|
|
1625 |
if (this.headEmail == null) {
|
|
|
1626 |
sb.append("null");
|
|
|
1627 |
} else {
|
|
|
1628 |
sb.append(this.headEmail);
|
|
|
1629 |
}
|
|
|
1630 |
first = false;
|
|
|
1631 |
if (!first) sb.append(", ");
|
|
|
1632 |
sb.append("contactName:");
|
|
|
1633 |
if (this.contactName == null) {
|
|
|
1634 |
sb.append("null");
|
|
|
1635 |
} else {
|
|
|
1636 |
sb.append(this.contactName);
|
|
|
1637 |
}
|
|
|
1638 |
first = false;
|
|
|
1639 |
if (!first) sb.append(", ");
|
|
|
1640 |
sb.append("contactPhone:");
|
|
|
1641 |
if (this.contactPhone == null) {
|
|
|
1642 |
sb.append("null");
|
|
|
1643 |
} else {
|
|
|
1644 |
sb.append(this.contactPhone);
|
|
|
1645 |
}
|
|
|
1646 |
first = false;
|
|
|
1647 |
if (!first) sb.append(", ");
|
|
|
1648 |
sb.append("contactFax:");
|
|
|
1649 |
if (this.contactFax == null) {
|
|
|
1650 |
sb.append("null");
|
|
|
1651 |
} else {
|
|
|
1652 |
sb.append(this.contactFax);
|
|
|
1653 |
}
|
|
|
1654 |
first = false;
|
|
|
1655 |
if (!first) sb.append(", ");
|
|
|
1656 |
sb.append("contactEmail:");
|
|
|
1657 |
if (this.contactEmail == null) {
|
|
|
1658 |
sb.append("null");
|
|
|
1659 |
} else {
|
|
|
1660 |
sb.append(this.contactEmail);
|
|
|
1661 |
}
|
|
|
1662 |
first = false;
|
|
|
1663 |
if (!first) sb.append(", ");
|
|
|
1664 |
sb.append("registeredAddress:");
|
|
|
1665 |
if (this.registeredAddress == null) {
|
|
|
1666 |
sb.append("null");
|
|
|
1667 |
} else {
|
|
|
1668 |
sb.append(this.registeredAddress);
|
|
|
1669 |
}
|
|
|
1670 |
first = false;
|
|
|
1671 |
if (!first) sb.append(", ");
|
|
|
1672 |
sb.append("communicationAddress:");
|
|
|
1673 |
if (this.communicationAddress == null) {
|
|
|
1674 |
sb.append("null");
|
|
|
1675 |
} else {
|
|
|
1676 |
sb.append(this.communicationAddress);
|
|
|
1677 |
}
|
|
|
1678 |
first = false;
|
| 10295 |
amar.kumar |
1679 |
if (!first) sb.append(", ");
|
|
|
1680 |
sb.append("stateId:");
|
|
|
1681 |
sb.append(this.stateId);
|
|
|
1682 |
first = false;
|
| 14072 |
manish.sha |
1683 |
if (!first) sb.append(", ");
|
|
|
1684 |
sb.append("poValidityLimit:");
|
|
|
1685 |
sb.append(this.poValidityLimit);
|
|
|
1686 |
first = false;
|
| 4496 |
mandeep.dh |
1687 |
sb.append(")");
|
|
|
1688 |
return sb.toString();
|
|
|
1689 |
}
|
|
|
1690 |
|
|
|
1691 |
public void validate() throws org.apache.thrift.TException {
|
|
|
1692 |
// check for required fields
|
|
|
1693 |
}
|
|
|
1694 |
|
|
|
1695 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
1696 |
try {
|
|
|
1697 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
1698 |
} catch (org.apache.thrift.TException te) {
|
|
|
1699 |
throw new java.io.IOException(te);
|
|
|
1700 |
}
|
|
|
1701 |
}
|
|
|
1702 |
|
|
|
1703 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
1704 |
try {
|
|
|
1705 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
1706 |
__isset_bit_vector = new BitSet(1);
|
|
|
1707 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
1708 |
} catch (org.apache.thrift.TException te) {
|
|
|
1709 |
throw new java.io.IOException(te);
|
|
|
1710 |
}
|
|
|
1711 |
}
|
|
|
1712 |
|
|
|
1713 |
}
|
|
|
1714 |
|