Subversion Repositories SmartDukaan

Rev

Rev 3168 | Rev 4793 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3168 Rev 3430
Line 1... Line 1...
1
/**
1
/**
2
 * Autogenerated by Thrift
2
 * Autogenerated by Thrift Compiler (0.7.0)
3
 *
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
5
 */
6
package in.shop2020.crm;
6
package in.shop2020.crm;
7
 
7
 
Line 13... Line 13...
13
import java.util.Set;
13
import java.util.Set;
14
import java.util.HashSet;
14
import java.util.HashSet;
15
import java.util.EnumSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
16
import java.util.Collections;
17
import java.util.BitSet;
17
import java.util.BitSet;
-
 
18
import java.nio.ByteBuffer;
18
import java.util.Arrays;
19
import java.util.Arrays;
19
import org.slf4j.Logger;
20
import org.slf4j.Logger;
20
import org.slf4j.LoggerFactory;
21
import org.slf4j.LoggerFactory;
21
 
22
 
22
import org.apache.thrift.*;
-
 
23
import org.apache.thrift.meta_data.*;
-
 
24
import org.apache.thrift.protocol.*;
-
 
25
 
-
 
26
public class Agent implements TBase<Agent._Fields>, java.io.Serializable, Cloneable, Comparable<Agent> {
23
public class Agent implements org.apache.thrift.TBase<Agent, Agent._Fields>, java.io.Serializable, Cloneable {
27
  private static final TStruct STRUCT_DESC = new TStruct("Agent");
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Agent");
28
 
25
 
29
  private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
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);
30
  private static final TField NAME_FIELD_DESC = new TField("name", TType.STRING, (short)2);
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);
31
  private static final TField EMAIL_ID_FIELD_DESC = new TField("emailId", TType.STRING, (short)3);
28
  private static final org.apache.thrift.protocol.TField EMAIL_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("emailId", org.apache.thrift.protocol.TType.STRING, (short)3);
32
  private static final TField MANAGER_ID_FIELD_DESC = new TField("managerId", TType.I64, (short)4);
29
  private static final org.apache.thrift.protocol.TField MANAGER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("managerId", org.apache.thrift.protocol.TType.I64, (short)4);
33
  private static final TField PASSWORD_FIELD_DESC = new TField("password", TType.STRING, (short)5);
30
  private static final org.apache.thrift.protocol.TField PASSWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("password", org.apache.thrift.protocol.TType.STRING, (short)5);
34
 
31
 
35
  private long id;
32
  private long id; // required
36
  private String name;
33
  private String name; // required
37
  private String emailId;
34
  private String emailId; // required
38
  private long managerId;
35
  private long managerId; // required
39
  private String password;
36
  private String password; // required
40
 
37
 
41
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
38
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
42
  public enum _Fields implements TFieldIdEnum {
39
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
43
    ID((short)1, "id"),
40
    ID((short)1, "id"),
44
    NAME((short)2, "name"),
41
    NAME((short)2, "name"),
45
    EMAIL_ID((short)3, "emailId"),
42
    EMAIL_ID((short)3, "emailId"),
46
    MANAGER_ID((short)4, "managerId"),
43
    MANAGER_ID((short)4, "managerId"),
47
    PASSWORD((short)5, "password");
44
    PASSWORD((short)5, "password");
48
 
45
 
49
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
50
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
46
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
51
 
47
 
52
    static {
48
    static {
53
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
49
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
54
        byId.put((int)field._thriftId, field);
-
 
55
        byName.put(field.getFieldName(), field);
50
        byName.put(field.getFieldName(), field);
56
      }
51
      }
57
    }
52
    }
58
 
53
 
59
    /**
54
    /**
60
     * Find the _Fields constant that matches fieldId, or null if its not found.
55
     * Find the _Fields constant that matches fieldId, or null if its not found.
61
     */
56
     */
