001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.journal.service.base;
016    
017    import com.liferay.portal.kernel.bean.BeanReference;
018    import com.liferay.portal.kernel.bean.IdentifiableBean;
019    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
020    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
021    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
022    import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
023    import com.liferay.portal.kernel.dao.orm.Projection;
024    import com.liferay.portal.kernel.exception.PortalException;
025    import com.liferay.portal.kernel.exception.SystemException;
026    import com.liferay.portal.kernel.search.Indexable;
027    import com.liferay.portal.kernel.search.IndexableType;
028    import com.liferay.portal.kernel.util.OrderByComparator;
029    import com.liferay.portal.model.PersistedModel;
030    import com.liferay.portal.service.BaseLocalServiceImpl;
031    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
032    import com.liferay.portal.service.persistence.SystemEventPersistence;
033    import com.liferay.portal.service.persistence.UserFinder;
034    import com.liferay.portal.service.persistence.UserPersistence;
035    
036    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureFinder;
037    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructurePersistence;
038    import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
039    import com.liferay.portlet.journal.model.JournalFeed;
040    import com.liferay.portlet.journal.service.JournalFeedLocalService;
041    import com.liferay.portlet.journal.service.persistence.JournalArticleFinder;
042    import com.liferay.portlet.journal.service.persistence.JournalArticleImagePersistence;
043    import com.liferay.portlet.journal.service.persistence.JournalArticlePersistence;
044    import com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence;
045    import com.liferay.portlet.journal.service.persistence.JournalContentSearchPersistence;
046    import com.liferay.portlet.journal.service.persistence.JournalFeedFinder;
047    import com.liferay.portlet.journal.service.persistence.JournalFeedPersistence;
048    import com.liferay.portlet.journal.service.persistence.JournalFolderFinder;
049    import com.liferay.portlet.journal.service.persistence.JournalFolderPersistence;
050    
051    import java.io.Serializable;
052    
053    import java.util.List;
054    
055    import javax.sql.DataSource;
056    
057    /**
058     * Provides the base implementation for the journal feed local service.
059     *
060     * <p>
061     * This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link com.liferay.portlet.journal.service.impl.JournalFeedLocalServiceImpl}.
062     * </p>
063     *
064     * @author Brian Wing Shun Chan
065     * @see com.liferay.portlet.journal.service.impl.JournalFeedLocalServiceImpl
066     * @see com.liferay.portlet.journal.service.JournalFeedLocalServiceUtil
067     * @generated
068     */
069    public abstract class JournalFeedLocalServiceBaseImpl
070            extends BaseLocalServiceImpl implements JournalFeedLocalService,
071                    IdentifiableBean {
072            /*
073             * NOTE FOR DEVELOPERS:
074             *
075             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.journal.service.JournalFeedLocalServiceUtil} to access the journal feed local service.
076             */
077    
078            /**
079             * Adds the journal feed to the database. Also notifies the appropriate model listeners.
080             *
081             * @param journalFeed the journal feed
082             * @return the journal feed that was added
083             * @throws SystemException if a system exception occurred
084             */
085            @Indexable(type = IndexableType.REINDEX)
086            @Override
087            public JournalFeed addJournalFeed(JournalFeed journalFeed)
088                    throws SystemException {
089                    journalFeed.setNew(true);
090    
091                    return journalFeedPersistence.update(journalFeed);
092            }
093    
094            /**
095             * Creates a new journal feed with the primary key. Does not add the journal feed to the database.
096             *
097             * @param id the primary key for the new journal feed
098             * @return the new journal feed
099             */
100            @Override
101            public JournalFeed createJournalFeed(long id) {
102                    return journalFeedPersistence.create(id);
103            }
104    
105            /**
106             * Deletes the journal feed with the primary key from the database. Also notifies the appropriate model listeners.
107             *
108             * @param id the primary key of the journal feed
109             * @return the journal feed that was removed
110             * @throws PortalException if a journal feed with the primary key could not be found
111             * @throws SystemException if a system exception occurred
112             */
113            @Indexable(type = IndexableType.DELETE)
114            @Override
115            public JournalFeed deleteJournalFeed(long id)
116                    throws PortalException, SystemException {
117                    return journalFeedPersistence.remove(id);
118            }
119    
120            /**
121             * Deletes the journal feed from the database. Also notifies the appropriate model listeners.
122             *
123             * @param journalFeed the journal feed
124             * @return the journal feed that was removed
125             * @throws SystemException if a system exception occurred
126             */
127            @Indexable(type = IndexableType.DELETE)
128            @Override
129            public JournalFeed deleteJournalFeed(JournalFeed journalFeed)
130                    throws SystemException {
131                    return journalFeedPersistence.remove(journalFeed);
132            }
133    
134            @Override
135            public DynamicQuery dynamicQuery() {
136                    Class<?> clazz = getClass();
137    
138                    return DynamicQueryFactoryUtil.forClass(JournalFeed.class,
139                            clazz.getClassLoader());
140            }
141    
142            /**
143             * Performs a dynamic query on the database and returns the matching rows.
144             *
145             * @param dynamicQuery the dynamic query
146             * @return the matching rows
147             * @throws SystemException if a system exception occurred
148             */
149            @Override
150            @SuppressWarnings("rawtypes")
151            public List dynamicQuery(DynamicQuery dynamicQuery)
152                    throws SystemException {
153                    return journalFeedPersistence.findWithDynamicQuery(dynamicQuery);
154            }
155    
156            /**
157             * Performs a dynamic query on the database and returns a range of the matching rows.
158             *
159             * <p>
160             * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalFeedModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
161             * </p>
162             *
163             * @param dynamicQuery the dynamic query
164             * @param start the lower bound of the range of model instances
165             * @param end the upper bound of the range of model instances (not inclusive)
166             * @return the range of matching rows
167             * @throws SystemException if a system exception occurred
168             */
169            @Override
170            @SuppressWarnings("rawtypes")
171            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
172                    throws SystemException {
173                    return journalFeedPersistence.findWithDynamicQuery(dynamicQuery, start,
174                            end);
175            }
176    
177            /**
178             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
179             *
180             * <p>
181             * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalFeedModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
182             * </p>
183             *
184             * @param dynamicQuery the dynamic query
185             * @param start the lower bound of the range of model instances
186             * @param end the upper bound of the range of model instances (not inclusive)
187             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
188             * @return the ordered range of matching rows
189             * @throws SystemException if a system exception occurred
190             */
191            @Override
192            @SuppressWarnings("rawtypes")
193            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
194                    OrderByComparator orderByComparator) throws SystemException {
195                    return journalFeedPersistence.findWithDynamicQuery(dynamicQuery, start,
196                            end, orderByComparator);
197            }
198    
199            /**
200             * Returns the number of rows that match the dynamic query.
201             *
202             * @param dynamicQuery the dynamic query
203             * @return the number of rows that match the dynamic query
204             * @throws SystemException if a system exception occurred
205             */
206            @Override
207            public long dynamicQueryCount(DynamicQuery dynamicQuery)
208                    throws SystemException {
209                    return journalFeedPersistence.countWithDynamicQuery(dynamicQuery);
210            }
211    
212            /**
213             * Returns the number of rows that match the dynamic query.
214             *
215             * @param dynamicQuery the dynamic query
216             * @param projection the projection to apply to the query
217             * @return the number of rows that match the dynamic query
218             * @throws SystemException if a system exception occurred
219             */
220            @Override
221            public long dynamicQueryCount(DynamicQuery dynamicQuery,
222                    Projection projection) throws SystemException {
223                    return journalFeedPersistence.countWithDynamicQuery(dynamicQuery,
224                            projection);
225            }
226    
227            @Override
228            public JournalFeed fetchJournalFeed(long id) throws SystemException {
229                    return journalFeedPersistence.fetchByPrimaryKey(id);
230            }
231    
232            /**
233             * Returns the journal feed with the matching UUID and company.
234             *
235             * @param uuid the journal feed's UUID
236             * @param  companyId the primary key of the company
237             * @return the matching journal feed, or <code>null</code> if a matching journal feed could not be found
238             * @throws SystemException if a system exception occurred
239             */
240            @Override
241            public JournalFeed fetchJournalFeedByUuidAndCompanyId(String uuid,
242                    long companyId) throws SystemException {
243                    return journalFeedPersistence.fetchByUuid_C_First(uuid, companyId, null);
244            }
245    
246            /**
247             * Returns the journal feed matching the UUID and group.
248             *
249             * @param uuid the journal feed's UUID
250             * @param groupId the primary key of the group
251             * @return the matching journal feed, or <code>null</code> if a matching journal feed could not be found
252             * @throws SystemException if a system exception occurred
253             */
254            @Override
255            public JournalFeed fetchJournalFeedByUuidAndGroupId(String uuid,
256                    long groupId) throws SystemException {
257                    return journalFeedPersistence.fetchByUUID_G(uuid, groupId);
258            }
259    
260            /**
261             * Returns the journal feed with the primary key.
262             *
263             * @param id the primary key of the journal feed
264             * @return the journal feed
265             * @throws PortalException if a journal feed with the primary key could not be found
266             * @throws SystemException if a system exception occurred
267             */
268            @Override
269            public JournalFeed getJournalFeed(long id)
270                    throws PortalException, SystemException {
271                    return journalFeedPersistence.findByPrimaryKey(id);
272            }
273    
274            @Override
275            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
276                    throws PortalException, SystemException {
277                    return journalFeedPersistence.findByPrimaryKey(primaryKeyObj);
278            }
279    
280            /**
281             * Returns the journal feed with the matching UUID and company.
282             *
283             * @param uuid the journal feed's UUID
284             * @param  companyId the primary key of the company
285             * @return the matching journal feed
286             * @throws PortalException if a matching journal feed could not be found
287             * @throws SystemException if a system exception occurred
288             */
289            @Override
290            public JournalFeed getJournalFeedByUuidAndCompanyId(String uuid,
291                    long companyId) throws PortalException, SystemException {
292                    return journalFeedPersistence.findByUuid_C_First(uuid, companyId, null);
293            }
294    
295            /**
296             * Returns the journal feed matching the UUID and group.
297             *
298             * @param uuid the journal feed's UUID
299             * @param groupId the primary key of the group
300             * @return the matching journal feed
301             * @throws PortalException if a matching journal feed could not be found
302             * @throws SystemException if a system exception occurred
303             */
304            @Override
305            public JournalFeed getJournalFeedByUuidAndGroupId(String uuid, long groupId)
306                    throws PortalException, SystemException {
307                    return journalFeedPersistence.findByUUID_G(uuid, groupId);
308            }
309    
310            /**
311             * Returns a range of all the journal feeds.
312             *
313             * <p>
314             * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalFeedModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
315             * </p>
316             *
317             * @param start the lower bound of the range of journal feeds
318             * @param end the upper bound of the range of journal feeds (not inclusive)
319             * @return the range of journal feeds
320             * @throws SystemException if a system exception occurred
321             */
322            @Override
323            public List<JournalFeed> getJournalFeeds(int start, int end)
324                    throws SystemException {
325                    return journalFeedPersistence.findAll(start, end);
326            }
327    
328            /**
329             * Returns the number of journal feeds.
330             *
331             * @return the number of journal feeds
332             * @throws SystemException if a system exception occurred
333             */
334            @Override
335            public int getJournalFeedsCount() throws SystemException {
336                    return journalFeedPersistence.countAll();
337            }
338    
339            /**
340             * Updates the journal feed in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
341             *
342             * @param journalFeed the journal feed
343             * @return the journal feed that was updated
344             * @throws SystemException if a system exception occurred
345             */
346            @Indexable(type = IndexableType.REINDEX)
347            @Override
348            public JournalFeed updateJournalFeed(JournalFeed journalFeed)
349                    throws SystemException {
350                    return journalFeedPersistence.update(journalFeed);
351            }
352    
353            /**
354             * Returns the journal article local service.
355             *
356             * @return the journal article local service
357             */
358            public com.liferay.portlet.journal.service.JournalArticleLocalService getJournalArticleLocalService() {
359                    return journalArticleLocalService;
360            }
361    
362            /**
363             * Sets the journal article local service.
364             *
365             * @param journalArticleLocalService the journal article local service
366             */
367            public void setJournalArticleLocalService(
368                    com.liferay.portlet.journal.service.JournalArticleLocalService journalArticleLocalService) {
369                    this.journalArticleLocalService = journalArticleLocalService;
370            }
371    
372            /**
373             * Returns the journal article remote service.
374             *
375             * @return the journal article remote service
376             */
377            public com.liferay.portlet.journal.service.JournalArticleService getJournalArticleService() {
378                    return journalArticleService;
379            }
380    
381            /**
382             * Sets the journal article remote service.
383             *
384             * @param journalArticleService the journal article remote service
385             */
386            public void setJournalArticleService(
387                    com.liferay.portlet.journal.service.JournalArticleService journalArticleService) {
388                    this.journalArticleService = journalArticleService;
389            }
390    
391            /**
392             * Returns the journal article persistence.
393             *
394             * @return the journal article persistence
395             */
396            public JournalArticlePersistence getJournalArticlePersistence() {
397                    return journalArticlePersistence;
398            }
399    
400            /**
401             * Sets the journal article persistence.
402             *
403             * @param journalArticlePersistence the journal article persistence
404             */
405            public void setJournalArticlePersistence(
406                    JournalArticlePersistence journalArticlePersistence) {
407                    this.journalArticlePersistence = journalArticlePersistence;
408            }
409    
410            /**
411             * Returns the journal article finder.
412             *
413             * @return the journal article finder
414             */
415            public JournalArticleFinder getJournalArticleFinder() {
416                    return journalArticleFinder;
417            }
418    
419            /**
420             * Sets the journal article finder.
421             *
422             * @param journalArticleFinder the journal article finder
423             */
424            public void setJournalArticleFinder(
425                    JournalArticleFinder journalArticleFinder) {
426                    this.journalArticleFinder = journalArticleFinder;
427            }
428    
429            /**
430             * Returns the journal article image local service.
431             *
432             * @return the journal article image local service
433             */
434            public com.liferay.portlet.journal.service.JournalArticleImageLocalService getJournalArticleImageLocalService() {
435                    return journalArticleImageLocalService;
436            }
437    
438            /**
439             * Sets the journal article image local service.
440             *
441             * @param journalArticleImageLocalService the journal article image local service
442             */
443            public void setJournalArticleImageLocalService(
444                    com.liferay.portlet.journal.service.JournalArticleImageLocalService journalArticleImageLocalService) {
445                    this.journalArticleImageLocalService = journalArticleImageLocalService;
446            }
447    
448            /**
449             * Returns the journal article image persistence.
450             *
451             * @return the journal article image persistence
452             */
453            public JournalArticleImagePersistence getJournalArticleImagePersistence() {
454                    return journalArticleImagePersistence;
455            }
456    
457            /**
458             * Sets the journal article image persistence.
459             *
460             * @param journalArticleImagePersistence the journal article image persistence
461             */
462            public void setJournalArticleImagePersistence(
463                    JournalArticleImagePersistence journalArticleImagePersistence) {
464                    this.journalArticleImagePersistence = journalArticleImagePersistence;
465            }
466    
467            /**
468             * Returns the journal article resource local service.
469             *
470             * @return the journal article resource local service
471             */
472            public com.liferay.portlet.journal.service.JournalArticleResourceLocalService getJournalArticleResourceLocalService() {
473                    return journalArticleResourceLocalService;
474            }
475    
476            /**
477             * Sets the journal article resource local service.
478             *
479             * @param journalArticleResourceLocalService the journal article resource local service
480             */
481            public void setJournalArticleResourceLocalService(
482                    com.liferay.portlet.journal.service.JournalArticleResourceLocalService journalArticleResourceLocalService) {
483                    this.journalArticleResourceLocalService = journalArticleResourceLocalService;
484            }
485    
486            /**
487             * Returns the journal article resource persistence.
488             *
489             * @return the journal article resource persistence
490             */
491            public JournalArticleResourcePersistence getJournalArticleResourcePersistence() {
492                    return journalArticleResourcePersistence;
493            }
494    
495            /**
496             * Sets the journal article resource persistence.
497             *
498             * @param journalArticleResourcePersistence the journal article resource persistence
499             */
500            public void setJournalArticleResourcePersistence(
501                    JournalArticleResourcePersistence journalArticleResourcePersistence) {
502                    this.journalArticleResourcePersistence = journalArticleResourcePersistence;
503            }
504    
505            /**
506             * Returns the journal content search local service.
507             *
508             * @return the journal content search local service
509             */
510            public com.liferay.portlet.journal.service.JournalContentSearchLocalService getJournalContentSearchLocalService() {
511                    return journalContentSearchLocalService;
512            }
513    
514            /**
515             * Sets the journal content search local service.
516             *
517             * @param journalContentSearchLocalService the journal content search local service
518             */
519            public void setJournalContentSearchLocalService(
520                    com.liferay.portlet.journal.service.JournalContentSearchLocalService journalContentSearchLocalService) {
521                    this.journalContentSearchLocalService = journalContentSearchLocalService;
522            }
523    
524            /**
525             * Returns the journal content search persistence.
526             *
527             * @return the journal content search persistence
528             */
529            public JournalContentSearchPersistence getJournalContentSearchPersistence() {
530                    return journalContentSearchPersistence;
531            }
532    
533            /**
534             * Sets the journal content search persistence.
535             *
536             * @param journalContentSearchPersistence the journal content search persistence
537             */
538            public void setJournalContentSearchPersistence(
539                    JournalContentSearchPersistence journalContentSearchPersistence) {
540                    this.journalContentSearchPersistence = journalContentSearchPersistence;
541            }
542    
543            /**
544             * Returns the journal feed local service.
545             *
546             * @return the journal feed local service
547             */
548            public com.liferay.portlet.journal.service.JournalFeedLocalService getJournalFeedLocalService() {
549                    return journalFeedLocalService;
550            }
551    
552            /**
553             * Sets the journal feed local service.
554             *
555             * @param journalFeedLocalService the journal feed local service
556             */
557            public void setJournalFeedLocalService(
558                    com.liferay.portlet.journal.service.JournalFeedLocalService journalFeedLocalService) {
559                    this.journalFeedLocalService = journalFeedLocalService;
560            }
561    
562            /**
563             * Returns the journal feed remote service.
564             *
565             * @return the journal feed remote service
566             */
567            public com.liferay.portlet.journal.service.JournalFeedService getJournalFeedService() {
568                    return journalFeedService;
569            }
570    
571            /**
572             * Sets the journal feed remote service.
573             *
574             * @param journalFeedService the journal feed remote service
575             */
576            public void setJournalFeedService(
577                    com.liferay.portlet.journal.service.JournalFeedService journalFeedService) {
578                    this.journalFeedService = journalFeedService;
579            }
580    
581            /**
582             * Returns the journal feed persistence.
583             *
584             * @return the journal feed persistence
585             */
586            public JournalFeedPersistence getJournalFeedPersistence() {
587                    return journalFeedPersistence;
588            }
589    
590            /**
591             * Sets the journal feed persistence.
592             *
593             * @param journalFeedPersistence the journal feed persistence
594             */
595            public void setJournalFeedPersistence(
596                    JournalFeedPersistence journalFeedPersistence) {
597                    this.journalFeedPersistence = journalFeedPersistence;
598            }
599    
600            /**
601             * Returns the journal feed finder.
602             *
603             * @return the journal feed finder
604             */
605            public JournalFeedFinder getJournalFeedFinder() {
606                    return journalFeedFinder;
607            }
608    
609            /**
610             * Sets the journal feed finder.
611             *
612             * @param journalFeedFinder the journal feed finder
613             */
614            public void setJournalFeedFinder(JournalFeedFinder journalFeedFinder) {
615                    this.journalFeedFinder = journalFeedFinder;
616            }
617    
618            /**
619             * Returns the journal folder local service.
620             *
621             * @return the journal folder local service
622             */
623            public com.liferay.portlet.journal.service.JournalFolderLocalService getJournalFolderLocalService() {
624                    return journalFolderLocalService;
625            }
626    
627            /**
628             * Sets the journal folder local service.
629             *
630             * @param journalFolderLocalService the journal folder local service
631             */
632            public void setJournalFolderLocalService(
633                    com.liferay.portlet.journal.service.JournalFolderLocalService journalFolderLocalService) {
634                    this.journalFolderLocalService = journalFolderLocalService;
635            }
636    
637            /**
638             * Returns the journal folder remote service.
639             *
640             * @return the journal folder remote service
641             */
642            public com.liferay.portlet.journal.service.JournalFolderService getJournalFolderService() {
643                    return journalFolderService;
644            }
645    
646            /**
647             * Sets the journal folder remote service.
648             *
649             * @param journalFolderService the journal folder remote service
650             */
651            public void setJournalFolderService(
652                    com.liferay.portlet.journal.service.JournalFolderService journalFolderService) {
653                    this.journalFolderService = journalFolderService;
654            }
655    
656            /**
657             * Returns the journal folder persistence.
658             *
659             * @return the journal folder persistence
660             */
661            public JournalFolderPersistence getJournalFolderPersistence() {
662                    return journalFolderPersistence;
663            }
664    
665            /**
666             * Sets the journal folder persistence.
667             *
668             * @param journalFolderPersistence the journal folder persistence
669             */
670            public void setJournalFolderPersistence(
671                    JournalFolderPersistence journalFolderPersistence) {
672                    this.journalFolderPersistence = journalFolderPersistence;
673            }
674    
675            /**
676             * Returns the journal folder finder.
677             *
678             * @return the journal folder finder
679             */
680            public JournalFolderFinder getJournalFolderFinder() {
681                    return journalFolderFinder;
682            }
683    
684            /**
685             * Sets the journal folder finder.
686             *
687             * @param journalFolderFinder the journal folder finder
688             */
689            public void setJournalFolderFinder(JournalFolderFinder journalFolderFinder) {
690                    this.journalFolderFinder = journalFolderFinder;
691            }
692    
693            /**
694             * Returns the journal structure local service.
695             *
696             * @return the journal structure local service
697             */
698            @SuppressWarnings("deprecation")
699            public com.liferay.portlet.journal.service.JournalStructureLocalService getJournalStructureLocalService() {
700                    return journalStructureLocalService;
701            }
702    
703            /**
704             * Sets the journal structure local service.
705             *
706             * @param journalStructureLocalService the journal structure local service
707             */
708            @SuppressWarnings("deprecation")
709            public void setJournalStructureLocalService(
710                    com.liferay.portlet.journal.service.JournalStructureLocalService journalStructureLocalService) {
711                    this.journalStructureLocalService = journalStructureLocalService;
712            }
713    
714            /**
715             * Returns the journal structure remote service.
716             *
717             * @return the journal structure remote service
718             */
719            @SuppressWarnings("deprecation")
720            public com.liferay.portlet.journal.service.JournalStructureService getJournalStructureService() {
721                    return journalStructureService;
722            }
723    
724            /**
725             * Sets the journal structure remote service.
726             *
727             * @param journalStructureService the journal structure remote service
728             */
729            @SuppressWarnings("deprecation")
730            public void setJournalStructureService(
731                    com.liferay.portlet.journal.service.JournalStructureService journalStructureService) {
732                    this.journalStructureService = journalStructureService;
733            }
734    
735            /**
736             * Returns the journal template local service.
737             *
738             * @return the journal template local service
739             */
740            @SuppressWarnings("deprecation")
741            public com.liferay.portlet.journal.service.JournalTemplateLocalService getJournalTemplateLocalService() {
742                    return journalTemplateLocalService;
743            }
744    
745            /**
746             * Sets the journal template local service.
747             *
748             * @param journalTemplateLocalService the journal template local service
749             */
750            @SuppressWarnings("deprecation")
751            public void setJournalTemplateLocalService(
752                    com.liferay.portlet.journal.service.JournalTemplateLocalService journalTemplateLocalService) {
753                    this.journalTemplateLocalService = journalTemplateLocalService;
754            }
755    
756            /**
757             * Returns the journal template remote service.
758             *
759             * @return the journal template remote service
760             */
761            @SuppressWarnings("deprecation")
762            public com.liferay.portlet.journal.service.JournalTemplateService getJournalTemplateService() {
763                    return journalTemplateService;
764            }
765    
766            /**
767             * Sets the journal template remote service.
768             *
769             * @param journalTemplateService the journal template remote service
770             */
771            @SuppressWarnings("deprecation")
772            public void setJournalTemplateService(
773                    com.liferay.portlet.journal.service.JournalTemplateService journalTemplateService) {
774                    this.journalTemplateService = journalTemplateService;
775            }
776    
777            /**
778             * Returns the counter local service.
779             *
780             * @return the counter local service
781             */
782            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
783                    return counterLocalService;
784            }
785    
786            /**
787             * Sets the counter local service.
788             *
789             * @param counterLocalService the counter local service
790             */
791            public void setCounterLocalService(
792                    com.liferay.counter.service.CounterLocalService counterLocalService) {
793                    this.counterLocalService = counterLocalService;
794            }
795    
796            /**
797             * Returns the resource local service.
798             *
799             * @return the resource local service
800             */
801            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
802                    return resourceLocalService;
803            }
804    
805            /**
806             * Sets the resource local service.
807             *
808             * @param resourceLocalService the resource local service
809             */
810            public void setResourceLocalService(
811                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
812                    this.resourceLocalService = resourceLocalService;
813            }
814    
815            /**
816             * Returns the system event local service.
817             *
818             * @return the system event local service
819             */
820            public com.liferay.portal.service.SystemEventLocalService getSystemEventLocalService() {
821                    return systemEventLocalService;
822            }
823    
824            /**
825             * Sets the system event local service.
826             *
827             * @param systemEventLocalService the system event local service
828             */
829            public void setSystemEventLocalService(
830                    com.liferay.portal.service.SystemEventLocalService systemEventLocalService) {
831                    this.systemEventLocalService = systemEventLocalService;
832            }
833    
834            /**
835             * Returns the system event persistence.
836             *
837             * @return the system event persistence
838             */
839            public SystemEventPersistence getSystemEventPersistence() {
840                    return systemEventPersistence;
841            }
842    
843            /**
844             * Sets the system event persistence.
845             *
846             * @param systemEventPersistence the system event persistence
847             */
848            public void setSystemEventPersistence(
849                    SystemEventPersistence systemEventPersistence) {
850                    this.systemEventPersistence = systemEventPersistence;
851            }
852    
853            /**
854             * Returns the user local service.
855             *
856             * @return the user local service
857             */
858            public com.liferay.portal.service.UserLocalService getUserLocalService() {
859                    return userLocalService;
860            }
861    
862            /**
863             * Sets the user local service.
864             *
865             * @param userLocalService the user local service
866             */
867            public void setUserLocalService(
868                    com.liferay.portal.service.UserLocalService userLocalService) {
869                    this.userLocalService = userLocalService;
870            }
871    
872            /**
873             * Returns the user remote service.
874             *
875             * @return the user remote service
876             */
877            public com.liferay.portal.service.UserService getUserService() {
878                    return userService;
879            }
880    
881            /**
882             * Sets the user remote service.
883             *
884             * @param userService the user remote service
885             */
886            public void setUserService(
887                    com.liferay.portal.service.UserService userService) {
888                    this.userService = userService;
889            }
890    
891            /**
892             * Returns the user persistence.
893             *
894             * @return the user persistence
895             */
896            public UserPersistence getUserPersistence() {
897                    return userPersistence;
898            }
899    
900            /**
901             * Sets the user persistence.
902             *
903             * @param userPersistence the user persistence
904             */
905            public void setUserPersistence(UserPersistence userPersistence) {
906                    this.userPersistence = userPersistence;
907            }
908    
909            /**
910             * Returns the user finder.
911             *
912             * @return the user finder
913             */
914            public UserFinder getUserFinder() {
915                    return userFinder;
916            }
917    
918            /**
919             * Sets the user finder.
920             *
921             * @param userFinder the user finder
922             */
923            public void setUserFinder(UserFinder userFinder) {
924                    this.userFinder = userFinder;
925            }
926    
927            /**
928             * Returns the d d m structure local service.
929             *
930             * @return the d d m structure local service
931             */
932            public com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService getDDMStructureLocalService() {
933                    return ddmStructureLocalService;
934            }
935    
936            /**
937             * Sets the d d m structure local service.
938             *
939             * @param ddmStructureLocalService the d d m structure local service
940             */
941            public void setDDMStructureLocalService(
942                    com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService ddmStructureLocalService) {
943                    this.ddmStructureLocalService = ddmStructureLocalService;
944            }
945    
946            /**
947             * Returns the d d m structure remote service.
948             *
949             * @return the d d m structure remote service
950             */
951            public com.liferay.portlet.dynamicdatamapping.service.DDMStructureService getDDMStructureService() {
952                    return ddmStructureService;
953            }
954    
955            /**
956             * Sets the d d m structure remote service.
957             *
958             * @param ddmStructureService the d d m structure remote service
959             */
960            public void setDDMStructureService(
961                    com.liferay.portlet.dynamicdatamapping.service.DDMStructureService ddmStructureService) {
962                    this.ddmStructureService = ddmStructureService;
963            }
964    
965            /**
966             * Returns the d d m structure persistence.
967             *
968             * @return the d d m structure persistence
969             */
970            public DDMStructurePersistence getDDMStructurePersistence() {
971                    return ddmStructurePersistence;
972            }
973    
974            /**
975             * Sets the d d m structure persistence.
976             *
977             * @param ddmStructurePersistence the d d m structure persistence
978             */
979            public void setDDMStructurePersistence(
980                    DDMStructurePersistence ddmStructurePersistence) {
981                    this.ddmStructurePersistence = ddmStructurePersistence;
982            }
983    
984            /**
985             * Returns the d d m structure finder.
986             *
987             * @return the d d m structure finder
988             */
989            public DDMStructureFinder getDDMStructureFinder() {
990                    return ddmStructureFinder;
991            }
992    
993            /**
994             * Sets the d d m structure finder.
995             *
996             * @param ddmStructureFinder the d d m structure finder
997             */
998            public void setDDMStructureFinder(DDMStructureFinder ddmStructureFinder) {
999                    this.ddmStructureFinder = ddmStructureFinder;
1000            }
1001    
1002            /**
1003             * Returns the expando value local service.
1004             *
1005             * @return the expando value local service
1006             */
1007            public com.liferay.portlet.expando.service.ExpandoValueLocalService getExpandoValueLocalService() {
1008                    return expandoValueLocalService;
1009            }
1010    
1011            /**
1012             * Sets the expando value local service.
1013             *
1014             * @param expandoValueLocalService the expando value local service
1015             */
1016            public void setExpandoValueLocalService(
1017                    com.liferay.portlet.expando.service.ExpandoValueLocalService expandoValueLocalService) {
1018                    this.expandoValueLocalService = expandoValueLocalService;
1019            }
1020    
1021            /**
1022             * Returns the expando value remote service.
1023             *
1024             * @return the expando value remote service
1025             */
1026            public com.liferay.portlet.expando.service.ExpandoValueService getExpandoValueService() {
1027                    return expandoValueService;
1028            }
1029    
1030            /**
1031             * Sets the expando value remote service.
1032             *
1033             * @param expandoValueService the expando value remote service
1034             */
1035            public void setExpandoValueService(
1036                    com.liferay.portlet.expando.service.ExpandoValueService expandoValueService) {
1037                    this.expandoValueService = expandoValueService;
1038            }
1039    
1040            /**
1041             * Returns the expando value persistence.
1042             *
1043             * @return the expando value persistence
1044             */
1045            public ExpandoValuePersistence getExpandoValuePersistence() {
1046                    return expandoValuePersistence;
1047            }
1048    
1049            /**
1050             * Sets the expando value persistence.
1051             *
1052             * @param expandoValuePersistence the expando value persistence
1053             */
1054            public void setExpandoValuePersistence(
1055                    ExpandoValuePersistence expandoValuePersistence) {
1056                    this.expandoValuePersistence = expandoValuePersistence;
1057            }
1058    
1059            public void afterPropertiesSet() {
1060                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.journal.model.JournalFeed",
1061                            journalFeedLocalService);
1062            }
1063    
1064            public void destroy() {
1065                    persistedModelLocalServiceRegistry.unregister(
1066                            "com.liferay.portlet.journal.model.JournalFeed");
1067            }
1068    
1069            /**
1070             * Returns the Spring bean ID for this bean.
1071             *
1072             * @return the Spring bean ID for this bean
1073             */
1074            @Override
1075            public String getBeanIdentifier() {
1076                    return _beanIdentifier;
1077            }
1078    
1079            /**
1080             * Sets the Spring bean ID for this bean.
1081             *
1082             * @param beanIdentifier the Spring bean ID for this bean
1083             */
1084            @Override
1085            public void setBeanIdentifier(String beanIdentifier) {
1086                    _beanIdentifier = beanIdentifier;
1087            }
1088    
1089            protected Class<?> getModelClass() {
1090                    return JournalFeed.class;
1091            }
1092    
1093            protected String getModelClassName() {
1094                    return JournalFeed.class.getName();
1095            }
1096    
1097            /**
1098             * Performs an SQL query.
1099             *
1100             * @param sql the sql query
1101             */
1102            protected void runSQL(String sql) throws SystemException {
1103                    try {
1104                            DataSource dataSource = journalFeedPersistence.getDataSource();
1105    
1106                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1107                                            sql, new int[0]);
1108    
1109                            sqlUpdate.update();
1110                    }
1111                    catch (Exception e) {
1112                            throw new SystemException(e);
1113                    }
1114            }
1115    
1116            @BeanReference(type = com.liferay.portlet.journal.service.JournalArticleLocalService.class)
1117            protected com.liferay.portlet.journal.service.JournalArticleLocalService journalArticleLocalService;
1118            @BeanReference(type = com.liferay.portlet.journal.service.JournalArticleService.class)
1119            protected com.liferay.portlet.journal.service.JournalArticleService journalArticleService;
1120            @BeanReference(type = JournalArticlePersistence.class)
1121            protected JournalArticlePersistence journalArticlePersistence;
1122            @BeanReference(type = JournalArticleFinder.class)
1123            protected JournalArticleFinder journalArticleFinder;
1124            @BeanReference(type = com.liferay.portlet.journal.service.JournalArticleImageLocalService.class)
1125            protected com.liferay.portlet.journal.service.JournalArticleImageLocalService journalArticleImageLocalService;
1126            @BeanReference(type = JournalArticleImagePersistence.class)
1127            protected JournalArticleImagePersistence journalArticleImagePersistence;
1128            @BeanReference(type = com.liferay.portlet.journal.service.JournalArticleResourceLocalService.class)
1129            protected com.liferay.portlet.journal.service.JournalArticleResourceLocalService journalArticleResourceLocalService;
1130            @BeanReference(type = JournalArticleResourcePersistence.class)
1131            protected JournalArticleResourcePersistence journalArticleResourcePersistence;
1132            @BeanReference(type = com.liferay.portlet.journal.service.JournalContentSearchLocalService.class)
1133            protected com.liferay.portlet.journal.service.JournalContentSearchLocalService journalContentSearchLocalService;
1134            @BeanReference(type = JournalContentSearchPersistence.class)
1135            protected JournalContentSearchPersistence journalContentSearchPersistence;
1136            @BeanReference(type = com.liferay.portlet.journal.service.JournalFeedLocalService.class)
1137            protected com.liferay.portlet.journal.service.JournalFeedLocalService journalFeedLocalService;
1138            @BeanReference(type = com.liferay.portlet.journal.service.JournalFeedService.class)
1139            protected com.liferay.portlet.journal.service.JournalFeedService journalFeedService;
1140            @BeanReference(type = JournalFeedPersistence.class)
1141            protected JournalFeedPersistence journalFeedPersistence;
1142            @BeanReference(type = JournalFeedFinder.class)
1143            protected JournalFeedFinder journalFeedFinder;
1144            @BeanReference(type = com.liferay.portlet.journal.service.JournalFolderLocalService.class)
1145            protected com.liferay.portlet.journal.service.JournalFolderLocalService journalFolderLocalService;
1146            @BeanReference(type = com.liferay.portlet.journal.service.JournalFolderService.class)
1147            protected com.liferay.portlet.journal.service.JournalFolderService journalFolderService;
1148            @BeanReference(type = JournalFolderPersistence.class)
1149            protected JournalFolderPersistence journalFolderPersistence;
1150            @BeanReference(type = JournalFolderFinder.class)
1151            protected JournalFolderFinder journalFolderFinder;
1152            @BeanReference(type = com.liferay.portlet.journal.service.JournalStructureLocalService.class)
1153            @SuppressWarnings("deprecation")
1154            protected com.liferay.portlet.journal.service.JournalStructureLocalService journalStructureLocalService;
1155            @BeanReference(type = com.liferay.portlet.journal.service.JournalStructureService.class)
1156            @SuppressWarnings("deprecation")
1157            protected com.liferay.portlet.journal.service.JournalStructureService journalStructureService;
1158            @BeanReference(type = com.liferay.portlet.journal.service.JournalTemplateLocalService.class)
1159            @SuppressWarnings("deprecation")
1160            protected com.liferay.portlet.journal.service.JournalTemplateLocalService journalTemplateLocalService;
1161            @BeanReference(type = com.liferay.portlet.journal.service.JournalTemplateService.class)
1162            @SuppressWarnings("deprecation")
1163            protected com.liferay.portlet.journal.service.JournalTemplateService journalTemplateService;
1164            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1165            protected com.liferay.counter.service.CounterLocalService counterLocalService;
1166            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1167            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1168            @BeanReference(type = com.liferay.portal.service.SystemEventLocalService.class)
1169            protected com.liferay.portal.service.SystemEventLocalService systemEventLocalService;
1170            @BeanReference(type = SystemEventPersistence.class)
1171            protected SystemEventPersistence systemEventPersistence;
1172            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1173            protected com.liferay.portal.service.UserLocalService userLocalService;
1174            @BeanReference(type = com.liferay.portal.service.UserService.class)
1175            protected com.liferay.portal.service.UserService userService;
1176            @BeanReference(type = UserPersistence.class)
1177            protected UserPersistence userPersistence;
1178            @BeanReference(type = UserFinder.class)
1179            protected UserFinder userFinder;
1180            @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService.class)
1181            protected com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService ddmStructureLocalService;
1182            @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMStructureService.class)
1183            protected com.liferay.portlet.dynamicdatamapping.service.DDMStructureService ddmStructureService;
1184            @BeanReference(type = DDMStructurePersistence.class)
1185            protected DDMStructurePersistence ddmStructurePersistence;
1186            @BeanReference(type = DDMStructureFinder.class)
1187            protected DDMStructureFinder ddmStructureFinder;
1188            @BeanReference(type = com.liferay.portlet.expando.service.ExpandoValueLocalService.class)
1189            protected com.liferay.portlet.expando.service.ExpandoValueLocalService expandoValueLocalService;
1190            @BeanReference(type = com.liferay.portlet.expando.service.ExpandoValueService.class)
1191            protected com.liferay.portlet.expando.service.ExpandoValueService expandoValueService;
1192            @BeanReference(type = ExpandoValuePersistence.class)
1193            protected ExpandoValuePersistence expandoValuePersistence;
1194            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1195            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1196            private String _beanIdentifier;
1197    }