001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.announcements.service.base;
016    
017    import com.liferay.announcements.kernel.model.AnnouncementsEntry;
018    import com.liferay.announcements.kernel.service.AnnouncementsEntryService;
019    import com.liferay.announcements.kernel.service.persistence.AnnouncementsDeliveryPersistence;
020    import com.liferay.announcements.kernel.service.persistence.AnnouncementsEntryFinder;
021    import com.liferay.announcements.kernel.service.persistence.AnnouncementsEntryPersistence;
022    import com.liferay.announcements.kernel.service.persistence.AnnouncementsFlagPersistence;
023    
024    import com.liferay.portal.kernel.bean.BeanReference;
025    import com.liferay.portal.kernel.dao.db.DB;
026    import com.liferay.portal.kernel.dao.db.DBManagerUtil;
027    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
028    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
029    import com.liferay.portal.kernel.exception.SystemException;
030    import com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService;
031    import com.liferay.portal.kernel.service.BaseServiceImpl;
032    import com.liferay.portal.kernel.service.persistence.CompanyPersistence;
033    import com.liferay.portal.kernel.service.persistence.GroupFinder;
034    import com.liferay.portal.kernel.service.persistence.GroupPersistence;
035    import com.liferay.portal.kernel.service.persistence.OrganizationFinder;
036    import com.liferay.portal.kernel.service.persistence.OrganizationPersistence;
037    import com.liferay.portal.kernel.service.persistence.RoleFinder;
038    import com.liferay.portal.kernel.service.persistence.RolePersistence;
039    import com.liferay.portal.kernel.service.persistence.TeamFinder;
040    import com.liferay.portal.kernel.service.persistence.TeamPersistence;
041    import com.liferay.portal.kernel.service.persistence.UserFinder;
042    import com.liferay.portal.kernel.service.persistence.UserGroupFinder;
043    import com.liferay.portal.kernel.service.persistence.UserGroupPersistence;
044    import com.liferay.portal.kernel.service.persistence.UserPersistence;
045    import com.liferay.portal.kernel.util.PortalUtil;
046    
047    import javax.sql.DataSource;
048    
049    /**
050     * Provides the base implementation for the announcements entry remote service.
051     *
052     * <p>
053     * This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link com.liferay.portlet.announcements.service.impl.AnnouncementsEntryServiceImpl}.
054     * </p>
055     *
056     * @author Brian Wing Shun Chan
057     * @see com.liferay.portlet.announcements.service.impl.AnnouncementsEntryServiceImpl
058     * @see com.liferay.announcements.kernel.service.AnnouncementsEntryServiceUtil
059     * @generated
060     */
061    public abstract class AnnouncementsEntryServiceBaseImpl extends BaseServiceImpl
062            implements AnnouncementsEntryService, IdentifiableOSGiService {
063            /*
064             * NOTE FOR DEVELOPERS:
065             *
066             * Never modify or reference this class directly. Always use {@link com.liferay.announcements.kernel.service.AnnouncementsEntryServiceUtil} to access the announcements entry remote service.
067             */
068    
069            /**
070             * Returns the announcements entry local service.
071             *
072             * @return the announcements entry local service
073             */
074            public com.liferay.announcements.kernel.service.AnnouncementsEntryLocalService getAnnouncementsEntryLocalService() {
075                    return announcementsEntryLocalService;
076            }
077    
078            /**
079             * Sets the announcements entry local service.
080             *
081             * @param announcementsEntryLocalService the announcements entry local service
082             */
083            public void setAnnouncementsEntryLocalService(
084                    com.liferay.announcements.kernel.service.AnnouncementsEntryLocalService announcementsEntryLocalService) {
085                    this.announcementsEntryLocalService = announcementsEntryLocalService;
086            }
087    
088            /**
089             * Returns the announcements entry remote service.
090             *
091             * @return the announcements entry remote service
092             */
093            public AnnouncementsEntryService getAnnouncementsEntryService() {
094                    return announcementsEntryService;
095            }
096    
097            /**
098             * Sets the announcements entry remote service.
099             *
100             * @param announcementsEntryService the announcements entry remote service
101             */
102            public void setAnnouncementsEntryService(
103                    AnnouncementsEntryService announcementsEntryService) {
104                    this.announcementsEntryService = announcementsEntryService;
105            }
106    
107            /**
108             * Returns the announcements entry persistence.
109             *
110             * @return the announcements entry persistence
111             */
112            public AnnouncementsEntryPersistence getAnnouncementsEntryPersistence() {
113                    return announcementsEntryPersistence;
114            }
115    
116            /**
117             * Sets the announcements entry persistence.
118             *
119             * @param announcementsEntryPersistence the announcements entry persistence
120             */
121            public void setAnnouncementsEntryPersistence(
122                    AnnouncementsEntryPersistence announcementsEntryPersistence) {
123                    this.announcementsEntryPersistence = announcementsEntryPersistence;
124            }
125    
126            /**
127             * Returns the announcements entry finder.
128             *
129             * @return the announcements entry finder
130             */
131            public AnnouncementsEntryFinder getAnnouncementsEntryFinder() {
132                    return announcementsEntryFinder;
133            }
134    
135            /**
136             * Sets the announcements entry finder.
137             *
138             * @param announcementsEntryFinder the announcements entry finder
139             */
140            public void setAnnouncementsEntryFinder(
141                    AnnouncementsEntryFinder announcementsEntryFinder) {
142                    this.announcementsEntryFinder = announcementsEntryFinder;
143            }
144    
145            /**
146             * Returns the counter local service.
147             *
148             * @return the counter local service
149             */
150            public com.liferay.counter.kernel.service.CounterLocalService getCounterLocalService() {
151                    return counterLocalService;
152            }
153    
154            /**
155             * Sets the counter local service.
156             *
157             * @param counterLocalService the counter local service
158             */
159            public void setCounterLocalService(
160                    com.liferay.counter.kernel.service.CounterLocalService counterLocalService) {
161                    this.counterLocalService = counterLocalService;
162            }
163    
164            /**
165             * Returns the mail remote service.
166             *
167             * @return the mail remote service
168             */
169            public com.liferay.mail.kernel.service.MailService getMailService() {
170                    return mailService;
171            }
172    
173            /**
174             * Sets the mail remote service.
175             *
176             * @param mailService the mail remote service
177             */
178            public void setMailService(
179                    com.liferay.mail.kernel.service.MailService mailService) {
180                    this.mailService = mailService;
181            }
182    
183            /**
184             * Returns the company local service.
185             *
186             * @return the company local service
187             */
188            public com.liferay.portal.kernel.service.CompanyLocalService getCompanyLocalService() {
189                    return companyLocalService;
190            }
191    
192            /**
193             * Sets the company local service.
194             *
195             * @param companyLocalService the company local service
196             */
197            public void setCompanyLocalService(
198                    com.liferay.portal.kernel.service.CompanyLocalService companyLocalService) {
199                    this.companyLocalService = companyLocalService;
200            }
201    
202            /**
203             * Returns the company remote service.
204             *
205             * @return the company remote service
206             */
207            public com.liferay.portal.kernel.service.CompanyService getCompanyService() {
208                    return companyService;
209            }
210    
211            /**
212             * Sets the company remote service.
213             *
214             * @param companyService the company remote service
215             */
216            public void setCompanyService(
217                    com.liferay.portal.kernel.service.CompanyService companyService) {
218                    this.companyService = companyService;
219            }
220    
221            /**
222             * Returns the company persistence.
223             *
224             * @return the company persistence
225             */
226            public CompanyPersistence getCompanyPersistence() {
227                    return companyPersistence;
228            }
229    
230            /**
231             * Sets the company persistence.
232             *
233             * @param companyPersistence the company persistence
234             */
235            public void setCompanyPersistence(CompanyPersistence companyPersistence) {
236                    this.companyPersistence = companyPersistence;
237            }
238    
239            /**
240             * Returns the group local service.
241             *
242             * @return the group local service
243             */
244            public com.liferay.portal.kernel.service.GroupLocalService getGroupLocalService() {
245                    return groupLocalService;
246            }
247    
248            /**
249             * Sets the group local service.
250             *
251             * @param groupLocalService the group local service
252             */
253            public void setGroupLocalService(
254                    com.liferay.portal.kernel.service.GroupLocalService groupLocalService) {
255                    this.groupLocalService = groupLocalService;
256            }
257    
258            /**
259             * Returns the group remote service.
260             *
261             * @return the group remote service
262             */
263            public com.liferay.portal.kernel.service.GroupService getGroupService() {
264                    return groupService;
265            }
266    
267            /**
268             * Sets the group remote service.
269             *
270             * @param groupService the group remote service
271             */
272            public void setGroupService(
273                    com.liferay.portal.kernel.service.GroupService groupService) {
274                    this.groupService = groupService;
275            }
276    
277            /**
278             * Returns the group persistence.
279             *
280             * @return the group persistence
281             */
282            public GroupPersistence getGroupPersistence() {
283                    return groupPersistence;
284            }
285    
286            /**
287             * Sets the group persistence.
288             *
289             * @param groupPersistence the group persistence
290             */
291            public void setGroupPersistence(GroupPersistence groupPersistence) {
292                    this.groupPersistence = groupPersistence;
293            }
294    
295            /**
296             * Returns the group finder.
297             *
298             * @return the group finder
299             */
300            public GroupFinder getGroupFinder() {
301                    return groupFinder;
302            }
303    
304            /**
305             * Sets the group finder.
306             *
307             * @param groupFinder the group finder
308             */
309            public void setGroupFinder(GroupFinder groupFinder) {
310                    this.groupFinder = groupFinder;
311            }
312    
313            /**
314             * Returns the organization local service.
315             *
316             * @return the organization local service
317             */
318            public com.liferay.portal.kernel.service.OrganizationLocalService getOrganizationLocalService() {
319                    return organizationLocalService;
320            }
321    
322            /**
323             * Sets the organization local service.
324             *
325             * @param organizationLocalService the organization local service
326             */
327            public void setOrganizationLocalService(
328                    com.liferay.portal.kernel.service.OrganizationLocalService organizationLocalService) {
329                    this.organizationLocalService = organizationLocalService;
330            }
331    
332            /**
333             * Returns the organization remote service.
334             *
335             * @return the organization remote service
336             */
337            public com.liferay.portal.kernel.service.OrganizationService getOrganizationService() {
338                    return organizationService;
339            }
340    
341            /**
342             * Sets the organization remote service.
343             *
344             * @param organizationService the organization remote service
345             */
346            public void setOrganizationService(
347                    com.liferay.portal.kernel.service.OrganizationService organizationService) {
348                    this.organizationService = organizationService;
349            }
350    
351            /**
352             * Returns the organization persistence.
353             *
354             * @return the organization persistence
355             */
356            public OrganizationPersistence getOrganizationPersistence() {
357                    return organizationPersistence;
358            }
359    
360            /**
361             * Sets the organization persistence.
362             *
363             * @param organizationPersistence the organization persistence
364             */
365            public void setOrganizationPersistence(
366                    OrganizationPersistence organizationPersistence) {
367                    this.organizationPersistence = organizationPersistence;
368            }
369    
370            /**
371             * Returns the organization finder.
372             *
373             * @return the organization finder
374             */
375            public OrganizationFinder getOrganizationFinder() {
376                    return organizationFinder;
377            }
378    
379            /**
380             * Sets the organization finder.
381             *
382             * @param organizationFinder the organization finder
383             */
384            public void setOrganizationFinder(OrganizationFinder organizationFinder) {
385                    this.organizationFinder = organizationFinder;
386            }
387    
388            /**
389             * Returns the resource local service.
390             *
391             * @return the resource local service
392             */
393            public com.liferay.portal.kernel.service.ResourceLocalService getResourceLocalService() {
394                    return resourceLocalService;
395            }
396    
397            /**
398             * Sets the resource local service.
399             *
400             * @param resourceLocalService the resource local service
401             */
402            public void setResourceLocalService(
403                    com.liferay.portal.kernel.service.ResourceLocalService resourceLocalService) {
404                    this.resourceLocalService = resourceLocalService;
405            }
406    
407            /**
408             * Returns the role local service.
409             *
410             * @return the role local service
411             */
412            public com.liferay.portal.kernel.service.RoleLocalService getRoleLocalService() {
413                    return roleLocalService;
414            }
415    
416            /**
417             * Sets the role local service.
418             *
419             * @param roleLocalService the role local service
420             */
421            public void setRoleLocalService(
422                    com.liferay.portal.kernel.service.RoleLocalService roleLocalService) {
423                    this.roleLocalService = roleLocalService;
424            }
425    
426            /**
427             * Returns the role remote service.
428             *
429             * @return the role remote service
430             */
431            public com.liferay.portal.kernel.service.RoleService getRoleService() {
432                    return roleService;
433            }
434    
435            /**
436             * Sets the role remote service.
437             *
438             * @param roleService the role remote service
439             */
440            public void setRoleService(
441                    com.liferay.portal.kernel.service.RoleService roleService) {
442                    this.roleService = roleService;
443            }
444    
445            /**
446             * Returns the role persistence.
447             *
448             * @return the role persistence
449             */
450            public RolePersistence getRolePersistence() {
451                    return rolePersistence;
452            }
453    
454            /**
455             * Sets the role persistence.
456             *
457             * @param rolePersistence the role persistence
458             */
459            public void setRolePersistence(RolePersistence rolePersistence) {
460                    this.rolePersistence = rolePersistence;
461            }
462    
463            /**
464             * Returns the role finder.
465             *
466             * @return the role finder
467             */
468            public RoleFinder getRoleFinder() {
469                    return roleFinder;
470            }
471    
472            /**
473             * Sets the role finder.
474             *
475             * @param roleFinder the role finder
476             */
477            public void setRoleFinder(RoleFinder roleFinder) {
478                    this.roleFinder = roleFinder;
479            }
480    
481            /**
482             * Returns the team local service.
483             *
484             * @return the team local service
485             */
486            public com.liferay.portal.kernel.service.TeamLocalService getTeamLocalService() {
487                    return teamLocalService;
488            }
489    
490            /**
491             * Sets the team local service.
492             *
493             * @param teamLocalService the team local service
494             */
495            public void setTeamLocalService(
496                    com.liferay.portal.kernel.service.TeamLocalService teamLocalService) {
497                    this.teamLocalService = teamLocalService;
498            }
499    
500            /**
501             * Returns the team remote service.
502             *
503             * @return the team remote service
504             */
505            public com.liferay.portal.kernel.service.TeamService getTeamService() {
506                    return teamService;
507            }
508    
509            /**
510             * Sets the team remote service.
511             *
512             * @param teamService the team remote service
513             */
514            public void setTeamService(
515                    com.liferay.portal.kernel.service.TeamService teamService) {
516                    this.teamService = teamService;
517            }
518    
519            /**
520             * Returns the team persistence.
521             *
522             * @return the team persistence
523             */
524            public TeamPersistence getTeamPersistence() {
525                    return teamPersistence;
526            }
527    
528            /**
529             * Sets the team persistence.
530             *
531             * @param teamPersistence the team persistence
532             */
533            public void setTeamPersistence(TeamPersistence teamPersistence) {
534                    this.teamPersistence = teamPersistence;
535            }
536    
537            /**
538             * Returns the team finder.
539             *
540             * @return the team finder
541             */
542            public TeamFinder getTeamFinder() {
543                    return teamFinder;
544            }
545    
546            /**
547             * Sets the team finder.
548             *
549             * @param teamFinder the team finder
550             */
551            public void setTeamFinder(TeamFinder teamFinder) {
552                    this.teamFinder = teamFinder;
553            }
554    
555            /**
556             * Returns the user local service.
557             *
558             * @return the user local service
559             */
560            public com.liferay.portal.kernel.service.UserLocalService getUserLocalService() {
561                    return userLocalService;
562            }
563    
564            /**
565             * Sets the user local service.
566             *
567             * @param userLocalService the user local service
568             */
569            public void setUserLocalService(
570                    com.liferay.portal.kernel.service.UserLocalService userLocalService) {
571                    this.userLocalService = userLocalService;
572            }
573    
574            /**
575             * Returns the user remote service.
576             *
577             * @return the user remote service
578             */
579            public com.liferay.portal.kernel.service.UserService getUserService() {
580                    return userService;
581            }
582    
583            /**
584             * Sets the user remote service.
585             *
586             * @param userService the user remote service
587             */
588            public void setUserService(
589                    com.liferay.portal.kernel.service.UserService userService) {
590                    this.userService = userService;
591            }
592    
593            /**
594             * Returns the user persistence.
595             *
596             * @return the user persistence
597             */
598            public UserPersistence getUserPersistence() {
599                    return userPersistence;
600            }
601    
602            /**
603             * Sets the user persistence.
604             *
605             * @param userPersistence the user persistence
606             */
607            public void setUserPersistence(UserPersistence userPersistence) {
608                    this.userPersistence = userPersistence;
609            }
610    
611            /**
612             * Returns the user finder.
613             *
614             * @return the user finder
615             */
616            public UserFinder getUserFinder() {
617                    return userFinder;
618            }
619    
620            /**
621             * Sets the user finder.
622             *
623             * @param userFinder the user finder
624             */
625            public void setUserFinder(UserFinder userFinder) {
626                    this.userFinder = userFinder;
627            }
628    
629            /**
630             * Returns the user group local service.
631             *
632             * @return the user group local service
633             */
634            public com.liferay.portal.kernel.service.UserGroupLocalService getUserGroupLocalService() {
635                    return userGroupLocalService;
636            }
637    
638            /**
639             * Sets the user group local service.
640             *
641             * @param userGroupLocalService the user group local service
642             */
643            public void setUserGroupLocalService(
644                    com.liferay.portal.kernel.service.UserGroupLocalService userGroupLocalService) {
645                    this.userGroupLocalService = userGroupLocalService;
646            }
647    
648            /**
649             * Returns the user group remote service.
650             *
651             * @return the user group remote service
652             */
653            public com.liferay.portal.kernel.service.UserGroupService getUserGroupService() {
654                    return userGroupService;
655            }
656    
657            /**
658             * Sets the user group remote service.
659             *
660             * @param userGroupService the user group remote service
661             */
662            public void setUserGroupService(
663                    com.liferay.portal.kernel.service.UserGroupService userGroupService) {
664                    this.userGroupService = userGroupService;
665            }
666    
667            /**
668             * Returns the user group persistence.
669             *
670             * @return the user group persistence
671             */
672            public UserGroupPersistence getUserGroupPersistence() {
673                    return userGroupPersistence;
674            }
675    
676            /**
677             * Sets the user group persistence.
678             *
679             * @param userGroupPersistence the user group persistence
680             */
681            public void setUserGroupPersistence(
682                    UserGroupPersistence userGroupPersistence) {
683                    this.userGroupPersistence = userGroupPersistence;
684            }
685    
686            /**
687             * Returns the user group finder.
688             *
689             * @return the user group finder
690             */
691            public UserGroupFinder getUserGroupFinder() {
692                    return userGroupFinder;
693            }
694    
695            /**
696             * Sets the user group finder.
697             *
698             * @param userGroupFinder the user group finder
699             */
700            public void setUserGroupFinder(UserGroupFinder userGroupFinder) {
701                    this.userGroupFinder = userGroupFinder;
702            }
703    
704            /**
705             * Returns the announcements delivery local service.
706             *
707             * @return the announcements delivery local service
708             */
709            public com.liferay.announcements.kernel.service.AnnouncementsDeliveryLocalService getAnnouncementsDeliveryLocalService() {
710                    return announcementsDeliveryLocalService;
711            }
712    
713            /**
714             * Sets the announcements delivery local service.
715             *
716             * @param announcementsDeliveryLocalService the announcements delivery local service
717             */
718            public void setAnnouncementsDeliveryLocalService(
719                    com.liferay.announcements.kernel.service.AnnouncementsDeliveryLocalService announcementsDeliveryLocalService) {
720                    this.announcementsDeliveryLocalService = announcementsDeliveryLocalService;
721            }
722    
723            /**
724             * Returns the announcements delivery remote service.
725             *
726             * @return the announcements delivery remote service
727             */
728            public com.liferay.announcements.kernel.service.AnnouncementsDeliveryService getAnnouncementsDeliveryService() {
729                    return announcementsDeliveryService;
730            }
731    
732            /**
733             * Sets the announcements delivery remote service.
734             *
735             * @param announcementsDeliveryService the announcements delivery remote service
736             */
737            public void setAnnouncementsDeliveryService(
738                    com.liferay.announcements.kernel.service.AnnouncementsDeliveryService announcementsDeliveryService) {
739                    this.announcementsDeliveryService = announcementsDeliveryService;
740            }
741    
742            /**
743             * Returns the announcements delivery persistence.
744             *
745             * @return the announcements delivery persistence
746             */
747            public AnnouncementsDeliveryPersistence getAnnouncementsDeliveryPersistence() {
748                    return announcementsDeliveryPersistence;
749            }
750    
751            /**
752             * Sets the announcements delivery persistence.
753             *
754             * @param announcementsDeliveryPersistence the announcements delivery persistence
755             */
756            public void setAnnouncementsDeliveryPersistence(
757                    AnnouncementsDeliveryPersistence announcementsDeliveryPersistence) {
758                    this.announcementsDeliveryPersistence = announcementsDeliveryPersistence;
759            }
760    
761            /**
762             * Returns the announcements flag local service.
763             *
764             * @return the announcements flag local service
765             */
766            public com.liferay.announcements.kernel.service.AnnouncementsFlagLocalService getAnnouncementsFlagLocalService() {
767                    return announcementsFlagLocalService;
768            }
769    
770            /**
771             * Sets the announcements flag local service.
772             *
773             * @param announcementsFlagLocalService the announcements flag local service
774             */
775            public void setAnnouncementsFlagLocalService(
776                    com.liferay.announcements.kernel.service.AnnouncementsFlagLocalService announcementsFlagLocalService) {
777                    this.announcementsFlagLocalService = announcementsFlagLocalService;
778            }
779    
780            /**
781             * Returns the announcements flag remote service.
782             *
783             * @return the announcements flag remote service
784             */
785            public com.liferay.announcements.kernel.service.AnnouncementsFlagService getAnnouncementsFlagService() {
786                    return announcementsFlagService;
787            }
788    
789            /**
790             * Sets the announcements flag remote service.
791             *
792             * @param announcementsFlagService the announcements flag remote service
793             */
794            public void setAnnouncementsFlagService(
795                    com.liferay.announcements.kernel.service.AnnouncementsFlagService announcementsFlagService) {
796                    this.announcementsFlagService = announcementsFlagService;
797            }
798    
799            /**
800             * Returns the announcements flag persistence.
801             *
802             * @return the announcements flag persistence
803             */
804            public AnnouncementsFlagPersistence getAnnouncementsFlagPersistence() {
805                    return announcementsFlagPersistence;
806            }
807    
808            /**
809             * Sets the announcements flag persistence.
810             *
811             * @param announcementsFlagPersistence the announcements flag persistence
812             */
813            public void setAnnouncementsFlagPersistence(
814                    AnnouncementsFlagPersistence announcementsFlagPersistence) {
815                    this.announcementsFlagPersistence = announcementsFlagPersistence;
816            }
817    
818            public void afterPropertiesSet() {
819            }
820    
821            public void destroy() {
822            }
823    
824            /**
825             * Returns the OSGi service identifier.
826             *
827             * @return the OSGi service identifier
828             */
829            @Override
830            public String getOSGiServiceIdentifier() {
831                    return AnnouncementsEntryService.class.getName();
832            }
833    
834            protected Class<?> getModelClass() {
835                    return AnnouncementsEntry.class;
836            }
837    
838            protected String getModelClassName() {
839                    return AnnouncementsEntry.class.getName();
840            }
841    
842            /**
843             * Performs a SQL query.
844             *
845             * @param sql the sql query
846             */
847            protected void runSQL(String sql) {
848                    try {
849                            DataSource dataSource = announcementsEntryPersistence.getDataSource();
850    
851                            DB db = DBManagerUtil.getDB();
852    
853                            sql = db.buildSQL(sql);
854                            sql = PortalUtil.transformSQL(sql);
855    
856                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
857                                            sql, new int[0]);
858    
859                            sqlUpdate.update();
860                    }
861                    catch (Exception e) {
862                            throw new SystemException(e);
863                    }
864            }
865    
866            @BeanReference(type = com.liferay.announcements.kernel.service.AnnouncementsEntryLocalService.class)
867            protected com.liferay.announcements.kernel.service.AnnouncementsEntryLocalService announcementsEntryLocalService;
868            @BeanReference(type = com.liferay.announcements.kernel.service.AnnouncementsEntryService.class)
869            protected AnnouncementsEntryService announcementsEntryService;
870            @BeanReference(type = AnnouncementsEntryPersistence.class)
871            protected AnnouncementsEntryPersistence announcementsEntryPersistence;
872            @BeanReference(type = AnnouncementsEntryFinder.class)
873            protected AnnouncementsEntryFinder announcementsEntryFinder;
874            @BeanReference(type = com.liferay.counter.kernel.service.CounterLocalService.class)
875            protected com.liferay.counter.kernel.service.CounterLocalService counterLocalService;
876            @BeanReference(type = com.liferay.mail.kernel.service.MailService.class)
877            protected com.liferay.mail.kernel.service.MailService mailService;
878            @BeanReference(type = com.liferay.portal.kernel.service.CompanyLocalService.class)
879            protected com.liferay.portal.kernel.service.CompanyLocalService companyLocalService;
880            @BeanReference(type = com.liferay.portal.kernel.service.CompanyService.class)
881            protected com.liferay.portal.kernel.service.CompanyService companyService;
882            @BeanReference(type = CompanyPersistence.class)
883            protected CompanyPersistence companyPersistence;
884            @BeanReference(type = com.liferay.portal.kernel.service.GroupLocalService.class)
885            protected com.liferay.portal.kernel.service.GroupLocalService groupLocalService;
886            @BeanReference(type = com.liferay.portal.kernel.service.GroupService.class)
887            protected com.liferay.portal.kernel.service.GroupService groupService;
888            @BeanReference(type = GroupPersistence.class)
889            protected GroupPersistence groupPersistence;
890            @BeanReference(type = GroupFinder.class)
891            protected GroupFinder groupFinder;
892            @BeanReference(type = com.liferay.portal.kernel.service.OrganizationLocalService.class)
893            protected com.liferay.portal.kernel.service.OrganizationLocalService organizationLocalService;
894            @BeanReference(type = com.liferay.portal.kernel.service.OrganizationService.class)
895            protected com.liferay.portal.kernel.service.OrganizationService organizationService;
896            @BeanReference(type = OrganizationPersistence.class)
897            protected OrganizationPersistence organizationPersistence;
898            @BeanReference(type = OrganizationFinder.class)
899            protected OrganizationFinder organizationFinder;
900            @BeanReference(type = com.liferay.portal.kernel.service.ResourceLocalService.class)
901            protected com.liferay.portal.kernel.service.ResourceLocalService resourceLocalService;
902            @BeanReference(type = com.liferay.portal.kernel.service.RoleLocalService.class)
903            protected com.liferay.portal.kernel.service.RoleLocalService roleLocalService;
904            @BeanReference(type = com.liferay.portal.kernel.service.RoleService.class)
905            protected com.liferay.portal.kernel.service.RoleService roleService;
906            @BeanReference(type = RolePersistence.class)
907            protected RolePersistence rolePersistence;
908            @BeanReference(type = RoleFinder.class)
909            protected RoleFinder roleFinder;
910            @BeanReference(type = com.liferay.portal.kernel.service.TeamLocalService.class)
911            protected com.liferay.portal.kernel.service.TeamLocalService teamLocalService;
912            @BeanReference(type = com.liferay.portal.kernel.service.TeamService.class)
913            protected com.liferay.portal.kernel.service.TeamService teamService;
914            @BeanReference(type = TeamPersistence.class)
915            protected TeamPersistence teamPersistence;
916            @BeanReference(type = TeamFinder.class)
917            protected TeamFinder teamFinder;
918            @BeanReference(type = com.liferay.portal.kernel.service.UserLocalService.class)
919            protected com.liferay.portal.kernel.service.UserLocalService userLocalService;
920            @BeanReference(type = com.liferay.portal.kernel.service.UserService.class)
921            protected com.liferay.portal.kernel.service.UserService userService;
922            @BeanReference(type = UserPersistence.class)
923            protected UserPersistence userPersistence;
924            @BeanReference(type = UserFinder.class)
925            protected UserFinder userFinder;
926            @BeanReference(type = com.liferay.portal.kernel.service.UserGroupLocalService.class)
927            protected com.liferay.portal.kernel.service.UserGroupLocalService userGroupLocalService;
928            @BeanReference(type = com.liferay.portal.kernel.service.UserGroupService.class)
929            protected com.liferay.portal.kernel.service.UserGroupService userGroupService;
930            @BeanReference(type = UserGroupPersistence.class)
931            protected UserGroupPersistence userGroupPersistence;
932            @BeanReference(type = UserGroupFinder.class)
933            protected UserGroupFinder userGroupFinder;
934            @BeanReference(type = com.liferay.announcements.kernel.service.AnnouncementsDeliveryLocalService.class)
935            protected com.liferay.announcements.kernel.service.AnnouncementsDeliveryLocalService announcementsDeliveryLocalService;
936            @BeanReference(type = com.liferay.announcements.kernel.service.AnnouncementsDeliveryService.class)
937            protected com.liferay.announcements.kernel.service.AnnouncementsDeliveryService announcementsDeliveryService;
938            @BeanReference(type = AnnouncementsDeliveryPersistence.class)
939            protected AnnouncementsDeliveryPersistence announcementsDeliveryPersistence;
940            @BeanReference(type = com.liferay.announcements.kernel.service.AnnouncementsFlagLocalService.class)
941            protected com.liferay.announcements.kernel.service.AnnouncementsFlagLocalService announcementsFlagLocalService;
942            @BeanReference(type = com.liferay.announcements.kernel.service.AnnouncementsFlagService.class)
943            protected com.liferay.announcements.kernel.service.AnnouncementsFlagService announcementsFlagService;
944            @BeanReference(type = AnnouncementsFlagPersistence.class)
945            protected AnnouncementsFlagPersistence announcementsFlagPersistence;
946    }