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