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