001
014
015 package com.liferay.portlet.announcements.service.base;
016
017 import com.liferay.counter.service.CounterLocalService;
018
019 import com.liferay.mail.service.MailService;
020
021 import com.liferay.portal.kernel.bean.BeanReference;
022 import com.liferay.portal.kernel.bean.IdentifiableBean;
023 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
024 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
025 import com.liferay.portal.kernel.exception.SystemException;
026 import com.liferay.portal.service.BaseServiceImpl;
027 import com.liferay.portal.service.CompanyLocalService;
028 import com.liferay.portal.service.CompanyService;
029 import com.liferay.portal.service.GroupLocalService;
030 import com.liferay.portal.service.GroupService;
031 import com.liferay.portal.service.OrganizationLocalService;
032 import com.liferay.portal.service.OrganizationService;
033 import com.liferay.portal.service.ResourceLocalService;
034 import com.liferay.portal.service.ResourceService;
035 import com.liferay.portal.service.RoleLocalService;
036 import com.liferay.portal.service.RoleService;
037 import com.liferay.portal.service.UserGroupLocalService;
038 import com.liferay.portal.service.UserGroupService;
039 import com.liferay.portal.service.UserLocalService;
040 import com.liferay.portal.service.UserService;
041 import com.liferay.portal.service.persistence.CompanyPersistence;
042 import com.liferay.portal.service.persistence.GroupFinder;
043 import com.liferay.portal.service.persistence.GroupPersistence;
044 import com.liferay.portal.service.persistence.OrganizationFinder;
045 import com.liferay.portal.service.persistence.OrganizationPersistence;
046 import com.liferay.portal.service.persistence.ResourceFinder;
047 import com.liferay.portal.service.persistence.ResourcePersistence;
048 import com.liferay.portal.service.persistence.RoleFinder;
049 import com.liferay.portal.service.persistence.RolePersistence;
050 import com.liferay.portal.service.persistence.UserFinder;
051 import com.liferay.portal.service.persistence.UserGroupFinder;
052 import com.liferay.portal.service.persistence.UserGroupPersistence;
053 import com.liferay.portal.service.persistence.UserPersistence;
054
055 import com.liferay.portlet.announcements.model.AnnouncementsEntry;
056 import com.liferay.portlet.announcements.service.AnnouncementsDeliveryLocalService;
057 import com.liferay.portlet.announcements.service.AnnouncementsDeliveryService;
058 import com.liferay.portlet.announcements.service.AnnouncementsEntryLocalService;
059 import com.liferay.portlet.announcements.service.AnnouncementsEntryService;
060 import com.liferay.portlet.announcements.service.AnnouncementsFlagLocalService;
061 import com.liferay.portlet.announcements.service.AnnouncementsFlagService;
062 import com.liferay.portlet.announcements.service.persistence.AnnouncementsDeliveryPersistence;
063 import com.liferay.portlet.announcements.service.persistence.AnnouncementsEntryFinder;
064 import com.liferay.portlet.announcements.service.persistence.AnnouncementsEntryPersistence;
065 import com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence;
066
067 import javax.sql.DataSource;
068
069
081 public abstract class AnnouncementsEntryServiceBaseImpl extends BaseServiceImpl
082 implements AnnouncementsEntryService, IdentifiableBean {
083
088
089
094 public AnnouncementsDeliveryLocalService getAnnouncementsDeliveryLocalService() {
095 return announcementsDeliveryLocalService;
096 }
097
098
103 public void setAnnouncementsDeliveryLocalService(
104 AnnouncementsDeliveryLocalService announcementsDeliveryLocalService) {
105 this.announcementsDeliveryLocalService = announcementsDeliveryLocalService;
106 }
107
108
113 public AnnouncementsDeliveryService getAnnouncementsDeliveryService() {
114 return announcementsDeliveryService;
115 }
116
117
122 public void setAnnouncementsDeliveryService(
123 AnnouncementsDeliveryService announcementsDeliveryService) {
124 this.announcementsDeliveryService = announcementsDeliveryService;
125 }
126
127
132 public AnnouncementsDeliveryPersistence getAnnouncementsDeliveryPersistence() {
133 return announcementsDeliveryPersistence;
134 }
135
136
141 public void setAnnouncementsDeliveryPersistence(
142 AnnouncementsDeliveryPersistence announcementsDeliveryPersistence) {
143 this.announcementsDeliveryPersistence = announcementsDeliveryPersistence;
144 }
145
146
151 public AnnouncementsEntryLocalService getAnnouncementsEntryLocalService() {
152 return announcementsEntryLocalService;
153 }
154
155
160 public void setAnnouncementsEntryLocalService(
161 AnnouncementsEntryLocalService announcementsEntryLocalService) {
162 this.announcementsEntryLocalService = announcementsEntryLocalService;
163 }
164
165
170 public AnnouncementsEntryService getAnnouncementsEntryService() {
171 return announcementsEntryService;
172 }
173
174
179 public void setAnnouncementsEntryService(
180 AnnouncementsEntryService announcementsEntryService) {
181 this.announcementsEntryService = announcementsEntryService;
182 }
183
184
189 public AnnouncementsEntryPersistence getAnnouncementsEntryPersistence() {
190 return announcementsEntryPersistence;
191 }
192
193
198 public void setAnnouncementsEntryPersistence(
199 AnnouncementsEntryPersistence announcementsEntryPersistence) {
200 this.announcementsEntryPersistence = announcementsEntryPersistence;
201 }
202
203
208 public AnnouncementsEntryFinder getAnnouncementsEntryFinder() {
209 return announcementsEntryFinder;
210 }
211
212
217 public void setAnnouncementsEntryFinder(
218 AnnouncementsEntryFinder announcementsEntryFinder) {
219 this.announcementsEntryFinder = announcementsEntryFinder;
220 }
221
222
227 public AnnouncementsFlagLocalService getAnnouncementsFlagLocalService() {
228 return announcementsFlagLocalService;
229 }
230
231
236 public void setAnnouncementsFlagLocalService(
237 AnnouncementsFlagLocalService announcementsFlagLocalService) {
238 this.announcementsFlagLocalService = announcementsFlagLocalService;
239 }
240
241
246 public AnnouncementsFlagService getAnnouncementsFlagService() {
247 return announcementsFlagService;
248 }
249
250
255 public void setAnnouncementsFlagService(
256 AnnouncementsFlagService announcementsFlagService) {
257 this.announcementsFlagService = announcementsFlagService;
258 }
259
260
265 public AnnouncementsFlagPersistence getAnnouncementsFlagPersistence() {
266 return announcementsFlagPersistence;
267 }
268
269
274 public void setAnnouncementsFlagPersistence(
275 AnnouncementsFlagPersistence announcementsFlagPersistence) {
276 this.announcementsFlagPersistence = announcementsFlagPersistence;
277 }
278
279
284 public CounterLocalService getCounterLocalService() {
285 return counterLocalService;
286 }
287
288
293 public void setCounterLocalService(CounterLocalService counterLocalService) {
294 this.counterLocalService = counterLocalService;
295 }
296
297
302 public MailService getMailService() {
303 return mailService;
304 }
305
306
311 public void setMailService(MailService mailService) {
312 this.mailService = mailService;
313 }
314
315
320 public CompanyLocalService getCompanyLocalService() {
321 return companyLocalService;
322 }
323
324
329 public void setCompanyLocalService(CompanyLocalService companyLocalService) {
330 this.companyLocalService = companyLocalService;
331 }
332
333
338 public CompanyService getCompanyService() {
339 return companyService;
340 }
341
342
347 public void setCompanyService(CompanyService companyService) {
348 this.companyService = companyService;
349 }
350
351
356 public CompanyPersistence getCompanyPersistence() {
357 return companyPersistence;
358 }
359
360
365 public void setCompanyPersistence(CompanyPersistence companyPersistence) {
366 this.companyPersistence = companyPersistence;
367 }
368
369
374 public GroupLocalService getGroupLocalService() {
375 return groupLocalService;
376 }
377
378
383 public void setGroupLocalService(GroupLocalService groupLocalService) {
384 this.groupLocalService = groupLocalService;
385 }
386
387
392 public GroupService getGroupService() {
393 return groupService;
394 }
395
396
401 public void setGroupService(GroupService groupService) {
402 this.groupService = groupService;
403 }
404
405
410 public GroupPersistence getGroupPersistence() {
411 return groupPersistence;
412 }
413
414
419 public void setGroupPersistence(GroupPersistence groupPersistence) {
420 this.groupPersistence = groupPersistence;
421 }
422
423
428 public GroupFinder getGroupFinder() {
429 return groupFinder;
430 }
431
432
437 public void setGroupFinder(GroupFinder groupFinder) {
438 this.groupFinder = groupFinder;
439 }
440
441
446 public OrganizationLocalService getOrganizationLocalService() {
447 return organizationLocalService;
448 }
449
450
455 public void setOrganizationLocalService(
456 OrganizationLocalService organizationLocalService) {
457 this.organizationLocalService = organizationLocalService;
458 }
459
460
465 public OrganizationService getOrganizationService() {
466 return organizationService;
467 }
468
469
474 public void setOrganizationService(OrganizationService organizationService) {
475 this.organizationService = organizationService;
476 }
477
478
483 public OrganizationPersistence getOrganizationPersistence() {
484 return organizationPersistence;
485 }
486
487
492 public void setOrganizationPersistence(
493 OrganizationPersistence organizationPersistence) {
494 this.organizationPersistence = organizationPersistence;
495 }
496
497
502 public OrganizationFinder getOrganizationFinder() {
503 return organizationFinder;
504 }
505
506
511 public void setOrganizationFinder(OrganizationFinder organizationFinder) {
512 this.organizationFinder = organizationFinder;
513 }
514
515
520 public ResourceLocalService getResourceLocalService() {
521 return resourceLocalService;
522 }
523
524
529 public void setResourceLocalService(
530 ResourceLocalService resourceLocalService) {
531 this.resourceLocalService = resourceLocalService;
532 }
533
534
539 public ResourceService getResourceService() {
540 return resourceService;
541 }
542
543
548 public void setResourceService(ResourceService resourceService) {
549 this.resourceService = resourceService;
550 }
551
552
557 public ResourcePersistence getResourcePersistence() {
558 return resourcePersistence;
559 }
560
561
566 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
567 this.resourcePersistence = resourcePersistence;
568 }
569
570
575 public ResourceFinder getResourceFinder() {
576 return resourceFinder;
577 }
578
579
584 public void setResourceFinder(ResourceFinder resourceFinder) {
585 this.resourceFinder = resourceFinder;
586 }
587
588
593 public RoleLocalService getRoleLocalService() {
594 return roleLocalService;
595 }
596
597
602 public void setRoleLocalService(RoleLocalService roleLocalService) {
603 this.roleLocalService = roleLocalService;
604 }
605
606
611 public RoleService getRoleService() {
612 return roleService;
613 }
614
615
620 public void setRoleService(RoleService roleService) {
621 this.roleService = roleService;
622 }
623
624
629 public RolePersistence getRolePersistence() {
630 return rolePersistence;
631 }
632
633
638 public void setRolePersistence(RolePersistence rolePersistence) {
639 this.rolePersistence = rolePersistence;
640 }
641
642
647 public RoleFinder getRoleFinder() {
648 return roleFinder;
649 }
650
651
656 public void setRoleFinder(RoleFinder roleFinder) {
657 this.roleFinder = roleFinder;
658 }
659
660
665 public UserLocalService getUserLocalService() {
666 return userLocalService;
667 }
668
669
674 public void setUserLocalService(UserLocalService userLocalService) {
675 this.userLocalService = userLocalService;
676 }
677
678
683 public UserService getUserService() {
684 return userService;
685 }
686
687
692 public void setUserService(UserService userService) {
693 this.userService = userService;
694 }
695
696
701 public UserPersistence getUserPersistence() {
702 return userPersistence;
703 }
704
705
710 public void setUserPersistence(UserPersistence userPersistence) {
711 this.userPersistence = userPersistence;
712 }
713
714
719 public UserFinder getUserFinder() {
720 return userFinder;
721 }
722
723
728 public void setUserFinder(UserFinder userFinder) {
729 this.userFinder = userFinder;
730 }
731
732
737 public UserGroupLocalService getUserGroupLocalService() {
738 return userGroupLocalService;
739 }
740
741
746 public void setUserGroupLocalService(
747 UserGroupLocalService userGroupLocalService) {
748 this.userGroupLocalService = userGroupLocalService;
749 }
750
751
756 public UserGroupService getUserGroupService() {
757 return userGroupService;
758 }
759
760
765 public void setUserGroupService(UserGroupService userGroupService) {
766 this.userGroupService = userGroupService;
767 }
768
769
774 public UserGroupPersistence getUserGroupPersistence() {
775 return userGroupPersistence;
776 }
777
778
783 public void setUserGroupPersistence(
784 UserGroupPersistence userGroupPersistence) {
785 this.userGroupPersistence = userGroupPersistence;
786 }
787
788
793 public UserGroupFinder getUserGroupFinder() {
794 return userGroupFinder;
795 }
796
797
802 public void setUserGroupFinder(UserGroupFinder userGroupFinder) {
803 this.userGroupFinder = userGroupFinder;
804 }
805
806 public void afterPropertiesSet() {
807 }
808
809 public void destroy() {
810 }
811
812
817 public String getBeanIdentifier() {
818 return _beanIdentifier;
819 }
820
821
826 public void setBeanIdentifier(String beanIdentifier) {
827 _beanIdentifier = beanIdentifier;
828 }
829
830 protected Class<?> getModelClass() {
831 return AnnouncementsEntry.class;
832 }
833
834 protected String getModelClassName() {
835 return AnnouncementsEntry.class.getName();
836 }
837
838
843 protected void runSQL(String sql) throws SystemException {
844 try {
845 DataSource dataSource = announcementsEntryPersistence.getDataSource();
846
847 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
848 sql, new int[0]);
849
850 sqlUpdate.update();
851 }
852 catch (Exception e) {
853 throw new SystemException(e);
854 }
855 }
856
857 @BeanReference(type = AnnouncementsDeliveryLocalService.class)
858 protected AnnouncementsDeliveryLocalService announcementsDeliveryLocalService;
859 @BeanReference(type = AnnouncementsDeliveryService.class)
860 protected AnnouncementsDeliveryService announcementsDeliveryService;
861 @BeanReference(type = AnnouncementsDeliveryPersistence.class)
862 protected AnnouncementsDeliveryPersistence announcementsDeliveryPersistence;
863 @BeanReference(type = AnnouncementsEntryLocalService.class)
864 protected AnnouncementsEntryLocalService announcementsEntryLocalService;
865 @BeanReference(type = AnnouncementsEntryService.class)
866 protected AnnouncementsEntryService announcementsEntryService;
867 @BeanReference(type = AnnouncementsEntryPersistence.class)
868 protected AnnouncementsEntryPersistence announcementsEntryPersistence;
869 @BeanReference(type = AnnouncementsEntryFinder.class)
870 protected AnnouncementsEntryFinder announcementsEntryFinder;
871 @BeanReference(type = AnnouncementsFlagLocalService.class)
872 protected AnnouncementsFlagLocalService announcementsFlagLocalService;
873 @BeanReference(type = AnnouncementsFlagService.class)
874 protected AnnouncementsFlagService announcementsFlagService;
875 @BeanReference(type = AnnouncementsFlagPersistence.class)
876 protected AnnouncementsFlagPersistence announcementsFlagPersistence;
877 @BeanReference(type = CounterLocalService.class)
878 protected CounterLocalService counterLocalService;
879 @BeanReference(type = MailService.class)
880 protected MailService mailService;
881 @BeanReference(type = CompanyLocalService.class)
882 protected CompanyLocalService companyLocalService;
883 @BeanReference(type = CompanyService.class)
884 protected CompanyService companyService;
885 @BeanReference(type = CompanyPersistence.class)
886 protected CompanyPersistence companyPersistence;
887 @BeanReference(type = GroupLocalService.class)
888 protected GroupLocalService groupLocalService;
889 @BeanReference(type = GroupService.class)
890 protected GroupService groupService;
891 @BeanReference(type = GroupPersistence.class)
892 protected GroupPersistence groupPersistence;
893 @BeanReference(type = GroupFinder.class)
894 protected GroupFinder groupFinder;
895 @BeanReference(type = OrganizationLocalService.class)
896 protected OrganizationLocalService organizationLocalService;
897 @BeanReference(type = OrganizationService.class)
898 protected OrganizationService organizationService;
899 @BeanReference(type = OrganizationPersistence.class)
900 protected OrganizationPersistence organizationPersistence;
901 @BeanReference(type = OrganizationFinder.class)
902 protected OrganizationFinder organizationFinder;
903 @BeanReference(type = ResourceLocalService.class)
904 protected ResourceLocalService resourceLocalService;
905 @BeanReference(type = ResourceService.class)
906 protected ResourceService resourceService;
907 @BeanReference(type = ResourcePersistence.class)
908 protected ResourcePersistence resourcePersistence;
909 @BeanReference(type = ResourceFinder.class)
910 protected ResourceFinder resourceFinder;
911 @BeanReference(type = RoleLocalService.class)
912 protected RoleLocalService roleLocalService;
913 @BeanReference(type = RoleService.class)
914 protected RoleService roleService;
915 @BeanReference(type = RolePersistence.class)
916 protected RolePersistence rolePersistence;
917 @BeanReference(type = RoleFinder.class)
918 protected RoleFinder roleFinder;
919 @BeanReference(type = UserLocalService.class)
920 protected UserLocalService userLocalService;
921 @BeanReference(type = UserService.class)
922 protected UserService userService;
923 @BeanReference(type = UserPersistence.class)
924 protected UserPersistence userPersistence;
925 @BeanReference(type = UserFinder.class)
926 protected UserFinder userFinder;
927 @BeanReference(type = UserGroupLocalService.class)
928 protected UserGroupLocalService userGroupLocalService;
929 @BeanReference(type = UserGroupService.class)
930 protected UserGroupService userGroupService;
931 @BeanReference(type = UserGroupPersistence.class)
932 protected UserGroupPersistence userGroupPersistence;
933 @BeanReference(type = UserGroupFinder.class)
934 protected UserGroupFinder userGroupFinder;
935 private String _beanIdentifier;
936 }