Subversion Repositories SmartDukaan

Rev

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

Rev 1860 Rev 1998
Line 26... Line 26...
26
public class TrackLog implements TBase<TrackLog._Fields>, java.io.Serializable, Cloneable, Comparable<TrackLog> {
26
public class TrackLog implements TBase<TrackLog._Fields>, java.io.Serializable, Cloneable, Comparable<TrackLog> {
27
  private static final TStruct STRUCT_DESC = new TStruct("TrackLog");
27
  private static final TStruct STRUCT_DESC = new TStruct("TrackLog");
28
 
28
 
29
  private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
29
  private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
30
  private static final TField ADDED_ON_FIELD_DESC = new TField("addedOn", TType.I64, (short)2);
30
  private static final TField ADDED_ON_FIELD_DESC = new TField("addedOn", TType.I64, (short)2);
31
  private static final TField TRACKER_ID_FIELD_DESC = new TField("trackerId", TType.I64, (short)3);
31
  private static final TField AFFILIATE_ID_FIELD_DESC = new TField("affiliateId", TType.I64, (short)3);
32
  private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)4);
32
  private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)4);
33
  private static final TField EVENT_FIELD_DESC = new TField("event", TType.STRING, (short)5);
33
  private static final TField EVENT_FIELD_DESC = new TField("event", TType.STRING, (short)5);
34
  private static final TField URL_FIELD_DESC = new TField("url", TType.STRING, (short)6);
34
  private static final TField URL_FIELD_DESC = new TField("url", TType.STRING, (short)6);
35
  private static final TField DATA_FIELD_DESC = new TField("data", TType.STRING, (short)7);
35
  private static final TField DATA_FIELD_DESC = new TField("data", TType.STRING, (short)7);
36
 
36
 
37
  private long id;
37
  private long id;
38
  private long addedOn;
38
  private long addedOn;
39
  private long trackerId;
39
  private long affiliateId;
40
  private long userId;
40
  private long userId;
41
  private String event;
41
  private String event;
42
  private String url;
42
  private String url;
43
  private String data;
43
  private String data;
44
 
44
 
45
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
45
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
46
  public enum _Fields implements TFieldIdEnum {
46
  public enum _Fields implements TFieldIdEnum {
47
    ID((short)1, "id"),
47
    ID((short)1, "id"),
48
    ADDED_ON((short)2, "addedOn"),
48
    ADDED_ON((short)2, "addedOn"),
49
    TRACKER_ID((short)3, "trackerId"),
49
    AFFILIATE_ID((short)3, "affiliateId"),
50
    USER_ID((short)4, "userId"),
50
    USER_ID((short)4, "userId"),
51
    EVENT((short)5, "event"),
51
    EVENT((short)5, "event"),
52
    URL((short)6, "url"),
52
    URL((short)6, "url"),
53
    DATA((short)7, "data");
53
    DATA((short)7, "data");
54
 
54
 
Line 104... Line 104...
104
  }
104
  }
105
 
105
 
106
  // isset id assignments
106
  // isset id assignments
107
  private static final int __ID_ISSET_ID = 0;
107
  private static final int __ID_ISSET_ID = 0;
108
  private static final int __ADDEDON_ISSET_ID = 1;
108
  private static final int __ADDEDON_ISSET_ID = 1;
109
  private static final int __TRACKERID_ISSET_ID = 2;
109
  private static final int __AFFILIATEID_ISSET_ID = 2;
110
  private static final int __USERID_ISSET_ID = 3;
110
  private static final int __USERID_ISSET_ID = 3;
111
  private BitSet __isset_bit_vector = new BitSet(4);
111
  private BitSet __isset_bit_vector = new BitSet(4);
112
 
112
 
113
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
113
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
114
    put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
114
    put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
115
        new FieldValueMetaData(TType.I64)));
115
        new FieldValueMetaData(TType.I64)));
116
    put(_Fields.ADDED_ON, new FieldMetaData("addedOn", TFieldRequirementType.DEFAULT, 
116
    put(_Fields.ADDED_ON, new FieldMetaData("addedOn", TFieldRequirementType.DEFAULT, 
117
        new FieldValueMetaData(TType.I64)));
117
        new FieldValueMetaData(TType.I64)));
