| 5599 |
amit.gupta |
1 |
package in.shop2020.model;
|
|
|
2 |
|
|
|
3 |
import java.io.Serializable;
|
|
|
4 |
import java.util.Date;
|
|
|
5 |
|
|
|
6 |
import javax.jdo.annotations.IdentityType;
|
|
|
7 |
import javax.jdo.annotations.PersistenceCapable;
|
|
|
8 |
import javax.jdo.annotations.Persistent;
|
|
|
9 |
import javax.jdo.annotations.PrimaryKey;
|
|
|
10 |
|
|
|
11 |
@PersistenceCapable(identityType = IdentityType.APPLICATION)
|
|
|
12 |
public class ProductSearchActivity implements Serializable{
|
|
|
13 |
|
|
|
14 |
private static final long serialVersionUID = 3376521331201079598L;
|
|
|
15 |
|
|
|
16 |
@PrimaryKey
|
|
|
17 |
@Persistent()
|
|
|
18 |
private String key;
|
|
|
19 |
|
|
|
20 |
@Persistent()
|
|
|
21 |
private String queryString;
|
|
|
22 |
|
|
|
23 |
@Persistent()
|
|
|
24 |
private Date date;
|
|
|
25 |
|
|
|
26 |
@Persistent()
|
|
|
27 |
private Long searchCount;
|
|
|
28 |
|
|
|
29 |
/* @Persistent()
|
|
|
30 |
private Long noCategorySearchCount;
|
|
|
31 |
|
|
|
32 |
@Persistent()
|
|
|
33 |
private Long mobileCategorySearchCount;
|
|
|
34 |
|
|
|
35 |
@Persistent()
|
|
|
36 |
private Long tabletCategorySearchCount;
|
|
|
37 |
|
|
|
38 |
@Persistent()
|
|
|
39 |
private Long laptopCategorySearchCount;
|
|
|
40 |
|
|
|
41 |
@Persistent()
|
|
|
42 |
private Long accessoriesCategorySearchCount;
|
|
|
43 |
*/
|
|
|
44 |
@Persistent()
|
|
|
45 |
private Long sessionCountForQuery;
|
|
|
46 |
|
|
|
47 |
@Persistent()
|
|
|
48 |
private Integer avgNumResults;
|
|
|
49 |
|
|
|
50 |
@Persistent()
|
|
|
51 |
private Long searchResultClickedCount;
|
|
|
52 |
|
|
|
53 |
@Persistent()
|
|
|
54 |
private Double searchConvRate;
|
|
|
55 |
|
|
|
56 |
public String toString() {
|
|
|
57 |
return ("key = "+key +"\nqueryString = "+queryString+"\ndate = "+date+
|
|
|
58 |
"\nsearchCount"+searchCount+
|
|
|
59 |
"\nsessionCountForQuery = "+sessionCountForQuery+
|
|
|
60 |
"\navgNumResults = "+avgNumResults+
|
|
|
61 |
"\nsearchResultClickedCount = "+searchResultClickedCount+
|
|
|
62 |
"\nsearchConvRate = "+searchConvRate);
|
|
|
63 |
}
|
|
|
64 |
|
|
|
65 |
public String getKey() {
|
|
|
66 |
return key;
|
|
|
67 |
}
|
|
|
68 |
public void setKey(String key) {
|
|
|
69 |
this.key = key;
|
|
|
70 |
}
|
|
|
71 |
public String getQueryString() {
|
|
|
72 |
return queryString;
|
|
|
73 |
}
|
|
|
74 |
public void setQueryString(String queryString) {
|
|
|
75 |
this.queryString = queryString;
|
|
|
76 |
}
|
|
|
77 |
public Date getDate() {
|
|
|
78 |
return date;
|
|
|
79 |
}
|
|
|
80 |
public void setDate(Date fromDate) {
|
|
|
81 |
this.date = fromDate;
|
|
|
82 |
}
|
|
|
83 |
public Long getSearchCount() {
|
|
|
84 |
return searchCount;
|
|
|
85 |
}
|
|
|
86 |
public void setSearchCount(Long searchCount) {
|
|
|
87 |
this.searchCount = searchCount;
|
|
|
88 |
}
|
|
|
89 |
public Long getSessionCountForQuery() {
|
|
|
90 |
return sessionCountForQuery;
|
|
|
91 |
}
|
|
|
92 |
public void setSessionCountForQuery(Long sessionCountForQuery) {
|
|
|
93 |
this.sessionCountForQuery = sessionCountForQuery;
|
|
|
94 |
}
|
|
|
95 |
public Integer getAvgNumResults() {
|
|
|
96 |
return avgNumResults;
|
|
|
97 |
}
|
|
|
98 |
public void setAvgNumResults(Integer avgNumResults) {
|
|
|
99 |
this.avgNumResults = avgNumResults;
|
|
|
100 |
}
|
|
|
101 |
public Long getSearchResultClickedCount() {
|
|
|
102 |
return searchResultClickedCount;
|
|
|
103 |
}
|
|
|
104 |
public void setSearchResultClickedCount(Long searchResultClickedCount) {
|
|
|
105 |
this.searchResultClickedCount = searchResultClickedCount;
|
|
|
106 |
}
|
|
|
107 |
public Double getSearchConvRate() {
|
|
|
108 |
return searchConvRate;
|
|
|
109 |
}
|
|
|
110 |
public void setSearchConvRate(Double searchConvRate) {
|
|
|
111 |
this.searchConvRate = searchConvRate;
|
|
|
112 |
}
|
|
|
113 |
|
|
|
114 |
|
|
|
115 |
|
|
|
116 |
|
|
|
117 |
}
|