Subversion Repositories SmartDukaan

Rev

Rev 1982 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1982 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.model.v1.user;
6
package in.shop2020.model.v1.user;
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
/**
23
/**
27
 * Types for Promotion Service
24
 * Types for Promotion Service
28
 */
25
 */
29
public class Promotion implements TBase<Promotion._Fields>, java.io.Serializable, Cloneable, Comparable<Promotion> {
26
public class Promotion implements org.apache.thrift.TBase<Promotion, Promotion._Fields>, java.io.Serializable, Cloneable {
30
  private static final TStruct STRUCT_DESC = new TStruct("Promotion");
27
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Promotion");
31
 
28
 
32
  private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
29
  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);
33
  private static final TField NAME_FIELD_DESC = new TField("name", TType.STRING, (short)2);
30
  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);
34
  private static final TField RULE_EXECUTION_SRC_FIELD_DESC = new TField("ruleExecutionSrc", TType.STRING, (short)3);
31
  private static final org.apache.thrift.protocol.TField RULE_EXECUTION_SRC_FIELD_DESC = new org.apache.thrift.protocol.TField("ruleExecutionSrc", org.apache.thrift.protocol.TType.STRING, (short)3);
35
  private static final TField START_ON_FIELD_DESC = new TField("startOn", TType.I64, (short)4);
32
  private static final org.apache.thrift.protocol.TField START_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("startOn", org.apache.thrift.protocol.TType.I64, (short)4);
36
  private static final TField END_ON_FIELD_DESC = new TField("endOn", TType.I64, (short)5);
33
  private static final org.apache.thrift.protocol.TField END_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("endOn", org.apache.thrift.protocol.TType.I64, (short)5);
37
  private static final TField CREATED_ON_FIELD_DESC = new TField("createdOn", TType.I64, (short)6);
34
  private static final org.apache.thrift.protocol.TField CREATED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("createdOn", org.apache.thrift.protocol.TType.I64, (short)6);
38
 
35
 
39
  private long id;
36
  private long id; // required
40
  private String name;
37
  private String name; // required
41
  private String ruleExecutionSrc;
38
  private String ruleExecutionSrc; // required
42
  private long startOn;
39
  private long startOn; // required
43
  private long endOn;
40
  private long endOn; // required
44
  private long createdOn;
41
  private long createdOn; // required
45
 
42
 
46
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
43
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
47
  public enum _Fields implements TFieldIdEnum {
44
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48
    ID((short)1, "id"),
45
    ID((short)1, "id"),
49
    NAME((short)2, "name"),
46
    NAME((short)2, "name"),
50
    RULE_EXECUTION_SRC((short)3, "ruleExecutionSrc"),
47
    RULE_EXECUTION_SRC((short)3, "ruleExecutionSrc"),
51
    START_ON((short)4, "startOn"),
48
    START_ON((short)4, "startOn"),
52
    END_ON((short)5, "endOn"),
49
    END_ON((short)5, "endOn"),
53
    CREATED_ON((short)6, "createdOn");
50
    CREATED_ON((short)6, "createdOn");
54
 
51
 
55
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
56
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
52
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
57
 
53
 
58
    static {
54
    static {
59
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
55
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
60
        byId.put((int)field._thriftId, field);
-
 
61
        byName.put(field.getFieldName(), field);
56
        byName.put(field.getFieldName(), field);
62
      }
57
      }
63
    }
58
    }
64
 
59
 
65
    /**
60
    /**
66
     * Find the _Fields constant that matches fieldId, or null if its not found.
61
     * Find the _Fields constant that matches fieldId, or null if its not found.
67
     */
62
     */
68
    public static _Fields findByThriftId(int fieldId) {
63
    public static _Fields findByThriftId(int fieldId) {
69
      return byId.get(fieldId);
64
      switch(fieldId) {
-
 
65
        case 1: // ID
-
 
66
          return ID;
-
 
67
        case 2: // NAME
-
 
68
          return NAME;
-
 
69
        case 3: // RULE_EXECUTION_SRC
-
 
70
          return RULE_EXECUTION_SRC;
-
 
71
        case 4: // START_ON
-
 
72
          return START_ON;
-
 
73
        case 5: // END_ON
-
 
74
          return END_ON;
-
 
75
        case 6: // CREATED_ON
-
 
76
          return CREATED_ON;
-
 
77
        default:
-
 
78
          return null;
-
 
79
      }
70
    }
80
    }