62
    public static _Fields findByThriftId(int fieldId) {
57
    public static _Fields findByThriftId(int fieldId) {
63
      return byId.get(fieldId);
58
      switch(fieldId) {
-
 
59
        case 1: // ID
-
 
60
          return ID;
-
 
61
        case 2: // NAME
-
 
62
          return NAME;
-
 
63
        case 3: // EMAIL_ID
-
 
64
          return EMAIL_ID;
-
 
65
        case 4: // MANAGER_ID
-
 
66
          return MANAGER_ID;
-
 
67
        case 5: // PASSWORD
-
 
68
          return PASSWORD;
-
 
69
        default:
-
 
70
          return null;
-
 
71
      }
64
    }
72
    }
65
 
73
 
66
    /**
74
    /**
67
     * Find the _Fields constant that matches fieldId, throwing an exception
75
     * Find the _Fields constant that matches fieldId, throwing an exception
68
     * if it is not found.
76
     * if it is not found.
Line 100... Line 108...
100
  // isset id assignments
108
  // isset id assignments
101
  private static final int __ID_ISSET_ID = 0;
109
  private static final int __ID_ISSET_ID = 0;
102
  private static final int __MANAGERID_ISSET_ID = 1;
110
  private static final int __MANAGERID_ISSET_ID = 1;
103
  private BitSet __isset_bit_vector = new BitSet(2);
111
  private BitSet __isset_bit_vector = new BitSet(2);
104
 
112
 
105
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
113
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
106
    put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
-
 
107
        new FieldValueMetaData(TType.I64)));
-
 
108
    put(_Fields.NAME, new FieldMetaData("name", TFieldRequirementType.DEFAULT, 
-
 
109
        new FieldValueMetaData(TType.STRING)));
-
 
110
    put(_Fields.EMAIL_ID, new FieldMetaData("emailId", TFieldRequirementType.DEFAULT, 
-
 
111
        new FieldValueMetaData(TType.STRING)));
-
 
112
    put(_Fields.MANAGER_ID, new FieldMetaData("managerId", TFieldRequirementType.OPTIONAL, 
-
 
113
        new FieldValueMetaData(TType.I64)));
-
 
114
    put(_Fields.PASSWORD, new FieldMetaData("password", TFieldRequirementType.DEFAULT, 
-
 
115
        new FieldValueMetaData(TType.STRING)));
-
 
116
  }});
-
 
117
 
-
 
118
  static {
114
  static {
-
 
115
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
116
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
117
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
118
    tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
119
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
120
    tmpMap.put(_Fields.EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("emailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
121
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
122
    tmpMap.put(_Fields.MANAGER_ID, new org.apache.thrift.meta_data.FieldMetaData("managerId", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
-
 
123
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
124
    tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
125
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
126
    metaDataMap = Collections.unmodifiableMap(tmpMap);
119
    FieldMetaData.addStructMetaDataMap(Agent.class, metaDataMap);
127
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Agent.class, metaDataMap);
120
  }
128
  }
121
 
129
 
122
  public Agent() {
130
  public Agent() {
123
  }
131
  }
124
 
132
 
Line 157... Line 165...
157
 
165
 
158
  public Agent deepCopy() {
166
  public Agent deepCopy() {
159
    return new Agent(this);
167
    return new Agent(this);
160
  }
168
  }
161
 
169
 
162
  @Deprecated
170
  @Override
163
  public Agent clone() {
171
  public void clear() {
-
 
172
    setIdIsSet(false);
-
 
173
    this.id = 0;
-
 
174
    this.name = null;
-
 
175
    this.emailId = null;
164
    return new Agent(this);
176
    setManagerIdIsSet(false);
-
 
177
    this.managerId = 0;
-
 
178
    this.password = null;
165
  }
179
  }
166
 
180
 
167
  public long getId() {
181
  public long getId() {
168
    return this.id;
182
    return this.id;
169
  }
183
  }
170
 
184
 
171
  public Agent setId(long id) {
185
  public void setId(long id) {
172
    this.id = id;
186
    this.id = id;
173
    setIdIsSet(true);
187
    setIdIsSet(true);
174
    return this;
-
 
175
  }
188
  }
176
 
189
 
177
  public void unsetId() {
190
  public void unsetId() {
178
    __isset_bit_vector.clear(__ID_ISSET_ID);
191
    __isset_bit_vector.clear(__ID_ISSET_ID);
179
  }
192
  }
180
 
193
 
181
  /** Returns true if field id is set (has been asigned a value) and false otherwise */
