001
014
015 package com.liferay.portlet.tasks.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.social.service.SocialActivityLocalService;
034 import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
035 import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
036 import com.liferay.portlet.tasks.service.TasksProposalLocalService;
037 import com.liferay.portlet.tasks.service.TasksProposalService;
038 import com.liferay.portlet.tasks.service.TasksReviewLocalService;
039 import com.liferay.portlet.tasks.service.TasksReviewService;
040 import com.liferay.portlet.tasks.service.persistence.TasksProposalFinder;
041 import com.liferay.portlet.tasks.service.persistence.TasksProposalPersistence;
042 import com.liferay.portlet.tasks.service.persistence.TasksReviewPersistence;
043
044 import javax.sql.DataSource;
045
046
062 public abstract class TasksReviewServiceBaseImpl extends PrincipalBean
063 implements TasksReviewService {
064
069 public TasksProposalLocalService getTasksProposalLocalService() {
070 return tasksProposalLocalService;
071 }
072
073
078 public void setTasksProposalLocalService(
079 TasksProposalLocalService tasksProposalLocalService) {
080 this.tasksProposalLocalService = tasksProposalLocalService;
081 }
082
083
088 public TasksProposalService getTasksProposalService() {
089 return tasksProposalService;
090 }
091
092
097 public void setTasksProposalService(
098 TasksProposalService tasksProposalService) {
099 this.tasksProposalService = tasksProposalService;
100 }
101
102
107 public TasksProposalPersistence getTasksProposalPersistence() {
108 return tasksProposalPersistence;
109 }
110
111
116 public void setTasksProposalPersistence(
117 TasksProposalPersistence tasksProposalPersistence) {
118 this.tasksProposalPersistence = tasksProposalPersistence;
119 }
120
121
126 public TasksProposalFinder getTasksProposalFinder() {
127 return tasksProposalFinder;
128 }
129
130
135 public void setTasksProposalFinder(TasksProposalFinder tasksProposalFinder) {
136 this.tasksProposalFinder = tasksProposalFinder;
137 }
138
139
144 public TasksReviewLocalService getTasksReviewLocalService() {
145 return tasksReviewLocalService;
146 }
147
148
153 public void setTasksReviewLocalService(
154 TasksReviewLocalService tasksReviewLocalService) {
155 this.tasksReviewLocalService = tasksReviewLocalService;
156 }
157
158
163 public TasksReviewService getTasksReviewService() {
164 return tasksReviewService;
165 }
166
167
172 public void setTasksReviewService(TasksReviewService tasksReviewService) {
173 this.tasksReviewService = tasksReviewService;
174 }
175
176
181 public TasksReviewPersistence getTasksReviewPersistence() {
182 return tasksReviewPersistence;
183 }
184
185
190 public void setTasksReviewPersistence(
191 TasksReviewPersistence tasksReviewPersistence) {
192 this.tasksReviewPersistence = tasksReviewPersistence;
193 }
194
195
200 public CounterLocalService getCounterLocalService() {
201 return counterLocalService;
202 }
203
204
209 public void setCounterLocalService(CounterLocalService counterLocalService) {
210 this.counterLocalService = counterLocalService;
211 }
212
213
218 public ResourceLocalService getResourceLocalService() {
219 return resourceLocalService;
220 }
221
222
227 public void setResourceLocalService(
228 ResourceLocalService resourceLocalService) {
229 this.resourceLocalService = resourceLocalService;
230 }
231
232
237 public ResourceService getResourceService() {
238 return resourceService;
239 }
240
241
246 public void setResourceService(ResourceService resourceService) {
247 this.resourceService = resourceService;
248 }
249
250
255 public ResourcePersistence getResourcePersistence() {
256 return resourcePersistence;
257 }
258
259
264 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
265 this.resourcePersistence = resourcePersistence;
266 }
267
268
273 public ResourceFinder getResourceFinder() {
274 return resourceFinder;
275 }
276
277
282 public void setResourceFinder(ResourceFinder resourceFinder) {
283 this.resourceFinder = resourceFinder;
284 }
285
286
291 public UserLocalService getUserLocalService() {
292 return userLocalService;
293 }
294
295
300 public void setUserLocalService(UserLocalService userLocalService) {
301 this.userLocalService = userLocalService;
302 }
303
304
309 public UserService getUserService() {
310 return userService;
311 }
312
313
318 public void setUserService(UserService userService) {
319 this.userService = userService;
320 }
321
322
327 public UserPersistence getUserPersistence() {
328 return userPersistence;
329 }
330
331
336 public void setUserPersistence(UserPersistence userPersistence) {
337 this.userPersistence = userPersistence;
338 }
339
340
345 public UserFinder getUserFinder() {
346 return userFinder;
347 }
348
349
354 public void setUserFinder(UserFinder userFinder) {
355 this.userFinder = userFinder;
356 }
357
358
363 public SocialActivityLocalService getSocialActivityLocalService() {
364 return socialActivityLocalService;
365 }
366
367
372 public void setSocialActivityLocalService(
373 SocialActivityLocalService socialActivityLocalService) {
374 this.socialActivityLocalService = socialActivityLocalService;
375 }
376
377
382 public SocialActivityPersistence getSocialActivityPersistence() {
383 return socialActivityPersistence;
384 }
385
386
391 public void setSocialActivityPersistence(
392 SocialActivityPersistence socialActivityPersistence) {
393 this.socialActivityPersistence = socialActivityPersistence;
394 }
395
396
401 public SocialActivityFinder getSocialActivityFinder() {
402 return socialActivityFinder;
403 }
404
405
410 public void setSocialActivityFinder(
411 SocialActivityFinder socialActivityFinder) {
412 this.socialActivityFinder = socialActivityFinder;
413 }
414
415
420 protected void runSQL(String sql) throws SystemException {
421 try {
422 DataSource dataSource = tasksReviewPersistence.getDataSource();
423
424 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
425 sql, new int[0]);
426
427 sqlUpdate.update();
428 }
429 catch (Exception e) {
430 throw new SystemException(e);
431 }
432 }
433
434 @BeanReference(type = TasksProposalLocalService.class)
435 protected TasksProposalLocalService tasksProposalLocalService;
436 @BeanReference(type = TasksProposalService.class)
437 protected TasksProposalService tasksProposalService;
438 @BeanReference(type = TasksProposalPersistence.class)
439 protected TasksProposalPersistence tasksProposalPersistence;
440 @BeanReference(type = TasksProposalFinder.class)
441 protected TasksProposalFinder tasksProposalFinder;
442 @BeanReference(type = TasksReviewLocalService.class)
443 protected TasksReviewLocalService tasksReviewLocalService;
444 @BeanReference(type = TasksReviewService.class)
445 protected TasksReviewService tasksReviewService;
446 @BeanReference(type = TasksReviewPersistence.class)
447 protected TasksReviewPersistence tasksReviewPersistence;
448 @BeanReference(type = CounterLocalService.class)
449 protected CounterLocalService counterLocalService;
450 @BeanReference(type = ResourceLocalService.class)
451 protected ResourceLocalService resourceLocalService;
452 @BeanReference(type = ResourceService.class)
453 protected ResourceService resourceService;
454 @BeanReference(type = ResourcePersistence.class)
455 protected ResourcePersistence resourcePersistence;
456 @BeanReference(type = ResourceFinder.class)
457 protected ResourceFinder resourceFinder;
458 @BeanReference(type = UserLocalService.class)
459 protected UserLocalService userLocalService;
460 @BeanReference(type = UserService.class)
461 protected UserService userService;
462 @BeanReference(type = UserPersistence.class)
463 protected UserPersistence userPersistence;
464 @BeanReference(type = UserFinder.class)
465 protected UserFinder userFinder;
466 @BeanReference(type = SocialActivityLocalService.class)
467 protected SocialActivityLocalService socialActivityLocalService;
468 @BeanReference(type = SocialActivityPersistence.class)
469 protected SocialActivityPersistence socialActivityPersistence;
470 @BeanReference(type = SocialActivityFinder.class)
471 protected SocialActivityFinder socialActivityFinder;
472 }