71
 
81
 
72
    /**
82
    /**
73
     * Find the _Fields constant that matches fieldId, throwing an exception
83
     * Find the _Fields constant that matches fieldId, throwing an exception
74
     * if it is not found.
84
     * if it is not found.
Line 108... Line 118...
108
  private static final int __STARTON_ISSET_ID = 1;
118
  private static final int __STARTON_ISSET_ID = 1;
109
  private static final int __ENDON_ISSET_ID = 2;
119
  private static final int __ENDON_ISSET_ID = 2;
110
  private static final int __CREATEDON_ISSET_ID = 3;
120
  private static final int __CREATEDON_ISSET_ID = 3;
111
  private BitSet __isset_bit_vector = new BitSet(4);
121
  private BitSet __isset_bit_vector = new BitSet(4);
112
 
122
 
113
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
123
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
114
    put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
-
 
115
        new FieldValueMetaData(TType.I64)));
-
 
116
    put(_Fields.NAME, new FieldMetaData("name", TFieldRequirementType.DEFAULT, 
-
 
117
        new FieldValueMetaData(TType.STRING)));
-
 
118
    put(_Fields.RULE_EXECUTION_SRC, new FieldMetaData("ruleExecutionSrc", TFieldRequirementType.DEFAULT, 
-
 
119
        new FieldValueMetaData(TType.STRING)));
-
 
120
    put(_Fields.START_ON, new FieldMetaData("startOn", TFieldRequirementType.DEFAULT, 
-
 
121
        new FieldValueMetaData(TType.I64)));
-
 
122
    put(_Fields.END_ON, new FieldMetaData("endOn", TFieldRequirementType.DEFAULT, 
-
 
123
        new FieldValueMetaData(TType.I64)));
-
 
124
    put(_Fields.CREATED_ON, new FieldMetaData("createdOn", TFieldRequirementType.DEFAULT, 
-
 
125
        new FieldValueMetaData(TType.I64)));
-
 
126
  }});
-
 
127
 
-
 
128
  static {
124
  static {
-
 
125
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
126
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
127
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
128
    tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
129
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
130
    tmpMap.put(_Fields.RULE_EXECUTION_SRC, new org.apache.thrift.meta_data.FieldMetaData("ruleExecutionSrc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
131
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
132
    tmpMap.put(_Fields.START_ON, new org.apache.thrift.meta_data.FieldMetaData("startOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
133
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
134
    tmpMap.put(_Fields.END_ON, new org.apache.thrift.meta_data.FieldMetaData("endOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
135
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
136
    tmpMap.put(_Fields.CREATED_ON, new org.apache.thrift.meta_data.FieldMetaData("createdOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
137
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
138
    metaDataMap = Collections.unmodifiableMap(tmpMap);
129
    FieldMetaData.addStructMetaDataMap(Promotion.class, metaDataMap);
139
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Promotion.class, metaDataMap);
130
  }
140
  }
131
 
141
 
132
  public Promotion() {
142
  public Promotion() {
133
  }
143
  }
134
 
144
 
Line 173... Line 183...
173
 
183
 
174
  public Promotion deepCopy() {
184
  public Promotion deepCopy() {
175
    return new Promotion(this);
185
    return new Promotion(this);
176
  }
186
  }
177
 
187
 
178
  @Deprecated
188
  @Override
179
  public Promotion clone() {
189
  public void clear() {
-
 
190
    setIdIsSet(false);
-
 
191
    this.id = 0;
-
 
192
    this.name = null;
-
 
193
    this.ruleExecutionSrc = null;
-
 
194
    setStartOnIsSet(false);
-
 
195
    this.startOn = 0;
-
 
196
    setEndOnIsSet(false);
-
 
197
    this.endOn = 0;
180
    return new Promotion(this);
198
    setCreatedOnIsSet(false);
-
 
199
    this.createdOn = 0;
181
  }
200
  }
182
 
201
 
183
  public long getId() {
202
  public long getId() {
184
    return this.id;
203
    return this.id;
185
  }
204
  }
186
 
205
 
187
  public Promotion setId(long id) {
206
  public void setId(long id) {
188
    this.id = id;
207
    this.id = id;
189
    setIdIsSet(true);
208
    setIdIsSet(true);
190
    return this;
-
 
191
  }
209
  }
192
 
210
 
193
  public void unsetId() {
211
  public void unsetId() {
194
    __isset_bit_vector.clear(__ID_ISSET_ID);
212
    __isset_bit_vector.clear(__ID_ISSET_ID);
195
  }
213
  }
196
 
214
 
197
  /** Returns true if field id is set (has been asigned a value) and false otherwise */
