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.messageboards.service.MBMessageLocalService;
034 import com.liferay.portlet.messageboards.service.MBMessageService;
035 import com.liferay.portlet.messageboards.service.persistence.MBMessageFinder;
036 import com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence;
037 import com.liferay.portlet.social.service.SocialActivityLocalService;
038 import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
039 import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
040 import com.liferay.portlet.tasks.service.TasksProposalLocalService;
041 import com.liferay.portlet.tasks.service.TasksProposalService;
042 import com.liferay.portlet.tasks.service.TasksReviewLocalService;
043 import com.liferay.portlet.tasks.service.TasksReviewService;
044 import com.liferay.portlet.tasks.service.persistence.TasksProposalFinder;
045 import com.liferay.portlet.tasks.service.persistence.TasksProposalPersistence;
046 import com.liferay.portlet.tasks.service.persistence.TasksReviewPersistence;
047
048 import javax.sql.DataSource;
049
050
066 public abstract class TasksProposalServiceBaseImpl extends PrincipalBean
067 implements TasksProposalService {
068
073 public TasksProposalLocalService getTasksProposalLocalService() {
074 return tasksProposalLocalService;
075 }
076
077
082 public void setTasksProposalLocalService(
083 TasksProposalLocalService tasksProposalLocalService) {
084 this.tasksProposalLocalService = tasksProposalLocalService;
085 }
086
087
092 public TasksProposalService getTasksProposalService() {
093 return tasksProposalService;
094 }
095
096
101 public void setTasksProposalService(
102 TasksProposalService tasksProposalService) {
103 this.tasksProposalService = tasksProposalService;
104 }
105
106
111 public TasksProposalPersistence getTasksProposalPersistence() {
112 return tasksProposalPersistence;
113 }
114
115
120 public void setTasksProposalPersistence(
121 TasksProposalPersistence tasksProposalPersistence) {
122 this.tasksProposalPersistence = tasksProposalPersistence;
123 }
124
125
130 public TasksProposalFinder getTasksProposalFinder() {
131 return tasksProposalFinder;
132 }
133
134
139 public void setTasksProposalFinder(TasksProposalFinder tasksProposalFinder) {
140 this.tasksProposalFinder = tasksProposalFinder;
141 }
142
143
148 public TasksReviewLocalService getTasksReviewLocalService() {
149 return tasksReviewLocalService;
150 }
151
152
157 public void setTasksReviewLocalService(
158 TasksReviewLocalService tasksReviewLocalService) {
159 this.tasksReviewLocalService = tasksReviewLocalService;
160 }
161
162
167 public TasksReviewService getTasksReviewService() {
168 return tasksReviewService;
169 }
170
171
176 public void setTasksReviewService(TasksReviewService tasksReviewService) {
177 this.tasksReviewService = tasksReviewService;
178 }
179
180
185 public TasksReviewPersistence getTasksReviewPersistence() {
186 return tasksReviewPersistence;
187 }
188
189
194 public void setTasksReviewPersistence(
195 TasksReviewPersistence tasksReviewPersistence) {
196 this.tasksReviewPersistence = tasksReviewPersistence;
197 }
198
199
204 public CounterLocalService getCounterLocalService() {
205 return counterLocalService;
206 }
207
208
213 public void setCounterLocalService(CounterLocalService counterLocalService) {
214 this.counterLocalService = counterLocalService;
215 }
216
217
222 public ResourceLocalService getResourceLocalService() {
223 return resourceLocalService;
224 }
225
226
231 public void setResourceLocalService(
232 ResourceLocalService resourceLocalService) {
233 this.resourceLocalService = resourceLocalService;
234 }
235
236
241 public ResourceService getResourceService() {
242 return resourceService;
243 }
244
245
250 public void setResourceService(ResourceService resourceService) {
251 this.resourceService = resourceService;
252 }
253
254
259 public ResourcePersistence getResourcePersistence() {
260 return resourcePersistence;
261 }
262
263
268 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
269 this.resourcePersistence = resourcePersistence;
270 }
271
272
277 public ResourceFinder getResourceFinder() {
278 return resourceFinder;
279 }
280
281
286 public void setResourceFinder(ResourceFinder resourceFinder) {
287 this.resourceFinder = resourceFinder;
288 }
289
290
295 public UserLocalService getUserLocalService() {
296 return userLocalService;
297 }
298
299
304 public void setUserLocalService(UserLocalService userLocalService) {
305 this.userLocalService = userLocalService;
306 }
307
308
313 public UserService getUserService() {
314 return userService;
315 }
316
317
322 public void setUserService(UserService userService) {
323 this.userService = userService;
324 }
325
326
331 public UserPersistence getUserPersistence() {
332 return userPersistence;
333 }
334
335
340 public void setUserPersistence(UserPersistence userPersistence) {
341 this.userPersistence = userPersistence;
342 }
343
344
349 public UserFinder getUserFinder() {
350 return userFinder;
351 }
352
353
358 public void setUserFinder(UserFinder userFinder) {
359 this.userFinder = userFinder;
360 }
361
362
367 public MBMessageLocalService getMBMessageLocalService() {
368 return mbMessageLocalService;
369 }
370
371
376 public void setMBMessageLocalService(
377 MBMessageLocalService mbMessageLocalService) {
378 this.mbMessageLocalService = mbMessageLocalService;
379 }
380
381
386 public MBMessageService getMBMessageService() {
387 return mbMessageService;
388 }
389
390
395 public void setMBMessageService(MBMessageService mbMessageService) {
396 this.mbMessageService = mbMessageService;
397 }
398
399
404 public MBMessagePersistence getMBMessagePersistence() {
405 return mbMessagePersistence;
406 }
407
408
413 public void setMBMessagePersistence(
414 MBMessagePersistence mbMessagePersistence) {
415 this.mbMessagePersistence = mbMessagePersistence;
416 }
417
418
423 public MBMessageFinder getMBMessageFinder() {
424 return mbMessageFinder;
425 }
426
427
432 public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
433 this.mbMessageFinder = mbMessageFinder;
434 }
435
436
441 public SocialActivityLocalService getSocialActivityLocalService() {
442 return socialActivityLocalService;
443 }
444
445
450 public void setSocialActivityLocalService(
451 SocialActivityLocalService socialActivityLocalService) {
452 this.socialActivityLocalService = socialActivityLocalService;
453 }
454
455
460 public SocialActivityPersistence getSocialActivityPersistence() {
461 return socialActivityPersistence;
462 }
463
464
469 public void setSocialActivityPersistence(
470 SocialActivityPersistence socialActivityPersistence) {
471 this.socialActivityPersistence = socialActivityPersistence;
472 }
473
474
479 public SocialActivityFinder getSocialActivityFinder() {
480 return socialActivityFinder;
481 }
482
483
488 public void setSocialActivityFinder(
489 SocialActivityFinder socialActivityFinder) {
490 this.socialActivityFinder = socialActivityFinder;
491 }
492
493
498 protected void runSQL(String sql) throws SystemException {
499 try {
500 DataSource dataSource = tasksProposalPersistence.getDataSource();
501
502 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
503 sql, new int[0]);
504
505 sqlUpdate.update();
506 }
507 catch (Exception e) {
508 throw new SystemException(e);
509 }
510 }
511
512 @BeanReference(type = TasksProposalLocalService.class)
513 protected TasksProposalLocalService tasksProposalLocalService;
514 @BeanReference(type = TasksProposalService.class)
515 protected TasksProposalService tasksProposalService;
516 @BeanReference(type = TasksProposalPersistence.class)
517 protected TasksProposalPersistence tasksProposalPersistence;
518 @BeanReference(type = TasksProposalFinder.class)
519 protected TasksProposalFinder tasksProposalFinder;
520 @BeanReference(type = TasksReviewLocalService.class)
521 protected TasksReviewLocalService tasksReviewLocalService;
522 @BeanReference(type = TasksReviewService.class)
523 protected TasksReviewService tasksReviewService;
524 @BeanReference(type = TasksReviewPersistence.class)
525 protected TasksReviewPersistence tasksReviewPersistence;
526 @BeanReference(type = CounterLocalService.class)
527 protected CounterLocalService counterLocalService;
528 @BeanReference(type = ResourceLocalService.class)
529 protected ResourceLocalService resourceLocalService;
530 @BeanReference(type = ResourceService.class)
531 protected ResourceService resourceService;
532 @BeanReference(type = ResourcePersistence.class)
533 protected ResourcePersistence resourcePersistence;
534 @BeanReference(type = ResourceFinder.class)
535 protected ResourceFinder resourceFinder;
536 @BeanReference(type = UserLocalService.class)
537 protected UserLocalService userLocalService;
538 @BeanReference(type = UserService.class)
539 protected UserService userService;
540 @BeanReference(type = UserPersistence.class)
541 protected UserPersistence userPersistence;
542 @BeanReference(type = UserFinder.class)
543 protected UserFinder userFinder;
544 @BeanReference(type = MBMessageLocalService.class)
545 protected MBMessageLocalService mbMessageLocalService;
546 @BeanReference(type = MBMessageService.class)
547 protected MBMessageService mbMessageService;
548 @BeanReference(type = MBMessagePersistence.class)
549 protected MBMessagePersistence mbMessagePersistence;
550 @BeanReference(type = MBMessageFinder.class)
551 protected MBMessageFinder mbMessageFinder;
552 @BeanReference(type = SocialActivityLocalService.class)
553 protected SocialActivityLocalService socialActivityLocalService;
554 @BeanReference(type = SocialActivityPersistence.class)
555 protected SocialActivityPersistence socialActivityPersistence;
556 @BeanReference(type = SocialActivityFinder.class)
557 protected SocialActivityFinder socialActivityFinder;
558 }