194
  /** Returns true if field id is set (has been assigned a value) and false otherwise */
182
  public boolean isSetId() {
195
  public boolean isSetId() {
183
    return __isset_bit_vector.get(__ID_ISSET_ID);
196
    return __isset_bit_vector.get(__ID_ISSET_ID);
184
  }
197
  }
185
 
198
 
186
  public void setIdIsSet(boolean value) {
199
  public void setIdIsSet(boolean value) {
Line 189... Line 202...
189
 
202
 
190
  public String getName() {
203
  public String getName() {
191
    return this.name;
204
    return this.name;
192
  }
205
  }
193
 
206
 
194
  public Agent setName(String name) {
207
  public void setName(String name) {
195
    this.name = name;
208
    this.name = name;
196
    return this;
-
 
197
  }
209
  }
198
 
210
 
199
  public void unsetName() {
211
  public void unsetName() {
200
    this.name = null;
212
    this.name = null;
201
  }
213
  }
202
 
214
 
203
  /** Returns true if field name is set (has been asigned a value) and false otherwise */
215
  /** Returns true if field name is set (has been assigned a value) and false otherwise */
204
  public boolean isSetName() {
216
  public boolean isSetName() {
205
    return this.name != null;
217
    return this.name != null;
206
  }
218
  }
207
 
219
 
208
  public void setNameIsSet(boolean value) {
220
  public void setNameIsSet(boolean value) {
Line 213... Line 225...
213
 
225
 
214
  public String getEmailId() {
226
  public String getEmailId() {
215
    return this.emailId;
227
    return this.emailId;
216
  }
228
  }
217
 
229
 
218
  public Agent setEmailId(String emailId) {
230
  public void setEmailId(String emailId) {
219
    this.emailId = emailId;
231
    this.emailId = emailId;
220
    return this;
-
 
221
  }
232
  }
222
 
233
 
223
  public void unsetEmailId() {
234
  public void unsetEmailId() {
224
    this.emailId = null;
235
    this.emailId = null;
225
  }
236
  }
226
 
237
 
227
  /** Returns true if field emailId is set (has been asigned a value) and false otherwise */
238
  /** Returns true if field emailId is set (has been assigned a value) and false otherwise */
228
  public boolean isSetEmailId() {
239
  public boolean isSetEmailId() {
229
    return this.emailId != null;
240
    return this.emailId != null;
230
  }
241
  }
231
 
242
 
232
  public void setEmailIdIsSet(boolean value) {
243
  public void setEmailIdIsSet(boolean value) {
Line 237... Line 248...
237
 
248
 
238
  public long getManagerId() {
249
  public long getManagerId() {
239
    return this.managerId;
250
    return this.managerId;
240
  }
251
  }
241
 
252
 
242
  public Agent setManagerId(long managerId) {
253
  public void setManagerId(long managerId) {
243
    this.managerId = managerId;
254
    this.managerId = managerId;
244
    setManagerIdIsSet(true);
255
    setManagerIdIsSet(true);
245
    return this;
-
 
246
  }
256
  }
247
 
257
 
248
  public void unsetManagerId() {
258
  public void unsetManagerId() {
249
    __isset_bit_vector.clear(__MANAGERID_ISSET_ID);
259
    __isset_bit_vector.clear(__MANAGERID_ISSET_ID);
250
  }
260
  }
251
 
261
 
252
  /** Returns true if field managerId is set (has been asigned a value) and false otherwise */
262
  /** Returns true if field managerId is set (has been assigned a value) and false otherwise */
253
  public boolean isSetManagerId() {
263
  public boolean isSetManagerId() {
254
    return __isset_bit_vector.get(__MANAGERID_ISSET_ID);
264
    return __isset_bit_vector.get(__MANAGERID_ISSET_ID);
255
  }
265
  }
256
 
266
 
257
  public void setManagerIdIsSet(boolean value) {
267
  public void setManagerIdIsSet(boolean value) {
Line 260... Line 270...
260
 
270
 
261
  public String getPassword() {
271
  public String getPassword() {
262
    return this.password;
272
    return this.password;
263
  }
273
  }
264
 
274
 
265
  public Agent setPassword(String password) {
275
  public void setPassword(String password) {
266
    this.password = password;
276
    this.password = password;
267
    return this;
-
 
268
  }
277
  }
269
 
278
 
270
  public void unsetPassword() {
279
  public void unsetPassword() {
271
    this.password = null;
280
    this.password = null;
272
  }
281
  }
273
 
282
 
274
  /** Returns true if field password is set (has been asigned a value) and false otherwise */
283
  /** Returns true if field password is set (has been assigned a value) and false otherwise */
275
  public boolean isSetPassword() {
284
  public boolean isSetPassword() {
276
    return this.password != null;
285
    return this.password != null;
277
  }
286
  }
278
 
287
 
279
  public void setPasswordIsSet(boolean value) {
288
  public void setPasswordIsSet(boolean value) {
Line 325... Line 334...
325
      break;
334
      break;
326
 
335
 
327
    }
336
    }
328
  }
337
  }
329
 
338
 
330
  public void setFieldValue(int fieldID, Object value) {
-
 
331
    setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
332
  }
-
 
333
 
-
 
334
  public Object getFieldValue(_Fields field) {
339
  public Object getFieldValue(_Fields field) {
335
    switch (field) {
340
    switch (field) {
336
    case ID:
341
    case ID:
337
      return new Long(getId());
342
      return Long.valueOf(getId());
338
 
343
 
339
    case NAME:
344
    case NAME:
340
      return getName();
345
      return getName();
341
 
346
 
342
    case EMAIL_ID:
347
    case EMAIL_ID:
343
      return getEmailId();
348
      return getEmailId();
344
 
349
 
345
    case MANAGER_ID:
350
    case MANAGER_ID:
346
      return new Long(getManagerId());
351
      return Long.valueOf(getManagerId());
347
 
352
 
348
    case PASSWORD:
353
    case PASSWORD:
349
      return getPassword();
354
      return getPassword();
350
 
355
 
351
    }
356
    }
352
    throw new IllegalStateException();
357
    throw new IllegalStateException();
353
  }
358
  }
354
 
359
 
355
  public Object getFieldValue(int fieldId) {
-
 
356
    return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
357
  }
-
 
358
 
-
 
359
  /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
360
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
360
  public boolean isSet(_Fields field) {
361
  public boolean isSet(_Fields field) {
-
 
362
    if (field == null) {
-
 
363
      throw new IllegalArgumentException();
-
 
364
    }
-
 
365
 
361
    switch (field) {
366
    switch (field) {
362
    case ID:
367
    case ID:
363
      return isSetId();
368
      return isSetId();
364
    case NAME:
369
    case NAME:
365
      return isSetName();
370
      return isSetName();
Line 371... Line 376...
371
      return isSetPassword();
376
      return isSetPassword();
372
    }
377
    }
373
    throw new IllegalStateException();
378
    throw new IllegalStateException();
374
  }
379
  }
375
 
380
 
376
  public boolean isSet(int fieldID) {
-
 
377
    return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
378
  }
-
 
379
 
-
 
380
  @Override
381
  @Override
381
  public boolean equals(Object that) {
382
  public boolean equals(Object that) {
382
    if (that == null)
383
    if (that == null)
383
      return false;
384
      return false;
384
    if (that instanceof Agent)
385
    if (that instanceof Agent)
Line 449... Line 450...
449
    }
450
    }
450
 
451
 
451
    int lastComparison = 0;
452
    int lastComparison = 0;
452
    Agent typedOther = (Agent)other;
453
    Agent typedOther = (Agent)other;
453
 
454
 
454
    lastComparison = Boolean.valueOf(isSetId()).compareTo(isSetId());
455
    lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
455
    if (lastComparison != 0) {
456
    if (lastComparison != 0) {
456
      return lastComparison;
457
      return lastComparison;
457
    }
458
    }
-
 
459
    if (isSetId()) {
458
    lastComparison = TBaseHelper.compareTo(id, typedOther.id);
460
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
459
    if (lastComparison != 0) {
461
      if (lastComparison != 0) {
460
      return lastComparison;
462
        return lastComparison;
-
 
463
      }
461
    }
464
    }
462
    lastComparison = Boolean.valueOf(isSetName()).compareTo(isSetName());
465
    lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
463
    if (lastComparison != 0) {
466
    if (lastComparison != 0) {
464
      return lastComparison;
467
      return lastComparison;
465
    }
468
    }
-
 
469
    if (isSetName()) {
466
    lastComparison = TBaseHelper.compareTo(name, typedOther.name);
470
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
467
    if (lastComparison != 0) {
471
      if (lastComparison != 0) {
468
      return lastComparison;
472
        return lastComparison;
-
 
473
      }
469
    }
474
    }
470
    lastComparison = Boolean.valueOf(isSetEmailId()).compareTo(isSetEmailId());
475
    lastComparison = Boolean.valueOf(isSetEmailId()).compareTo(typedOther.isSetEmailId());
471
    if (lastComparison != 0) {
476
    if (lastComparison != 0) {
472
      return lastComparison;
477
      return lastComparison;
473
    }
478
    }
-
 
479
    if (isSetEmailId()) {
474
    lastComparison = TBaseHelper.compareTo(emailId, typedOther.emailId);
480
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailId, typedOther.emailId);
475
    if (lastComparison != 0) {
481
      if (lastComparison != 0) {
476
      return lastComparison;
482
        return lastComparison;
-
 
483
      }
477
    }
484
    }
478
    lastComparison = Boolean.valueOf(isSetManagerId()).compareTo(isSetManagerId());
485
    lastComparison = Boolean.valueOf(isSetManagerId()).compareTo(typedOther.isSetManagerId());
479
    if (lastComparison != 0) {
486
    if (lastComparison != 0) {
480
      return lastComparison;
487
      return lastComparison;
481
    }
488
    }
-
 
489
    if (isSetManagerId()) {
482
    lastComparison = TBaseHelper.compareTo(managerId, typedOther.managerId);
490
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.managerId, typedOther.managerId);
483
    if (lastComparison != 0) {
491
      if (lastComparison != 0) {
484
      return lastComparison;
492
        return lastComparison;
-
 
493
      }
485
    }
494
    }
486
    lastComparison = Boolean.valueOf(isSetPassword()).compareTo(isSetPassword());
495
    lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
487
    if (lastComparison != 0) {
496
    if (lastComparison != 0) {
488
      return lastComparison;
497
      return lastComparison;
489
    }
498
    }
-
 
499
    if (isSetPassword()) {
490
    lastComparison = TBaseHelper.compareTo(password, typedOther.password);
500
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
491
    if (lastComparison != 0) {
501
      if (lastComparison != 0) {
492
      return lastComparison;
502
        return lastComparison;
-
 
503
      }
493
    }
504
    }
494
    return 0;
505
    return 0;
495
  }
506
  }
496
 
507
 
-
 
508
  public _Fields fieldForId(int fieldId) {
-
 
509
    return _Fields.findByThriftId(fieldId);
-
 
510
  }
-
 
511
 
497
  public void read(TProtocol iprot) throws TException {
512
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
498
    TField field;
513
    org.apache.thrift.protocol.TField field;
499
    iprot.readStructBegin();
514
    iprot.readStructBegin();
500
    while (true)
515
    while (true)
501
    {
516
    {
502
      field = iprot.readFieldBegin();
517
      field = iprot.readFieldBegin();
503
      if (field.type == TType.STOP) { 
518
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
504
        break;
519
        break;
505
      }
520
      }
506
      _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
507
      if (fieldId == null) {
-
 
508
        TProtocolUtil.skip(iprot, field.type);
-
 
509
      } else {
-
 
510
        switch (fieldId) {
521
      switch (field.id) {
511
          case ID:
522
        case 1: // ID
512
            if (field.type == TType.I64) {
523
          if (field.type == org.apache.thrift.protocol.TType.I64) {
513
              this.id = iprot.readI64();
524
            this.id = iprot.readI64();
514
              setIdIsSet(true);
525
            setIdIsSet(true);
515
            } else { 
526
          } else { 
516
              TProtocolUtil.skip(iprot, field.type);
527
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
517
            }
528
          }
518
            break;
529
          break;
519
          case NAME:
530
        case 2: // NAME
520
            if (field.type == TType.STRING) {
531
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
521
              this.name = iprot.readString();
532
            this.name = iprot.readString();
522
            } else { 
533
          } else { 
523
              TProtocolUtil.skip(iprot, field.type);
534
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
524
            }
535
          }
525
            break;
536
          break;
526
          case EMAIL_ID:
537
        case 3: // EMAIL_ID
527
            if (field.type == TType.STRING) {
538
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
528
              this.emailId = iprot.readString();
539
            this.emailId = iprot.readString();
529
            } else { 
540
          } else { 
530
              TProtocolUtil.skip(iprot, field.type);
541
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
531
            }
542
          }
532
            break;
543
          break;
533
          case MANAGER_ID:
544
        case 4: // MANAGER_ID
534
            if (field.type == TType.I64) {
545
          if (field.type == org.apache.thrift.protocol.TType.I64) {
535
              this.managerId = iprot.readI64();
546
            this.managerId = iprot.readI64();
536
              setManagerIdIsSet(true);
547
            setManagerIdIsSet(true);
537
            } else { 
548
          } else { 
538
              TProtocolUtil.skip(iprot, field.type);
549
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
539
            }
550
          }
540
            break;
551
          break;
541
          case PASSWORD:
552
        case 5: // PASSWORD
542
            if (field.type == TType.STRING) {
553
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
543
              this.password = iprot.readString();
554
            this.password = iprot.readString();
544
            } else { 
555
          } else { 
545
              TProtocolUtil.skip(iprot, field.type);
556
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
546
            }
557
          }
547
            break;
558
          break;
548
        }
559
        default:
549
        iprot.readFieldEnd();
560
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
550
      }
561
      }
-
 
562
      iprot.readFieldEnd();
551
    }
