001    /**
002     * Copyright (c) 2000-2010 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.counter.service.CounterLocalService;
018    
019    import com.liferay.portal.kernel.annotation.BeanReference;
020    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
021    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
022    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
023    import com.liferay.portal.kernel.exception.PortalException;
024    import com.liferay.portal.kernel.exception.SystemException;
025    import com.liferay.portal.kernel.util.OrderByComparator;
026    import com.liferay.portal.service.ResourceLocalService;
027    import com.liferay.portal.service.ResourceService;
028    import com.liferay.portal.service.UserLocalService;
029    import com.liferay.portal.service.UserService;
030    import com.liferay.portal.service.persistence.ResourceFinder;
031    import com.liferay.portal.service.persistence.ResourcePersistence;
032    import com.liferay.portal.service.persistence.UserFinder;
033    import com.liferay.portal.service.persistence.UserPersistence;
034    
035    import com.liferay.portlet.expando.service.ExpandoValueLocalService;
036    import com.liferay.portlet.expando.service.ExpandoValueService;
037    import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
038    import com.liferay.portlet.journal.model.JournalFeed;
039    import com.liferay.portlet.journal.service.JournalArticleImageLocalService;
040    import com.liferay.portlet.journal.service.JournalArticleLocalService;
041    import com.liferay.portlet.journal.service.JournalArticleResourceLocalService;
042    import com.liferay.portlet.journal.service.JournalArticleService;
043    import com.liferay.portlet.journal.service.JournalContentSearchLocalService;
044    import com.liferay.portlet.journal.service.JournalFeedLocalService;
045    import com.liferay.portlet.journal.service.JournalFeedService;
046    import com.liferay.portlet.journal.service.JournalStructureLocalService;
047    import com.liferay.portlet.journal.service.JournalStructureService;
048    import com.liferay.portlet.journal.service.JournalTemplateLocalService;
049    import com.liferay.portlet.journal.service.JournalTemplateService;
050    import com.liferay.portlet.journal.service.persistence.JournalArticleFinder;
051    import com.liferay.portlet.journal.service.persistence.JournalArticleImagePersistence;
052    import com.liferay.portlet.journal.service.persistence.JournalArticlePersistence;
053    import com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence;
054    import com.liferay.portlet.journal.service.persistence.JournalContentSearchPersistence;
055    import com.liferay.portlet.journal.service.persistence.JournalFeedFinder;
056    import com.liferay.portlet.journal.service.persistence.JournalFeedPersistence;
057    import com.liferay.portlet.journal.service.persistence.JournalStructureFinder;
058    import com.liferay.portlet.journal.service.persistence.JournalStructurePersistence;
059    import com.liferay.portlet.journal.service.persistence.JournalTemplateFinder;
060    import com.liferay.portlet.journal.service.persistence.JournalTemplatePersistence;
061    
062    import java.util.List;
063    
064    import javax.sql.DataSource;
065    
066    /**
067     * The base implementation of the journal feed local service.
068     *
069     * <p>
070     * 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.JournalFeedLocalServiceImpl}.
071     * </p>
072     *
073     * <p>
074     * Never modify or reference this class directly. Always use {@link com.liferay.portlet.journal.service.JournalFeedLocalServiceUtil} to access the journal feed local service.
075     * </p>
076     *
077     * @author Brian Wing Shun Chan
078     * @see com.liferay.portlet.journal.service.impl.JournalFeedLocalServiceImpl
079     * @see com.liferay.portlet.journal.service.JournalFeedLocalServiceUtil
080     * @generated
081     */
082    public abstract class JournalFeedLocalServiceBaseImpl
083            implements JournalFeedLocalService {
084            /**
085             * Adds the journal feed to the database. Also notifies the appropriate model listeners.
086             *
087             * @param journalFeed the journal feed to add
088             * @return the journal feed that was added
089             * @throws SystemException if a system exception occurred
090             */
091            public JournalFeed addJournalFeed(JournalFeed journalFeed)
092                    throws SystemException {
093                    journalFeed.setNew(true);
094    
095                    return journalFeedPersistence.update(journalFeed, false);
096            }
097    
098            /**
099             * Creates a new journal feed with the primary key. Does not add the journal feed to the database.
100             *
101             * @param id the primary key for the new journal feed
102             * @return the new journal feed
103             */
104            public JournalFeed createJournalFeed(long id) {
105                    return journalFeedPersistence.create(id);
106            }
107    
108            /**
109             * Deletes the journal feed with the primary key from the database. Also notifies the appropriate model listeners.
110             *
111             * @param id the primary key of the journal feed to delete
112             * @throws PortalException if a journal feed with the primary key could not be found
113             * @throws SystemException if a system exception occurred
114             */
115            public void deleteJournalFeed(long id)
116                    throws PortalException, SystemException {
117                    journalFeedPersistence.remove(id);
118            }
119    
120            /**
121             * Deletes the journal feed from the database. Also notifies the appropriate model listeners.
122             *
123             * @param journalFeed the journal feed to delete
124             * @throws SystemException if a system exception occurred
125             */
126            public void deleteJournalFeed(JournalFeed journalFeed)
127                    throws SystemException {
128                    journalFeedPersistence.remove(journalFeed);
129            }
130    
131            /**
132             * Performs a dynamic query on the database and returns the matching rows.
133             *
134             * @param dynamicQuery the dynamic query to search with
135             * @return the matching rows
136             * @throws SystemException if a system exception occurred
137             */
138            @SuppressWarnings("rawtypes")
139            public List dynamicQuery(DynamicQuery dynamicQuery)
140                    throws SystemException {
141                    return journalFeedPersistence.findWithDynamicQuery(dynamicQuery);
142            }
143    
144            /**
145             * Performs a dynamic query on the database and returns a range of the matching rows.
146             *
147             * <p>
148             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
149             * </p>
150             *
151             * @param dynamicQuery the dynamic query to search with
152             * @param start the lower bound of the range of model instances to return
153             * @param end the upper bound of the range of model instances to return (not inclusive)
154             * @return the range of matching rows
155             * @throws SystemException if a system exception occurred
156             */
157            @SuppressWarnings("rawtypes")
158            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
159                    throws SystemException {
160                    return journalFeedPersistence.findWithDynamicQuery(dynamicQuery, start,
161                            end);
162            }
163    
164            /**
165             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
166             *
167             * <p>
168             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
169             * </p>
170             *
171             * @param dynamicQuery the dynamic query to search with
172             * @param start the lower bound of the range of model instances to return
173             * @param end the upper bound of the range of model instances to return (not inclusive)
174             * @param orderByComparator the comparator to order the results by
175             * @return the ordered range of matching rows
176             * @throws SystemException if a system exception occurred
177             */
178            @SuppressWarnings("rawtypes")
179            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
180                    OrderByComparator orderByComparator) throws SystemException {
181                    return journalFeedPersistence.findWithDynamicQuery(dynamicQuery, start,
182                            end, orderByComparator);
183            }
184    
185            /**
186             * Counts the number of rows that match the dynamic query.
187             *
188             * @param dynamicQuery the dynamic query to search with
189             * @return the number of rows that match the dynamic query
190             * @throws SystemException if a system exception occurred
191             */
192            public long dynamicQueryCount(DynamicQuery dynamicQuery)
193                    throws SystemException {
194                    return journalFeedPersistence.countWithDynamicQuery(dynamicQuery);
195            }
196    
197            /**
198             * Gets the journal feed with the primary key.
199             *
200             * @param id the primary key of the journal feed to get
201             * @return the journal feed
202             * @throws PortalException if a journal feed with the primary key could not be found
203             * @throws SystemException if a system exception occurred
204             */
205            public JournalFeed getJournalFeed(long id)
206                    throws PortalException, SystemException {
207                    return journalFeedPersistence.findByPrimaryKey(id);
208            }
209    
210            /**
211             * Gets the journal feed with the UUID and group id.
212             *
213             * @param uuid the UUID of journal feed to get
214             * @param groupId the group id of the journal feed to get
215             * @return the journal feed
216             * @throws PortalException if a journal feed with the UUID and group id could not be found
217             * @throws SystemException if a system exception occurred
218             */
219            public JournalFeed getJournalFeedByUuidAndGroupId(String uuid, long groupId)
220                    throws PortalException, SystemException {
221                    return journalFeedPersistence.findByUUID_G(uuid, groupId);
222            }
223    
224            /**
225             * Gets a range of all the journal feeds.
226             *
227             * <p>
228             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
229             * </p>
230             *
231             * @param start the lower bound of the range of journal feeds to return
232             * @param end the upper bound of the range of journal feeds to return (not inclusive)
233             * @return the range of journal feeds
234             * @throws SystemException if a system exception occurred
235             */
236            public List<JournalFeed> getJournalFeeds(int start, int end)
237                    throws SystemException {
238                    return journalFeedPersistence.findAll(start, end);
239            }
240    
241            /**
242             * Gets the number of journal feeds.
243             *
244             * @return the number of journal feeds
245             * @throws SystemException if a system exception occurred
246             */
247            public int getJournalFeedsCount() throws SystemException {
248                    return journalFeedPersistence.countAll();
249            }
250    
251            /**
252             * Updates the journal feed in the database. Also notifies the appropriate model listeners.
253             *
254             * @param journalFeed the journal feed to update
255             * @return the journal feed that was updated
256             * @throws SystemException if a system exception occurred
257             */
258            public JournalFeed updateJournalFeed(JournalFeed journalFeed)
259                    throws SystemException {
260                    journalFeed.setNew(false);
261    
262                    return journalFeedPersistence.update(journalFeed, true);
263            }
264    
265            /**
266             * Updates the journal feed in the database. Also notifies the appropriate model listeners.
267             *
268             * @param journalFeed the journal feed to update
269             * @param merge whether to merge the journal feed with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
270             * @return the journal feed that was updated
271             * @throws SystemException if a system exception occurred
272             */
273            public JournalFeed updateJournalFeed(JournalFeed journalFeed, boolean merge)
274                    throws SystemException {
275                    journalFeed.setNew(false);
276    
277                    return journalFeedPersistence.update(journalFeed, merge);
278            }
279    
280            /**
281             * Gets the journal article local service.
282             *
283             * @return the journal article local service
284             */
285            public JournalArticleLocalService getJournalArticleLocalService() {
286                    return journalArticleLocalService;
287            }
288    
289            /**
290             * Sets the journal article local service.
291             *
292             * @param journalArticleLocalService the journal article local service
293             */
294            public void setJournalArticleLocalService(
295                    JournalArticleLocalService journalArticleLocalService) {
296                    this.journalArticleLocalService = journalArticleLocalService;
297            }
298    
299            /**
300             * Gets the journal article remote service.
301             *
302             * @return the journal article remote service
303             */
304            public JournalArticleService getJournalArticleService() {
305                    return journalArticleService;
306            }
307    
308            /**
309             * Sets the journal article remote service.
310             *
311             * @param journalArticleService the journal article remote service
312             */
313            public void setJournalArticleService(
314                    JournalArticleService journalArticleService) {
315                    this.journalArticleService = journalArticleService;
316            }
317    
318            /**
319             * Gets the journal article persistence.
320             *
321             * @return the journal article persistence
322             */
323            public JournalArticlePersistence getJournalArticlePersistence() {
324                    return journalArticlePersistence;
325            }
326    
327            /**
328             * Sets the journal article persistence.
329             *
330             * @param journalArticlePersistence the journal article persistence
331             */
332            public void setJournalArticlePersistence(
333                    JournalArticlePersistence journalArticlePersistence) {
334                    this.journalArticlePersistence = journalArticlePersistence;
335            }
336    
337            /**
338             * Gets the journal article finder.
339             *
340             * @return the journal article finder
341             */
342            public JournalArticleFinder getJournalArticleFinder() {
343                    return journalArticleFinder;
344            }
345    
346            /**
347             * Sets the journal article finder.
348             *
349             * @param journalArticleFinder the journal article finder
350             */
351            public void setJournalArticleFinder(
352                    JournalArticleFinder journalArticleFinder) {
353                    this.journalArticleFinder = journalArticleFinder;
354            }
355    
356            /**
357             * Gets the journal article image local service.
358             *
359             * @return the journal article image local service
360             */
361            public JournalArticleImageLocalService getJournalArticleImageLocalService() {
362                    return journalArticleImageLocalService;
363            }
364    
365            /**
366             * Sets the journal article image local service.
367             *
368             * @param journalArticleImageLocalService the journal article image local service
369             */
370            public void setJournalArticleImageLocalService(
371                    JournalArticleImageLocalService journalArticleImageLocalService) {
372                    this.journalArticleImageLocalService = journalArticleImageLocalService;
373            }
374    
375            /**
376             * Gets the journal article image persistence.
377             *
378             * @return the journal article image persistence
379             */
380            public JournalArticleImagePersistence getJournalArticleImagePersistence() {
381                    return journalArticleImagePersistence;
382            }
383    
384            /**
385             * Sets the journal article image persistence.
386             *
387             * @param journalArticleImagePersistence the journal article image persistence
388             */
389            public void setJournalArticleImagePersistence(
390                    JournalArticleImagePersistence journalArticleImagePersistence) {
391                    this.journalArticleImagePersistence = journalArticleImagePersistence;
392            }
393    
394            /**
395             * Gets the journal article resource local service.
396             *
397             * @return the journal article resource local service
398             */
399            public JournalArticleResourceLocalService getJournalArticleResourceLocalService() {
400                    return journalArticleResourceLocalService;
401            }
402    
403            /**
404             * Sets the journal article resource local service.
405             *
406             * @param journalArticleResourceLocalService the journal article resource local service
407             */
408            public void setJournalArticleResourceLocalService(
409                    JournalArticleResourceLocalService journalArticleResourceLocalService) {
410                    this.journalArticleResourceLocalService = journalArticleResourceLocalService;
411            }
412    
413            /**
414             * Gets the journal article resource persistence.
415             *
416             * @return the journal article resource persistence
417             */
418            public JournalArticleResourcePersistence getJournalArticleResourcePersistence() {
419                    return journalArticleResourcePersistence;
420            }
421    
422            /**
423             * Sets the journal article resource persistence.
424             *
425             * @param journalArticleResourcePersistence the journal article resource persistence
426             */
427            public void setJournalArticleResourcePersistence(
428                    JournalArticleResourcePersistence journalArticleResourcePersistence) {
429                    this.journalArticleResourcePersistence = journalArticleResourcePersistence;
430            }
431    
432            /**
433             * Gets the journal content search local service.
434             *
435             * @return the journal content search local service
436             */
437            public JournalContentSearchLocalService getJournalContentSearchLocalService() {
438                    return journalContentSearchLocalService;
439            }
440    
441            /**
442             * Sets the journal content search local service.
443             *
444             * @param journalContentSearchLocalService the journal content search local service
445             */
446            public void setJournalContentSearchLocalService(
447                    JournalContentSearchLocalService journalContentSearchLocalService) {
448                    this.journalContentSearchLocalService = journalContentSearchLocalService;
449            }
450    
451            /**
452             * Gets the journal content search persistence.
453             *
454             * @return the journal content search persistence
455             */
456            public JournalContentSearchPersistence getJournalContentSearchPersistence() {
457                    return journalContentSearchPersistence;
458            }
459    
460            /**
461             * Sets the journal content search persistence.
462             *
463             * @param journalContentSearchPersistence the journal content search persistence
464             */
465            public void setJournalContentSearchPersistence(
466                    JournalContentSearchPersistence journalContentSearchPersistence) {
467                    this.journalContentSearchPersistence = journalContentSearchPersistence;
468            }
469    
470            /**
471             * Gets the journal feed local service.
472             *
473             * @return the journal feed local service
474             */
475            public JournalFeedLocalService getJournalFeedLocalService() {
476                    return journalFeedLocalService;
477            }
478    
479            /**
480             * Sets the journal feed local service.
481             *
482             * @param journalFeedLocalService the journal feed local service
483             */
484            public void setJournalFeedLocalService(
485                    JournalFeedLocalService journalFeedLocalService) {
486                    this.journalFeedLocalService = journalFeedLocalService;
487            }
488    
489            /**
490             * Gets the journal feed remote service.
491             *
492             * @return the journal feed remote service
493             */
494            public JournalFeedService getJournalFeedService() {
495                    return journalFeedService;
496            }
497    
498            /**
499             * Sets the journal feed remote service.
500             *
501             * @param journalFeedService the journal feed remote service
502             */
503            public void setJournalFeedService(JournalFeedService journalFeedService) {
504                    this.journalFeedService = journalFeedService;
505            }
506    
507            /**
508             * Gets the journal feed persistence.
509             *
510             * @return the journal feed persistence
511             */
512            public JournalFeedPersistence getJournalFeedPersistence() {
513                    return journalFeedPersistence;
514            }
515    
516            /**
517             * Sets the journal feed persistence.
518             *
519             * @param journalFeedPersistence the journal feed persistence
520             */
521            public void setJournalFeedPersistence(
522                    JournalFeedPersistence journalFeedPersistence) {
523                    this.journalFeedPersistence = journalFeedPersistence;
524            }
525    
526            /**
527             * Gets the journal feed finder.
528             *
529             * @return the journal feed finder
530             */
531            public JournalFeedFinder getJournalFeedFinder() {
532                    return journalFeedFinder;
533            }
534    
535            /**
536             * Sets the journal feed finder.
537             *
538             * @param journalFeedFinder the journal feed finder
539             */
540            public void setJournalFeedFinder(JournalFeedFinder journalFeedFinder) {
541                    this.journalFeedFinder = journalFeedFinder;
542            }
543    
544            /**
545             * Gets the journal structure local service.
546             *
547             * @return the journal structure local service
548             */
549            public JournalStructureLocalService getJournalStructureLocalService() {
550                    return journalStructureLocalService;
551            }
552    
553            /**
554             * Sets the journal structure local service.
555             *
556             * @param journalStructureLocalService the journal structure local service
557             */
558            public void setJournalStructureLocalService(
559                    JournalStructureLocalService journalStructureLocalService) {
560                    this.journalStructureLocalService = journalStructureLocalService;
561            }
562    
563            /**
564             * Gets the journal structure remote service.
565             *
566             * @return the journal structure remote service
567             */
568            public JournalStructureService getJournalStructureService() {
569                    return journalStructureService;
570            }
571    
572            /**
573             * Sets the journal structure remote service.
574             *
575             * @param journalStructureService the journal structure remote service
576             */
577            public void setJournalStructureService(
578                    JournalStructureService journalStructureService) {
579                    this.journalStructureService = journalStructureService;
580            }
581    
582            /**
583             * Gets the journal structure persistence.
584             *
585             * @return the journal structure persistence
586             */
587            public JournalStructurePersistence getJournalStructurePersistence() {
588                    return journalStructurePersistence;
589            }
590    
591            /**
592             * Sets the journal structure persistence.
593             *
594             * @param journalStructurePersistence the journal structure persistence
595             */
596            public void setJournalStructurePersistence(
597                    JournalStructurePersistence journalStructurePersistence) {
598                    this.journalStructurePersistence = journalStructurePersistence;
599            }
600    
601            /**
602             * Gets the journal structure finder.
603             *
604             * @return the journal structure finder
605             */
606            public JournalStructureFinder getJournalStructureFinder() {
607                    return journalStructureFinder;
608            }
609    
610            /**
611             * Sets the journal structure finder.
612             *
613             * @param journalStructureFinder the journal structure finder
614             */
615            public void setJournalStructureFinder(
616                    JournalStructureFinder journalStructureFinder) {
617                    this.journalStructureFinder = journalStructureFinder;
618            }
619    
620            /**
621             * Gets the journal template local service.
622             *
623             * @return the journal template local service
624             */
625            public JournalTemplateLocalService getJournalTemplateLocalService() {
626                    return journalTemplateLocalService;
627            }
628    
629            /**
630             * Sets the journal template local service.
631             *
632             * @param journalTemplateLocalService the journal template local service
633             */
634            public void setJournalTemplateLocalService(
635                    JournalTemplateLocalService journalTemplateLocalService) {
636                    this.journalTemplateLocalService = journalTemplateLocalService;
637            }
638    
639            /**
640             * Gets the journal template remote service.
641             *
642             * @return the journal template remote service
643             */
644            public JournalTemplateService getJournalTemplateService() {
645                    return journalTemplateService;
646            }
647    
648            /**
649             * Sets the journal template remote service.
650             *
651             * @param journalTemplateService the journal template remote service
652             */
653            public void setJournalTemplateService(
654                    JournalTemplateService journalTemplateService) {
655                    this.journalTemplateService = journalTemplateService;
656            }
657    
658            /**
659             * Gets the journal template persistence.
660             *
661             * @return the journal template persistence
662             */
663            public JournalTemplatePersistence getJournalTemplatePersistence() {
664                    return journalTemplatePersistence;
665            }
666    
667            /**
668             * Sets the journal template persistence.
669             *
670             * @param journalTemplatePersistence the journal template persistence
671             */
672            public void setJournalTemplatePersistence(
673                    JournalTemplatePersistence journalTemplatePersistence) {
674                    this.journalTemplatePersistence = journalTemplatePersistence;
675            }
676    
677            /**
678             * Gets the journal template finder.
679             *
680             * @return the journal template finder
681             */
682            public JournalTemplateFinder getJournalTemplateFinder() {
683                    return journalTemplateFinder;
684            }
685    
686            /**
687             * Sets the journal template finder.
688             *
689             * @param journalTemplateFinder the journal template finder
690             */
691            public void setJournalTemplateFinder(
692                    JournalTemplateFinder journalTemplateFinder) {
693                    this.journalTemplateFinder = journalTemplateFinder;
694            }
695    
696            /**
697             * Gets the counter local service.
698             *
699             * @return the counter local service
700             */
701            public CounterLocalService getCounterLocalService() {
702                    return counterLocalService;
703            }
704    
705            /**
706             * Sets the counter local service.
707             *
708             * @param counterLocalService the counter local service
709             */
710            public void setCounterLocalService(CounterLocalService counterLocalService) {
711                    this.counterLocalService = counterLocalService;
712            }
713    
714            /**
715             * Gets the resource local service.
716             *
717             * @return the resource local service
718             */
719            public ResourceLocalService getResourceLocalService() {
720                    return resourceLocalService;
721            }
722    
723            /**
724             * Sets the resource local service.
725             *
726             * @param resourceLocalService the resource local service
727             */
728            public void setResourceLocalService(
729                    ResourceLocalService resourceLocalService) {
730                    this.resourceLocalService = resourceLocalService;
731            }
732    
733            /**
734             * Gets the resource remote service.
735             *
736             * @return the resource remote service
737             */
738            public ResourceService getResourceService() {
739                    return resourceService;
740            }
741    
742            /**
743             * Sets the resource remote service.
744             *
745             * @param resourceService the resource remote service
746             */
747            public void setResourceService(ResourceService resourceService) {
748                    this.resourceService = resourceService;
749            }
750    
751            /**
752             * Gets the resource persistence.
753             *
754             * @return the resource persistence
755             */
756            public ResourcePersistence getResourcePersistence() {
757                    return resourcePersistence;
758            }
759    
760            /**
761             * Sets the resource persistence.
762             *
763             * @param resourcePersistence the resource persistence
764             */
765            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
766                    this.resourcePersistence = resourcePersistence;
767            }
768    
769            /**
770             * Gets the resource finder.
771             *
772             * @return the resource finder
773             */
774            public ResourceFinder getResourceFinder() {
775                    return resourceFinder;
776            }
777    
778            /**
779             * Sets the resource finder.
780             *
781             * @param resourceFinder the resource finder
782             */
783            public void setResourceFinder(ResourceFinder resourceFinder) {
784                    this.resourceFinder = resourceFinder;
785            }
786    
787            /**
788             * Gets the user local service.
789             *
790             * @return the user local service
791             */
792            public UserLocalService getUserLocalService() {
793                    return userLocalService;
794            }
795    
796            /**
797             * Sets the user local service.
798             *
799             * @param userLocalService the user local service
800             */
801            public void setUserLocalService(UserLocalService userLocalService) {
802                    this.userLocalService = userLocalService;
803            }
804    
805            /**
806             * Gets the user remote service.
807             *
808             * @return the user remote service
809             */
810            public UserService getUserService() {
811                    return userService;
812            }
813    
814            /**
815             * Sets the user remote service.
816             *
817             * @param userService the user remote service
818             */
819            public void setUserService(UserService userService) {
820                    this.userService = userService;
821            }
822    
823            /**
824             * Gets the user persistence.
825             *
826             * @return the user persistence
827             */
828            public UserPersistence getUserPersistence() {
829                    return userPersistence;
830            }
831    
832            /**
833             * Sets the user persistence.
834             *
835             * @param userPersistence the user persistence
836             */
837            public void setUserPersistence(UserPersistence userPersistence) {
838                    this.userPersistence = userPersistence;
839            }
840    
841            /**
842             * Gets the user finder.
843             *
844             * @return the user finder
845             */
846            public UserFinder getUserFinder() {
847                    return userFinder;
848            }
849    
850            /**
851             * Sets the user finder.
852             *
853             * @param userFinder the user finder
854             */
855            public void setUserFinder(UserFinder userFinder) {
856                    this.userFinder = userFinder;
857            }
858    
859            /**
860             * Gets the expando value local service.
861             *
862             * @return the expando value local service
863             */
864            public ExpandoValueLocalService getExpandoValueLocalService() {
865                    return expandoValueLocalService;
866            }
867    
868            /**
869             * Sets the expando value local service.
870             *
871             * @param expandoValueLocalService the expando value local service
872             */
873            public void setExpandoValueLocalService(
874                    ExpandoValueLocalService expandoValueLocalService) {
875                    this.expandoValueLocalService = expandoValueLocalService;
876            }
877    
878            /**
879             * Gets the expando value remote service.
880             *
881             * @return the expando value remote service
882             */
883            public ExpandoValueService getExpandoValueService() {
884                    return expandoValueService;
885            }
886    
887            /**
888             * Sets the expando value remote service.
889             *
890             * @param expandoValueService the expando value remote service
891             */
892            public void setExpandoValueService(ExpandoValueService expandoValueService) {
893                    this.expandoValueService = expandoValueService;
894            }
895    
896            /**
897             * Gets the expando value persistence.
898             *
899             * @return the expando value persistence
900             */
901            public ExpandoValuePersistence getExpandoValuePersistence() {
902                    return expandoValuePersistence;
903            }
904    
905            /**
906             * Sets the expando value persistence.
907             *
908             * @param expandoValuePersistence the expando value persistence
909             */
910            public void setExpandoValuePersistence(
911                    ExpandoValuePersistence expandoValuePersistence) {
912                    this.expandoValuePersistence = expandoValuePersistence;
913            }
914    
915            /**
916             * Performs an SQL query.
917             *
918             * @param sql the sql query to perform
919             */
920            protected void runSQL(String sql) throws SystemException {
921                    try {
922                            DataSource dataSource = journalFeedPersistence.getDataSource();
923    
924                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
925                                            sql, new int[0]);
926    
927                            sqlUpdate.update();
928                    }
929                    catch (Exception e) {
930                            throw new SystemException(e);
931                    }
932            }
933    
934            @BeanReference(type = JournalArticleLocalService.class)
935            protected JournalArticleLocalService journalArticleLocalService;
936            @BeanReference(type = JournalArticleService.class)
937            protected JournalArticleService journalArticleService;
938            @BeanReference(type = JournalArticlePersistence.class)
939            protected JournalArticlePersistence journalArticlePersistence;
940            @BeanReference(type = JournalArticleFinder.class)
941            protected JournalArticleFinder journalArticleFinder;
942            @BeanReference(type = JournalArticleImageLocalService.class)
943            protected JournalArticleImageLocalService journalArticleImageLocalService;
944            @BeanReference(type = JournalArticleImagePersistence.class)
945            protected JournalArticleImagePersistence journalArticleImagePersistence;
946            @BeanReference(type = JournalArticleResourceLocalService.class)
947            protected JournalArticleResourceLocalService journalArticleResourceLocalService;
948            @BeanReference(type = JournalArticleResourcePersistence.class)
949            protected JournalArticleResourcePersistence journalArticleResourcePersistence;
950            @BeanReference(type = JournalContentSearchLocalService.class)
951            protected JournalContentSearchLocalService journalContentSearchLocalService;
952            @BeanReference(type = JournalContentSearchPersistence.class)
953            protected JournalContentSearchPersistence journalContentSearchPersistence;
954            @BeanReference(type = JournalFeedLocalService.class)
955            protected JournalFeedLocalService journalFeedLocalService;
956            @BeanReference(type = JournalFeedService.class)
957            protected JournalFeedService journalFeedService;
958            @BeanReference(type = JournalFeedPersistence.class)
959            protected JournalFeedPersistence journalFeedPersistence;
960            @BeanReference(type = JournalFeedFinder.class)
961            protected JournalFeedFinder journalFeedFinder;
962            @BeanReference(type = JournalStructureLocalService.class)
963            protected JournalStructureLocalService journalStructureLocalService;
964            @BeanReference(type = JournalStructureService.class)
965            protected JournalStructureService journalStructureService;
966            @BeanReference(type = JournalStructurePersistence.class)
967            protected JournalStructurePersistence journalStructurePersistence;
968            @BeanReference(type = JournalStructureFinder.class)
969            protected JournalStructureFinder journalStructureFinder;
970            @BeanReference(type = JournalTemplateLocalService.class)
971            protected JournalTemplateLocalService journalTemplateLocalService;
972            @BeanReference(type = JournalTemplateService.class)
973            protected JournalTemplateService journalTemplateService;
974            @BeanReference(type = JournalTemplatePersistence.class)
975            protected JournalTemplatePersistence journalTemplatePersistence;
976            @BeanReference(type = JournalTemplateFinder.class)
977            protected JournalTemplateFinder journalTemplateFinder;
978            @BeanReference(type = CounterLocalService.class)
979            protected CounterLocalService counterLocalService;
980            @BeanReference(type = ResourceLocalService.class)
981            protected ResourceLocalService resourceLocalService;
982            @BeanReference(type = ResourceService.class)
983            protected ResourceService resourceService;
984            @BeanReference(type = ResourcePersistence.class)
985            protected ResourcePersistence resourcePersistence;
986            @BeanReference(type = ResourceFinder.class)
987            protected ResourceFinder resourceFinder;
988            @BeanReference(type = UserLocalService.class)
989            protected UserLocalService userLocalService;
990            @BeanReference(type = UserService.class)
991            protected UserService userService;
992            @BeanReference(type = UserPersistence.class)
993            protected UserPersistence userPersistence;
994            @BeanReference(type = UserFinder.class)
995            protected UserFinder userFinder;
996            @BeanReference(type = ExpandoValueLocalService.class)
997            protected ExpandoValueLocalService expandoValueLocalService;
998            @BeanReference(type = ExpandoValueService.class)
999            protected ExpandoValueService expandoValueService;
1000            @BeanReference(type = ExpandoValuePersistence.class)
1001            protected ExpandoValuePersistence expandoValuePersistence;
1002    }