001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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 the journal article resource with the UUID and group id.
213             *
214             * @param uuid the UUID of journal article resource to get
215             * @param groupId the group id of the journal article resource to get
216             * @return the journal article resource
217             * @throws PortalException if a journal article resource with the UUID and group id could not be found
218             * @throws SystemException if a system exception occurred
219             */
220            public JournalArticleResource getJournalArticleResourceByUuidAndGroupId(
221                    String uuid, long groupId) throws PortalException, SystemException {
222                    return journalArticleResourcePersistence.findByUUID_G(uuid, groupId);
223            }
224    
225            /**
226             * Gets a range of all the journal article resources.
227             *
228             * <p>
229             * 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.
230             * </p>
231             *
232             * @param start the lower bound of the range of journal article resources to return
233             * @param end the upper bound of the range of journal article resources to return (not inclusive)
234             * @return the range of journal article resources
235             * @throws SystemException if a system exception occurred
236             */
237            public List<JournalArticleResource> getJournalArticleResources(int start,
238                    int end) throws SystemException {
239                    return journalArticleResourcePersistence.findAll(start, end);
240            }
241    
242            /**
243             * Gets the number of journal article resources.
244             *
245             * @return the number of journal article resources
246             * @throws SystemException if a system exception occurred
247             */
248            public int getJournalArticleResourcesCount() throws SystemException {
249                    return journalArticleResourcePersistence.countAll();
250            }
251    
252            /**
253             * Updates the journal article resource in the database. Also notifies the appropriate model listeners.
254             *
255             * @param journalArticleResource the journal article resource to update
256             * @return the journal article resource that was updated
257             * @throws SystemException if a system exception occurred
258             */
259            public JournalArticleResource updateJournalArticleResource(
260                    JournalArticleResource journalArticleResource)
261                    throws SystemException {
262                    journalArticleResource.setNew(false);
263    
264                    return journalArticleResourcePersistence.update(journalArticleResource,
265                            true);
266            }
267    
268            /**
269             * Updates the journal article resource in the database. Also notifies the appropriate model listeners.
270             *
271             * @param journalArticleResource the journal article resource to update
272             * @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.
273             * @return the journal article resource that was updated
274             * @throws SystemException if a system exception occurred
275             */
276            public JournalArticleResource updateJournalArticleResource(
277                    JournalArticleResource journalArticleResource, boolean merge)
278                    throws SystemException {
279                    journalArticleResource.setNew(false);
280    
281                    return journalArticleResourcePersistence.update(journalArticleResource,
282                            merge);
283            }
284    
285            /**
286             * Gets the journal article local service.
287             *
288             * @return the journal article local service
289             */
290            public JournalArticleLocalService getJournalArticleLocalService() {
291                    return journalArticleLocalService;
292            }
293    
294            /**
295             * Sets the journal article local service.
296             *
297             * @param journalArticleLocalService the journal article local service
298             */
299            public void setJournalArticleLocalService(
300                    JournalArticleLocalService journalArticleLocalService) {
301                    this.journalArticleLocalService = journalArticleLocalService;
302            }
303    
304            /**
305             * Gets the journal article remote service.
306             *
307             * @return the journal article remote service
308             */
309            public JournalArticleService getJournalArticleService() {
310                    return journalArticleService;
311            }
312    
313            /**
314             * Sets the journal article remote service.
315             *
316             * @param journalArticleService the journal article remote service
317             */
318            public void setJournalArticleService(
319                    JournalArticleService journalArticleService) {
320                    this.journalArticleService = journalArticleService;
321            }
322    
323            /**
324             * Gets the journal article persistence.
325             *
326             * @return the journal article persistence
327             */
328            public JournalArticlePersistence getJournalArticlePersistence() {
329                    return journalArticlePersistence;
330            }
331    
332            /**
333             * Sets the journal article persistence.
334             *
335             * @param journalArticlePersistence the journal article persistence
336             */
337            public void setJournalArticlePersistence(
338                    JournalArticlePersistence journalArticlePersistence) {
339                    this.journalArticlePersistence = journalArticlePersistence;
340            }
341    
342            /**
343             * Gets the journal article finder.
344             *
345             * @return the journal article finder
346             */
347            public JournalArticleFinder getJournalArticleFinder() {
348                    return journalArticleFinder;
349            }
350    
351            /**
352             * Sets the journal article finder.
353             *
354             * @param journalArticleFinder the journal article finder
355             */
356            public void setJournalArticleFinder(
357                    JournalArticleFinder journalArticleFinder) {
358                    this.journalArticleFinder = journalArticleFinder;
359            }
360    
361            /**
362             * Gets the journal article image local service.
363             *
364             * @return the journal article image local service
365             */
366            public JournalArticleImageLocalService getJournalArticleImageLocalService() {
367                    return journalArticleImageLocalService;
368            }
369    
370            /**
371             * Sets the journal article image local service.
372             *
373             * @param journalArticleImageLocalService the journal article image local service
374             */
375            public void setJournalArticleImageLocalService(
376                    JournalArticleImageLocalService journalArticleImageLocalService) {
377                    this.journalArticleImageLocalService = journalArticleImageLocalService;
378            }
379    
380            /**
381             * Gets the journal article image persistence.
382             *
383             * @return the journal article image persistence
384             */
385            public JournalArticleImagePersistence getJournalArticleImagePersistence() {
386                    return journalArticleImagePersistence;
387            }
388    
389            /**
390             * Sets the journal article image persistence.
391             *
392             * @param journalArticleImagePersistence the journal article image persistence
393             */
394            public void setJournalArticleImagePersistence(
395                    JournalArticleImagePersistence journalArticleImagePersistence) {
396                    this.journalArticleImagePersistence = journalArticleImagePersistence;
397            }
398    
399            /**
400             * Gets the journal article resource local service.
401             *
402             * @return the journal article resource local service
403             */
404            public JournalArticleResourceLocalService getJournalArticleResourceLocalService() {
405                    return journalArticleResourceLocalService;
406            }
407    
408            /**
409             * Sets the journal article resource local service.
410             *
411             * @param journalArticleResourceLocalService the journal article resource local service
412             */
413            public void setJournalArticleResourceLocalService(
414                    JournalArticleResourceLocalService journalArticleResourceLocalService) {
415                    this.journalArticleResourceLocalService = journalArticleResourceLocalService;
416            }
417    
418            /**
419             * Gets the journal article resource persistence.
420             *
421             * @return the journal article resource persistence
422             */
423            public JournalArticleResourcePersistence getJournalArticleResourcePersistence() {
424                    return journalArticleResourcePersistence;
425            }
426    
427            /**
428             * Sets the journal article resource persistence.
429             *
430             * @param journalArticleResourcePersistence the journal article resource persistence
431             */
432            public void setJournalArticleResourcePersistence(
433                    JournalArticleResourcePersistence journalArticleResourcePersistence) {
434                    this.journalArticleResourcePersistence = journalArticleResourcePersistence;
435            }
436    
437            /**
438             * Gets the journal content search local service.
439             *
440             * @return the journal content search local service
441             */
442            public JournalContentSearchLocalService getJournalContentSearchLocalService() {
443                    return journalContentSearchLocalService;
444            }
445    
446            /**
447             * Sets the journal content search local service.
448             *
449             * @param journalContentSearchLocalService the journal content search local service
450             */
451            public void setJournalContentSearchLocalService(
452                    JournalContentSearchLocalService journalContentSearchLocalService) {
453                    this.journalContentSearchLocalService = journalContentSearchLocalService;
454            }
455    
456            /**
457             * Gets the journal content search persistence.
458             *
459             * @return the journal content search persistence
460             */
461            public JournalContentSearchPersistence getJournalContentSearchPersistence() {
462                    return journalContentSearchPersistence;
463            }
464    
465            /**
466             * Sets the journal content search persistence.
467             *
468             * @param journalContentSearchPersistence the journal content search persistence
469             */
470            public void setJournalContentSearchPersistence(
471                    JournalContentSearchPersistence journalContentSearchPersistence) {
472                    this.journalContentSearchPersistence = journalContentSearchPersistence;
473            }
474    
475            /**
476             * Gets the journal feed local service.
477             *
478             * @return the journal feed local service
479             */
480            public JournalFeedLocalService getJournalFeedLocalService() {
481                    return journalFeedLocalService;
482            }
483    
484            /**
485             * Sets the journal feed local service.
486             *
487             * @param journalFeedLocalService the journal feed local service
488             */
489            public void setJournalFeedLocalService(
490                    JournalFeedLocalService journalFeedLocalService) {
491                    this.journalFeedLocalService = journalFeedLocalService;
492            }
493    
494            /**
495             * Gets the journal feed remote service.
496             *
497             * @return the journal feed remote service
498             */
499            public JournalFeedService getJournalFeedService() {
500                    return journalFeedService;
501            }
502    
503            /**
504             * Sets the journal feed remote service.
505             *
506             * @param journalFeedService the journal feed remote service
507             */
508            public void setJournalFeedService(JournalFeedService journalFeedService) {
509                    this.journalFeedService = journalFeedService;
510            }
511    
512            /**
513             * Gets the journal feed persistence.
514             *
515             * @return the journal feed persistence
516             */
517            public JournalFeedPersistence getJournalFeedPersistence() {
518                    return journalFeedPersistence;
519            }
520    
521            /**
522             * Sets the journal feed persistence.
523             *
524             * @param journalFeedPersistence the journal feed persistence
525             */
526            public void setJournalFeedPersistence(
527                    JournalFeedPersistence journalFeedPersistence) {
528                    this.journalFeedPersistence = journalFeedPersistence;
529            }
530    
531            /**
532             * Gets the journal feed finder.
533             *
534             * @return the journal feed finder
535             */
536            public JournalFeedFinder getJournalFeedFinder() {
537                    return journalFeedFinder;
538            }
539    
540            /**
541             * Sets the journal feed finder.
542             *
543             * @param journalFeedFinder the journal feed finder
544             */
545            public void setJournalFeedFinder(JournalFeedFinder journalFeedFinder) {
546                    this.journalFeedFinder = journalFeedFinder;
547            }
548    
549            /**
550             * Gets the journal structure local service.
551             *
552             * @return the journal structure local service
553             */
554            public JournalStructureLocalService getJournalStructureLocalService() {
555                    return journalStructureLocalService;
556            }
557    
558            /**
559             * Sets the journal structure local service.
560             *
561             * @param journalStructureLocalService the journal structure local service
562             */
563            public void setJournalStructureLocalService(
564                    JournalStructureLocalService journalStructureLocalService) {
565                    this.journalStructureLocalService = journalStructureLocalService;
566            }
567    
568            /**
569             * Gets the journal structure remote service.
570             *
571             * @return the journal structure remote service
572             */
573            public JournalStructureService getJournalStructureService() {
574                    return journalStructureService;
575            }
576    
577            /**
578             * Sets the journal structure remote service.
579             *
580             * @param journalStructureService the journal structure remote service
581             */
582            public void setJournalStructureService(
583                    JournalStructureService journalStructureService) {
584                    this.journalStructureService = journalStructureService;
585            }
586    
587            /**
588             * Gets the journal structure persistence.
589             *
590             * @return the journal structure persistence
591             */
592            public JournalStructurePersistence getJournalStructurePersistence() {
593                    return journalStructurePersistence;
594            }
595    
596            /**
597             * Sets the journal structure persistence.
598             *
599             * @param journalStructurePersistence the journal structure persistence
600             */
601            public void setJournalStructurePersistence(
602                    JournalStructurePersistence journalStructurePersistence) {
603                    this.journalStructurePersistence = journalStructurePersistence;
604            }
605    
606            /**
607             * Gets the journal structure finder.
608             *
609             * @return the journal structure finder
610             */
611            public JournalStructureFinder getJournalStructureFinder() {
612                    return journalStructureFinder;
613            }
614    
615            /**
616             * Sets the journal structure finder.
617             *
618             * @param journalStructureFinder the journal structure finder
619             */
620            public void setJournalStructureFinder(
621                    JournalStructureFinder journalStructureFinder) {
622                    this.journalStructureFinder = journalStructureFinder;
623            }
624    
625            /**
626             * Gets the journal template local service.
627             *
628             * @return the journal template local service
629             */
630            public JournalTemplateLocalService getJournalTemplateLocalService() {
631                    return journalTemplateLocalService;
632            }
633    
634            /**
635             * Sets the journal template local service.
636             *
637             * @param journalTemplateLocalService the journal template local service
638             */
639            public void setJournalTemplateLocalService(
640                    JournalTemplateLocalService journalTemplateLocalService) {
641                    this.journalTemplateLocalService = journalTemplateLocalService;
642            }
643    
644            /**
645             * Gets the journal template remote service.
646             *
647             * @return the journal template remote service
648             */
649            public JournalTemplateService getJournalTemplateService() {
650                    return journalTemplateService;
651            }
652    
653            /**
654             * Sets the journal template remote service.
655             *
656             * @param journalTemplateService the journal template remote service
657             */
658            public void setJournalTemplateService(
659                    JournalTemplateService journalTemplateService) {
660                    this.journalTemplateService = journalTemplateService;
661            }
662    
663            /**
664             * Gets the journal template persistence.
665             *
666             * @return the journal template persistence
667             */
668            public JournalTemplatePersistence getJournalTemplatePersistence() {
669                    return journalTemplatePersistence;
670            }
671    
672            /**
673             * Sets the journal template persistence.
674             *
675             * @param journalTemplatePersistence the journal template persistence
676             */
677            public void setJournalTemplatePersistence(
678                    JournalTemplatePersistence journalTemplatePersistence) {
679                    this.journalTemplatePersistence = journalTemplatePersistence;
680            }
681    
682            /**
683             * Gets the journal template finder.
684             *
685             * @return the journal template finder
686             */
687            public JournalTemplateFinder getJournalTemplateFinder() {
688                    return journalTemplateFinder;
689            }
690    
691            /**
692             * Sets the journal template finder.
693             *
694             * @param journalTemplateFinder the journal template finder
695             */
696            public void setJournalTemplateFinder(
697                    JournalTemplateFinder journalTemplateFinder) {
698                    this.journalTemplateFinder = journalTemplateFinder;
699            }
700    
701            /**
702             * Gets the counter local service.
703             *
704             * @return the counter local service
705             */
706            public CounterLocalService getCounterLocalService() {
707                    return counterLocalService;
708            }
709    
710            /**
711             * Sets the counter local service.
712             *
713             * @param counterLocalService the counter local service
714             */
715            public void setCounterLocalService(CounterLocalService counterLocalService) {
716                    this.counterLocalService = counterLocalService;
717            }
718    
719            /**
720             * Gets the resource local service.
721             *
722             * @return the resource local service
723             */
724            public ResourceLocalService getResourceLocalService() {
725                    return resourceLocalService;
726            }
727    
728            /**
729             * Sets the resource local service.
730             *
731             * @param resourceLocalService the resource local service
732             */
733            public void setResourceLocalService(
734                    ResourceLocalService resourceLocalService) {
735                    this.resourceLocalService = resourceLocalService;
736            }
737    
738            /**
739             * Gets the resource remote service.
740             *
741             * @return the resource remote service
742             */
743            public ResourceService getResourceService() {
744                    return resourceService;
745            }
746    
747            /**
748             * Sets the resource remote service.
749             *
750             * @param resourceService the resource remote service
751             */
752            public void setResourceService(ResourceService resourceService) {
753                    this.resourceService = resourceService;
754            }
755    
756            /**
757             * Gets the resource persistence.
758             *
759             * @return the resource persistence
760             */
761            public ResourcePersistence getResourcePersistence() {
762                    return resourcePersistence;
763            }
764    
765            /**
766             * Sets the resource persistence.
767             *
768             * @param resourcePersistence the resource persistence
769             */
770            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
771                    this.resourcePersistence = resourcePersistence;
772            }
773    
774            /**
775             * Gets the resource finder.
776             *
777             * @return the resource finder
778             */
779            public ResourceFinder getResourceFinder() {
780                    return resourceFinder;
781            }
782    
783            /**
784             * Sets the resource finder.
785             *
786             * @param resourceFinder the resource finder
787             */
788            public void setResourceFinder(ResourceFinder resourceFinder) {
789                    this.resourceFinder = resourceFinder;
790            }
791    
792            /**
793             * Gets the user local service.
794             *
795             * @return the user local service
796             */
797            public UserLocalService getUserLocalService() {
798                    return userLocalService;
799            }
800    
801            /**
802             * Sets the user local service.
803             *
804             * @param userLocalService the user local service
805             */
806            public void setUserLocalService(UserLocalService userLocalService) {
807                    this.userLocalService = userLocalService;
808            }
809    
810            /**
811             * Gets the user remote service.
812             *
813             * @return the user remote service
814             */
815            public UserService getUserService() {
816                    return userService;
817            }
818    
819            /**
820             * Sets the user remote service.
821             *
822             * @param userService the user remote service
823             */
824            public void setUserService(UserService userService) {
825                    this.userService = userService;
826            }
827    
828            /**
829             * Gets the user persistence.
830             *
831             * @return the user persistence
832             */
833            public UserPersistence getUserPersistence() {
834                    return userPersistence;
835            }
836    
837            /**
838             * Sets the user persistence.
839             *
840             * @param userPersistence the user persistence
841             */
842            public void setUserPersistence(UserPersistence userPersistence) {
843                    this.userPersistence = userPersistence;
844            }
845    
846            /**
847             * Gets the user finder.
848             *
849             * @return the user finder
850             */
851            public UserFinder getUserFinder() {
852                    return userFinder;
853            }
854    
855            /**
856             * Sets the user finder.
857             *
858             * @param userFinder the user finder
859             */
860            public void setUserFinder(UserFinder userFinder) {
861                    this.userFinder = userFinder;
862            }
863    
864            /**
865             * Performs an SQL query.
866             *
867             * @param sql the sql query to perform
868             */
869            protected void runSQL(String sql) throws SystemException {
870                    try {
871                            DataSource dataSource = journalArticleResourcePersistence.getDataSource();
872    
873                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
874                                            sql, new int[0]);
875    
876                            sqlUpdate.update();
877                    }
878                    catch (Exception e) {
879                            throw new SystemException(e);
880                    }
881            }
882    
883            @BeanReference(type = JournalArticleLocalService.class)
884            protected JournalArticleLocalService journalArticleLocalService;
885            @BeanReference(type = JournalArticleService.class)
886            protected JournalArticleService journalArticleService;
887            @BeanReference(type = JournalArticlePersistence.class)
888            protected JournalArticlePersistence journalArticlePersistence;
889            @BeanReference(type = JournalArticleFinder.class)
890            protected JournalArticleFinder journalArticleFinder;
891            @BeanReference(type = JournalArticleImageLocalService.class)
892            protected JournalArticleImageLocalService journalArticleImageLocalService;
893            @BeanReference(type = JournalArticleImagePersistence.class)
894            protected JournalArticleImagePersistence journalArticleImagePersistence;
895            @BeanReference(type = JournalArticleResourceLocalService.class)
896            protected JournalArticleResourceLocalService journalArticleResourceLocalService;
897            @BeanReference(type = JournalArticleResourcePersistence.class)
898            protected JournalArticleResourcePersistence journalArticleResourcePersistence;
899            @BeanReference(type = JournalContentSearchLocalService.class)
900            protected JournalContentSearchLocalService journalContentSearchLocalService;
901            @BeanReference(type = JournalContentSearchPersistence.class)
902            protected JournalContentSearchPersistence journalContentSearchPersistence;
903            @BeanReference(type = JournalFeedLocalService.class)
904            protected JournalFeedLocalService journalFeedLocalService;
905            @BeanReference(type = JournalFeedService.class)
906            protected JournalFeedService journalFeedService;
907            @BeanReference(type = JournalFeedPersistence.class)
908            protected JournalFeedPersistence journalFeedPersistence;
909            @BeanReference(type = JournalFeedFinder.class)
910            protected JournalFeedFinder journalFeedFinder;
911            @BeanReference(type = JournalStructureLocalService.class)
912            protected JournalStructureLocalService journalStructureLocalService;
913            @BeanReference(type = JournalStructureService.class)
914            protected JournalStructureService journalStructureService;
915            @BeanReference(type = JournalStructurePersistence.class)
916            protected JournalStructurePersistence journalStructurePersistence;
917            @BeanReference(type = JournalStructureFinder.class)
918            protected JournalStructureFinder journalStructureFinder;
919            @BeanReference(type = JournalTemplateLocalService.class)
920            protected JournalTemplateLocalService journalTemplateLocalService;
921            @BeanReference(type = JournalTemplateService.class)
922            protected JournalTemplateService journalTemplateService;
923            @BeanReference(type = JournalTemplatePersistence.class)
924            protected JournalTemplatePersistence journalTemplatePersistence;
925            @BeanReference(type = JournalTemplateFinder.class)
926            protected JournalTemplateFinder journalTemplateFinder;
927            @BeanReference(type = CounterLocalService.class)
928            protected CounterLocalService counterLocalService;
929            @BeanReference(type = ResourceLocalService.class)
930            protected ResourceLocalService resourceLocalService;
931            @BeanReference(type = ResourceService.class)
932            protected ResourceService resourceService;
933            @BeanReference(type = ResourcePersistence.class)
934            protected ResourcePersistence resourcePersistence;
935            @BeanReference(type = ResourceFinder.class)
936            protected ResourceFinder resourceFinder;
937            @BeanReference(type = UserLocalService.class)
938            protected UserLocalService userLocalService;
939            @BeanReference(type = UserService.class)
940            protected UserService userService;
941            @BeanReference(type = UserPersistence.class)
942            protected UserPersistence userPersistence;
943            @BeanReference(type = UserFinder.class)
944            protected UserFinder userFinder;
945    }