215
  /** Returns true if field id is set (has been assigned a value) and false otherwise */
198
  public boolean isSetId() {
216
  public boolean isSetId() {
199
    return __isset_bit_vector.get(__ID_ISSET_ID);
217
    return __isset_bit_vector.get(__ID_ISSET_ID);
200
  }
218
  }
201
 
219
 
202
  public void setIdIsSet(boolean value) {
220
  public void setIdIsSet(boolean value) {
Line 205... Line 223...
205
 
223
 
206
  public String getName() {
224
  public String getName() {
207
    return this.name;
225
    return this.name;
208
  }
226
  }
209
 
227
 
210
  public Promotion setName(String name) {
228
  public void setName(String name) {
211
    this.name = name;
229
    this.name = name;
212
    return this;
-
 
213
  }
230
  }
214
 
231
 
215
  public void unsetName() {
232
  public void unsetName() {
216
    this.name = null;
233
    this.name = null;
217
  }
234
  }
218
 
235
 
219
  /** Returns true if field name is set (has been asigned a value) and false otherwise */
236
  /** Returns true if field name is set (has been assigned a value) and false otherwise */
220
  public boolean isSetName() {
237
  public boolean isSetName() {
221
    return this.name != null;
238
    return this.name != null;
222
  }
239
  }
223
 
240
 
224
  public void setNameIsSet(boolean value) {
241
  public void setNameIsSet(boolean value) {
Line 229... Line 246...
229
 
246
 
230
  public String getRuleExecutionSrc() {
247
  public String getRuleExecutionSrc() {
231
    return this.ruleExecutionSrc;
248
    return this.ruleExecutionSrc;
232
  }
249
  }
233
 
250
 
234
  public Promotion setRuleExecutionSrc(String ruleExecutionSrc) {
251
  public void setRuleExecutionSrc(String ruleExecutionSrc) {
235
    this.ruleExecutionSrc = ruleExecutionSrc;
252
    this.ruleExecutionSrc = ruleExecutionSrc;
236
    return this;
-
 
237
  }
253
  }
238
 
254
 
239
  public void unsetRuleExecutionSrc() {
255
  public void unsetRuleExecutionSrc() {
240
    this.ruleExecutionSrc = null;
256
    this.ruleExecutionSrc = null;
241
  }
257
  }
242
 
258
 
243
  /** Returns true if field ruleExecutionSrc is set (has been asigned a value) and false otherwise */
259
  /** Returns true if field ruleExecutionSrc is set (has been assigned a value) and false otherwise */
244
  public boolean isSetRuleExecutionSrc() {
260
  public boolean isSetRuleExecutionSrc() {
245
    return this.ruleExecutionSrc != null;
261
    return this.ruleExecutionSrc != null;
246
  }
262
  }
247
 
263
 
248
  public void setRuleExecutionSrcIsSet(boolean value) {
264
  public void setRuleExecutionSrcIsSet(boolean value) {
Line 253... Line 269...
253
 
269
 
254
  public long getStartOn() {
270
  public long getStartOn() {
255
    return this.startOn;
271
    return this.startOn;
256
  }
272
  }
257
 
273
 
258
  public Promotion setStartOn(long startOn) {
274
  public void setStartOn(long startOn) {
259
    this.startOn = startOn;
275
    this.startOn = startOn;
260
    setStartOnIsSet(true);
276
    setStartOnIsSet(true);
261
    return this;
-
 
262
  }
277
  }
263
 
278
 
264
  public void unsetStartOn() {
279
  public void unsetStartOn() {
265
    __isset_bit_vector.clear(__STARTON_ISSET_ID);
280
    __isset_bit_vector.clear(__STARTON_ISSET_ID);
266
  }
281
  }
267
 
282
 
268
  /** Returns true if field startOn is set (has been asigned a value) and false otherwise */
283
  /** Returns true if field startOn is set (has been assigned a value) and false otherwise */
269
  public boolean isSetStartOn() {
284
  public boolean isSetStartOn() {
270
    return __isset_bit_vector.get(__STARTON_ISSET_ID);
285
    return __isset_bit_vector.get(__STARTON_ISSET_ID);
271
  }
286
  }
272
 
287
 
273
  public void setStartOnIsSet(boolean value) {
288
  public void setStartOnIsSet(boolean value) {
Line 276... Line 291...
276
 
291
 
277
  public long getEndOn() {
292
  public long getEndOn() {
278
    return this.endOn;
293
    return this.endOn;
279
  }
294
  }
280
 
295
 
281
  public Promotion setEndOn(long endOn) {
296
  public void setEndOn(long endOn) {
282
    this.endOn = endOn;
297
    this.endOn = endOn;
283
    setEndOnIsSet(true);
298
    setEndOnIsSet(true);
284
    return this;
-
 
285
  }
299
  }
286
 
300
 
287
  public void unsetEndOn() {
301
  public void unsetEndOn() {
288
    __isset_bit_vector.clear(__ENDON_ISSET_ID);
302
    __isset_bit_vector.clear(__ENDON_ISSET_ID);
289
  }
303
  }
290
 
304
 
291
  /** Returns true if field endOn is set (has been asigned a value) and false otherwise */
305
  /** Returns true if field endOn is set (has been assigned a value) and false otherwise */
292
  public boolean isSetEndOn() {
306
  public boolean isSetEndOn() {
293
    return __isset_bit_vector.get(__ENDON_ISSET_ID);
307
    return __isset_bit_vector.get(__ENDON_ISSET_ID);
294
  }
308
  }
295
 
309
 
296
  public void setEndOnIsSet(boolean value) {
310
  public void setEndOnIsSet(boolean value) {
Line 299... Line 313...
299
 
313
 
300
  public long getCreatedOn() {
314
  public long getCreatedOn() {
301
    return this.createdOn;
315
    return this.createdOn;
302
  }
316
  }
303
 
317
 
304
  public Promotion setCreatedOn(long createdOn) {
318
  public void setCreatedOn(long createdOn) {
305
    this.createdOn = createdOn;
319
    this.createdOn = createdOn;
306
    setCreatedOnIsSet(true);
320
    setCreatedOnIsSet(true);
307
    return this;
-
 
308
  }
321
  }
309
 
322
 
310
  public void unsetCreatedOn() {
323
  public void unsetCreatedOn() {
311
    __isset_bit_vector.clear(__CREATEDON_ISSET_ID);
324
    __isset_bit_vector.clear(__CREATEDON_ISSET_ID);
312
  }
325
  }
313
 
326
 
314
  /** Returns true if field createdOn is set (has been asigned a value) and false otherwise */
327
  /** Returns true if field createdOn is set (has been assigned a value) and false otherwise */
315
  public boolean isSetCreatedOn() {
328
  public boolean isSetCreatedOn() {
316
    return __isset_bit_vector.get(__CREATEDON_ISSET_ID);
329
    return __isset_bit_vector.get(__CREATEDON_ISSET_ID);
317
  }
330
  }
318
 
331
 
319
  public void setCreatedOnIsSet(boolean value) {
332
  public void setCreatedOnIsSet(boolean value) {
Line 371... Line 384...
371
      break;
384
      break;
372
 
385
 
373
    }
386
    }
374
  }
387
  }
375
 
388
 
376
  public void setFieldValue(int fieldID, Object value) {
-
 
377
    setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
378
  }
-
 
379
 
-
 
380
  public Object getFieldValue(_Fields field) {
389
  public Object getFieldValue(_Fields field) {
381
    switch (field) {
390
    switch (field) {
382
    case ID:
391
    case ID:
383
      return new Long(getId());
392
      return Long.valueOf(getId());
384
 
393
 
385
    case NAME:
394
    case NAME:
386
      return getName();
395
      return getName();
387
 
396
 
388
    case RULE_EXECUTION_SRC:
397
    case RULE_EXECUTION_SRC:
389
      return getRuleExecutionSrc();
398
      return getRuleExecutionSrc();
390
 
399
 
391
    case START_ON:
400
    case START_ON:
392
      return new Long(getStartOn());
401
      return Long.valueOf(getStartOn());
393
 
402
 
394
    case END_ON:
403
    case END_ON:
395
      return new Long(getEndOn());
404
      return Long.valueOf(getEndOn());
396
 
405
 
397
    case CREATED_ON:
406
    case CREATED_ON:
398
      return new Long(getCreatedOn());
407
      return Long.valueOf(getCreatedOn());
399
 
408
 
400
    }
409
    }
401
    throw new IllegalStateException();
410
    throw new IllegalStateException();
402
  }
411
  }
403
 
412
 
404
  public Object getFieldValue(int fieldId) {
-
 
405
    return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
406
  }
-
 
407
 
-
 
408
  /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
413
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
409
  public boolean isSet(_Fields field) {
414
  public boolean isSet(_Fields field) {
-
 
415
    if (field == null) {
-
 
416
      throw new IllegalArgumentException();
-
 
417
    }
-
 
418
 
410
    switch (field) {
419
    switch (field) {
411
    case ID:
420
    case ID:
412
      return isSetId();
421
      return isSetId();
413
    case NAME:
422
    case NAME:
414
      return isSetName();
423
      return isSetName();
Line 422... Line 431...
422
      return isSetCreatedOn();
431
      return isSetCreatedOn();
423
    }
432
    }
424
    throw new IllegalStateException();
433
    throw new IllegalStateException();
425
  }
434
  }
426
 
435
 
427
  public boolean isSet(int fieldID) {
-
 
428
    return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
429
  }
-
 
430
 
-
 
431
  @Override
436
  @Override
432
  public boolean equals(Object that) {
437
  public boolean equals(Object that) {
433
    if (that == null)
438
    if (that == null)
434
      return false;
439
      return false;
435
    if (that instanceof Promotion)
440
    if (that instanceof Promotion)
Line 509... Line 514...
509
    }
514
    }
510
 
515
 
511
    int lastComparison = 0;
516
    int lastComparison = 0;
512
    Promotion typedOther = (Promotion)other;
517
    Promotion typedOther = (Promotion)other;
513
 
518
 
514
    lastComparison = Boolean.valueOf(isSetId()).compareTo(isSetId());
519
    lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
515
    if (lastComparison != 0) {
520
    if (lastComparison != 0) {
516
      return lastComparison;
521
      return lastComparison;
517
    }
522
    }
-
 
523
    if (isSetId()) {
518
    lastComparison = TBaseHelper.compareTo(id, typedOther.id);
524
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
519
    if (lastComparison != 0) {
525
      if (lastComparison != 0) {
520
      return lastComparison;
526
        return lastComparison;
-
 
527
      }
521
    }
528
    }
522
    lastComparison = Boolean.valueOf(isSetName()).compareTo(isSetName());
529
    lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
523
    if (lastComparison != 0) {
530
    if (lastComparison != 0) {
524
      return lastComparison;
531
      return lastComparison;
525
    }
532
    }
-
 
533
    if (isSetName()) {
526
    lastComparison = TBaseHelper.compareTo(name, typedOther.name);
534
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
527
    if (lastComparison != 0) {
535
      if (lastComparison != 0) {
528
      return lastComparison;
536
        return lastComparison;
-
 
537
      }
529
    }
538
    }
530
    lastComparison = Boolean.valueOf(isSetRuleExecutionSrc()).compareTo(isSetRuleExecutionSrc());
539
    lastComparison = Boolean.valueOf(isSetRuleExecutionSrc()).compareTo(typedOther.isSetRuleExecutionSrc());
531
    if (lastComparison != 0) {
540
    if (lastComparison != 0) {
532
      return lastComparison;
541
      return lastComparison;
533
    }
542
    }
-
 
543
    if (isSetRuleExecutionSrc()) {
534
    lastComparison = TBaseHelper.compareTo(ruleExecutionSrc, typedOther.ruleExecutionSrc);
544
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ruleExecutionSrc, typedOther.ruleExecutionSrc);
535
    if (lastComparison != 0) {
545
      if (lastComparison != 0) {
536
      return lastComparison;
546
        return lastComparison;
-
 
547
      }
537
    }
548
    }
538
    lastComparison = Boolean.valueOf(isSetStartOn()).compareTo(isSetStartOn());
549
    lastComparison = Boolean.valueOf(isSetStartOn()).compareTo(typedOther.isSetStartOn());
539
    if (lastComparison != 0) {
550
    if (lastComparison != 0) {
540
      return lastComparison;
551
      return lastComparison;
541
    }
552
    }
-
 
553
    if (isSetStartOn()) {
542
    lastComparison = TBaseHelper.compareTo(startOn, typedOther.startOn);
554
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startOn, typedOther.startOn);
543
    if (lastComparison != 0) {
555
      if (lastComparison != 0) {
544
      return lastComparison;
556
        return lastComparison;
-
 
557
      }
545
    }
558
    }
546
    lastComparison = Boolean.valueOf(isSetEndOn()).compareTo(isSetEndOn());
559
    lastComparison = Boolean.valueOf(isSetEndOn()).compareTo(typedOther.isSetEndOn());
547
    if (lastComparison != 0) {
560
    if (lastComparison != 0) {
548
      return lastComparison;
561
      return lastComparison;
549
    }
562
    }
-
 
563
    if (isSetEndOn()) {
550
    lastComparison = TBaseHelper.compareTo(endOn, typedOther.endOn);
564
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endOn, typedOther.endOn);
551
    if (lastComparison != 0) {
565
      if (lastComparison != 0) {
552
      return lastComparison;
566
        return lastComparison;
-
 
567
      }
553
    }
568
    }
554
    lastComparison = Boolean.valueOf(isSetCreatedOn()).compareTo(isSetCreatedOn());
569
    lastComparison = Boolean.valueOf(isSetCreatedOn()).compareTo(typedOther.isSetCreatedOn());
555
    if (lastComparison != 0) {
570
    if (lastComparison != 0) {
556
      return lastComparison;
571
      return lastComparison;
557
    }
572
    }
-
 
573
    if (isSetCreatedOn()) {
558
    lastComparison = TBaseHelper.compareTo(createdOn, typedOther.createdOn);
574
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createdOn, typedOther.createdOn);
559
    if (lastComparison != 0) {
575
      if (lastComparison != 0) {
560
      return lastComparison;
576
        return lastComparison;
-
 
577
      }
561
    }
578
    }
562
    return 0;
579
    return 0;
563
  }
580
  }
564
 
581
 
-
 
582
  public _Fields fieldForId(int fieldId) {
-
 
583
    return _Fields.findByThriftId(fieldId);
-
 
584
  }
-
 
585
 
565
  public void read(TProtocol iprot) throws TException {
586
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
566
    TField field;
587
    org.apache.thrift.protocol.TField field;
567
    iprot.readStructBegin();
588
    iprot.readStructBegin();
568
    while (true)
589
    while (true)
569
    {
590
    {
570
      field = iprot.readFieldBegin();
591
      field = iprot.readFieldBegin();
571
      if (field.type == TType.STOP) { 
592
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
572
        break;
593
        break;
573
      }
594
      }
574
      _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
575
      if (fieldId == null) {
-
 
576
        TProtocolUtil.skip(iprot, field.type);
-
 
577
      } else {
-
 
578
        switch (fieldId) {
595
      switch (field.id) {
579
          case ID:
596
        case 1: // ID
580
            if (field.type == TType.I64) {
597
          if (field.type == org.apache.thrift.protocol.TType.I64) {
581
              this.id = iprot.readI64();
598
            this.id = iprot.readI64();
582
              setIdIsSet(true);
599
            setIdIsSet(true);
583
            } else { 
600
          } else { 
584
              TProtocolUtil.skip(iprot, field.type);
601
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
585
            }
602
          }
586
            break;
603
          break;
587
          case NAME:
604
        case 2: // NAME
588
            if (field.type == TType.STRING) {
605
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
589
              this.name = iprot.readString();
606
            this.name = iprot.readString();
590
            } else { 
607
          } else { 
591
              TProtocolUtil.skip(iprot, field.type);
608
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
592
            }
609
          }
593
            break;
610
          break;
594
          case RULE_EXECUTION_SRC:
611
        case 3: // RULE_EXECUTION_SRC
595
            if (field.type == TType.STRING) {
612
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
596
              this.ruleExecutionSrc = iprot.readString();
613
            this.ruleExecutionSrc = iprot.readString();
597
            } else { 
614
          } else { 
598
              TProtocolUtil.skip(iprot, field.type);
615
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
599
            }
616
          }
600
            break;
617
          break;
601
          case START_ON:
618
        case 4: // START_ON
602
            if (field.type == TType.I64) {
619
          if (field.type == org.apache.thrift.protocol.TType.I64) {
603
              this.startOn = iprot.readI64();
620
            this.startOn = iprot.readI64();
604
              setStartOnIsSet(true);
621
            setStartOnIsSet(true);
605
            } else { 
622
          } else { 
606
              TProtocolUtil.skip(iprot, field.type);
623
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
607
            }
624
          }
608
            break;
625
          break;
609
          case END_ON:
626
        case 5: // END_ON
610
            if (field.type == TType.I64) {
627
          if (field.type == org.apache.thrift.protocol.TType.I64) {
611
              this.endOn = iprot.readI64();
628
            this.endOn = iprot.readI64();
612
              setEndOnIsSet(true);
629
            setEndOnIsSet(true);
613
            } else { 
630
          } else { 
614
              TProtocolUtil.skip(iprot, field.type);
631
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
615
            }
632
          }
616
            break;
633
          break;
617
          case CREATED_ON:
634
        case 6: // CREATED_ON
618
            if (field.type == TType.I64) {
635
          if (field.type == org.apache.thrift.protocol.TType.I64) {
619
              this.createdOn = iprot.readI64();
636
            this.createdOn = iprot.readI64();
620
              setCreatedOnIsSet(true);
637
            setCreatedOnIsSet(true);
621
            } else { 
638
          } else { 
622
              TProtocolUtil.skip(iprot, field.type);
639
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
623
            }
640
          }
624
            break;
641
          break;
625
        }
642
        default:
626
        iprot.readFieldEnd();
643
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
627
      }
644
      }
-
 
645
      iprot.readFieldEnd();
628
    }
646
    }
