001
014
015 package com.liferay.portlet.ratings.service.base;
016
017 import com.liferay.counter.service.CounterLocalService;
018
019 import com.liferay.portal.kernel.annotation.BeanReference;
020 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
021 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
022 import com.liferay.portal.kernel.exception.SystemException;
023 import com.liferay.portal.service.ResourceLocalService;
024 import com.liferay.portal.service.ResourceService;
025 import com.liferay.portal.service.UserLocalService;
026 import com.liferay.portal.service.UserService;
027 import com.liferay.portal.service.base.PrincipalBean;
028 import com.liferay.portal.service.persistence.ResourceFinder;
029 import com.liferay.portal.service.persistence.ResourcePersistence;
030 import com.liferay.portal.service.persistence.UserFinder;
031 import com.liferay.portal.service.persistence.UserPersistence;
032
033 import com.liferay.portlet.blogs.service.BlogsEntryLocalService;
034 import com.liferay.portlet.blogs.service.BlogsEntryService;
035 import com.liferay.portlet.blogs.service.BlogsStatsUserLocalService;
036 import com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder;
037 import com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence;
038 import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserFinder;
039 import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserPersistence;
040 import com.liferay.portlet.ratings.service.RatingsEntryLocalService;
041 import com.liferay.portlet.ratings.service.RatingsEntryService;
042 import com.liferay.portlet.ratings.service.RatingsStatsLocalService;
043 import com.liferay.portlet.ratings.service.persistence.RatingsEntryFinder;
044 import com.liferay.portlet.ratings.service.persistence.RatingsEntryPersistence;
045 import com.liferay.portlet.ratings.service.persistence.RatingsStatsFinder;
046 import com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence;
047 import com.liferay.portlet.social.service.SocialEquityLogLocalService;
048 import com.liferay.portlet.social.service.persistence.SocialEquityLogPersistence;
049
050 import javax.sql.DataSource;
051
052
055 public abstract class RatingsEntryServiceBaseImpl extends PrincipalBean
056 implements RatingsEntryService {
057 public RatingsEntryLocalService getRatingsEntryLocalService() {
058 return ratingsEntryLocalService;
059 }
060
061 public void setRatingsEntryLocalService(
062 RatingsEntryLocalService ratingsEntryLocalService) {
063 this.ratingsEntryLocalService = ratingsEntryLocalService;
064 }
065
066 public RatingsEntryService getRatingsEntryService() {
067 return ratingsEntryService;
068 }
069
070 public void setRatingsEntryService(RatingsEntryService ratingsEntryService) {
071 this.ratingsEntryService = ratingsEntryService;
072 }
073
074 public RatingsEntryPersistence getRatingsEntryPersistence() {
075 return ratingsEntryPersistence;
076 }
077
078 public void setRatingsEntryPersistence(
079 RatingsEntryPersistence ratingsEntryPersistence) {
080 this.ratingsEntryPersistence = ratingsEntryPersistence;
081 }
082
083 public RatingsEntryFinder getRatingsEntryFinder() {
084 return ratingsEntryFinder;
085 }
086
087 public void setRatingsEntryFinder(RatingsEntryFinder ratingsEntryFinder) {
088 this.ratingsEntryFinder = ratingsEntryFinder;
089 }
090
091 public RatingsStatsLocalService getRatingsStatsLocalService() {
092 return ratingsStatsLocalService;
093 }
094
095 public void setRatingsStatsLocalService(
096 RatingsStatsLocalService ratingsStatsLocalService) {
097 this.ratingsStatsLocalService = ratingsStatsLocalService;
098 }
099
100 public RatingsStatsPersistence getRatingsStatsPersistence() {
101 return ratingsStatsPersistence;
102 }
103
104 public void setRatingsStatsPersistence(
105 RatingsStatsPersistence ratingsStatsPersistence) {
106 this.ratingsStatsPersistence = ratingsStatsPersistence;
107 }
108
109 public RatingsStatsFinder getRatingsStatsFinder() {
110 return ratingsStatsFinder;
111 }
112
113 public void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder) {
114 this.ratingsStatsFinder = ratingsStatsFinder;
115 }
116
117 public CounterLocalService getCounterLocalService() {
118 return counterLocalService;
119 }
120
121 public void setCounterLocalService(CounterLocalService counterLocalService) {
122 this.counterLocalService = counterLocalService;
123 }
124
125 public ResourceLocalService getResourceLocalService() {
126 return resourceLocalService;
127 }
128
129 public void setResourceLocalService(
130 ResourceLocalService resourceLocalService) {
131 this.resourceLocalService = resourceLocalService;
132 }
133
134 public ResourceService getResourceService() {
135 return resourceService;
136 }
137
138 public void setResourceService(ResourceService resourceService) {
139 this.resourceService = resourceService;
140 }
141
142 public ResourcePersistence getResourcePersistence() {
143 return resourcePersistence;
144 }
145
146 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
147 this.resourcePersistence = resourcePersistence;
148 }
149
150 public ResourceFinder getResourceFinder() {
151 return resourceFinder;
152 }
153
154 public void setResourceFinder(ResourceFinder resourceFinder) {
155 this.resourceFinder = resourceFinder;
156 }
157
158 public UserLocalService getUserLocalService() {
159 return userLocalService;
160 }
161
162 public void setUserLocalService(UserLocalService userLocalService) {
163 this.userLocalService = userLocalService;
164 }
165
166 public UserService getUserService() {
167 return userService;
168 }
169
170 public void setUserService(UserService userService) {
171 this.userService = userService;
172 }
173
174 public UserPersistence getUserPersistence() {
175 return userPersistence;
176 }
177
178 public void setUserPersistence(UserPersistence userPersistence) {
179 this.userPersistence = userPersistence;
180 }
181
182 public UserFinder getUserFinder() {
183 return userFinder;
184 }
185
186 public void setUserFinder(UserFinder userFinder) {
187 this.userFinder = userFinder;
188 }
189
190 public BlogsEntryLocalService getBlogsEntryLocalService() {
191 return blogsEntryLocalService;
192 }
193
194 public void setBlogsEntryLocalService(
195 BlogsEntryLocalService blogsEntryLocalService) {
196 this.blogsEntryLocalService = blogsEntryLocalService;
197 }
198
199 public BlogsEntryService getBlogsEntryService() {
200 return blogsEntryService;
201 }
202
203 public void setBlogsEntryService(BlogsEntryService blogsEntryService) {
204 this.blogsEntryService = blogsEntryService;
205 }
206
207 public BlogsEntryPersistence getBlogsEntryPersistence() {
208 return blogsEntryPersistence;
209 }
210
211 public void setBlogsEntryPersistence(
212 BlogsEntryPersistence blogsEntryPersistence) {
213 this.blogsEntryPersistence = blogsEntryPersistence;
214 }
215
216 public BlogsEntryFinder getBlogsEntryFinder() {
217 return blogsEntryFinder;
218 }
219
220 public void setBlogsEntryFinder(BlogsEntryFinder blogsEntryFinder) {
221 this.blogsEntryFinder = blogsEntryFinder;
222 }
223
224 public BlogsStatsUserLocalService getBlogsStatsUserLocalService() {
225 return blogsStatsUserLocalService;
226 }
227
228 public void setBlogsStatsUserLocalService(
229 BlogsStatsUserLocalService blogsStatsUserLocalService) {
230 this.blogsStatsUserLocalService = blogsStatsUserLocalService;
231 }
232
233 public BlogsStatsUserPersistence getBlogsStatsUserPersistence() {
234 return blogsStatsUserPersistence;
235 }
236
237 public void setBlogsStatsUserPersistence(
238 BlogsStatsUserPersistence blogsStatsUserPersistence) {
239 this.blogsStatsUserPersistence = blogsStatsUserPersistence;
240 }
241
242 public BlogsStatsUserFinder getBlogsStatsUserFinder() {
243 return blogsStatsUserFinder;
244 }
245
246 public void setBlogsStatsUserFinder(
247 BlogsStatsUserFinder blogsStatsUserFinder) {
248 this.blogsStatsUserFinder = blogsStatsUserFinder;
249 }
250
251 public SocialEquityLogLocalService getSocialEquityLogLocalService() {
252 return socialEquityLogLocalService;
253 }
254
255 public void setSocialEquityLogLocalService(
256 SocialEquityLogLocalService socialEquityLogLocalService) {
257 this.socialEquityLogLocalService = socialEquityLogLocalService;
258 }
259
260 public SocialEquityLogPersistence getSocialEquityLogPersistence() {
261 return socialEquityLogPersistence;
262 }
263
264 public void setSocialEquityLogPersistence(
265 SocialEquityLogPersistence socialEquityLogPersistence) {
266 this.socialEquityLogPersistence = socialEquityLogPersistence;
267 }
268
269 protected void runSQL(String sql) throws SystemException {
270 try {
271 DataSource dataSource = ratingsEntryPersistence.getDataSource();
272
273 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
274 sql, new int[0]);
275
276 sqlUpdate.update();
277 }
278 catch (Exception e) {
279 throw new SystemException(e);
280 }
281 }
282
283 @BeanReference(type = RatingsEntryLocalService.class)
284 protected RatingsEntryLocalService ratingsEntryLocalService;
285 @BeanReference(type = RatingsEntryService.class)
286 protected RatingsEntryService ratingsEntryService;
287 @BeanReference(type = RatingsEntryPersistence.class)
288 protected RatingsEntryPersistence ratingsEntryPersistence;
289 @BeanReference(type = RatingsEntryFinder.class)
290 protected RatingsEntryFinder ratingsEntryFinder;
291 @BeanReference(type = RatingsStatsLocalService.class)
292 protected RatingsStatsLocalService ratingsStatsLocalService;
293 @BeanReference(type = RatingsStatsPersistence.class)
294 protected RatingsStatsPersistence ratingsStatsPersistence;
295 @BeanReference(type = RatingsStatsFinder.class)
296 protected RatingsStatsFinder ratingsStatsFinder;
297 @BeanReference(type = CounterLocalService.class)
298 protected CounterLocalService counterLocalService;
299 @BeanReference(type = ResourceLocalService.class)
300 protected ResourceLocalService resourceLocalService;
301 @BeanReference(type = ResourceService.class)
302 protected ResourceService resourceService;
303 @BeanReference(type = ResourcePersistence.class)
304 protected ResourcePersistence resourcePersistence;
305 @BeanReference(type = ResourceFinder.class)
306 protected ResourceFinder resourceFinder;
307 @BeanReference(type = UserLocalService.class)
308 protected UserLocalService userLocalService;
309 @BeanReference(type = UserService.class)
310 protected UserService userService;
311 @BeanReference(type = UserPersistence.class)
312 protected UserPersistence userPersistence;
313 @BeanReference(type = UserFinder.class)
314 protected UserFinder userFinder;
315 @BeanReference(type = BlogsEntryLocalService.class)
316 protected BlogsEntryLocalService blogsEntryLocalService;
317 @BeanReference(type = BlogsEntryService.class)
318 protected BlogsEntryService blogsEntryService;
319 @BeanReference(type = BlogsEntryPersistence.class)
320 protected BlogsEntryPersistence blogsEntryPersistence;
321 @BeanReference(type = BlogsEntryFinder.class)
322 protected BlogsEntryFinder blogsEntryFinder;
323 @BeanReference(type = BlogsStatsUserLocalService.class)
324 protected BlogsStatsUserLocalService blogsStatsUserLocalService;
325 @BeanReference(type = BlogsStatsUserPersistence.class)
326 protected BlogsStatsUserPersistence blogsStatsUserPersistence;
327 @BeanReference(type = BlogsStatsUserFinder.class)
328 protected BlogsStatsUserFinder blogsStatsUserFinder;
329 @BeanReference(type = SocialEquityLogLocalService.class)
330 protected SocialEquityLogLocalService socialEquityLogLocalService;
331 @BeanReference(type = SocialEquityLogPersistence.class)
332 protected SocialEquityLogPersistence socialEquityLogPersistence;
333 }