1
19
20 package com.liferay.portlet.ratings.service.base;
21
22 import com.liferay.counter.service.CounterLocalService;
23 import com.liferay.counter.service.CounterService;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.BeanReference;
28 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
29 import com.liferay.portal.service.UserLocalService;
30 import com.liferay.portal.service.UserService;
31 import com.liferay.portal.service.persistence.UserFinder;
32 import com.liferay.portal.service.persistence.UserPersistence;
33
34 import com.liferay.portlet.blogs.service.BlogsEntryLocalService;
35 import com.liferay.portlet.blogs.service.BlogsEntryService;
36 import com.liferay.portlet.blogs.service.BlogsStatsUserLocalService;
37 import com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder;
38 import com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence;
39 import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserFinder;
40 import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserPersistence;
41 import com.liferay.portlet.ratings.model.RatingsEntry;
42 import com.liferay.portlet.ratings.service.RatingsEntryLocalService;
43 import com.liferay.portlet.ratings.service.RatingsEntryService;
44 import com.liferay.portlet.ratings.service.RatingsStatsLocalService;
45 import com.liferay.portlet.ratings.service.persistence.RatingsEntryPersistence;
46 import com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence;
47
48 import java.util.List;
49
50
56 public abstract class RatingsEntryLocalServiceBaseImpl
57 implements RatingsEntryLocalService {
58 public RatingsEntry addRatingsEntry(RatingsEntry ratingsEntry)
59 throws SystemException {
60 ratingsEntry.setNew(true);
61
62 return ratingsEntryPersistence.update(ratingsEntry, false);
63 }
64
65 public RatingsEntry createRatingsEntry(long entryId) {
66 return ratingsEntryPersistence.create(entryId);
67 }
68
69 public void deleteRatingsEntry(long entryId)
70 throws PortalException, SystemException {
71 ratingsEntryPersistence.remove(entryId);
72 }
73
74 public void deleteRatingsEntry(RatingsEntry ratingsEntry)
75 throws SystemException {
76 ratingsEntryPersistence.remove(ratingsEntry);
77 }
78
79 public List<Object> dynamicQuery(DynamicQuery dynamicQuery)
80 throws SystemException {
81 return ratingsEntryPersistence.findWithDynamicQuery(dynamicQuery);
82 }
83
84 public List<Object> dynamicQuery(DynamicQuery dynamicQuery, int start,
85 int end) throws SystemException {
86 return ratingsEntryPersistence.findWithDynamicQuery(dynamicQuery,
87 start, end);
88 }
89
90 public RatingsEntry getRatingsEntry(long entryId)
91 throws PortalException, SystemException {
92 return ratingsEntryPersistence.findByPrimaryKey(entryId);
93 }
94
95 public List<RatingsEntry> getRatingsEntries(int start, int end)
96 throws SystemException {
97 return ratingsEntryPersistence.findAll(start, end);
98 }
99
100 public int getRatingsEntriesCount() throws SystemException {
101 return ratingsEntryPersistence.countAll();
102 }
103
104 public RatingsEntry updateRatingsEntry(RatingsEntry ratingsEntry)
105 throws SystemException {
106 ratingsEntry.setNew(false);
107
108 return ratingsEntryPersistence.update(ratingsEntry, true);
109 }
110
111 public RatingsEntryLocalService getRatingsEntryLocalService() {
112 return ratingsEntryLocalService;
113 }
114
115 public void setRatingsEntryLocalService(
116 RatingsEntryLocalService ratingsEntryLocalService) {
117 this.ratingsEntryLocalService = ratingsEntryLocalService;
118 }
119
120 public RatingsEntryService getRatingsEntryService() {
121 return ratingsEntryService;
122 }
123
124 public void setRatingsEntryService(RatingsEntryService ratingsEntryService) {
125 this.ratingsEntryService = ratingsEntryService;
126 }
127
128 public RatingsEntryPersistence getRatingsEntryPersistence() {
129 return ratingsEntryPersistence;
130 }
131
132 public void setRatingsEntryPersistence(
133 RatingsEntryPersistence ratingsEntryPersistence) {
134 this.ratingsEntryPersistence = ratingsEntryPersistence;
135 }
136
137 public RatingsStatsLocalService getRatingsStatsLocalService() {
138 return ratingsStatsLocalService;
139 }
140
141 public void setRatingsStatsLocalService(
142 RatingsStatsLocalService ratingsStatsLocalService) {
143 this.ratingsStatsLocalService = ratingsStatsLocalService;
144 }
145
146 public RatingsStatsPersistence getRatingsStatsPersistence() {
147 return ratingsStatsPersistence;
148 }
149
150 public void setRatingsStatsPersistence(
151 RatingsStatsPersistence ratingsStatsPersistence) {
152 this.ratingsStatsPersistence = ratingsStatsPersistence;
153 }
154
155 public CounterLocalService getCounterLocalService() {
156 return counterLocalService;
157 }
158
159 public void setCounterLocalService(CounterLocalService counterLocalService) {
160 this.counterLocalService = counterLocalService;
161 }
162
163 public CounterService getCounterService() {
164 return counterService;
165 }
166
167 public void setCounterService(CounterService counterService) {
168 this.counterService = counterService;
169 }
170
171 public UserLocalService getUserLocalService() {
172 return userLocalService;
173 }
174
175 public void setUserLocalService(UserLocalService userLocalService) {
176 this.userLocalService = userLocalService;
177 }
178
179 public UserService getUserService() {
180 return userService;
181 }
182
183 public void setUserService(UserService userService) {
184 this.userService = userService;
185 }
186
187 public UserPersistence getUserPersistence() {
188 return userPersistence;
189 }
190
191 public void setUserPersistence(UserPersistence userPersistence) {
192 this.userPersistence = userPersistence;
193 }
194
195 public UserFinder getUserFinder() {
196 return userFinder;
197 }
198
199 public void setUserFinder(UserFinder userFinder) {
200 this.userFinder = userFinder;
201 }
202
203 public BlogsEntryLocalService getBlogsEntryLocalService() {
204 return blogsEntryLocalService;
205 }
206
207 public void setBlogsEntryLocalService(
208 BlogsEntryLocalService blogsEntryLocalService) {
209 this.blogsEntryLocalService = blogsEntryLocalService;
210 }
211
212 public BlogsEntryService getBlogsEntryService() {
213 return blogsEntryService;
214 }
215
216 public void setBlogsEntryService(BlogsEntryService blogsEntryService) {
217 this.blogsEntryService = blogsEntryService;
218 }
219
220 public BlogsEntryPersistence getBlogsEntryPersistence() {
221 return blogsEntryPersistence;
222 }
223
224 public void setBlogsEntryPersistence(
225 BlogsEntryPersistence blogsEntryPersistence) {
226 this.blogsEntryPersistence = blogsEntryPersistence;
227 }
228
229 public BlogsEntryFinder getBlogsEntryFinder() {
230 return blogsEntryFinder;
231 }
232
233 public void setBlogsEntryFinder(BlogsEntryFinder blogsEntryFinder) {
234 this.blogsEntryFinder = blogsEntryFinder;
235 }
236
237 public BlogsStatsUserLocalService getBlogsStatsUserLocalService() {
238 return blogsStatsUserLocalService;
239 }
240
241 public void setBlogsStatsUserLocalService(
242 BlogsStatsUserLocalService blogsStatsUserLocalService) {
243 this.blogsStatsUserLocalService = blogsStatsUserLocalService;
244 }
245
246 public BlogsStatsUserPersistence getBlogsStatsUserPersistence() {
247 return blogsStatsUserPersistence;
248 }
249
250 public void setBlogsStatsUserPersistence(
251 BlogsStatsUserPersistence blogsStatsUserPersistence) {
252 this.blogsStatsUserPersistence = blogsStatsUserPersistence;
253 }
254
255 public BlogsStatsUserFinder getBlogsStatsUserFinder() {
256 return blogsStatsUserFinder;
257 }
258
259 public void setBlogsStatsUserFinder(
260 BlogsStatsUserFinder blogsStatsUserFinder) {
261 this.blogsStatsUserFinder = blogsStatsUserFinder;
262 }
263
264 @BeanReference(name = "com.liferay.portlet.ratings.service.RatingsEntryLocalService.impl")
265 protected RatingsEntryLocalService ratingsEntryLocalService;
266 @BeanReference(name = "com.liferay.portlet.ratings.service.RatingsEntryService.impl")
267 protected RatingsEntryService ratingsEntryService;
268 @BeanReference(name = "com.liferay.portlet.ratings.service.persistence.RatingsEntryPersistence.impl")
269 protected RatingsEntryPersistence ratingsEntryPersistence;
270 @BeanReference(name = "com.liferay.portlet.ratings.service.RatingsStatsLocalService.impl")
271 protected RatingsStatsLocalService ratingsStatsLocalService;
272 @BeanReference(name = "com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence.impl")
273 protected RatingsStatsPersistence ratingsStatsPersistence;
274 @BeanReference(name = "com.liferay.counter.service.CounterLocalService.impl")
275 protected CounterLocalService counterLocalService;
276 @BeanReference(name = "com.liferay.counter.service.CounterService.impl")
277 protected CounterService counterService;
278 @BeanReference(name = "com.liferay.portal.service.UserLocalService.impl")
279 protected UserLocalService userLocalService;
280 @BeanReference(name = "com.liferay.portal.service.UserService.impl")
281 protected UserService userService;
282 @BeanReference(name = "com.liferay.portal.service.persistence.UserPersistence.impl")
283 protected UserPersistence userPersistence;
284 @BeanReference(name = "com.liferay.portal.service.persistence.UserFinder.impl")
285 protected UserFinder userFinder;
286 @BeanReference(name = "com.liferay.portlet.blogs.service.BlogsEntryLocalService.impl")
287 protected BlogsEntryLocalService blogsEntryLocalService;
288 @BeanReference(name = "com.liferay.portlet.blogs.service.BlogsEntryService.impl")
289 protected BlogsEntryService blogsEntryService;
290 @BeanReference(name = "com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence.impl")
291 protected BlogsEntryPersistence blogsEntryPersistence;
292 @BeanReference(name = "com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder.impl")
293 protected BlogsEntryFinder blogsEntryFinder;
294 @BeanReference(name = "com.liferay.portlet.blogs.service.BlogsStatsUserLocalService.impl")
295 protected BlogsStatsUserLocalService blogsStatsUserLocalService;
296 @BeanReference(name = "com.liferay.portlet.blogs.service.persistence.BlogsStatsUserPersistence.impl")
297 protected BlogsStatsUserPersistence blogsStatsUserPersistence;
298 @BeanReference(name = "com.liferay.portlet.blogs.service.persistence.BlogsStatsUserFinder.impl")
299 protected BlogsStatsUserFinder blogsStatsUserFinder;
300 }