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.bean.BeanReference;
020 import com.liferay.portal.kernel.bean.IdentifiableBean;
021 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
022 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
023 import com.liferay.portal.kernel.exception.SystemException;
024 import com.liferay.portal.service.BaseServiceImpl;
025 import com.liferay.portal.service.ResourceLocalService;
026 import com.liferay.portal.service.ResourceService;
027 import com.liferay.portal.service.UserLocalService;
028 import com.liferay.portal.service.UserService;
029 import com.liferay.portal.service.persistence.ResourceFinder;
030 import com.liferay.portal.service.persistence.ResourcePersistence;
031 import com.liferay.portal.service.persistence.UserFinder;
032 import com.liferay.portal.service.persistence.UserPersistence;
033
034 import com.liferay.portlet.messageboards.model.MBBan;
035 import com.liferay.portlet.messageboards.service.MBBanLocalService;
036 import com.liferay.portlet.messageboards.service.MBBanService;
037 import com.liferay.portlet.messageboards.service.MBCategoryLocalService;
038 import com.liferay.portlet.messageboards.service.MBCategoryService;
039 import com.liferay.portlet.messageboards.service.MBDiscussionLocalService;
040 import com.liferay.portlet.messageboards.service.MBMailingListLocalService;
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.MBThreadFlagLocalService;
045 import com.liferay.portlet.messageboards.service.MBThreadLocalService;
046 import com.liferay.portlet.messageboards.service.MBThreadService;
047 import com.liferay.portlet.messageboards.service.persistence.MBBanPersistence;
048 import com.liferay.portlet.messageboards.service.persistence.MBCategoryFinder;
049 import com.liferay.portlet.messageboards.service.persistence.MBCategoryPersistence;
050 import com.liferay.portlet.messageboards.service.persistence.MBDiscussionPersistence;
051 import com.liferay.portlet.messageboards.service.persistence.MBMailingListPersistence;
052 import com.liferay.portlet.messageboards.service.persistence.MBMessageFinder;
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.MBThreadFlagPersistence;
057 import com.liferay.portlet.messageboards.service.persistence.MBThreadPersistence;
058
059 import javax.sql.DataSource;
060
061
073 public abstract class MBBanServiceBaseImpl extends BaseServiceImpl
074 implements MBBanService, IdentifiableBean {
075
080
081
086 public MBBanLocalService getMBBanLocalService() {
087 return mbBanLocalService;
088 }
089
090
095 public void setMBBanLocalService(MBBanLocalService mbBanLocalService) {
096 this.mbBanLocalService = mbBanLocalService;
097 }
098
099
104 public MBBanService getMBBanService() {
105 return mbBanService;
106 }
107
108
113 public void setMBBanService(MBBanService mbBanService) {
114 this.mbBanService = mbBanService;
115 }
116
117
122 public MBBanPersistence getMBBanPersistence() {
123 return mbBanPersistence;
124 }
125
126
131 public void setMBBanPersistence(MBBanPersistence mbBanPersistence) {
132 this.mbBanPersistence = mbBanPersistence;
133 }
134
135
140 public MBCategoryLocalService getMBCategoryLocalService() {
141 return mbCategoryLocalService;
142 }
143
144
149 public void setMBCategoryLocalService(
150 MBCategoryLocalService mbCategoryLocalService) {
151 this.mbCategoryLocalService = mbCategoryLocalService;
152 }
153
154
159 public MBCategoryService getMBCategoryService() {
160 return mbCategoryService;
161 }
162
163
168 public void setMBCategoryService(MBCategoryService mbCategoryService) {
169 this.mbCategoryService = mbCategoryService;
170 }
171
172
177 public MBCategoryPersistence getMBCategoryPersistence() {
178 return mbCategoryPersistence;
179 }
180
181
186 public void setMBCategoryPersistence(
187 MBCategoryPersistence mbCategoryPersistence) {
188 this.mbCategoryPersistence = mbCategoryPersistence;
189 }
190
191
196 public MBCategoryFinder getMBCategoryFinder() {
197 return mbCategoryFinder;
198 }
199
200
205 public void setMBCategoryFinder(MBCategoryFinder mbCategoryFinder) {
206 this.mbCategoryFinder = mbCategoryFinder;
207 }
208
209
214 public MBDiscussionLocalService getMBDiscussionLocalService() {
215 return mbDiscussionLocalService;
216 }
217
218
223 public void setMBDiscussionLocalService(
224 MBDiscussionLocalService mbDiscussionLocalService) {
225 this.mbDiscussionLocalService = mbDiscussionLocalService;
226 }
227
228
233 public MBDiscussionPersistence getMBDiscussionPersistence() {
234 return mbDiscussionPersistence;
235 }
236
237
242 public void setMBDiscussionPersistence(
243 MBDiscussionPersistence mbDiscussionPersistence) {
244 this.mbDiscussionPersistence = mbDiscussionPersistence;
245 }
246
247
252 public MBMailingListLocalService getMBMailingListLocalService() {
253 return mbMailingListLocalService;
254 }
255
256
261 public void setMBMailingListLocalService(
262 MBMailingListLocalService mbMailingListLocalService) {
263 this.mbMailingListLocalService = mbMailingListLocalService;
264 }
265
266
271 public MBMailingListPersistence getMBMailingListPersistence() {
272 return mbMailingListPersistence;
273 }
274
275
280 public void setMBMailingListPersistence(
281 MBMailingListPersistence mbMailingListPersistence) {
282 this.mbMailingListPersistence = mbMailingListPersistence;
283 }
284
285
290 public MBMessageLocalService getMBMessageLocalService() {
291 return mbMessageLocalService;
292 }
293
294
299 public void setMBMessageLocalService(
300 MBMessageLocalService mbMessageLocalService) {
301 this.mbMessageLocalService = mbMessageLocalService;
302 }
303
304
309 public MBMessageService getMBMessageService() {
310 return mbMessageService;
311 }
312
313
318 public void setMBMessageService(MBMessageService mbMessageService) {
319 this.mbMessageService = mbMessageService;
320 }
321
322
327 public MBMessagePersistence getMBMessagePersistence() {
328 return mbMessagePersistence;
329 }
330
331
336 public void setMBMessagePersistence(
337 MBMessagePersistence mbMessagePersistence) {
338 this.mbMessagePersistence = mbMessagePersistence;
339 }
340
341
346 public MBMessageFinder getMBMessageFinder() {
347 return mbMessageFinder;
348 }
349
350
355 public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
356 this.mbMessageFinder = mbMessageFinder;
357 }
358
359
364 public MBStatsUserLocalService getMBStatsUserLocalService() {
365 return mbStatsUserLocalService;
366 }
367
368
373 public void setMBStatsUserLocalService(
374 MBStatsUserLocalService mbStatsUserLocalService) {
375 this.mbStatsUserLocalService = mbStatsUserLocalService;
376 }
377
378
383 public MBStatsUserPersistence getMBStatsUserPersistence() {
384 return mbStatsUserPersistence;
385 }
386
387
392 public void setMBStatsUserPersistence(
393 MBStatsUserPersistence mbStatsUserPersistence) {
394 this.mbStatsUserPersistence = mbStatsUserPersistence;
395 }
396
397
402 public MBThreadLocalService getMBThreadLocalService() {
403 return mbThreadLocalService;
404 }
405
406
411 public void setMBThreadLocalService(
412 MBThreadLocalService mbThreadLocalService) {
413 this.mbThreadLocalService = mbThreadLocalService;
414 }
415
416
421 public MBThreadService getMBThreadService() {
422 return mbThreadService;
423 }
424
425
430 public void setMBThreadService(MBThreadService mbThreadService) {
431 this.mbThreadService = mbThreadService;
432 }
433
434
439 public MBThreadPersistence getMBThreadPersistence() {
440 return mbThreadPersistence;
441 }
442
443
448 public void setMBThreadPersistence(MBThreadPersistence mbThreadPersistence) {
449 this.mbThreadPersistence = mbThreadPersistence;
450 }
451
452
457 public MBThreadFinder getMBThreadFinder() {
458 return mbThreadFinder;
459 }
460
461
466 public void setMBThreadFinder(MBThreadFinder mbThreadFinder) {
467 this.mbThreadFinder = mbThreadFinder;
468 }
469
470
475 public MBThreadFlagLocalService getMBThreadFlagLocalService() {
476 return mbThreadFlagLocalService;
477 }
478
479
484 public void setMBThreadFlagLocalService(
485 MBThreadFlagLocalService mbThreadFlagLocalService) {
486 this.mbThreadFlagLocalService = mbThreadFlagLocalService;
487 }
488
489
494 public MBThreadFlagPersistence getMBThreadFlagPersistence() {
495 return mbThreadFlagPersistence;
496 }
497
498
503 public void setMBThreadFlagPersistence(
504 MBThreadFlagPersistence mbThreadFlagPersistence) {
505 this.mbThreadFlagPersistence = mbThreadFlagPersistence;
506 }
507
508
513 public CounterLocalService getCounterLocalService() {
514 return counterLocalService;
515 }
516
517
522 public void setCounterLocalService(CounterLocalService counterLocalService) {
523 this.counterLocalService = counterLocalService;
524 }
525
526
531 public ResourceLocalService getResourceLocalService() {
532 return resourceLocalService;
533 }
534
535
540 public void setResourceLocalService(
541 ResourceLocalService resourceLocalService) {
542 this.resourceLocalService = resourceLocalService;
543 }
544
545
550 public ResourceService getResourceService() {
551 return resourceService;
552 }
553
554
559 public void setResourceService(ResourceService resourceService) {
560 this.resourceService = resourceService;
561 }
562
563
568 public ResourcePersistence getResourcePersistence() {
569 return resourcePersistence;
570 }
571
572
577 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
578 this.resourcePersistence = resourcePersistence;
579 }
580
581
586 public ResourceFinder getResourceFinder() {
587 return resourceFinder;
588 }
589
590
595 public void setResourceFinder(ResourceFinder resourceFinder) {
596 this.resourceFinder = resourceFinder;
597 }
598
599
604 public UserLocalService getUserLocalService() {
605 return userLocalService;
606 }
607
608
613 public void setUserLocalService(UserLocalService userLocalService) {
614 this.userLocalService = userLocalService;
615 }
616
617
622 public UserService getUserService() {
623 return userService;
624 }
625
626
631 public void setUserService(UserService userService) {
632 this.userService = userService;
633 }
634
635
640 public UserPersistence getUserPersistence() {
641 return userPersistence;
642 }
643
644
649 public void setUserPersistence(UserPersistence userPersistence) {
650 this.userPersistence = userPersistence;
651 }
652
653
658 public UserFinder getUserFinder() {
659 return userFinder;
660 }
661
662
667 public void setUserFinder(UserFinder userFinder) {
668 this.userFinder = userFinder;
669 }
670
671 public void afterPropertiesSet() {
672 }
673
674 public void destroy() {
675 }
676
677
682 public String getBeanIdentifier() {
683 return _beanIdentifier;
684 }
685
686
691 public void setBeanIdentifier(String beanIdentifier) {
692 _beanIdentifier = beanIdentifier;
693 }
694
695 protected Class<?> getModelClass() {
696 return MBBan.class;
697 }
698
699 protected String getModelClassName() {
700 return MBBan.class.getName();
701 }
702
703
708 protected void runSQL(String sql) throws SystemException {
709 try {
710 DataSource dataSource = mbBanPersistence.getDataSource();
711
712 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
713 sql, new int[0]);
714
715 sqlUpdate.update();
716 }
717 catch (Exception e) {
718 throw new SystemException(e);
719 }
720 }
721
722 @BeanReference(type = MBBanLocalService.class)
723 protected MBBanLocalService mbBanLocalService;
724 @BeanReference(type = MBBanService.class)
725 protected MBBanService mbBanService;
726 @BeanReference(type = MBBanPersistence.class)
727 protected MBBanPersistence mbBanPersistence;
728 @BeanReference(type = MBCategoryLocalService.class)
729 protected MBCategoryLocalService mbCategoryLocalService;
730 @BeanReference(type = MBCategoryService.class)
731 protected MBCategoryService mbCategoryService;
732 @BeanReference(type = MBCategoryPersistence.class)
733 protected MBCategoryPersistence mbCategoryPersistence;
734 @BeanReference(type = MBCategoryFinder.class)
735 protected MBCategoryFinder mbCategoryFinder;
736 @BeanReference(type = MBDiscussionLocalService.class)
737 protected MBDiscussionLocalService mbDiscussionLocalService;
738 @BeanReference(type = MBDiscussionPersistence.class)
739 protected MBDiscussionPersistence mbDiscussionPersistence;
740 @BeanReference(type = MBMailingListLocalService.class)
741 protected MBMailingListLocalService mbMailingListLocalService;
742 @BeanReference(type = MBMailingListPersistence.class)
743 protected MBMailingListPersistence mbMailingListPersistence;
744 @BeanReference(type = MBMessageLocalService.class)
745 protected MBMessageLocalService mbMessageLocalService;
746 @BeanReference(type = MBMessageService.class)
747 protected MBMessageService mbMessageService;
748 @BeanReference(type = MBMessagePersistence.class)
749 protected MBMessagePersistence mbMessagePersistence;
750 @BeanReference(type = MBMessageFinder.class)
751 protected MBMessageFinder mbMessageFinder;
752 @BeanReference(type = MBStatsUserLocalService.class)
753 protected MBStatsUserLocalService mbStatsUserLocalService;
754 @BeanReference(type = MBStatsUserPersistence.class)
755 protected MBStatsUserPersistence mbStatsUserPersistence;
756 @BeanReference(type = MBThreadLocalService.class)
757 protected MBThreadLocalService mbThreadLocalService;
758 @BeanReference(type = MBThreadService.class)
759 protected MBThreadService mbThreadService;
760 @BeanReference(type = MBThreadPersistence.class)
761 protected MBThreadPersistence mbThreadPersistence;
762 @BeanReference(type = MBThreadFinder.class)
763 protected MBThreadFinder mbThreadFinder;
764 @BeanReference(type = MBThreadFlagLocalService.class)
765 protected MBThreadFlagLocalService mbThreadFlagLocalService;
766 @BeanReference(type = MBThreadFlagPersistence.class)
767 protected MBThreadFlagPersistence mbThreadFlagPersistence;
768 @BeanReference(type = CounterLocalService.class)
769 protected CounterLocalService counterLocalService;
770 @BeanReference(type = ResourceLocalService.class)
771 protected ResourceLocalService resourceLocalService;
772 @BeanReference(type = ResourceService.class)
773 protected ResourceService resourceService;
774 @BeanReference(type = ResourcePersistence.class)
775 protected ResourcePersistence resourcePersistence;
776 @BeanReference(type = ResourceFinder.class)
777 protected ResourceFinder resourceFinder;
778 @BeanReference(type = UserLocalService.class)
779 protected UserLocalService userLocalService;
780 @BeanReference(type = UserService.class)
781 protected UserService userService;
782 @BeanReference(type = UserPersistence.class)
783 protected UserPersistence userPersistence;
784 @BeanReference(type = UserFinder.class)
785 protected UserFinder userFinder;
786 private String _beanIdentifier;
787 }