118
    put(_Fields.TRACKER_ID, new FieldMetaData("trackerId", TFieldRequirementType.DEFAULT, 
118
    put(_Fields.AFFILIATE_ID, new FieldMetaData("affiliateId", TFieldRequirementType.DEFAULT, 
119
        new FieldValueMetaData(TType.I64)));
119
        new FieldValueMetaData(TType.I64)));
120
    put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
120
    put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
121
        new FieldValueMetaData(TType.I64)));
121
        new FieldValueMetaData(TType.I64)));
122
    put(_Fields.EVENT, new FieldMetaData("event", TFieldRequirementType.DEFAULT, 
122
    put(_Fields.EVENT, new FieldMetaData("event", TFieldRequirementType.DEFAULT, 
123
        new FieldValueMetaData(TType.STRING)));
123
        new FieldValueMetaData(TType.STRING)));
Line 135... Line 135...
135
  }
135
  }
136
 
136
 
137
  public TrackLog(
137
  public TrackLog(
138
    long id,
138
    long id,
139
    long addedOn,
139
    long addedOn,
140
    long trackerId,
140
    long affiliateId,
141
    long userId,
141
    long userId,
142
    String event,
142
    String event,
143
    String url,
143
    String url,
144
    String data)
144
    String data)
145
  {
145
  {
146
    this();
146
    this();
147
    this.id = id;
147
    this.id = id;
148
    setIdIsSet(true);
148
    setIdIsSet(true);
149
    this.addedOn = addedOn;
149
    this.addedOn = addedOn;
150
    setAddedOnIsSet(true);
150
    setAddedOnIsSet(true);
151
    this.trackerId = trackerId;
151
    this.affiliateId = affiliateId;
152
    setTrackerIdIsSet(true);
152
    setAffiliateIdIsSet(true);
153
    this.userId = userId;
153
    this.userId = userId;
154
    setUserIdIsSet(true);
154
    setUserIdIsSet(true);
155
    this.event = event;
155
    this.event = event;
156
    this.url = url;
156
    this.url = url;
157
    this.data = data;
157
    this.data = data;
Line 163... Line 163...
163
  public TrackLog(TrackLog other) {
163
  public TrackLog(TrackLog other) {
164
    __isset_bit_vector.clear();
164
    __isset_bit_vector.clear();
165
    __isset_bit_vector.or(other.__isset_bit_vector);
165
    __isset_bit_vector.or(other.__isset_bit_vector);
166
    this.id = other.id;
166
    this.id = other.id;
167
    this.addedOn = other.addedOn;
167
    this.addedOn = other.addedOn;
168
    this.trackerId = other.trackerId;
168
    this.affiliateId = other.affiliateId;
169
    this.userId = other.userId;
169
    this.userId = other.userId;
170
    if (other.isSetEvent()) {
170
    if (other.isSetEvent()) {
171
      this.event = other.event;
171
      this.event = other.event;
172
    }
172
    }
173
    if (other.isSetUrl()) {
173
    if (other.isSetUrl()) {
Line 231... Line 231...
231
 
231
 
232
  public void setAddedOnIsSet(boolean value) {
232
  public void setAddedOnIsSet(boolean value) {
233
    __isset_bit_vector.set(__ADDEDON_ISSET_ID, value);
233
    __isset_bit_vector.set(__ADDEDON_ISSET_ID, value);
234
  }
234
  }
235
 
235
 
236
  public long getTrackerId() {
236
  public long getAffiliateId() {
237
    return this.trackerId;
237
    return this.affiliateId;
238
  }
238
  }
239
 
239
 
240
  public TrackLog setTrackerId(long trackerId) {
240
  public TrackLog setAffiliateId(long affiliateId) {
241
    this.trackerId = trackerId;
241
    this.affiliateId = affiliateId;
242
    setTrackerIdIsSet(true);
242
    setAffiliateIdIsSet(true);
243
    return this;
243
    return this;
244
  }
244
  }
245
 
245
 
246
  public void unsetTrackerId() {
246
  public void unsetAffiliateId() {
247
    __isset_bit_vector.clear(__TRACKERID_ISSET_ID);
247
    __isset_bit_vector.clear(__AFFILIATEID_ISSET_ID);
248
  }
248
  }
249
 
249
 
250
  /** Returns true if field trackerId is set (has been asigned a value) and false otherwise */
250
  /** Returns true if field affiliateId is set (has been asigned a value) and false otherwise */
251
  public boolean isSetTrackerId() {
251
  public boolean isSetAffiliateId() {
252
    return __isset_bit_vector.get(__TRACKERID_ISSET_ID);
252
    return __isset_bit_vector.get(__AFFILIATEID_ISSET_ID);
253
  }
253
  }
254
 
254
 
255
  public void setTrackerIdIsSet(boolean value) {
255
  public void setAffiliateIdIsSet(boolean value) {
256
    __isset_bit_vector.set(__TRACKERID_ISSET_ID, value);
256
    __isset_bit_vector.set(__AFFILIATEID_ISSET_ID, value);
257
  }
257
  }
258
 
258
 
259
  public long getUserId() {
259
  public long getUserId() {
260
    return this.userId;
260
    return this.userId;
261
  }
261
  }
Line 367... Line 367...
367
      } else {
367
      } else {
368
        setAddedOn((Long)value);
368
        setAddedOn((Long)value);
369
      }
369
      }
370
      break;
370
      break;
371
 
371
 
372
    case TRACKER_ID:
372
    case AFFILIATE_ID:
373
      if (value == null) {
373
      if (value == null) {
374
        unsetTrackerId();
374
        unsetAffiliateId();
375
      } else {
375
      } else {
376
        setTrackerId((Long)value);
376
        setAffiliateId((Long)value);
377
      }
377
      }
378
      break;
378
      break;
379
 
379
 
380
    case USER_ID:
380
    case USER_ID:
381
      if (value == null) {
381
      if (value == null) {
Line 422... Line 422...
422
      return new Long(getId());
422
      return new Long(getId());
423
 
423
 
424
    case ADDED_ON:
424
    case ADDED_ON:
425
      return new Long(getAddedOn());
425
      return new Long(getAddedOn());
426
 
426
 
427
    case TRACKER_ID:
427
    case AFFILIATE_ID:
428
      return new Long(getTrackerId());
428
      return new Long(getAffiliateId());
429
 
429
 
430
    case USER_ID:
430
    case USER_ID:
431
      return new Long(getUserId());
431
      return new Long(getUserId());
432
 
432
 
433
    case EVENT:
433
    case EVENT:
Line 452... Line 452...
452
    switch (field) {
452
    switch (field) {
453
    case ID:
453
    case ID:
454
      return isSetId();
454
      return isSetId();
455
    case ADDED_ON:
455
    case ADDED_ON:
456
      return isSetAddedOn();
456
      return isSetAddedOn();
457
    case TRACKER_ID:
457
    case AFFILIATE_ID:
458
      return isSetTrackerId();
458
      return isSetAffiliateId();
459
    case USER_ID:
459
    case USER_ID:
460
      return isSetUserId();
460
      return isSetUserId();
461
    case EVENT:
461
    case EVENT:
462
      return isSetEvent();
462
      return isSetEvent();
463
    case URL:
463
    case URL:
Line 501... Line 501...
501
        return false;
501
        return false;
502
      if (this.addedOn != that.addedOn)
502
      if (this.addedOn != that.addedOn)
503
        return false;
503
        return false;
504
    }
504
    }
505
 
505
 
506
    boolean this_present_trackerId = true;
506
    boolean this_present_affiliateId = true;
507
    boolean that_present_trackerId = true;
507
    boolean that_present_affiliateId = true;
508
    if (this_present_trackerId || that_present_trackerId) {
508
    if (this_present_affiliateId || that_present_affiliateId) {
509
      if (!(this_present_trackerId && that_present_trackerId))
509
      if (!(this_present_affiliateId && that_present_affiliateId))
510
        return false;
510
        return false;
511
      if (this.trackerId != that.trackerId)
511
      if (this.affiliateId != that.affiliateId)
512
        return false;
512
        return false;
513
    }
513
    }
514
 
514
 
515
    boolean this_present_userId = true;
515
    boolean this_present_userId = true;
516
    boolean that_present_userId = true;
516
    boolean that_present_userId = true;
Line 578... Line 578...
578
    }
578
    }
579
    lastComparison = TBaseHelper.compareTo(addedOn, typedOther.addedOn);
579
    lastComparison = TBaseHelper.compareTo(addedOn, typedOther.addedOn);
580
    if (lastComparison != 0) {
580
    if (lastComparison != 0) {
581
      return lastComparison;
581
      return lastComparison;
582
    }
582
    }
583
    lastComparison = Boolean.valueOf(isSetTrackerId()).compareTo(isSetTrackerId());
583
    lastComparison = Boolean.valueOf(isSetAffiliateId()).compareTo(isSetAffiliateId());
584
    if (lastComparison != 0) {
584
    if (lastComparison != 0) {
585
      return lastComparison;
585
      return lastComparison;
586
    }
586
    }
587
    lastComparison = TBaseHelper.compareTo(trackerId, typedOther.trackerId);
587
    lastComparison = TBaseHelper.compareTo(affiliateId, typedOther.affiliateId);
588
    if (lastComparison != 0) {
588
    if (lastComparison != 0) {
589
      return lastComparison;
589
      return lastComparison;
590
    }
590
    }
591
    lastComparison = Boolean.valueOf(isSetUserId()).compareTo(isSetUserId());
591
    lastComparison = Boolean.valueOf(isSetUserId()).compareTo(isSetUserId());
592
    if (lastComparison != 0) {
592
    if (lastComparison != 0) {
Line 651... Line 651...
651
              setAddedOnIsSet(true);
651
              setAddedOnIsSet(true);
652
            } else { 
652
            } else { 
653
              TProtocolUtil.skip(iprot, field.type);
653
              TProtocolUtil.skip(iprot, field.type);
654
            }
654
            }
655
            break;
655
            break;
656
          case TRACKER_ID:
656
          case AFFILIATE_ID:
657
            if (field.type == TType.I64) {
657
            if (field.type == TType.I64) {
658
              this.trackerId = iprot.readI64();
658
              this.affiliateId = iprot.readI64();
659
              setTrackerIdIsSet(true);
659
              setAffiliateIdIsSet(true);
660
            } else { 
660
            } else { 
661
              TProtocolUtil.skip(iprot, field.type);
661
              TProtocolUtil.skip(iprot, field.type);
662
            }
662
            }
663
            break;
663
            break;
664
          case USER_ID:
664
          case USER_ID:
Line 706... Line 706...
706
    oprot.writeI64(this.id);
706
    oprot.writeI64(this.id);
707
    oprot.writeFieldEnd();
707
    oprot.writeFieldEnd();
708
    oprot.writeFieldBegin(ADDED_ON_FIELD_DESC);
708
    oprot.writeFieldBegin(ADDED_ON_FIELD_DESC);
709
    oprot.writeI64(this.addedOn);
709
    oprot.writeI64(this.addedOn);
710
    oprot.writeFieldEnd();
710
    oprot.writeFieldEnd();
711
    oprot.writeFieldBegin(TRACKER_ID_FIELD_DESC);
711
    oprot.writeFieldBegin(AFFILIATE_ID_FIELD_DESC);
712
    oprot.writeI64(this.trackerId);
712
    oprot.writeI64(this.affiliateId);
713
    oprot.writeFieldEnd();
713
    oprot.writeFieldEnd();
714
    oprot.writeFieldBegin(USER_ID_FIELD_DESC);
714
    oprot.writeFieldBegin(USER_ID_FIELD_DESC);
715
    oprot.writeI64(this.userId);
715
    oprot.writeI64(this.userId);
716
    oprot.writeFieldEnd();
716
    oprot.writeFieldEnd();
717
    if (this.event != null) {
717
    if (this.event != null) {
Line 744... Line 744...
744
    if (!first) sb.append(", ");
744
    if (!first) sb.append(", ");
745
    sb.append("addedOn:");
745
    sb.append("addedOn:");
746
    sb.append(this.addedOn);
746
    sb.append(this.addedOn);
747
    first = false;
747
    first = false;
748
    if (!first) sb.append(", ");
748
    if (!first) sb.append(", ");
749
    sb.append("trackerId:");
749
    sb.append("affiliateId:");
750
    sb.append(this.trackerId);
750
    sb.append(this.affiliateId);
751
    first = false;
751
    first = false;
752
    if (!first) sb.append(", ");
752
    if (!first) sb.append(", ");
753
    sb.append("userId:");
753
    sb.append("userId:");
754
    sb.append(this.userId);
754
    sb.append(this.userId);
755
    first = false;
755
    first = false;