Subversion Repositories SmartDukaan

Rev

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

Rev 3206 Rev 3269
Line 29... Line 29...
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 DESCRIPTION_FIELD_DESC = new TField("description", TType.STRING, (short)2);
30
  private static final TField DESCRIPTION_FIELD_DESC = new TField("description", TType.STRING, (short)2);
31
  private static final TField CREATION_TIMESTAMP_FIELD_DESC = new TField("creationTimestamp", TType.I64, (short)3);
31
  private static final TField CREATION_TIMESTAMP_FIELD_DESC = new TField("creationTimestamp", TType.I64, (short)3);
32
  private static final TField TYPE_FIELD_DESC = new TField("type", TType.I32, (short)4);
32
  private static final TField TYPE_FIELD_DESC = new TField("type", TType.I32, (short)4);
33
  private static final TField CUSTOMER_ID_FIELD_DESC = new TField("customerId", TType.I64, (short)5);
33
  private static final TField CUSTOMER_ID_FIELD_DESC = new TField("customerId", TType.I64, (short)5);
-
 
34
  private static final TField CUSTOMER_MOBILE_NUMBER_FIELD_DESC = new TField("customerMobileNumber", TType.STRING, (short)6);
34
  private static final TField CREATOR_ID_FIELD_DESC = new TField("creatorId", TType.I64, (short)6);
35
  private static final TField CREATOR_ID_FIELD_DESC = new TField("creatorId", TType.I64, (short)7);
35
  private static final TField EMAIL_ID_FIELD_DESC = new TField("emailId", TType.I64, (short)7);
36
  private static final TField EMAIL_ID_FIELD_DESC = new TField("emailId", TType.I64, (short)8);
36
  private static final TField TICKET_ID_FIELD_DESC = new TField("ticketId", TType.I64, (short)8);
37
  private static final TField TICKET_ID_FIELD_DESC = new TField("ticketId", TType.I64, (short)9);
37
  private static final TField TICKET_PRIORITY_FIELD_DESC = new TField("ticketPriority", TType.I32, (short)9);
38
  private static final TField TICKET_PRIORITY_FIELD_DESC = new TField("ticketPriority", TType.I32, (short)10);
38
  private static final TField TICKET_ASSIGNEE_ID_FIELD_DESC = new TField("ticketAssigneeId", TType.I64, (short)10);
39
  private static final TField TICKET_ASSIGNEE_ID_FIELD_DESC = new TField("ticketAssigneeId", TType.I64, (short)11);
39
  private static final TField TICKET_STATUS_FIELD_DESC = new TField("ticketStatus", TType.I32, (short)11);
40
  private static final TField TICKET_STATUS_FIELD_DESC = new TField("ticketStatus", TType.I32, (short)12);
40
  private static final TField TICKET_CATEGORY_FIELD_DESC = new TField("ticketCategory", TType.I32, (short)12);
41
  private static final TField TICKET_CATEGORY_FIELD_DESC = new TField("ticketCategory", TType.I32, (short)13);
41
  private static final TField TICKET_DESCRIPTION_FIELD_DESC = new TField("ticketDescription", TType.STRING, (short)13);
42
  private static final TField TICKET_DESCRIPTION_FIELD_DESC = new TField("ticketDescription", TType.STRING, (short)14);
42
 
43
 
43
  private long id;
44
  private long id;
44
  private String description;
45
  private String description;
45
  private long creationTimestamp;
46
  private long creationTimestamp;
46
  private ActivityType type;
47
  private ActivityType type;
47
  private long customerId;
48
  private long customerId;
-
 
49
  private String customerMobileNumber;
48
  private long creatorId;
50
  private long creatorId;
49
  private long emailId;
51
  private long emailId;
50
  private long ticketId;
52
  private long ticketId;
51
  private TicketPriority ticketPriority;
53
  private TicketPriority ticketPriority;
52
  private long ticketAssigneeId;
54
  private long ticketAssigneeId;
Line 63... Line 65...
63
     * 
65
     * 
64
     * @see ActivityType
66
     * @see ActivityType
65
     */
67
     */
66
    TYPE((short)4, "type"),
68
    TYPE((short)4, "type"),
67
    CUSTOMER_ID((short)5, "customerId"),
69
    CUSTOMER_ID((short)5, "customerId"),
-
 
70
    CUSTOMER_MOBILE_NUMBER((short)6, "customerMobileNumber"),
68
    CREATOR_ID((short)6, "creatorId"),
71
    CREATOR_ID((short)7, "creatorId"),
69
    EMAIL_ID((short)7, "emailId"),
