Subversion Repositories SmartDukaan

Rev

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

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