001
014
015 package com.liferay.portlet.messageboards.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.MBBanLocalService;
034 import com.liferay.portlet.messageboards.service.MBBanService;
035 import com.liferay.portlet.messageboards.service.MBCategoryLocalService;
036 import com.liferay.portlet.messageboards.service.MBCategoryService;
037 import com.liferay.portlet.messageboards.service.MBDiscussionLocalService;
038 import com.liferay.portlet.messageboards.service.MBMailingListLocalService;
039 import com.liferay.portlet.messageboards.service.MBMessageFlagLocalService;
040 import com.liferay.portlet.messageboards.service.MBMessageFlagService;
041 import com.liferay.portlet.messageboards.service.MBMessageLocalService;
042 import com.liferay.portlet.messageboards.service.MBMessageService;
043 import com.liferay.portlet.messageboards.service.MBStatsUserLocalService;
044 import com.liferay.portlet.messageboards.service.MBThreadLocalService;
045 import com.liferay.portlet.messageboards.service.MBThreadService;
046 import com.liferay.portlet.messageboards.service.persistence.MBBanPersistence;
047 import com.liferay.portlet.messageboards.service.persistence.MBCategoryFinder;
048 import com.liferay.portlet.messageboards.service.persistence.MBCategoryPersistence;
049 import com.liferay.portlet.messageboards.service.persistence.MBDiscussionPersistence;
050 import com.liferay.portlet.messageboards.service.persistence.MBMailingListPersistence;
051 import com.liferay.portlet.messageboards.service.persistence.MBMessageFinder;
052 import com.liferay.portlet.messageboards.service.persistence.MBMessageFlagPersistence;
053 import com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence;
054 import com.liferay.portlet.messageboards.service.persistence.MBStatsUserPersistence;
055 import com.liferay.portlet.messageboards.service.persistence.MBThreadFinder;
056 import com.liferay.portlet.messageboards.service.persistence.MBThreadPersistence;
057
058 import javax.sql.DataSource;
059
060
076 public abstract class MBMessageFlagServiceBaseImpl extends PrincipalBean
077 implements MBMessageFlagService {
078
083 public MBBanLocalService getMBBanLocalService() {
084 return mbBanLocalService;
085 }
086
087
092 public void setMBBanLocalService(MBBanLocalService mbBanLocalService) {
093 this.mbBanLocalService = mbBanLocalService;
094 }
095
096
101 public MBBanService getMBBanService() {
102 return mbBanService;
103 }
104
105
110 public void setMBBanService(MBBanService mbBanService) {
111 this.mbBanService = mbBanService;
112 }
113
114
119 public MBBanPersistence getMBBanPersistence() {
120 return mbBanPersistence;
121 }
122
123
128 public void setMBBanPersistence(MBBanPersistence mbBanPersistence) {
129 this.mbBanPersistence = mbBanPersistence;
130 }
131
132
137 public MBCategoryLocalService getMBCategoryLocalService() {
138 return mbCategoryLocalService;
139 }
140
141
146 public void setMBCategoryLocalService(
147 MBCategoryLocalService mbCategoryLocalService) {
148 this.mbCategoryLocalService = mbCategoryLocalService;
149 }
150
151
156 public MBCategoryService getMBCategoryService() {
157 return mbCategoryService;
158 }
159
160
165 public void setMBCategoryService(MBCategoryService mbCategoryService) {
166 this.mbCategoryService = mbCategoryService;
167 }
168
169
174 public MBCategoryPersistence getMBCategoryPersistence() {
175 return mbCategoryPersistence;
176 }
177
178
183 public void setMBCategoryPersistence(
184 MBCategoryPersistence mbCategoryPersistence) {
185 this.mbCategoryPersistence = mbCategoryPersistence;
186 }
187
188
193 public MBCategoryFinder getMBCategoryFinder() {
194 return mbCategoryFinder;
195 }
196
197
202 public void setMBCategoryFinder(MBCategoryFinder mbCategoryFinder) {
203 this.mbCategoryFinder = mbCategoryFinder;
204 }
205
206
211 public MBDiscussionLocalService getMBDiscussionLocalService() {
212 return mbDiscussionLocalService;
213 }
214
215
220 public void setMBDiscussionLocalService(
221 MBDiscussionLocalService mbDiscussionLocalService) {
222 this.mbDiscussionLocalService = mbDiscussionLocalService;
223 }
224
225
230 public MBDiscussionPersistence getMBDiscussionPersistence() {
231 return mbDiscussionPersistence;
232 }
233
234
239 public void setMBDiscussionPersistence(
240 MBDiscussionPersistence mbDiscussionPersistence) {
241 this.mbDiscussionPersistence = mbDiscussionPersistence;
242 }
243
244
249 public MBMailingListLocalService getMBMailingListLocalService() {
250 return mbMailingListLocalService;
251 }
252
253
258 public void setMBMailingListLocalService(
259 MBMailingListLocalService mbMailingListLocalService) {
260 this.mbMailingListLocalService = mbMailingListLocalService;
261 }
262
263
268 public MBMailingListPersistence getMBMailingListPersistence() {
269 return mbMailingListPersistence;
270 }
271
272
277 public void setMBMailingListPersistence(
278 MBMailingListPersistence mbMailingListPersistence) {
279 this.mbMailingListPersistence = mbMailingListPersistence;
280 }
281
282
287 public MBMessageLocalService getMBMessageLocalService() {
288 return mbMessageLocalService;
289 }
290
291
296 public void setMBMessageLocalService(
297 MBMessageLocalService mbMessageLocalService) {
298 this.mbMessageLocalService = mbMessageLocalService;
299 }
300
301
306 public MBMessageService getMBMessageService() {
307 return mbMessageService;
308 }
309
310
315 public void setMBMessageService(MBMessageService mbMessageService) {
316 this.mbMessageService = mbMessageService;
317 }
318
319
324 public MBMessagePersistence getMBMessagePersistence() {
325 return mbMessagePersistence;
326 }
327
328
333 public void setMBMessagePersistence(
334 MBMessagePersistence mbMessagePersistence) {
335 this.mbMessagePersistence = mbMessagePersistence;
336 }
337
338
343 public MBMessageFinder getMBMessageFinder() {
344 return mbMessageFinder;
345 }
346
347
352 public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
353 this.mbMessageFinder = mbMessageFinder;
354 }
355
356
361 public MBMessageFlagLocalService getMBMessageFlagLocalService() {
362 return mbMessageFlagLocalService;
363 }
364
365
370 public void setMBMessageFlagLocalService(
371 MBMessageFlagLocalService mbMessageFlagLocalService) {
372 this.mbMessageFlagLocalService = mbMessageFlagLocalService;
373 }
374
375
380 public MBMessageFlagService getMBMessageFlagService() {
381 return mbMessageFlagService;
382 }
383
384
389 public void setMBMessageFlagService(
390 MBMessageFlagService mbMessageFlagService) {
391 this.mbMessageFlagService = mbMessageFlagService;
392 }
393
394
399 public MBMessageFlagPersistence getMBMessageFlagPersistence() {
400 return mbMessageFlagPersistence;
401 }
402
403
408 public void setMBMessageFlagPersistence(
409 MBMessageFlagPersistence mbMessageFlagPersistence) {
410 this.mbMessageFlagPersistence = mbMessageFlagPersistence;
411 }
412
413
418 public MBStatsUserLocalService getMBStatsUserLocalService() {
419 return mbStatsUserLocalService;
420 }
421
422
427 public void setMBStatsUserLocalService(
428 MBStatsUserLocalService mbStatsUserLocalService) {
429 this.mbStatsUserLocalService = mbStatsUserLocalService;
430 }
431
432
437 public MBStatsUserPersistence getMBStatsUserPersistence() {
438 return mbStatsUserPersistence;
439 }
440
441
446 public void setMBStatsUserPersistence(
447 MBStatsUserPersistence mbStatsUserPersistence) {
448 this.mbStatsUserPersistence = mbStatsUserPersistence;
449 }
450
451
456 public MBThreadLocalService getMBThreadLocalService() {
457 return mbThreadLocalService;
458 }
459
460
465 public void setMBThreadLocalService(
466 MBThreadLocalService mbThreadLocalService) {
467 this.mbThreadLocalService = mbThreadLocalService;
468 }
469
470
475 public MBThreadService getMBThreadService() {
476 return mbThreadService;
477 }
478
479
484 public void setMBThreadService(MBThreadService mbThreadService) {
485 this.mbThreadService = mbThreadService;
486 }
487
488
493 public MBThreadPersistence getMBThreadPersistence() {
494 return mbThreadPersistence;
495 }
496
497
502 public void setMBThreadPersistence(MBThreadPersistence mbThreadPersistence) {
503 this.mbThreadPersistence = mbThreadPersistence;
504 }
505
506
511 public MBThreadFinder getMBThreadFinder() {
512 return mbThreadFinder;
513 }
514
515
520 public void setMBThreadFinder(MBThreadFinder mbThreadFinder) {
521 this.mbThreadFinder = mbThreadFinder;
522 }
523
524
529 public CounterLocalService getCounterLocalService() {
530 return counterLocalService;
531 }
532
533
538 public void setCounterLocalService(CounterLocalService counterLocalService) {
539 this.counterLocalService = counterLocalService;
540 }
541
542
547 public ResourceLocalService getResourceLocalService() {
548 return resourceLocalService;
549 }
550
551
556 public void setResourceLocalService(
557 ResourceLocalService resourceLocalService) {
558 this.resourceLocalService = resourceLocalService;
559 }
560
561
566 public ResourceService getResourceService() {
567 return resourceService;
568 }
569
570
575 public void setResourceService(ResourceService resourceService) {
576 this.resourceService = resourceService;
577 }
578
579
584 public ResourcePersistence getResourcePersistence() {
585 return resourcePersistence;
586 }
587
588
593 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
594 this.resourcePersistence = resourcePersistence;
595 }
596
597
602 public ResourceFinder getResourceFinder() {
603 return resourceFinder;
604 }
605
606
611 public void setResourceFinder(ResourceFinder resourceFinder) {
612 this.resourceFinder = resourceFinder;
613 }
614
615
620 public UserLocalService getUserLocalService() {
621 return userLocalService;
622 }
623
624
629 public void setUserLocalService(UserLocalService userLocalService) {
630 this.userLocalService = userLocalService;
631 }
632
633
638 public UserService getUserService() {
639 return userService;
640 }
641
642
647 public void setUserService(UserService userService) {
648 this.userService = userService;
649 }
650
651
656 public UserPersistence getUserPersistence() {
657 return userPersistence;
658 }
659
660
665 public void setUserPersistence(UserPersistence userPersistence) {
666 this.userPersistence = userPersistence;
667 }
668
669
674 public UserFinder getUserFinder() {
675 return userFinder;
676 }
677
678
683 public void setUserFinder(UserFinder userFinder) {
684 this.userFinder = userFinder;
685 }
686
687
692 protected void runSQL(String sql) throws SystemException {
693 try {
694 DataSource dataSource = mbMessageFlagPersistence.getDataSource();
695
696 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
697 sql, new int[0]);
698
699 sqlUpdate.update();
700 }
701 catch (Exception e) {
702 throw new SystemException(e);
703 }
704 }
705
706 @BeanReference(type = MBBanLocalService.class)
707 protected MBBanLocalService mbBanLocalService;
708 @BeanReference(type = MBBanService.class)
709 protected MBBanService mbBanService;
710 @BeanReference(type = MBBanPersistence.class)
711 protected MBBanPersistence mbBanPersistence;
712 @BeanReference(type = MBCategoryLocalService.class)
713 protected MBCategoryLocalService mbCategoryLocalService;
714 @BeanReference(type = MBCategoryService.class)
715 protected MBCategoryService mbCategoryService;
716 @BeanReference(type = MBCategoryPersistence.class)
717 protected MBCategoryPersistence mbCategoryPersistence;
718 @BeanReference(type = MBCategoryFinder.class)
719 protected MBCategoryFinder mbCategoryFinder;
720 @BeanReference(type = MBDiscussionLocalService.class)
721 protected MBDiscussionLocalService mbDiscussionLocalService;
722 @BeanReference(type = MBDiscussionPersistence.class)
723 protected MBDiscussionPersistence mbDiscussionPersistence;
724 @BeanReference(type = MBMailingListLocalService.class)
725 protected MBMailingListLocalService mbMailingListLocalService;
726 @BeanReference(type = MBMailingListPersistence.class)
727 protected MBMailingListPersistence mbMailingListPersistence;
728 @BeanReference(type = MBMessageLocalService.class)
729 protected MBMessageLocalService mbMessageLocalService;
730 @BeanReference(type = MBMessageService.class)
731 protected MBMessageService mbMessageService;
732 @BeanReference(type = MBMessagePersistence.class)
733 protected MBMessagePersistence mbMessagePersistence;
734 @BeanReference(type = MBMessageFinder.class)
735 protected MBMessageFinder mbMessageFinder;
736 @BeanReference(type = MBMessageFlagLocalService.class)
737 protected MBMessageFlagLocalService mbMessageFlagLocalService;
738 @BeanReference(type = MBMessageFlagService.class)
739 protected MBMessageFlagService mbMessageFlagService;
740 @BeanReference(type = MBMessageFlagPersistence.class)
741 protected MBMessageFlagPersistence mbMessageFlagPersistence;
742 @BeanReference(type = MBStatsUserLocalService.class)
743 protected MBStatsUserLocalService mbStatsUserLocalService;
744 @BeanReference(type = MBStatsUserPersistence.class)
745 protected MBStatsUserPersistence mbStatsUserPersistence;
746 @BeanReference(type = MBThreadLocalService.class)
747 protected MBThreadLocalService mbThreadLocalService;
748 @BeanReference(type = MBThreadService.class)
749 protected MBThreadService mbThreadService;
750 @BeanReference(type = MBThreadPersistence.class)
751 protected MBThreadPersistence mbThreadPersistence;
752 @BeanReference(type = MBThreadFinder.class)
753 protected MBThreadFinder mbThreadFinder;
754 @BeanReference(type = CounterLocalService.class)
755 protected CounterLocalService counterLocalService;
756 @BeanReference(type = ResourceLocalService.class)
757 protected ResourceLocalService resourceLocalService;
758 @BeanReference(type = ResourceService.class)
759 protected ResourceService resourceService;
760 @BeanReference(type = ResourcePersistence.class)
761 protected ResourcePersistence resourcePersistence;
762 @BeanReference(type = ResourceFinder.class)
763 protected ResourceFinder resourceFinder;
764 @BeanReference(type = UserLocalService.class)
765 protected UserLocalService userLocalService;
766 @BeanReference(type = UserService.class)
767 protected UserService userService;
768 @BeanReference(type = UserPersistence.class)
769 protected UserPersistence userPersistence;
770 @BeanReference(type = UserFinder.class)
771 protected UserFinder userFinder;
772 }