629
    iprot.readStructEnd();
647
    iprot.readStructEnd();
630
    validate();
648
    validate();
631
  }
649
  }
632
 
650
 
633
  public void write(TProtocol oprot) throws TException {
651
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
634
    validate();
652
    validate();
635
 
653
 
636
    oprot.writeStructBegin(STRUCT_DESC);
654
    oprot.writeStructBegin(STRUCT_DESC);
637
    oprot.writeFieldBegin(ID_FIELD_DESC);
655
    oprot.writeFieldBegin(ID_FIELD_DESC);
638
    oprot.writeI64(this.id);
656
    oprot.writeI64(this.id);
Line 698... Line 716...
698
    first = false;
716
    first = false;
699
    sb.append(")");
717
    sb.append(")");
700
    return sb.toString();
718
    return sb.toString();
701
  }
719
  }
702
 
720
 
703
  public void validate() throws TException {
721
  public void validate() throws org.apache.thrift.TException {
704
    // check for required fields
722
    // check for required fields
705
  }
723
  }
706
 
724
 
-
 
725
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
726
    try {
-
 
727
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
728
    } catch (org.apache.thrift.TException te) {
-
 
729
      throw new java.io.IOException(te);
-
 
730
    }
-
 
731
  }
-
 
732
 
-
 
733
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
734
    try {
-
 
735
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
736
      __isset_bit_vector = new BitSet(1);
-
 
737
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
738
    } catch (org.apache.thrift.TException te) {
-
 
739
      throw new java.io.IOException(te);
-
 
740
    }
-
 
741
  }
-
 
742
 
707
}
743
}
708
 
744