563
    }
552
    iprot.readStructEnd();
564
    iprot.readStructEnd();
553
    validate();
565
    validate();
554
  }
566
  }
555
 
567
 
556
  public void write(TProtocol oprot) throws TException {
568
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
557
    validate();
569
    validate();
558
 
570
 
559
    oprot.writeStructBegin(STRUCT_DESC);
571
    oprot.writeStructBegin(STRUCT_DESC);
560
    oprot.writeFieldBegin(ID_FIELD_DESC);
572
    oprot.writeFieldBegin(ID_FIELD_DESC);
561
    oprot.writeI64(this.id);
573
    oprot.writeI64(this.id);
Line 624... Line 636...
624
    first = false;
636
    first = false;
625
    sb.append(")");
637
    sb.append(")");
626
    return sb.toString();
638
    return sb.toString();
627
  }
639
  }
628
 
640
 
629
  public void validate() throws TException {
641
  public void validate() throws org.apache.thrift.TException {
630
    // check for required fields
642
    // check for required fields
631
  }
643
  }
632
 
644
 
-
 
645
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
646
    try {
-
 
647
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
648
    } catch (org.apache.thrift.TException te) {
-
 
649
      throw new java.io.IOException(te);
-
 
650
    }
-
 
651
  }
-
 
652
 
-
 
653
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
654
    try {
-
 
655
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
656
      __isset_bit_vector = new BitSet(1);
-
 
657
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
658
    } catch (org.apache.thrift.TException te) {
-
 
659
      throw new java.io.IOException(te);
-
 
660
    }
-
 
661
  }
-
 
662
 
633
}
663
}
634
 
664