Subversion Repositories SmartDukaan

Rev

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

Rev 2427 Rev 2489
Line 13... Line 13...
13
    
13
    
14
    private long id;
14
    private long id;
15
    
15
    
16
    private String vendorCategory;
16
    private String vendorCategory;
17
    private String productGroup;
17
    private String productGroup;
18
    
-
 
19
    private String brand;
18
    private String brand;
20
    private String modelNumber;
19
    private String modelNumber;
21
    private String modelName;
20
    private String modelName;
22
    private String color;
21
    private String color;
23
    private String contentCategory;
22
    private String contentCategory;
24
    private long contentCategoryId;
23
    private Long contentCategoryId;
25
    private String comments;
24
    private String comments;
26
    private long catalogItemId;
25
    private Long catalogItemId;
27
    private long featureId;
26
    private Long featureId;
28
    private String featureDescription;
27
    private String featureDescription;
29
    private double mrp = -1;
28
    private Double mrp;
30
    private double mop;
29
    private Double mop;
31
    private double sellingPrice = -1;
30
    private Double sellingPrice;
32
    private double dealerPrice;
31
    private Double dealerPrice;
33
    private double transferPrice;
32
    private Double transferPrice;
34
    private double weight = -1;
33
    private Double weight;
35
    private long addedOn;
34
    private Long addedOn;
36
    private long updatedOn;
35
    private Long updatedOn;
37
    private long startDate;
36
    private Long startDate;
38
    private long retireDate;
37
    private Long retireDate;
39
    private String itemStatus;
38
    private String itemStatus;
40
    private String itemStatusDesc;
39
    private String itemStatusDesc;
41
    private int itemStatusValue;
40
    private Integer itemStatusValue;
42
    private String bestDealsText;
41
    private String bestDealsText;
43
    private double bestDealsValue = -1;
42
    private Double bestDealsValue;
44
    
-
 
45
    private long bestSellingRank = -1;
43
    private Long bestSellingRank;
46
    private boolean defaultForEntity, risky;
44
    private boolean defaultForEntity, risky;
47
 
45
 
48
    private Map<String, String> otherInfo;
46
    private Map<String, String> otherInfo;
49
    private Map<Long, Long> availability;
47
    private Map<Long, Long> availability;
50
    
48
    
Line 55... Line 53...
55
    private static final long serialVersionUID = -2982668732181655698L;
53
    private static final long serialVersionUID = -2982668732181655698L;
56
 
54
 
57
    public Item() {
55
    public Item() {
58
    }
56
    }
59
 
57
 