72
    EMAIL_ID((short)8, "emailId"),
70
    TICKET_ID((short)8, "ticketId"),
73
    TICKET_ID((short)9, "ticketId"),
71
    /**
74
    /**
72
     * 
75
     * 
73
     * @see TicketPriority
76
     * @see TicketPriority
74
     */
77
     */
75
    TICKET_PRIORITY((short)9, "ticketPriority"),
78
    TICKET_PRIORITY((short)10, "ticketPriority"),
76
    TICKET_ASSIGNEE_ID((short)10, "ticketAssigneeId"),
79
    TICKET_ASSIGNEE_ID((short)11, "ticketAssigneeId"),
77
    /**
80
    /**
78
     * 
81
     * 
79
     * @see TicketStatus
82
     * @see TicketStatus
80
     */
83
     */
81
    TICKET_STATUS((short)11, "ticketStatus"),
84
    TICKET_STATUS((short)12, "ticketStatus"),
82
    /**
85
    /**
83
     * 
86
     * 
84
     * @see TicketCategory
87
     * @see TicketCategory
85
     */
88
     */
86
    TICKET_CATEGORY((short)12, "ticketCategory"),
89
    TICKET_CATEGORY((short)13, "ticketCategory"),
87
    TICKET_DESCRIPTION((short)13, "ticketDescription");
90
    TICKET_DESCRIPTION((short)14, "ticketDescription");
88
 
91
 
89
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
92
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
90
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
93
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
91
 
94
 
92
    static {
95
    static {
Line 154... Line 157...
154
        new FieldValueMetaData(TType.STRING)));
157
        new FieldValueMetaData(TType.STRING)));
155
    put(_Fields.CREATION_TIMESTAMP, new FieldMetaData("creationTimestamp", TFieldRequirementType.DEFAULT, 
158
    put(_Fields.CREATION_TIMESTAMP, new FieldMetaData("creationTimestamp", TFieldRequirementType.DEFAULT, 
156
        new FieldValueMetaData(TType.I64)));
159
        new FieldValueMetaData(TType.I64)));
157
    put(_Fields.TYPE, new FieldMetaData("type", TFieldRequirementType.DEFAULT, 
160
    put(_Fields.TYPE, new FieldMetaData("type", TFieldRequirementType.DEFAULT, 
158
        new EnumMetaData(TType.ENUM, ActivityType.class)));
161
        new EnumMetaData(TType.ENUM, ActivityType.class)));
159
    put(_Fields.CUSTOMER_ID, new FieldMetaData("customerId", TFieldRequirementType.DEFAULT, 
162
    put(_Fields.CUSTOMER_ID, new FieldMetaData("customerId", TFieldRequirementType.OPTIONAL, 
160
        new FieldValueMetaData(TType.I64)));
163
        new FieldValueMetaData(TType.I64)));
-
 
164
    put(_Fields.CUSTOMER_MOBILE_NUMBER, new FieldMetaData("customerMobileNumber", TFieldRequirementType.OPTIONAL, 
-
 
165
        new FieldValueMetaData(TType.STRING)));
161
    put(_Fields.CREATOR_ID, new FieldMetaData("creatorId", TFieldRequirementType.DEFAULT, 
166
    put(_Fields.CREATOR_ID, new FieldMetaData("creatorId", TFieldRequirementType.DEFAULT, 
162
        new FieldValueMetaData(TType.I64)));
167
        new FieldValueMetaData(TType.I64)));
163
    put(_Fields.EMAIL_ID, new FieldMetaData("emailId", TFieldRequirementType.OPTIONAL, 
168
    put(_Fields.EMAIL_ID, new FieldMetaData("emailId", TFieldRequirementType.OPTIONAL, 
164
        new FieldValueMetaData(TType.I64)));
169
        new FieldValueMetaData(TType.I64)));
