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