60
    public Item(long id, String productGroup, String brand, String modelNumber, String modelName, String color,
58
    public Item(long id, String vendorCategory, String productGroup, String brand, String modelNumber, String modelName, String color,
61
            String category, long categoryId, String comments,
59
            String category, Long categoryId, String comments,
62
            long catalogItemId, long featureId,
60
            Long catalogItemId, Long featureId,
63
            String featureDescription, 
61
            String featureDescription, 
64
            double mrp, double mop, double sellingPrice, double dealerPrice, double weight,
62
            Double mrp, Double mop, Double sellingPrice, Double dealerPrice, Double weight,
65
            long addedOn, long startDate, long retireDate, long updatedOn,
63
            Long addedOn, Long startDate, Long retireDate, Long updatedOn,
66
            String itemStatus, int itemStatusValue, String itemStatusDesc, 
64
            String itemStatus, Integer itemStatusValue, String itemStatusDesc, 
67
            Map<String, String> otherInfo,
65
            Map<String, String> otherInfo,
68
            String bestDealsText, double bestDealsValue, long bestSellingRank, boolean defaultForEntity, boolean risky,
66
            String bestDealsText, Double bestDealsValue, Long bestSellingRank, boolean defaultForEntity, boolean risky,
69
            Map<Long, Long> availability, Map<Long,VendorPricings> vendorPricesMap, Map<String, VendorItemMapping> vendorKeysMap) {
67
            Map<Long, Long> availability, Map<Long,VendorPricings> vendorPricesMap, Map<String, VendorItemMapping> vendorKeysMap) {
70
        this();
68
        this();
71
        this.id = id;
69
        this.id = id;
-
 
70
        this.vendorCategory = vendorCategory;
72
        this.setProductGroup(productGroup);
71
        this.productGroup = productGroup;
73
        this.brand = brand;
72
        this.brand = brand;
74
        this.modelNumber = modelNumber;
73
        this.modelNumber = modelNumber;
75
        this.modelName = modelName;
74
        this.modelName = modelName;
76
        this.color = color;
75
        this.color = color;
77
        this.contentCategory = category;
76
        this.contentCategory = category;
Line 111... Line 110...
111
 
110
 
112
    public void setId(long id) {
111
    public void setId(long id) {
113
        this.id = id;
112
        this.id = id;
114
    }
113
    }
115
 
114
 
-
 
115
    public String getVendorCategory() {
-
 
116
        return vendorCategory;
-
 
117
    }
-
 
118
 
116
    public void setProductGroup(String productGroup) {
119
    public void setVendorCategory(String vendorCategory) {
117
        this.productGroup = productGroup;
120
        this.vendorCategory = vendorCategory;
118
    }
121
    }
119
 
122
 
120
    public String getProductGroup() {
123
    public String getProductGroup() {
121
        return productGroup;
124
        return productGroup;
122
    }
125
    }
123
 
126
 
-
 
127
    public void setProductGroup(String productGroup) {
-
 
128
        this.productGroup = productGroup;
-
 
129
    }
-
 
130
 
124
    public String getBrand() {
131
    public String getBrand() {
125
        return brand;
132
        return brand;
126
    }
133
    }
127
 
134
 
128
    public void setBrand(String brand) {
135
    public void setBrand(String brand) {
Line 143... Line 150...
143
 
150
 
144
    public void setModelName(String modelName) {
151
    public void setModelName(String modelName) {
145
        this.modelName = modelName;
152
        this.modelName = modelName;
146
    }
153
    }
147
 
154
 
-
 
155
    public String getColor() {
-
 
156
        return color;
-
 
157
    }
-
 
158
 
-
 
159
    public void setColor(String color) {
-
 
160
        this.color = color;
-
 
161
    }
-
 
162
 
148
    public String getContentCategory() {
163
    public String getContentCategory() {
149
        return contentCategory;
164
        return contentCategory;
150
    }
165
    }
151
 
166
 
152
    public void setContentCategory(String contentCategory) {
167
    public void setContentCategory(String contentCategory) {
153
        this.contentCategory = contentCategory;
168
        this.contentCategory = contentCategory;
154
    }
169
    }
155
 
170
 
-
 
171
    public Long getContentCategoryId() {
-
 
172
        return contentCategoryId;
-
 
173
    }
-
 
174
 
-
 
175
    public void setContentCategoryId(Long contentCategoryId) {
-
 
176
        this.contentCategoryId = contentCategoryId;
-
 
177
    }
-
 
178
 
156
    public String getComments() {
179
    public String getComments() {
157
        return comments;
180
        return comments;
158
    }
181
    }
159
 
182
 
160
    public void setComments(String comments) {
183
    public void setComments(String comments) {
161
        this.comments = comments;
184
        this.comments = comments;
162
    }
185
    }
163
 
186
 
164
    public long getCatalogItemId() {
187
    public Long getCatalogItemId() {
165
        return catalogItemId;
188
        return catalogItemId;
166
    }
189
    }
167
 
190
 
168
    public void setCatalogItemId(long catalogItemId) {
191
    public void setCatalogItemId(Long catalogItemId) {
169
        this.catalogItemId = catalogItemId;
192
        this.catalogItemId = catalogItemId;
170
    }
193
    }
171
 
194
 
172
    public long getFeatureId() {
195
    public Long getFeatureId() {
173
        return featureId;
196
        return featureId;
174
    }
197
    }
175
 
198
 
176
    public void setFeatureId(long featureId) {
199
    public void setFeatureId(Long featureId) {
177
        this.featureId = featureId;
200
        this.featureId = featureId;
178
    }
201
    }
179
 
202
 
180
    public String getFeatureDescription() {
203
    public String getFeatureDescription() {
181
        return featureDescription;
204
        return featureDescription;
Line 183... Line 206...
183
 
206
 
184
    public void setFeatureDescription(String featureDescription) {
207
    public void setFeatureDescription(String featureDescription) {
185
        this.featureDescription = featureDescription;
208
        this.featureDescription = featureDescription;
186
    }
209
    }
187
 
210
 
188
    public double getMrp() {
211
    public Double getMrp() {
189
        return mrp;
212
        return mrp;
190
    }
213
    }
191
 
214
 
192
    public void setMrp(double mrp) {
215
    public void setMrp(Double mrp) {
193
        this.mrp = mrp;
216
        this.mrp = mrp;
194
    }
217
    }
195
 
218
 
196
    public double getMop() {
219
    public Double getMop() {
197
        return mop;
220
        return mop;
198
    }
221
    }
199
 
222
 
200
    public void setMop(double mop) {
223
    public void setMop(Double mop) {
201
        this.mop = mop;
224
        this.mop = mop;
202
    }
225
    }
203
 
226
 
204
    public double getSellingPrice() {
227
    public Double getSellingPrice() {
205
        return sellingPrice;
228
        return sellingPrice;
206
    }
229
    }
207
 
230
 
208
    public void setSellingPrice(double sellingPrice) {
231
    public void setSellingPrice(Double sellingPrice) {
209
        this.sellingPrice = sellingPrice;
232
        this.sellingPrice = sellingPrice;
210
    }
233
    }
211
 
234
 
212
    public double getWeight() {
235
    public Double getDealerPrice() {
213
        return weight;
-
 
214
    }
-
 
215
 
-
 
216
    public void setWeight(double weight) {
-
 
217
        this.weight = weight;
-
 
218
    }
-
 
219
 
-
 
220
    public long getAddedOn() {
-
 
221
        return addedOn;
236
        return dealerPrice;
222
    }
-
 
223
 
-
 
224
    public void setAddedOn(long addedOn) {
-
 
225
        this.addedOn = addedOn;
-
 
226
    }
237
    }
227
 
238
 
228
    public long getStartDate() {
239
    public void setDealerPrice(Double dealerPrice) {
229
        return startDate;
240
        this.dealerPrice = dealerPrice;
230
    }
241
    }
231
 
242
 
232
    public void setStartDate(long startDate) {
243
    public Double getTransferPrice() {
233
        this.startDate = startDate;
244
        return transferPrice;
234
    }
245
    }
235
 
246
 
236
    public long getRetireDate() {
247
    public void setTransferPrice(Double transferPrice) {
237
        return retireDate;
248
        this.transferPrice = transferPrice;
238
    }
249
    }
239
 
250
 
240
    public void setRetireDate(long retireDate) {
251
    public Double getWeight() {
241
        this.retireDate = retireDate;
252
        return weight;
242
    }
253
    }
243
 
254
 
244
    public Map<String, String> getOtherInfo() {
255
    public void setWeight(Double weight) {
245
        return otherInfo;
256
        this.weight = weight;
246
    }
257
    }
247
 
258
 
248
    public void setOtherInfo(Map<String, String> otherInfo) {
259
    public Long getAddedOn() {
249
        this.otherInfo = otherInfo;
260
        return addedOn;
250
    }
261
    }
251
 
262
 
252
    public void setUpdatedOn(long updatedOn) {
263
    public void setAddedOn(Long addedOn) {
253
        this.updatedOn = updatedOn;
264
        this.addedOn = addedOn;
254
    }
265
    }
255
 
266
 
256
    public long getUpdatedOn() {
267
    public Long getUpdatedOn() {
257
        return updatedOn;
268
        return updatedOn;
258
    }
269
    }
259
 
270
 
260
    public void setColor(String color) {
271
    public void setUpdatedOn(Long updatedOn) {
261
        this.color = color;
272
        this.updatedOn = updatedOn;
262
    }
-
 
263
 
-
 
264
    public String getColor() {
-
 
265
        return color;
-
 
266
    }
273
    }
267
 
274
 
268
    public void setDealerPrice(double dealerPrice) {
275
    public Long getStartDate() {
269
        this.dealerPrice = dealerPrice;
276
        return startDate;
270
    }
277
    }
271
 
278
 
272
    public double getDealerPrice() {
279
    public void setStartDate(Long startDate) {
273
        return dealerPrice;
280
        this.startDate = startDate;
274
    }
281
    }
275
 
282
 
276
    public void setBestDealsText(String bestDealsText) {
283
    public Long getRetireDate() {
277
        this.bestDealsText = bestDealsText;
284
        return retireDate;
278
    }
285
    }
279
 
286
 
280
    public String getBestDealsText() {
287
    public void setRetireDate(Long retireDate) {
281
        return bestDealsText;
288
        this.retireDate = retireDate;
282
    }
289
    }
283
 
290
 
284
    public void setBestDealsValue(double bestDealsValue) {
291
    public String getItemStatus() {
285
        this.bestDealsValue = bestDealsValue;
292
        return itemStatus;
286
    }
293
    }
287
 
294
 
288
    public double getBestDealsValue() {
295
    public void setItemStatus(String itemStatus) {
289
        return bestDealsValue;
296
        this.itemStatus = itemStatus;
290
    }
297
    }
291
 
298
 
292
    public double getTransferPrice() {
299
    public String getItemStatusDesc() {
293
        return transferPrice;
300
        return itemStatusDesc;
294
    }
301
    }
295
 
302
 
296
    public void setTransferPrice(double transferPrice) {
303
    public void setItemStatusDesc(String itemStatusDesc) {
297
        this.transferPrice = transferPrice;
304
        this.itemStatusDesc = itemStatusDesc;
298
    }
305
    }
299
 
306
 
300
    public String getItemStatus() {
307
    public Integer getItemStatusValue() {
301
        return itemStatus;
308
        return itemStatusValue;
302
    }
309
    }
303
 
310
 
304
    public void setItemStatus(String itemStatus) {
311
    public void setItemStatusValue(Integer itemStatusValue) {
305
        this.itemStatus = itemStatus;
312
        this.itemStatusValue = itemStatusValue;
306
    }
313
    }
307
 
314
 
308
    public Map<Long, Long> getAvailability() {
315
    public String getBestDealsText() {
309
        return availability;
316
        return bestDealsText;
310
    }
317
    }
311
 
318
 
312
    public void setAvailability(Map<Long, Long> availability) {
319
    public void setBestDealsText(String bestDealsText) {
313
        this.availability = availability;
320
        this.bestDealsText = bestDealsText;
314
    }
321
    }
315
 
322
 
316
    public Map<Long, VendorPricings> getVendorPricesMap() {
323
    public Double getBestDealsValue() {
317
        return vendorPricesMap;
324
        return bestDealsValue;
318
    }
325
    }
319
 
326
 
320
    public void setVendorPricesMap(Map<Long, VendorPricings> vendorPricesMap) {
327
    public void setBestDealsValue(Double bestDealsValue) {
321
        this.vendorPricesMap = vendorPricesMap;
328
        this.bestDealsValue = bestDealsValue;
322
    }
329
    }
323
 
330
 
324
    public long getBestSellingRank() {
331
    public Long getBestSellingRank() {
325
        return bestSellingRank;
332
        return bestSellingRank;
326
    }
333
    }
327
 
334
 
328
    public void setBestSellingRank(long bestSellingRank) {
335
    public void setBestSellingRank(Long bestSellingRank) {
329
        this.bestSellingRank = bestSellingRank;
336
        this.bestSellingRank = bestSellingRank;
330
    }
337
    }
331
 
338
 
332
    public boolean isDefaultForEntity() {
339
    public boolean isDefaultForEntity() {
333
        return defaultForEntity;
340
        return defaultForEntity;
Line 335... Line 342...
335
 
342
 
336
    public void setDefaultForEntity(boolean defaultForEntity) {
343
    public void setDefaultForEntity(boolean defaultForEntity) {
337
        this.defaultForEntity = defaultForEntity;
344
        this.defaultForEntity = defaultForEntity;
338
    }
345
    }
339
 
346
 
340
    public String getVendorCategory() {
347
    public boolean isRisky() {
341
        return vendorCategory;
348
        return risky;
342
    }
349
    }
343
 
350
 
344
    public void setVendorCategory(String vendorCategory) {
351
    public void setRisky(boolean risky) {
345
        this.vendorCategory = vendorCategory;
352
        this.risky = risky;
346
    }
353
    }
347
 
354
 
348
    public Map<String, VendorItemMapping> getVendorKeysMap() {
355
    public Map<String, String> getOtherInfo() {
349
        return vendorKeysMap;
356
        return otherInfo;
350
    }
357
    }
351
 
358
 
352
    public void setVendorKeysMap(Map<String, VendorItemMapping> vendorKeysMap) {
359
    public void setOtherInfo(Map<String, String> otherInfo) {
353
        this.vendorKeysMap = vendorKeysMap;
360
        this.otherInfo = otherInfo;
354
    }
361
    }
355
 
362
 
356
    public long getContentCategoryId() {
363
    public Map<Long, Long> getAvailability() {
357
        return contentCategoryId;
364
        return availability;
358
    }
365
    }
359
 
366
 
360
    public void setContentCategoryId(long contentCategoryId) {
367
    public void setAvailability(Map<Long, Long> availability) {
361
        this.contentCategoryId = contentCategoryId;
368
        this.availability = availability;
362
    }
369
    }
363
 
370
 
364
    public int getItemStatusValue() {
371
    public Map<Long, VendorPricings> getVendorPricesMap() {
365
        return itemStatusValue;
372
        return vendorPricesMap;
366
    }
373
    }
367
 
374
 
368
    public void setItemStatusValue(int itemStatusValue) {
375
    public void setVendorPricesMap(Map<Long, VendorPricings> vendorPricesMap) {
369
        this.itemStatusValue = itemStatusValue;
376
        this.vendorPricesMap = vendorPricesMap;
370
    }
-
 
371
    
-
 
372
    public boolean isRisky() {
-
 
373
        return risky;
-
 
374
    }
377
    }
375
 
378
 
376
    public void setRisky(boolean isRisky) {
379
    public Map<String, VendorItemMapping> getVendorKeysMap() {
377
        this.risky = isRisky;
380
        return vendorKeysMap;
378
    }
381
    }
379
 
382
 
380
    public String getItemStatusDesc() {
383
    public void setVendorKeysMap(Map<String, VendorItemMapping> vendorKeysMap) {
381
        return itemStatusDesc;
384
        this.vendorKeysMap = vendorKeysMap;
382
    }
385
    }
383
 
386
 
384
    public void setItemStatusDesc(String itemStatusDesc) {
-
 
385
        this.itemStatusDesc = itemStatusDesc;
-
 
386
    }
-
 
387
 
387
 
388
}
388
}