165
    put(_Fields.TICKET_ID, new FieldMetaData("ticketId", TFieldRequirementType.OPTIONAL, 
170
    put(_Fields.TICKET_ID, new FieldMetaData("ticketId", TFieldRequirementType.OPTIONAL, 
Line 185... Line 190...
185
 
190
 
186
  public Activity(
191
  public Activity(
187
    long id,
192
    long id,
188
    long creationTimestamp,
193
    long creationTimestamp,
189
    ActivityType type,
194
    ActivityType type,
190
    long customerId,
-
 
191
    long creatorId)
195
    long creatorId)
192
  {
196
  {
193
    this();
197
    this();
194
    this.id = id;
198
    this.id = id;
195
    setIdIsSet(true);
199
    setIdIsSet(true);
196
    this.creationTimestamp = creationTimestamp;
200
    this.creationTimestamp = creationTimestamp;
197
    setCreationTimestampIsSet(true);
201
    setCreationTimestampIsSet(true);
198
    this.type = type;
202
    this.type = type;
199
    this.customerId = customerId;
-
 
200
    setCustomerIdIsSet(true);
-
 
201
    this.creatorId = creatorId;
203
    this.creatorId = creatorId;
202
    setCreatorIdIsSet(true);
204
    setCreatorIdIsSet(true);
203
  }
205
  }
204
 
206
 
205
  /**
207
  /**
Line 215... Line 217...
215
    this.creationTimestamp = other.creationTimestamp;
217
    this.creationTimestamp = other.creationTimestamp;
216
    if (other.isSetType()) {
218
    if (other.isSetType()) {
217
      this.type = other.type;
219
      this.type = other.type;
218
    }
220
    }
219
    this.customerId = other.customerId;
221
    this.customerId = other.customerId;
-
 
222
    if (other.isSetCustomerMobileNumber()) {
-
 
223
      this.customerMobileNumber = other.customerMobileNumber;
-
 
224
    }
220
    this.creatorId = other.creatorId;
225
    this.creatorId = other.creatorId;
221
    this.emailId = other.emailId;
226
    this.emailId = other.emailId;
222
    this.ticketId = other.ticketId;
227
    this.ticketId = other.ticketId;
223
    if (other.isSetTicketPriority()) {
228
    if (other.isSetTicketPriority()) {
224
      this.ticketPriority = other.ticketPriority;
229
      this.ticketPriority = other.ticketPriority;
Line 367... Line 372...
367
 
372
 
368
  public void setCustomerIdIsSet(boolean value) {
373
  public void setCustomerIdIsSet(boolean value) {
369
    __isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);
374
    __isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);
370
  }
375
  }
371
 
376
 
-
 
377
  public String getCustomerMobileNumber() {
-
 
378
    return this.customerMobileNumber;
-
 
379
  }
-
 
380
 
-
 
381
  public Activity setCustomerMobileNumber(String customerMobileNumber) {
-
 
382
    this.customerMobileNumber = customerMobileNumber;
-
 
383
    return this;
-
 
384
  }
-
 
385
 
-
 
386
  public void unsetCustomerMobileNumber() {
-
 
387
    this.customerMobileNumber = null;
-
 
388
  }
-
 
389
 
-
 
390
  /** Returns true if field customerMobileNumber is set (has been asigned a value) and false otherwise */
-
 
391
  public boolean isSetCustomerMobileNumber() {
-
 
392
    return this.customerMobileNumber != null;
-
 
393
  }
-
 
394
 
-
 
395
  public void setCustomerMobileNumberIsSet(boolean value) {
-
 
396
    if (!value) {
-
 
397
      this.customerMobileNumber = null;
-
 
398
    }
-
 
399
  }
-
 
400
 
372
  public long getCreatorId() {
401
  public long getCreatorId() {
373
    return this.creatorId;
402
    return this.creatorId;
374
  }
403
  }
375
 
404
 
376
  public Activity setCreatorId(long creatorId) {
405
  public Activity setCreatorId(long creatorId) {
Line 621... Line 650...
621
      } else {
650
      } else {
622
        setCustomerId((Long)value);
651
        setCustomerId((Long)value);
623
      }
652
      }
624
      break;
653
      break;
625
 
654
 
-
 
655
    case CUSTOMER_MOBILE_NUMBER:
-
 
656
      if (value == null) {
-
 
657
        unsetCustomerMobileNumber();
-
 
658
      } else {
-
 
659
        setCustomerMobileNumber((String)value);
-
 
660
      }
-
 
661
      break;
-
 
662
 
626
    case CREATOR_ID:
663
    case CREATOR_ID:
627
      if (value == null) {
664
      if (value == null) {
628
        unsetCreatorId();
665
        unsetCreatorId();
629
      } else {
666
      } else {
630
        setCreatorId((Long)value);
667
        setCreatorId((Long)value);
Line 709... Line 746...
709
      return getType();
746
      return getType();
710
 
747
 
711
    case CUSTOMER_ID:
748
    case CUSTOMER_ID:
712
      return new Long(getCustomerId());
749
      return new Long(getCustomerId());
713
 
750
 
-
 
751
    case CUSTOMER_MOBILE_NUMBER:
-
 
752
      return getCustomerMobileNumber();
-
 
753
 
714
    case CREATOR_ID:
754
    case CREATOR_ID:
715
      return new Long(getCreatorId());
755
      return new Long(getCreatorId());
716
 
756
 
717
    case EMAIL_ID:
757
    case EMAIL_ID:
718
      return new Long(getEmailId());
758
      return new Long(getEmailId());
Line 754... Line 794...
754
      return isSetCreationTimestamp();
794
      return isSetCreationTimestamp();
755
    case TYPE:
795
    case TYPE:
756
      return isSetType();
796
      return isSetType();
757
    case CUSTOMER_ID:
797
    case CUSTOMER_ID:
758
      return isSetCustomerId();
798
      return isSetCustomerId();
-
 
799
    case CUSTOMER_MOBILE_NUMBER:
-
 
800
      return isSetCustomerMobileNumber();
759
    case CREATOR_ID:
801
    case CREATOR_ID:
760
      return isSetCreatorId();
802
      return isSetCreatorId();
761
    case EMAIL_ID:
803
    case EMAIL_ID:
762
      return isSetEmailId();
804
      return isSetEmailId();
763
    case TICKET_ID:
805
    case TICKET_ID:
Line 827... Line 869...
827
        return false;
869
        return false;
828
      if (!this.type.equals(that.type))
870
      if (!this.type.equals(that.type))
829
        return false;
871
        return false;
830
    }
872
    }
831
 
873
 
832
    boolean this_present_customerId = true;
874
    boolean this_present_customerId = true && this.isSetCustomerId();
833
    boolean that_present_customerId = true;
875
    boolean that_present_customerId = true && that.isSetCustomerId();
834
    if (this_present_customerId || that_present_customerId) {
876
    if (this_present_customerId || that_present_customerId) {
835
      if (!(this_present_customerId && that_present_customerId))
877
      if (!(this_present_customerId && that_present_customerId))
836
        return false;
878
        return false;
837
      if (this.customerId != that.customerId)
879
      if (this.customerId != that.customerId)
838
        return false;
880
        return false;
839
    }
881
    }
840
 
882
 
-
 
883
    boolean this_present_customerMobileNumber = true && this.isSetCustomerMobileNumber();
-
 
884
    boolean that_present_customerMobileNumber = true && that.isSetCustomerMobileNumber();
-
 
885
    if (this_present_customerMobileNumber || that_present_customerMobileNumber) {
-
 
886
      if (!(this_present_customerMobileNumber && that_present_customerMobileNumber))
-
 
887
        return false;
-
 
888
      if (!this.customerMobileNumber.equals(that.customerMobileNumber))
-
 
889
        return false;
-
 
890
    }
-
 
891
 
841
    boolean this_present_creatorId = true;
892
    boolean this_present_creatorId = true;
842
    boolean that_present_creatorId = true;
893
    boolean that_present_creatorId = true;
843
    if (this_present_creatorId || that_present_creatorId) {
894
    if (this_present_creatorId || that_present_creatorId) {
844
      if (!(this_present_creatorId && that_present_creatorId))
895
      if (!(this_present_creatorId && that_present_creatorId))
845
        return false;
896
        return false;
Line 964... Line 1015...
964
    }
1015
    }
965
    lastComparison = TBaseHelper.compareTo(customerId, typedOther.customerId);
1016
    lastComparison = TBaseHelper.compareTo(customerId, typedOther.customerId);
966
    if (lastComparison != 0) {
1017
    if (lastComparison != 0) {
967
      return lastComparison;
1018
      return lastComparison;
968
    }
1019
    }
-
 
1020
    lastComparison = Boolean.valueOf(isSetCustomerMobileNumber()).compareTo(isSetCustomerMobileNumber());
-
 
1021
    if (lastComparison != 0) {
-
 
1022
      return lastComparison;
-
 
1023
    }
-
 
1024
    lastComparison = TBaseHelper.compareTo(customerMobileNumber, typedOther.customerMobileNumber);
-
 
1025
    if (lastComparison != 0) {
-
 
1026
      return lastComparison;
-
 
1027
    }
969
    lastComparison = Boolean.valueOf(isSetCreatorId()).compareTo(isSetCreatorId());
1028
    lastComparison = Boolean.valueOf(isSetCreatorId()).compareTo(isSetCreatorId());
970
    if (lastComparison != 0) {
1029
    if (lastComparison != 0) {
971
      return lastComparison;
1030
      return lastComparison;
972
    }
1031
    }
973
    lastComparison = TBaseHelper.compareTo(creatorId, typedOther.creatorId);
1032
    lastComparison = TBaseHelper.compareTo(creatorId, typedOther.creatorId);
Line 1083... Line 1142...
1083
              setCustomerIdIsSet(true);
1142
              setCustomerIdIsSet(true);
1084
            } else { 
1143
            } else { 
1085
              TProtocolUtil.skip(iprot, field.type);
1144
              TProtocolUtil.skip(iprot, field.type);
1086
            }
1145
            }
1087
            break;
1146
            break;
-
 
1147
          case CUSTOMER_MOBILE_NUMBER:
-
 
1148
            if (field.type == TType.STRING) {
-
 
1149
              this.customerMobileNumber = iprot.readString();
-
 
1150
            } else { 
-
 
1151
              TProtocolUtil.skip(iprot, field.type);
-
 
1152
            }
-
 
1153
            break;
1088
          case CREATOR_ID:
1154
          case CREATOR_ID:
1089
            if (field.type == TType.I64) {
1155
            if (field.type == TType.I64) {
1090
              this.creatorId = iprot.readI64();
1156
              this.creatorId = iprot.readI64();
1091
              setCreatorIdIsSet(true);
1157
              setCreatorIdIsSet(true);
1092
            } else { 
1158
            } else { 
Line 1173... Line 1239...
1173
    if (this.type != null) {
1239
    if (this.type != null) {
1174
      oprot.writeFieldBegin(TYPE_FIELD_DESC);
1240
      oprot.writeFieldBegin(TYPE_FIELD_DESC);
1175
      oprot.writeI32(this.type.getValue());
1241
      oprot.writeI32(this.type.getValue());
1176
      oprot.writeFieldEnd();
1242
      oprot.writeFieldEnd();
1177
    }
1243
    }
-
 
1244
    if (isSetCustomerId()) {
1178
    oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
1245
      oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
1179
    oprot.writeI64(this.customerId);
1246
      oprot.writeI64(this.customerId);
1180
    oprot.writeFieldEnd();
1247
      oprot.writeFieldEnd();
-
 
1248
    }
-
 
1249
    if (this.customerMobileNumber != null) {
-
 
1250
      if (isSetCustomerMobileNumber()) {
-
 
1251
        oprot.writeFieldBegin(CUSTOMER_MOBILE_NUMBER_FIELD_DESC);
-
 
1252
        oprot.writeString(this.customerMobileNumber);
-
 
1253
        oprot.writeFieldEnd();
-
 
1254
      }
-
 
1255
    }
1181
    oprot.writeFieldBegin(CREATOR_ID_FIELD_DESC);
1256
    oprot.writeFieldBegin(CREATOR_ID_FIELD_DESC);
1182
    oprot.writeI64(this.creatorId);
1257
    oprot.writeI64(this.creatorId);
1183
    oprot.writeFieldEnd();
1258
    oprot.writeFieldEnd();
1184
    if (isSetEmailId()) {
1259
    if (isSetEmailId()) {
1185
      oprot.writeFieldBegin(EMAIL_ID_FIELD_DESC);
1260
      oprot.writeFieldBegin(EMAIL_ID_FIELD_DESC);
Line 1264... Line 1339...
1264
      if (type_name != null) {
1339
      if (type_name != null) {
1265
        sb.append(")");
1340
        sb.append(")");
1266
      }
1341
      }
1267
    }
1342
    }
1268
    first = false;
1343
    first = false;
-
 
1344
    if (isSetCustomerId()) {
1269
    if (!first) sb.append(", ");
1345
      if (!first) sb.append(", ");
1270
    sb.append("customerId:");
1346
      sb.append("customerId:");
1271
    sb.append(this.customerId);
1347
      sb.append(this.customerId);
-
 
1348
      first = false;
-
 
1349
    }
-
 
1350
    if (isSetCustomerMobileNumber()) {
-
 
1351
      if (!first) sb.append(", ");
-
 
1352
      sb.append("customerMobileNumber:");
-
 
1353
      if (this.customerMobileNumber == null) {
-
 
1354
        sb.append("null");
-
 
1355
      } else {
-
 
1356
        sb.append(this.customerMobileNumber);
-
 
1357
      }
1272
    first = false;
1358
      first = false;
-
 
1359
    }
1273
    if (!first) sb.append(", ");
1360
    if (!first) sb.append(", ");
1274
    sb.append("creatorId:");
1361
    sb.append("creatorId:");
1275
    sb.append(this.creatorId);
1362
    sb.append(this.creatorId);
1276
    first = false;
1363
    first = false;
1277
    if (isSetEmailId()) {
1364
    if (isSetEmailId()) {