1
14
15 package com.liferay.portlet.ratings.service.base;
16
17 import com.liferay.counter.service.CounterLocalService;
18 import com.liferay.counter.service.CounterService;
19
20 import com.liferay.portal.SystemException;
21 import com.liferay.portal.kernel.annotation.BeanReference;
22 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
23 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
24 import com.liferay.portal.service.ResourceLocalService;
25 import com.liferay.portal.service.ResourceService;
26 import com.liferay.portal.service.UserLocalService;
27 import com.liferay.portal.service.UserService;
28 import com.liferay.portal.service.base.PrincipalBean;
29 import com.liferay.portal.service.persistence.ResourceFinder;
30 import com.liferay.portal.service.persistence.ResourcePersistence;
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.service.RatingsEntryLocalService;
42 import com.liferay.portlet.ratings.service.RatingsEntryService;
43 import com.liferay.portlet.ratings.service.RatingsStatsLocalService;
44 import com.liferay.portlet.ratings.service.persistence.RatingsEntryPersistence;
45 import com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence;
46
47 import javax.sql.DataSource;
48
49
54 public abstract class RatingsEntryServiceBaseImpl extends PrincipalBean
55 implements RatingsEntryService {
56 public RatingsEntryLocalService getRatingsEntryLocalService() {
57 return ratingsEntryLocalService;
58 }
59
60 public void setRatingsEntryLocalService(
61 RatingsEntryLocalService ratingsEntryLocalService) {
62 this.ratingsEntryLocalService = ratingsEntryLocalService;
63 }
64
65 public RatingsEntryService getRatingsEntryService() {
66 return ratingsEntryService;
67 }
68
69 public void setRatingsEntryService(RatingsEntryService ratingsEntryService) {
70 this.ratingsEntryService = ratingsEntryService;
71 }
72
73 public RatingsEntryPersistence getRatingsEntryPersistence() {
74 return ratingsEntryPersistence;
75 }
76
77 public void setRatingsEntryPersistence(
78 RatingsEntryPersistence ratingsEntryPersistence) {
79 this.ratingsEntryPersistence = ratingsEntryPersistence;
80 }
81
82 public RatingsStatsLocalService getRatingsStatsLocalService() {
83 return ratingsStatsLocalService;
84 }
85
86 public void setRatingsStatsLocalService(
87 RatingsStatsLocalService ratingsStatsLocalService) {
88 this.ratingsStatsLocalService = ratingsStatsLocalService;
89 }
90
91 public RatingsStatsPersistence getRatingsStatsPersistence() {
92 return ratingsStatsPersistence;
93 }
94
95 public void setRatingsStatsPersistence(
96 RatingsStatsPersistence ratingsStatsPersistence) {
97 this.ratingsStatsPersistence = ratingsStatsPersistence;
98 }
99
100 public CounterLocalService getCounterLocalService() {
101 return counterLocalService;
102 }
103
104 public void setCounterLocalService(CounterLocalService counterLocalService) {
105 this.counterLocalService = counterLocalService;
106 }
107
108 public CounterService getCounterService() {
109 return counterService;
110 }
111
112 public void setCounterService(CounterService counterService) {
113 this.counterService = counterService;
114 }
115
116 public ResourceLocalService getResourceLocalService() {
117 return resourceLocalService;
118 }
119
120 public void setResourceLocalService(
121 ResourceLocalService resourceLocalService) {
122 this.resourceLocalService = resourceLocalService;
123 }
124
125 public ResourceService getResourceService() {
126 return resourceService;
127 }
128
129 public void setResourceService(ResourceService resourceService) {
130 this.resourceService = resourceService;
131 }
132
133 public ResourcePersistence getResourcePersistence() {
134 return resourcePersistence;
135 }
136
137 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
138 this.resourcePersistence = resourcePersistence;
139 }
140
141 public ResourceFinder getResourceFinder() {
142 return resourceFinder;
143 }
144
145 public void setResourceFinder(ResourceFinder resourceFinder) {
146 this.resourceFinder = resourceFinder;
147 }
148
149 public UserLocalService getUserLocalService() {
150 return userLocalService;
151 }
152
153 public void setUserLocalService(UserLocalService userLocalService) {
154 this.userLocalService = userLocalService;
155 }
156
157 public UserService getUserService() {
158 return userService;
159 }
160
161 public void setUserService(UserService userService) {
162 this.userService = userService;
163 }
164
165 public UserPersistence getUserPersistence() {
166 return userPersistence;
167 }
168
169 public void setUserPersistence(UserPersistence userPersistence) {
170 this.userPersistence = userPersistence;
171 }
172
173 public UserFinder getUserFinder() {
174 return userFinder;
175 }
176
177 public void setUserFinder(UserFinder userFinder) {
178 this.userFinder = userFinder;
179 }
180
181 public BlogsEntryLocalService getBlogsEntryLocalService() {
182 return blogsEntryLocalService;
183 }
184
185 public void setBlogsEntryLocalService(
186 BlogsEntryLocalService blogsEntryLocalService) {
187 this.blogsEntryLocalService = blogsEntryLocalService;
188 }
189
190 public BlogsEntryService getBlogsEntryService() {
191 return blogsEntryService;
192 }
193
194 public void setBlogsEntryService(BlogsEntryService blogsEntryService) {
195 this.blogsEntryService = blogsEntryService;
196 }
197
198 public BlogsEntryPersistence getBlogsEntryPersistence() {
199 return blogsEntryPersistence;
200 }
201
202 public void setBlogsEntryPersistence(
203 BlogsEntryPersistence blogsEntryPersistence) {
204 this.blogsEntryPersistence = blogsEntryPersistence;
205 }
206
207 public BlogsEntryFinder getBlogsEntryFinder() {
208 return blogsEntryFinder;
209 }
210
211 public void setBlogsEntryFinder(BlogsEntryFinder blogsEntryFinder) {
212 this.blogsEntryFinder = blogsEntryFinder;
213 }
214
215 public BlogsStatsUserLocalService getBlogsStatsUserLocalService() {
216 return blogsStatsUserLocalService;
217 }
218
219 public void setBlogsStatsUserLocalService(
220 BlogsStatsUserLocalService blogsStatsUserLocalService) {
221 this.blogsStatsUserLocalService = blogsStatsUserLocalService;
222 }
223
224 public BlogsStatsUserPersistence getBlogsStatsUserPersistence() {
225 return blogsStatsUserPersistence;
226 }
227
228 public void setBlogsStatsUserPersistence(
229 BlogsStatsUserPersistence blogsStatsUserPersistence) {
230 this.blogsStatsUserPersistence = blogsStatsUserPersistence;
231 }
232
233 public BlogsStatsUserFinder getBlogsStatsUserFinder() {
234 return blogsStatsUserFinder;
235 }
236
237 public void setBlogsStatsUserFinder(
238 BlogsStatsUserFinder blogsStatsUserFinder) {
239 this.blogsStatsUserFinder = blogsStatsUserFinder;
240 }
241
242 protected void runSQL(String sql) throws SystemException {
243 try {
244 DataSource dataSource = ratingsEntryPersistence.getDataSource();
245
246 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
247 sql, new int[0]);
248
249 sqlUpdate.update(new Object[0]);
250 }
251 catch (Exception e) {
252 throw new SystemException(e);
253 }
254 }
255
256 @BeanReference(type = RatingsEntryLocalService.class)
257 protected RatingsEntryLocalService ratingsEntryLocalService;
258 @BeanReference(type = RatingsEntryService.class)
259 protected RatingsEntryService ratingsEntryService;
260 @BeanReference(type = RatingsEntryPersistence.class)
261 protected RatingsEntryPersistence ratingsEntryPersistence;
262 @BeanReference(type = RatingsStatsLocalService.class)
263 protected RatingsStatsLocalService ratingsStatsLocalService;
264 @BeanReference(type = RatingsStatsPersistence.class)
265 protected RatingsStatsPersistence ratingsStatsPersistence;
266 @BeanReference(type = CounterLocalService.class)
267 protected CounterLocalService counterLocalService;
268 @BeanReference(type = CounterService.class)
269 protected CounterService counterService;
270 @BeanReference(type = ResourceLocalService.class)
271 protected ResourceLocalService resourceLocalService;
272 @BeanReference(type = ResourceService.class)
273 protected ResourceService resourceService;
274 @BeanReference(type = ResourcePersistence.class)
275 protected ResourcePersistence resourcePersistence;
276 @BeanReference(type = ResourceFinder.class)
277 protected ResourceFinder resourceFinder;
278 @BeanReference(type = UserLocalService.class)
279 protected UserLocalService userLocalService;
280 @BeanReference(type = UserService.class)
281 protected UserService userService;
282 @BeanReference(type = UserPersistence.class)
283 protected UserPersistence userPersistence;
284 @BeanReference(type = UserFinder.class)
285 protected UserFinder userFinder;
286 @BeanReference(type = BlogsEntryLocalService.class)
287 protected BlogsEntryLocalService blogsEntryLocalService;
288 @BeanReference(type = BlogsEntryService.class)
289 protected BlogsEntryService blogsEntryService;
290 @BeanReference(type = BlogsEntryPersistence.class)
291 protected BlogsEntryPersistence blogsEntryPersistence;
292 @BeanReference(type = BlogsEntryFinder.class)
293 protected BlogsEntryFinder blogsEntryFinder;
294 @BeanReference(type = BlogsStatsUserLocalService.class)
295 protected BlogsStatsUserLocalService blogsStatsUserLocalService;
296 @BeanReference(type = BlogsStatsUserPersistence.class)
297 protected BlogsStatsUserPersistence blogsStatsUserPersistence;
298 @BeanReference(type = BlogsStatsUserFinder.class)
299 protected BlogsStatsUserFinder blogsStatsUserFinder;
300 }