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.journal.service.base;
016    
017    import com.liferay.portal.kernel.bean.BeanReference;
018    import com.liferay.portal.kernel.bean.IdentifiableBean;
019    import com.liferay.portal.kernel.dao.db.DB;
020    import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
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.persistence.ClassNamePersistence;
026    import com.liferay.portal.service.persistence.GroupFinder;
027    import com.liferay.portal.service.persistence.GroupPersistence;
028    import com.liferay.portal.service.persistence.SubscriptionPersistence;
029    import com.liferay.portal.service.persistence.UserFinder;
030    import com.liferay.portal.service.persistence.UserPersistence;
031    import com.liferay.portal.service.persistence.WorkflowDefinitionLinkPersistence;
032    import com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence;
033    import com.liferay.portal.util.PortalUtil;
034    
035    import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
036    import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
037    import com.liferay.portlet.asset.service.persistence.AssetLinkPersistence;
038    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureFinder;
039    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence;
040    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructurePersistence;
041    import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
042    import com.liferay.portlet.journal.model.JournalFolder;
043    import com.liferay.portlet.journal.service.JournalFolderService;
044    import com.liferay.portlet.journal.service.persistence.JournalArticleFinder;
045    import com.liferay.portlet.journal.service.persistence.JournalArticlePersistence;
046    import com.liferay.portlet.journal.service.persistence.JournalFolderFinder;
047    import com.liferay.portlet.journal.service.persistence.JournalFolderPersistence;
048    import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
049    import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
050    import com.liferay.portlet.trash.service.persistence.TrashEntryPersistence;
051    import com.liferay.portlet.trash.service.persistence.TrashVersionPersistence;
052    
053    import javax.sql.DataSource;
054    
055    /**
056     * Provides the base implementation for the journal folder remote service.
057     *
058     * <p>
059     * 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.journal.service.impl.JournalFolderServiceImpl}.
060     * </p>
061     *
062     * @author Brian Wing Shun Chan
063     * @see com.liferay.portlet.journal.service.impl.JournalFolderServiceImpl
064     * @see com.liferay.portlet.journal.service.JournalFolderServiceUtil
065     * @generated
066     */
067    public abstract class JournalFolderServiceBaseImpl extends BaseServiceImpl
068            implements JournalFolderService, IdentifiableBean {
069            /*
070             * NOTE FOR DEVELOPERS:
071             *
072             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.journal.service.JournalFolderServiceUtil} to access the journal folder remote service.
073             */
074    
075            /**
076             * Returns the journal folder local service.
077             *
078             * @return the journal folder local service
079             */
080            public com.liferay.portlet.journal.service.JournalFolderLocalService getJournalFolderLocalService() {
081                    return journalFolderLocalService;
082            }
083    
084            /**
085             * Sets the journal folder local service.
086             *
087             * @param journalFolderLocalService the journal folder local service
088             */
089            public void setJournalFolderLocalService(
090                    com.liferay.portlet.journal.service.JournalFolderLocalService journalFolderLocalService) {
091                    this.journalFolderLocalService = journalFolderLocalService;
092            }
093    
094            /**
095             * Returns the journal folder remote service.
096             *
097             * @return the journal folder remote service
098             */
099            public JournalFolderService getJournalFolderService() {
100                    return journalFolderService;
101            }
102    
103            /**
104             * Sets the journal folder remote service.
105             *
106             * @param journalFolderService the journal folder remote service
107             */
108            public void setJournalFolderService(
109                    JournalFolderService journalFolderService) {
110                    this.journalFolderService = journalFolderService;
111            }
112    
113            /**
114             * Returns the journal folder persistence.
115             *
116             * @return the journal folder persistence
117             */
118            public JournalFolderPersistence getJournalFolderPersistence() {
119                    return journalFolderPersistence;
120            }
121    
122            /**
123             * Sets the journal folder persistence.
124             *
125             * @param journalFolderPersistence the journal folder persistence
126             */
127            public void setJournalFolderPersistence(
128                    JournalFolderPersistence journalFolderPersistence) {
129                    this.journalFolderPersistence = journalFolderPersistence;
130            }
131    
132            /**
133             * Returns the journal folder finder.
134             *
135             * @return the journal folder finder
136             */
137            public JournalFolderFinder getJournalFolderFinder() {
138                    return journalFolderFinder;
139            }
140    
141            /**
142             * Sets the journal folder finder.
143             *
144             * @param journalFolderFinder the journal folder finder
145             */
146            public void setJournalFolderFinder(JournalFolderFinder journalFolderFinder) {
147                    this.journalFolderFinder = journalFolderFinder;
148            }
149    
150            /**
151             * Returns the counter local service.
152             *
153             * @return the counter local service
154             */
155            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
156                    return counterLocalService;
157            }
158    
159            /**
160             * Sets the counter local service.
161             *
162             * @param counterLocalService the counter local service
163             */
164            public void setCounterLocalService(
165                    com.liferay.counter.service.CounterLocalService counterLocalService) {
166                    this.counterLocalService = counterLocalService;
167            }
168    
169            /**
170             * Returns the class name local service.
171             *
172             * @return the class name local service
173             */
174            public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
175                    return classNameLocalService;
176            }
177    
178            /**
179             * Sets the class name local service.
180             *
181             * @param classNameLocalService the class name local service
182             */
183            public void setClassNameLocalService(
184                    com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
185                    this.classNameLocalService = classNameLocalService;
186            }
187    
188            /**
189             * Returns the class name remote service.
190             *
191             * @return the class name remote service
192             */
193            public com.liferay.portal.service.ClassNameService getClassNameService() {
194                    return classNameService;
195            }
196    
197            /**
198             * Sets the class name remote service.
199             *
200             * @param classNameService the class name remote service
201             */
202            public void setClassNameService(
203                    com.liferay.portal.service.ClassNameService classNameService) {
204                    this.classNameService = classNameService;
205            }
206    
207            /**
208             * Returns the class name persistence.
209             *
210             * @return the class name persistence
211             */
212            public ClassNamePersistence getClassNamePersistence() {
213                    return classNamePersistence;
214            }
215    
216            /**
217             * Sets the class name persistence.
218             *
219             * @param classNamePersistence the class name persistence
220             */
221            public void setClassNamePersistence(
222                    ClassNamePersistence classNamePersistence) {
223                    this.classNamePersistence = classNamePersistence;
224            }
225    
226            /**
227             * Returns the group local service.
228             *
229             * @return the group local service
230             */
231            public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
232                    return groupLocalService;
233            }
234    
235            /**
236             * Sets the group local service.
237             *
238             * @param groupLocalService the group local service
239             */
240            public void setGroupLocalService(
241                    com.liferay.portal.service.GroupLocalService groupLocalService) {
242                    this.groupLocalService = groupLocalService;
243            }
244    
245            /**
246             * Returns the group remote service.
247             *
248             * @return the group remote service
249             */
250            public com.liferay.portal.service.GroupService getGroupService() {
251                    return groupService;
252            }
253    
254            /**
255             * Sets the group remote service.
256             *
257             * @param groupService the group remote service
258             */
259            public void setGroupService(
260                    com.liferay.portal.service.GroupService groupService) {
261                    this.groupService = groupService;
262            }
263    
264            /**
265             * Returns the group persistence.
266             *
267             * @return the group persistence
268             */
269            public GroupPersistence getGroupPersistence() {
270                    return groupPersistence;
271            }
272    
273            /**
274             * Sets the group persistence.
275             *
276             * @param groupPersistence the group persistence
277             */
278            public void setGroupPersistence(GroupPersistence groupPersistence) {
279                    this.groupPersistence = groupPersistence;
280            }
281    
282            /**
283             * Returns the group finder.
284             *
285             * @return the group finder
286             */
287            public GroupFinder getGroupFinder() {
288                    return groupFinder;
289            }
290    
291            /**
292             * Sets the group finder.
293             *
294             * @param groupFinder the group finder
295             */
296            public void setGroupFinder(GroupFinder groupFinder) {
297                    this.groupFinder = groupFinder;
298            }
299    
300            /**
301             * Returns the resource local service.
302             *
303             * @return the resource local service
304             */
305            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
306                    return resourceLocalService;
307            }
308    
309            /**
310             * Sets the resource local service.
311             *
312             * @param resourceLocalService the resource local service
313             */
314            public void setResourceLocalService(
315                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
316                    this.resourceLocalService = resourceLocalService;
317            }
318    
319            /**
320             * Returns the subscription local service.
321             *
322             * @return the subscription local service
323             */
324            public com.liferay.portal.service.SubscriptionLocalService getSubscriptionLocalService() {
325                    return subscriptionLocalService;
326            }
327    
328            /**
329             * Sets the subscription local service.
330             *
331             * @param subscriptionLocalService the subscription local service
332             */
333            public void setSubscriptionLocalService(
334                    com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService) {
335                    this.subscriptionLocalService = subscriptionLocalService;
336            }
337    
338            /**
339             * Returns the subscription persistence.
340             *
341             * @return the subscription persistence
342             */
343            public SubscriptionPersistence getSubscriptionPersistence() {
344                    return subscriptionPersistence;
345            }
346    
347            /**
348             * Sets the subscription persistence.
349             *
350             * @param subscriptionPersistence the subscription persistence
351             */
352            public void setSubscriptionPersistence(
353                    SubscriptionPersistence subscriptionPersistence) {
354                    this.subscriptionPersistence = subscriptionPersistence;
355            }
356    
357            /**
358             * Returns the user local service.
359             *
360             * @return the user local service
361             */
362            public com.liferay.portal.service.UserLocalService getUserLocalService() {
363                    return userLocalService;
364            }
365    
366            /**
367             * Sets the user local service.
368             *
369             * @param userLocalService the user local service
370             */
371            public void setUserLocalService(
372                    com.liferay.portal.service.UserLocalService userLocalService) {
373                    this.userLocalService = userLocalService;
374            }
375    
376            /**
377             * Returns the user remote service.
378             *
379             * @return the user remote service
380             */
381            public com.liferay.portal.service.UserService getUserService() {
382                    return userService;
383            }
384    
385            /**
386             * Sets the user remote service.
387             *
388             * @param userService the user remote service
389             */
390            public void setUserService(
391                    com.liferay.portal.service.UserService userService) {
392                    this.userService = userService;
393            }
394    
395            /**
396             * Returns the user persistence.
397             *
398             * @return the user persistence
399             */
400            public UserPersistence getUserPersistence() {
401                    return userPersistence;
402            }
403    
404            /**
405             * Sets the user persistence.
406             *
407             * @param userPersistence the user persistence
408             */
409            public void setUserPersistence(UserPersistence userPersistence) {
410                    this.userPersistence = userPersistence;
411            }
412    
413            /**
414             * Returns the user finder.
415             *
416             * @return the user finder
417             */
418            public UserFinder getUserFinder() {
419                    return userFinder;
420            }
421    
422            /**
423             * Sets the user finder.
424             *
425             * @param userFinder the user finder
426             */
427            public void setUserFinder(UserFinder userFinder) {
428                    this.userFinder = userFinder;
429            }
430    
431            /**
432             * Returns the workflow definition link local service.
433             *
434             * @return the workflow definition link local service
435             */
436            public com.liferay.portal.service.WorkflowDefinitionLinkLocalService getWorkflowDefinitionLinkLocalService() {
437                    return workflowDefinitionLinkLocalService;
438            }
439    
440            /**
441             * Sets the workflow definition link local service.
442             *
443             * @param workflowDefinitionLinkLocalService the workflow definition link local service
444             */
445            public void setWorkflowDefinitionLinkLocalService(
446                    com.liferay.portal.service.WorkflowDefinitionLinkLocalService workflowDefinitionLinkLocalService) {
447                    this.workflowDefinitionLinkLocalService = workflowDefinitionLinkLocalService;
448            }
449    
450            /**
451             * Returns the workflow definition link persistence.
452             *
453             * @return the workflow definition link persistence
454             */
455            public WorkflowDefinitionLinkPersistence getWorkflowDefinitionLinkPersistence() {
456                    return workflowDefinitionLinkPersistence;
457            }
458    
459            /**
460             * Sets the workflow definition link persistence.
461             *
462             * @param workflowDefinitionLinkPersistence the workflow definition link persistence
463             */
464            public void setWorkflowDefinitionLinkPersistence(
465                    WorkflowDefinitionLinkPersistence workflowDefinitionLinkPersistence) {
466                    this.workflowDefinitionLinkPersistence = workflowDefinitionLinkPersistence;
467            }
468    
469            /**
470             * Returns the workflow instance link local service.
471             *
472             * @return the workflow instance link local service
473             */
474            public com.liferay.portal.service.WorkflowInstanceLinkLocalService getWorkflowInstanceLinkLocalService() {
475                    return workflowInstanceLinkLocalService;
476            }
477    
478            /**
479             * Sets the workflow instance link local service.
480             *
481             * @param workflowInstanceLinkLocalService the workflow instance link local service
482             */
483            public void setWorkflowInstanceLinkLocalService(
484                    com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
485                    this.workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
486            }
487    
488            /**
489             * Returns the workflow instance link persistence.
490             *
491             * @return the workflow instance link persistence
492             */
493            public WorkflowInstanceLinkPersistence getWorkflowInstanceLinkPersistence() {
494                    return workflowInstanceLinkPersistence;
495            }
496    
497            /**
498             * Sets the workflow instance link persistence.
499             *
500             * @param workflowInstanceLinkPersistence the workflow instance link persistence
501             */
502            public void setWorkflowInstanceLinkPersistence(
503                    WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence) {
504                    this.workflowInstanceLinkPersistence = workflowInstanceLinkPersistence;
505            }
506    
507            /**
508             * Returns the asset entry local service.
509             *
510             * @return the asset entry local service
511             */
512            public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
513                    return assetEntryLocalService;
514            }
515    
516            /**
517             * Sets the asset entry local service.
518             *
519             * @param assetEntryLocalService the asset entry local service
520             */
521            public void setAssetEntryLocalService(
522                    com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
523                    this.assetEntryLocalService = assetEntryLocalService;
524            }
525    
526            /**
527             * Returns the asset entry remote service.
528             *
529             * @return the asset entry remote service
530             */
531            public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
532                    return assetEntryService;
533            }
534    
535            /**
536             * Sets the asset entry remote service.
537             *
538             * @param assetEntryService the asset entry remote service
539             */
540            public void setAssetEntryService(
541                    com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
542                    this.assetEntryService = assetEntryService;
543            }
544    
545            /**
546             * Returns the asset entry persistence.
547             *
548             * @return the asset entry persistence
549             */
550            public AssetEntryPersistence getAssetEntryPersistence() {
551                    return assetEntryPersistence;
552            }
553    
554            /**
555             * Sets the asset entry persistence.
556             *
557             * @param assetEntryPersistence the asset entry persistence
558             */
559            public void setAssetEntryPersistence(
560                    AssetEntryPersistence assetEntryPersistence) {
561                    this.assetEntryPersistence = assetEntryPersistence;
562            }
563    
564            /**
565             * Returns the asset entry finder.
566             *
567             * @return the asset entry finder
568             */
569            public AssetEntryFinder getAssetEntryFinder() {
570                    return assetEntryFinder;
571            }
572    
573            /**
574             * Sets the asset entry finder.
575             *
576             * @param assetEntryFinder the asset entry finder
577             */
578            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
579                    this.assetEntryFinder = assetEntryFinder;
580            }
581    
582            /**
583             * Returns the asset link local service.
584             *
585             * @return the asset link local service
586             */
587            public com.liferay.portlet.asset.service.AssetLinkLocalService getAssetLinkLocalService() {
588                    return assetLinkLocalService;
589            }
590    
591            /**
592             * Sets the asset link local service.
593             *
594             * @param assetLinkLocalService the asset link local service
595             */
596            public void setAssetLinkLocalService(
597                    com.liferay.portlet.asset.service.AssetLinkLocalService assetLinkLocalService) {
598                    this.assetLinkLocalService = assetLinkLocalService;
599            }
600    
601            /**
602             * Returns the asset link persistence.
603             *
604             * @return the asset link persistence
605             */
606            public AssetLinkPersistence getAssetLinkPersistence() {
607                    return assetLinkPersistence;
608            }
609    
610            /**
611             * Sets the asset link persistence.
612             *
613             * @param assetLinkPersistence the asset link persistence
614             */
615            public void setAssetLinkPersistence(
616                    AssetLinkPersistence assetLinkPersistence) {
617                    this.assetLinkPersistence = assetLinkPersistence;
618            }
619    
620            /**
621             * Returns the d d m structure local service.
622             *
623             * @return the d d m structure local service
624             */
625            public com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService getDDMStructureLocalService() {
626                    return ddmStructureLocalService;
627            }
628    
629            /**
630             * Sets the d d m structure local service.
631             *
632             * @param ddmStructureLocalService the d d m structure local service
633             */
634            public void setDDMStructureLocalService(
635                    com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService ddmStructureLocalService) {
636                    this.ddmStructureLocalService = ddmStructureLocalService;
637            }
638    
639            /**
640             * Returns the d d m structure remote service.
641             *
642             * @return the d d m structure remote service
643             */
644            public com.liferay.portlet.dynamicdatamapping.service.DDMStructureService getDDMStructureService() {
645                    return ddmStructureService;
646            }
647    
648            /**
649             * Sets the d d m structure remote service.
650             *
651             * @param ddmStructureService the d d m structure remote service
652             */
653            public void setDDMStructureService(
654                    com.liferay.portlet.dynamicdatamapping.service.DDMStructureService ddmStructureService) {
655                    this.ddmStructureService = ddmStructureService;
656            }
657    
658            /**
659             * Returns the d d m structure persistence.
660             *
661             * @return the d d m structure persistence
662             */
663            public DDMStructurePersistence getDDMStructurePersistence() {
664                    return ddmStructurePersistence;
665            }
666    
667            /**
668             * Sets the d d m structure persistence.
669             *
670             * @param ddmStructurePersistence the d d m structure persistence
671             */
672            public void setDDMStructurePersistence(
673                    DDMStructurePersistence ddmStructurePersistence) {
674                    this.ddmStructurePersistence = ddmStructurePersistence;
675            }
676    
677            /**
678             * Returns the d d m structure finder.
679             *
680             * @return the d d m structure finder
681             */
682            public DDMStructureFinder getDDMStructureFinder() {
683                    return ddmStructureFinder;
684            }
685    
686            /**
687             * Sets the d d m structure finder.
688             *
689             * @param ddmStructureFinder the d d m structure finder
690             */
691            public void setDDMStructureFinder(DDMStructureFinder ddmStructureFinder) {
692                    this.ddmStructureFinder = ddmStructureFinder;
693            }
694    
695            /**
696             * Returns the d d m structure link local service.
697             *
698             * @return the d d m structure link local service
699             */
700            public com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService getDDMStructureLinkLocalService() {
701                    return ddmStructureLinkLocalService;
702            }
703    
704            /**
705             * Sets the d d m structure link local service.
706             *
707             * @param ddmStructureLinkLocalService the d d m structure link local service
708             */
709            public void setDDMStructureLinkLocalService(
710                    com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService ddmStructureLinkLocalService) {
711                    this.ddmStructureLinkLocalService = ddmStructureLinkLocalService;
712            }
713    
714            /**
715             * Returns the d d m structure link persistence.
716             *
717             * @return the d d m structure link persistence
718             */
719            public DDMStructureLinkPersistence getDDMStructureLinkPersistence() {
720                    return ddmStructureLinkPersistence;
721            }
722    
723            /**
724             * Sets the d d m structure link persistence.
725             *
726             * @param ddmStructureLinkPersistence the d d m structure link persistence
727             */
728            public void setDDMStructureLinkPersistence(
729                    DDMStructureLinkPersistence ddmStructureLinkPersistence) {
730                    this.ddmStructureLinkPersistence = ddmStructureLinkPersistence;
731            }
732    
733            /**
734             * Returns the expando value local service.
735             *
736             * @return the expando value local service
737             */
738            public com.liferay.portlet.expando.service.ExpandoValueLocalService getExpandoValueLocalService() {
739                    return expandoValueLocalService;
740            }
741    
742            /**
743             * Sets the expando value local service.
744             *
745             * @param expandoValueLocalService the expando value local service
746             */
747            public void setExpandoValueLocalService(
748                    com.liferay.portlet.expando.service.ExpandoValueLocalService expandoValueLocalService) {
749                    this.expandoValueLocalService = expandoValueLocalService;
750            }
751    
752            /**
753             * Returns the expando value remote service.
754             *
755             * @return the expando value remote service
756             */
757            public com.liferay.portlet.expando.service.ExpandoValueService getExpandoValueService() {
758                    return expandoValueService;
759            }
760    
761            /**
762             * Sets the expando value remote service.
763             *
764             * @param expandoValueService the expando value remote service
765             */
766            public void setExpandoValueService(
767                    com.liferay.portlet.expando.service.ExpandoValueService expandoValueService) {
768                    this.expandoValueService = expandoValueService;
769            }
770    
771            /**
772             * Returns the expando value persistence.
773             *
774             * @return the expando value persistence
775             */
776            public ExpandoValuePersistence getExpandoValuePersistence() {
777                    return expandoValuePersistence;
778            }
779    
780            /**
781             * Sets the expando value persistence.
782             *
783             * @param expandoValuePersistence the expando value persistence
784             */
785            public void setExpandoValuePersistence(
786                    ExpandoValuePersistence expandoValuePersistence) {
787                    this.expandoValuePersistence = expandoValuePersistence;
788            }
789    
790            /**
791             * Returns the journal article local service.
792             *
793             * @return the journal article local service
794             */
795            public com.liferay.portlet.journal.service.JournalArticleLocalService getJournalArticleLocalService() {
796                    return journalArticleLocalService;
797            }
798    
799            /**
800             * Sets the journal article local service.
801             *
802             * @param journalArticleLocalService the journal article local service
803             */
804            public void setJournalArticleLocalService(
805                    com.liferay.portlet.journal.service.JournalArticleLocalService journalArticleLocalService) {
806                    this.journalArticleLocalService = journalArticleLocalService;
807            }
808    
809            /**
810             * Returns the journal article remote service.
811             *
812             * @return the journal article remote service
813             */
814            public com.liferay.portlet.journal.service.JournalArticleService getJournalArticleService() {
815                    return journalArticleService;
816            }
817    
818            /**
819             * Sets the journal article remote service.
820             *
821             * @param journalArticleService the journal article remote service
822             */
823            public void setJournalArticleService(
824                    com.liferay.portlet.journal.service.JournalArticleService journalArticleService) {
825                    this.journalArticleService = journalArticleService;
826            }
827    
828            /**
829             * Returns the journal article persistence.
830             *
831             * @return the journal article persistence
832             */
833            public JournalArticlePersistence getJournalArticlePersistence() {
834                    return journalArticlePersistence;
835            }
836    
837            /**
838             * Sets the journal article persistence.
839             *
840             * @param journalArticlePersistence the journal article persistence
841             */
842            public void setJournalArticlePersistence(
843                    JournalArticlePersistence journalArticlePersistence) {
844                    this.journalArticlePersistence = journalArticlePersistence;
845            }
846    
847            /**
848             * Returns the journal article finder.
849             *
850             * @return the journal article finder
851             */
852            public JournalArticleFinder getJournalArticleFinder() {
853                    return journalArticleFinder;
854            }
855    
856            /**
857             * Sets the journal article finder.
858             *
859             * @param journalArticleFinder the journal article finder
860             */
861            public void setJournalArticleFinder(
862                    JournalArticleFinder journalArticleFinder) {
863                    this.journalArticleFinder = journalArticleFinder;
864            }
865    
866            /**
867             * Returns the social activity local service.
868             *
869             * @return the social activity local service
870             */
871            public com.liferay.portlet.social.service.SocialActivityLocalService getSocialActivityLocalService() {
872                    return socialActivityLocalService;
873            }
874    
875            /**
876             * Sets the social activity local service.
877             *
878             * @param socialActivityLocalService the social activity local service
879             */
880            public void setSocialActivityLocalService(
881                    com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService) {
882                    this.socialActivityLocalService = socialActivityLocalService;
883            }
884    
885            /**
886             * Returns the social activity remote service.
887             *
888             * @return the social activity remote service
889             */
890            public com.liferay.portlet.social.service.SocialActivityService getSocialActivityService() {
891                    return socialActivityService;
892            }
893    
894            /**
895             * Sets the social activity remote service.
896             *
897             * @param socialActivityService the social activity remote service
898             */
899            public void setSocialActivityService(
900                    com.liferay.portlet.social.service.SocialActivityService socialActivityService) {
901                    this.socialActivityService = socialActivityService;
902            }
903    
904            /**
905             * Returns the social activity persistence.
906             *
907             * @return the social activity persistence
908             */
909            public SocialActivityPersistence getSocialActivityPersistence() {
910                    return socialActivityPersistence;
911            }
912    
913            /**
914             * Sets the social activity persistence.
915             *
916             * @param socialActivityPersistence the social activity persistence
917             */
918            public void setSocialActivityPersistence(
919                    SocialActivityPersistence socialActivityPersistence) {
920                    this.socialActivityPersistence = socialActivityPersistence;
921            }
922    
923            /**
924             * Returns the social activity finder.
925             *
926             * @return the social activity finder
927             */
928            public SocialActivityFinder getSocialActivityFinder() {
929                    return socialActivityFinder;
930            }
931    
932            /**
933             * Sets the social activity finder.
934             *
935             * @param socialActivityFinder the social activity finder
936             */
937            public void setSocialActivityFinder(
938                    SocialActivityFinder socialActivityFinder) {
939                    this.socialActivityFinder = socialActivityFinder;
940            }
941    
942            /**
943             * Returns the trash entry local service.
944             *
945             * @return the trash entry local service
946             */
947            public com.liferay.portlet.trash.service.TrashEntryLocalService getTrashEntryLocalService() {
948                    return trashEntryLocalService;
949            }
950    
951            /**
952             * Sets the trash entry local service.
953             *
954             * @param trashEntryLocalService the trash entry local service
955             */
956            public void setTrashEntryLocalService(
957                    com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService) {
958                    this.trashEntryLocalService = trashEntryLocalService;
959            }
960    
961            /**
962             * Returns the trash entry remote service.
963             *
964             * @return the trash entry remote service
965             */
966            public com.liferay.portlet.trash.service.TrashEntryService getTrashEntryService() {
967                    return trashEntryService;
968            }
969    
970            /**
971             * Sets the trash entry remote service.
972             *
973             * @param trashEntryService the trash entry remote service
974             */
975            public void setTrashEntryService(
976                    com.liferay.portlet.trash.service.TrashEntryService trashEntryService) {
977                    this.trashEntryService = trashEntryService;
978            }
979    
980            /**
981             * Returns the trash entry persistence.
982             *
983             * @return the trash entry persistence
984             */
985            public TrashEntryPersistence getTrashEntryPersistence() {
986                    return trashEntryPersistence;
987            }
988    
989            /**
990             * Sets the trash entry persistence.
991             *
992             * @param trashEntryPersistence the trash entry persistence
993             */
994            public void setTrashEntryPersistence(
995                    TrashEntryPersistence trashEntryPersistence) {
996                    this.trashEntryPersistence = trashEntryPersistence;
997            }
998    
999            /**
1000             * Returns the trash version local service.
1001             *
1002             * @return the trash version local service
1003             */
1004            public com.liferay.portlet.trash.service.TrashVersionLocalService getTrashVersionLocalService() {
1005                    return trashVersionLocalService;
1006            }
1007    
1008            /**
1009             * Sets the trash version local service.
1010             *
1011             * @param trashVersionLocalService the trash version local service
1012             */
1013            public void setTrashVersionLocalService(
1014                    com.liferay.portlet.trash.service.TrashVersionLocalService trashVersionLocalService) {
1015                    this.trashVersionLocalService = trashVersionLocalService;
1016            }
1017    
1018            /**
1019             * Returns the trash version persistence.
1020             *
1021             * @return the trash version persistence
1022             */
1023            public TrashVersionPersistence getTrashVersionPersistence() {
1024                    return trashVersionPersistence;
1025            }
1026    
1027            /**
1028             * Sets the trash version persistence.
1029             *
1030             * @param trashVersionPersistence the trash version persistence
1031             */
1032            public void setTrashVersionPersistence(
1033                    TrashVersionPersistence trashVersionPersistence) {
1034                    this.trashVersionPersistence = trashVersionPersistence;
1035            }
1036    
1037            public void afterPropertiesSet() {
1038            }
1039    
1040            public void destroy() {
1041            }
1042    
1043            /**
1044             * Returns the Spring bean ID for this bean.
1045             *
1046             * @return the Spring bean ID for this bean
1047             */
1048            @Override
1049            public String getBeanIdentifier() {
1050                    return _beanIdentifier;
1051            }
1052    
1053            /**
1054             * Sets the Spring bean ID for this bean.
1055             *
1056             * @param beanIdentifier the Spring bean ID for this bean
1057             */
1058            @Override
1059            public void setBeanIdentifier(String beanIdentifier) {
1060                    _beanIdentifier = beanIdentifier;
1061            }
1062    
1063            protected Class<?> getModelClass() {
1064                    return JournalFolder.class;
1065            }
1066    
1067            protected String getModelClassName() {
1068                    return JournalFolder.class.getName();
1069            }
1070    
1071            /**
1072             * Performs a SQL query.
1073             *
1074             * @param sql the sql query
1075             */
1076            protected void runSQL(String sql) {
1077                    try {
1078                            DataSource dataSource = journalFolderPersistence.getDataSource();
1079    
1080                            DB db = DBFactoryUtil.getDB();
1081    
1082                            sql = db.buildSQL(sql);
1083                            sql = PortalUtil.transformSQL(sql);
1084    
1085                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1086                                            sql, new int[0]);
1087    
1088                            sqlUpdate.update();
1089                    }
1090                    catch (Exception e) {
1091                            throw new SystemException(e);
1092                    }
1093            }
1094    
1095            @BeanReference(type = com.liferay.portlet.journal.service.JournalFolderLocalService.class)
1096            protected com.liferay.portlet.journal.service.JournalFolderLocalService journalFolderLocalService;
1097            @BeanReference(type = JournalFolderService.class)
1098            protected JournalFolderService journalFolderService;
1099            @BeanReference(type = JournalFolderPersistence.class)
1100            protected JournalFolderPersistence journalFolderPersistence;
1101            @BeanReference(type = JournalFolderFinder.class)
1102            protected JournalFolderFinder journalFolderFinder;
1103            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1104            protected com.liferay.counter.service.CounterLocalService counterLocalService;
1105            @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
1106            protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
1107            @BeanReference(type = com.liferay.portal.service.ClassNameService.class)
1108            protected com.liferay.portal.service.ClassNameService classNameService;
1109            @BeanReference(type = ClassNamePersistence.class)
1110            protected ClassNamePersistence classNamePersistence;
1111            @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1112            protected com.liferay.portal.service.GroupLocalService groupLocalService;
1113            @BeanReference(type = com.liferay.portal.service.GroupService.class)
1114            protected com.liferay.portal.service.GroupService groupService;
1115            @BeanReference(type = GroupPersistence.class)
1116            protected GroupPersistence groupPersistence;
1117            @BeanReference(type = GroupFinder.class)
1118            protected GroupFinder groupFinder;
1119            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1120            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1121            @BeanReference(type = com.liferay.portal.service.SubscriptionLocalService.class)
1122            protected com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService;
1123            @BeanReference(type = SubscriptionPersistence.class)
1124            protected SubscriptionPersistence subscriptionPersistence;
1125            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1126            protected com.liferay.portal.service.UserLocalService userLocalService;
1127            @BeanReference(type = com.liferay.portal.service.UserService.class)
1128            protected com.liferay.portal.service.UserService userService;
1129            @BeanReference(type = UserPersistence.class)
1130            protected UserPersistence userPersistence;
1131            @BeanReference(type = UserFinder.class)
1132            protected UserFinder userFinder;
1133            @BeanReference(type = com.liferay.portal.service.WorkflowDefinitionLinkLocalService.class)
1134            protected com.liferay.portal.service.WorkflowDefinitionLinkLocalService workflowDefinitionLinkLocalService;
1135            @BeanReference(type = WorkflowDefinitionLinkPersistence.class)
1136            protected WorkflowDefinitionLinkPersistence workflowDefinitionLinkPersistence;
1137            @BeanReference(type = com.liferay.portal.service.WorkflowInstanceLinkLocalService.class)
1138            protected com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService;
1139            @BeanReference(type = WorkflowInstanceLinkPersistence.class)
1140            protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
1141            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
1142            protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
1143            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
1144            protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
1145            @BeanReference(type = AssetEntryPersistence.class)
1146            protected AssetEntryPersistence assetEntryPersistence;
1147            @BeanReference(type = AssetEntryFinder.class)
1148            protected AssetEntryFinder assetEntryFinder;
1149            @BeanReference(type = com.liferay.portlet.asset.service.AssetLinkLocalService.class)
1150            protected com.liferay.portlet.asset.service.AssetLinkLocalService assetLinkLocalService;
1151            @BeanReference(type = AssetLinkPersistence.class)
1152            protected AssetLinkPersistence assetLinkPersistence;
1153            @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService.class)
1154            protected com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService ddmStructureLocalService;
1155            @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMStructureService.class)
1156            protected com.liferay.portlet.dynamicdatamapping.service.DDMStructureService ddmStructureService;
1157            @BeanReference(type = DDMStructurePersistence.class)
1158            protected DDMStructurePersistence ddmStructurePersistence;
1159            @BeanReference(type = DDMStructureFinder.class)
1160            protected DDMStructureFinder ddmStructureFinder;
1161            @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService.class)
1162            protected com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService ddmStructureLinkLocalService;
1163            @BeanReference(type = DDMStructureLinkPersistence.class)
1164            protected DDMStructureLinkPersistence ddmStructureLinkPersistence;
1165            @BeanReference(type = com.liferay.portlet.expando.service.ExpandoValueLocalService.class)
1166            protected com.liferay.portlet.expando.service.ExpandoValueLocalService expandoValueLocalService;
1167            @BeanReference(type = com.liferay.portlet.expando.service.ExpandoValueService.class)
1168            protected com.liferay.portlet.expando.service.ExpandoValueService expandoValueService;
1169            @BeanReference(type = ExpandoValuePersistence.class)
1170            protected ExpandoValuePersistence expandoValuePersistence;
1171            @BeanReference(type = com.liferay.portlet.journal.service.JournalArticleLocalService.class)
1172            protected com.liferay.portlet.journal.service.JournalArticleLocalService journalArticleLocalService;
1173            @BeanReference(type = com.liferay.portlet.journal.service.JournalArticleService.class)
1174            protected com.liferay.portlet.journal.service.JournalArticleService journalArticleService;
1175            @BeanReference(type = JournalArticlePersistence.class)
1176            protected JournalArticlePersistence journalArticlePersistence;
1177            @BeanReference(type = JournalArticleFinder.class)
1178            protected JournalArticleFinder journalArticleFinder;
1179            @BeanReference(type = com.liferay.portlet.social.service.SocialActivityLocalService.class)
1180            protected com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService;
1181            @BeanReference(type = com.liferay.portlet.social.service.SocialActivityService.class)
1182            protected com.liferay.portlet.social.service.SocialActivityService socialActivityService;
1183            @BeanReference(type = SocialActivityPersistence.class)
1184            protected SocialActivityPersistence socialActivityPersistence;
1185            @BeanReference(type = SocialActivityFinder.class)
1186            protected SocialActivityFinder socialActivityFinder;
1187            @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryLocalService.class)
1188            protected com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService;
1189            @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryService.class)
1190            protected com.liferay.portlet.trash.service.TrashEntryService trashEntryService;
1191            @BeanReference(type = TrashEntryPersistence.class)
1192            protected TrashEntryPersistence trashEntryPersistence;
1193            @BeanReference(type = com.liferay.portlet.trash.service.TrashVersionLocalService.class)
1194            protected com.liferay.portlet.trash.service.TrashVersionLocalService trashVersionLocalService;
1195            @BeanReference(type = TrashVersionPersistence.class)
1196            protected TrashVersionPersistence trashVersionPersistence;
1197            private String _beanIdentifier;
1198    }