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.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.GroupLocalService;
033    import com.liferay.portal.service.GroupService;
034    import com.liferay.portal.service.LayoutLocalService;
035    import com.liferay.portal.service.LayoutService;
036    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
037    import com.liferay.portal.service.PortletPreferencesLocalService;
038    import com.liferay.portal.service.PortletPreferencesService;
039    import com.liferay.portal.service.ResourceLocalService;
040    import com.liferay.portal.service.ResourceService;
041    import com.liferay.portal.service.UserLocalService;
042    import com.liferay.portal.service.UserService;
043    import com.liferay.portal.service.persistence.GroupFinder;
044    import com.liferay.portal.service.persistence.GroupPersistence;
045    import com.liferay.portal.service.persistence.LayoutFinder;
046    import com.liferay.portal.service.persistence.LayoutPersistence;
047    import com.liferay.portal.service.persistence.PortletPreferencesFinder;
048    import com.liferay.portal.service.persistence.PortletPreferencesPersistence;
049    import com.liferay.portal.service.persistence.ResourceFinder;
050    import com.liferay.portal.service.persistence.ResourcePersistence;
051    import com.liferay.portal.service.persistence.UserFinder;
052    import com.liferay.portal.service.persistence.UserPersistence;
053    
054    import com.liferay.portlet.journal.model.JournalContentSearch;
055    import com.liferay.portlet.journal.service.JournalArticleImageLocalService;
056    import com.liferay.portlet.journal.service.JournalArticleLocalService;
057    import com.liferay.portlet.journal.service.JournalArticleResourceLocalService;
058    import com.liferay.portlet.journal.service.JournalArticleService;
059    import com.liferay.portlet.journal.service.JournalContentSearchLocalService;
060    import com.liferay.portlet.journal.service.JournalFeedLocalService;
061    import com.liferay.portlet.journal.service.JournalFeedService;
062    import com.liferay.portlet.journal.service.JournalStructureLocalService;
063    import com.liferay.portlet.journal.service.JournalStructureService;
064    import com.liferay.portlet.journal.service.JournalTemplateLocalService;
065    import com.liferay.portlet.journal.service.JournalTemplateService;
066    import com.liferay.portlet.journal.service.persistence.JournalArticleFinder;
067    import com.liferay.portlet.journal.service.persistence.JournalArticleImagePersistence;
068    import com.liferay.portlet.journal.service.persistence.JournalArticlePersistence;
069    import com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence;
070    import com.liferay.portlet.journal.service.persistence.JournalContentSearchPersistence;
071    import com.liferay.portlet.journal.service.persistence.JournalFeedFinder;
072    import com.liferay.portlet.journal.service.persistence.JournalFeedPersistence;
073    import com.liferay.portlet.journal.service.persistence.JournalStructureFinder;
074    import com.liferay.portlet.journal.service.persistence.JournalStructurePersistence;
075    import com.liferay.portlet.journal.service.persistence.JournalTemplateFinder;
076    import com.liferay.portlet.journal.service.persistence.JournalTemplatePersistence;
077    
078    import java.io.Serializable;
079    
080    import java.util.List;
081    
082    import javax.sql.DataSource;
083    
084    /**
085     * The base implementation of the journal content search local service.
086     *
087     * <p>
088     * 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.JournalContentSearchLocalServiceImpl}.
089     * </p>
090     *
091     * @author Brian Wing Shun Chan
092     * @see com.liferay.portlet.journal.service.impl.JournalContentSearchLocalServiceImpl
093     * @see com.liferay.portlet.journal.service.JournalContentSearchLocalServiceUtil
094     * @generated
095     */
096    public abstract class JournalContentSearchLocalServiceBaseImpl
097            extends BaseLocalServiceImpl implements JournalContentSearchLocalService,
098                    IdentifiableBean {
099            /*
100             * NOTE FOR DEVELOPERS:
101             *
102             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.journal.service.JournalContentSearchLocalServiceUtil} to access the journal content search local service.
103             */
104    
105            /**
106             * Adds the journal content search to the database. Also notifies the appropriate model listeners.
107             *
108             * @param journalContentSearch the journal content search
109             * @return the journal content search that was added
110             * @throws SystemException if a system exception occurred
111             */
112            @Indexable(type = IndexableType.REINDEX)
113            public JournalContentSearch addJournalContentSearch(
114                    JournalContentSearch journalContentSearch) throws SystemException {
115                    journalContentSearch.setNew(true);
116    
117                    return journalContentSearchPersistence.update(journalContentSearch,
118                            false);
119            }
120    
121            /**
122             * Creates a new journal content search with the primary key. Does not add the journal content search to the database.
123             *
124             * @param contentSearchId the primary key for the new journal content search
125             * @return the new journal content search
126             */
127            public JournalContentSearch createJournalContentSearch(long contentSearchId) {
128                    return journalContentSearchPersistence.create(contentSearchId);
129            }
130    
131            /**
132             * Deletes the journal content search with the primary key from the database. Also notifies the appropriate model listeners.
133             *
134             * @param contentSearchId the primary key of the journal content search
135             * @return the journal content search that was removed
136             * @throws PortalException if a journal content search with the primary key could not be found
137             * @throws SystemException if a system exception occurred
138             */
139            @Indexable(type = IndexableType.DELETE)
140            public JournalContentSearch deleteJournalContentSearch(long contentSearchId)
141                    throws PortalException, SystemException {
142                    return journalContentSearchPersistence.remove(contentSearchId);
143            }
144    
145            /**
146             * Deletes the journal content search from the database. Also notifies the appropriate model listeners.
147             *
148             * @param journalContentSearch the journal content search
149             * @return the journal content search that was removed
150             * @throws SystemException if a system exception occurred
151             */
152            @Indexable(type = IndexableType.DELETE)
153            public JournalContentSearch deleteJournalContentSearch(
154                    JournalContentSearch journalContentSearch) throws SystemException {
155                    return journalContentSearchPersistence.remove(journalContentSearch);
156            }
157    
158            public DynamicQuery dynamicQuery() {
159                    Class<?> clazz = getClass();
160    
161                    return DynamicQueryFactoryUtil.forClass(JournalContentSearch.class,
162                            clazz.getClassLoader());
163            }
164    
165            /**
166             * Performs a dynamic query on the database and returns the matching rows.
167             *
168             * @param dynamicQuery the dynamic query
169             * @return the matching rows
170             * @throws SystemException if a system exception occurred
171             */
172            @SuppressWarnings("rawtypes")
173            public List dynamicQuery(DynamicQuery dynamicQuery)
174                    throws SystemException {
175                    return journalContentSearchPersistence.findWithDynamicQuery(dynamicQuery);
176            }
177    
178            /**
179             * Performs a dynamic query on the database and returns a range of the matching rows.
180             *
181             * <p>
182             * 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.
183             * </p>
184             *
185             * @param dynamicQuery the dynamic query
186             * @param start the lower bound of the range of model instances
187             * @param end the upper bound of the range of model instances (not inclusive)
188             * @return the range of matching rows
189             * @throws SystemException if a system exception occurred
190             */
191            @SuppressWarnings("rawtypes")
192            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
193                    throws SystemException {
194                    return journalContentSearchPersistence.findWithDynamicQuery(dynamicQuery,
195                            start, end);
196            }
197    
198            /**
199             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
200             *
201             * <p>
202             * 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.
203             * </p>
204             *
205             * @param dynamicQuery the dynamic query
206             * @param start the lower bound of the range of model instances
207             * @param end the upper bound of the range of model instances (not inclusive)
208             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
209             * @return the ordered range of matching rows
210             * @throws SystemException if a system exception occurred
211             */
212            @SuppressWarnings("rawtypes")
213            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
214                    OrderByComparator orderByComparator) throws SystemException {
215                    return journalContentSearchPersistence.findWithDynamicQuery(dynamicQuery,
216                            start, end, orderByComparator);
217            }
218    
219            /**
220             * Returns the number of rows that match the dynamic query.
221             *
222             * @param dynamicQuery the dynamic query
223             * @return the number of rows that match the dynamic query
224             * @throws SystemException if a system exception occurred
225             */
226            public long dynamicQueryCount(DynamicQuery dynamicQuery)
227                    throws SystemException {
228                    return journalContentSearchPersistence.countWithDynamicQuery(dynamicQuery);
229            }
230    
231            public JournalContentSearch fetchJournalContentSearch(long contentSearchId)
232                    throws SystemException {
233                    return journalContentSearchPersistence.fetchByPrimaryKey(contentSearchId);
234            }
235    
236            /**
237             * Returns the journal content search with the primary key.
238             *
239             * @param contentSearchId the primary key of the journal content search
240             * @return the journal content search
241             * @throws PortalException if a journal content search with the primary key could not be found
242             * @throws SystemException if a system exception occurred
243             */
244            public JournalContentSearch getJournalContentSearch(long contentSearchId)
245                    throws PortalException, SystemException {
246                    return journalContentSearchPersistence.findByPrimaryKey(contentSearchId);
247            }
248    
249            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
250                    throws PortalException, SystemException {
251                    return journalContentSearchPersistence.findByPrimaryKey(primaryKeyObj);
252            }
253    
254            /**
255             * Returns a range of all the journal content searchs.
256             *
257             * <p>
258             * 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.
259             * </p>
260             *
261             * @param start the lower bound of the range of journal content searchs
262             * @param end the upper bound of the range of journal content searchs (not inclusive)
263             * @return the range of journal content searchs
264             * @throws SystemException if a system exception occurred
265             */
266            public List<JournalContentSearch> getJournalContentSearchs(int start,
267                    int end) throws SystemException {
268                    return journalContentSearchPersistence.findAll(start, end);
269            }
270    
271            /**
272             * Returns the number of journal content searchs.
273             *
274             * @return the number of journal content searchs
275             * @throws SystemException if a system exception occurred
276             */
277            public int getJournalContentSearchsCount() throws SystemException {
278                    return journalContentSearchPersistence.countAll();
279            }
280    
281            /**
282             * Updates the journal content search in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
283             *
284             * @param journalContentSearch the journal content search
285             * @return the journal content search that was updated
286             * @throws SystemException if a system exception occurred
287             */
288            @Indexable(type = IndexableType.REINDEX)
289            public JournalContentSearch updateJournalContentSearch(
290                    JournalContentSearch journalContentSearch) throws SystemException {
291                    return updateJournalContentSearch(journalContentSearch, true);
292            }
293    
294            /**
295             * Updates the journal content search in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
296             *
297             * @param journalContentSearch the journal content search
298             * @param merge whether to merge the journal content search with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
299             * @return the journal content search that was updated
300             * @throws SystemException if a system exception occurred
301             */
302            @Indexable(type = IndexableType.REINDEX)
303            public JournalContentSearch updateJournalContentSearch(
304                    JournalContentSearch journalContentSearch, boolean merge)
305                    throws SystemException {
306                    journalContentSearch.setNew(false);
307    
308                    return journalContentSearchPersistence.update(journalContentSearch,
309                            merge);
310            }
311    
312            /**
313             * Returns the journal article local service.
314             *
315             * @return the journal article local service
316             */
317            public JournalArticleLocalService getJournalArticleLocalService() {
318                    return journalArticleLocalService;
319            }
320    
321            /**
322             * Sets the journal article local service.
323             *
324             * @param journalArticleLocalService the journal article local service
325             */
326            public void setJournalArticleLocalService(
327                    JournalArticleLocalService journalArticleLocalService) {
328                    this.journalArticleLocalService = journalArticleLocalService;
329            }
330    
331            /**
332             * Returns the journal article remote service.
333             *
334             * @return the journal article remote service
335             */
336            public JournalArticleService getJournalArticleService() {
337                    return journalArticleService;
338            }
339    
340            /**
341             * Sets the journal article remote service.
342             *
343             * @param journalArticleService the journal article remote service
344             */
345            public void setJournalArticleService(
346                    JournalArticleService journalArticleService) {
347                    this.journalArticleService = journalArticleService;
348            }
349    
350            /**
351             * Returns the journal article persistence.
352             *
353             * @return the journal article persistence
354             */
355            public JournalArticlePersistence getJournalArticlePersistence() {
356                    return journalArticlePersistence;
357            }
358    
359            /**
360             * Sets the journal article persistence.
361             *
362             * @param journalArticlePersistence the journal article persistence
363             */
364            public void setJournalArticlePersistence(
365                    JournalArticlePersistence journalArticlePersistence) {
366                    this.journalArticlePersistence = journalArticlePersistence;
367            }
368    
369            /**
370             * Returns the journal article finder.
371             *
372             * @return the journal article finder
373             */
374            public JournalArticleFinder getJournalArticleFinder() {
375                    return journalArticleFinder;
376            }
377    
378            /**
379             * Sets the journal article finder.
380             *
381             * @param journalArticleFinder the journal article finder
382             */
383            public void setJournalArticleFinder(
384                    JournalArticleFinder journalArticleFinder) {
385                    this.journalArticleFinder = journalArticleFinder;
386            }
387    
388            /**
389             * Returns the journal article image local service.
390             *
391             * @return the journal article image local service
392             */
393            public JournalArticleImageLocalService getJournalArticleImageLocalService() {
394                    return journalArticleImageLocalService;
395            }
396    
397            /**
398             * Sets the journal article image local service.
399             *
400             * @param journalArticleImageLocalService the journal article image local service
401             */
402            public void setJournalArticleImageLocalService(
403                    JournalArticleImageLocalService journalArticleImageLocalService) {
404                    this.journalArticleImageLocalService = journalArticleImageLocalService;
405            }
406    
407            /**
408             * Returns the journal article image persistence.
409             *
410             * @return the journal article image persistence
411             */
412            public JournalArticleImagePersistence getJournalArticleImagePersistence() {
413                    return journalArticleImagePersistence;
414            }
415    
416            /**
417             * Sets the journal article image persistence.
418             *
419             * @param journalArticleImagePersistence the journal article image persistence
420             */
421            public void setJournalArticleImagePersistence(
422                    JournalArticleImagePersistence journalArticleImagePersistence) {
423                    this.journalArticleImagePersistence = journalArticleImagePersistence;
424            }
425    
426            /**
427             * Returns the journal article resource local service.
428             *
429             * @return the journal article resource local service
430             */
431            public JournalArticleResourceLocalService getJournalArticleResourceLocalService() {
432                    return journalArticleResourceLocalService;
433            }
434    
435            /**
436             * Sets the journal article resource local service.
437             *
438             * @param journalArticleResourceLocalService the journal article resource local service
439             */
440            public void setJournalArticleResourceLocalService(
441                    JournalArticleResourceLocalService journalArticleResourceLocalService) {
442                    this.journalArticleResourceLocalService = journalArticleResourceLocalService;
443            }
444    
445            /**
446             * Returns the journal article resource persistence.
447             *
448             * @return the journal article resource persistence
449             */
450            public JournalArticleResourcePersistence getJournalArticleResourcePersistence() {
451                    return journalArticleResourcePersistence;
452            }
453    
454            /**
455             * Sets the journal article resource persistence.
456             *
457             * @param journalArticleResourcePersistence the journal article resource persistence
458             */
459            public void setJournalArticleResourcePersistence(
460                    JournalArticleResourcePersistence journalArticleResourcePersistence) {
461                    this.journalArticleResourcePersistence = journalArticleResourcePersistence;
462            }
463    
464            /**
465             * Returns the journal content search local service.
466             *
467             * @return the journal content search local service
468             */
469            public JournalContentSearchLocalService getJournalContentSearchLocalService() {
470                    return journalContentSearchLocalService;
471            }
472    
473            /**
474             * Sets the journal content search local service.
475             *
476             * @param journalContentSearchLocalService the journal content search local service
477             */
478            public void setJournalContentSearchLocalService(
479                    JournalContentSearchLocalService journalContentSearchLocalService) {
480                    this.journalContentSearchLocalService = journalContentSearchLocalService;
481            }
482    
483            /**
484             * Returns the journal content search persistence.
485             *
486             * @return the journal content search persistence
487             */
488            public JournalContentSearchPersistence getJournalContentSearchPersistence() {
489                    return journalContentSearchPersistence;
490            }
491    
492            /**
493             * Sets the journal content search persistence.
494             *
495             * @param journalContentSearchPersistence the journal content search persistence
496             */
497            public void setJournalContentSearchPersistence(
498                    JournalContentSearchPersistence journalContentSearchPersistence) {
499                    this.journalContentSearchPersistence = journalContentSearchPersistence;
500            }
501    
502            /**
503             * Returns the journal feed local service.
504             *
505             * @return the journal feed local service
506             */
507            public JournalFeedLocalService getJournalFeedLocalService() {
508                    return journalFeedLocalService;
509            }
510    
511            /**
512             * Sets the journal feed local service.
513             *
514             * @param journalFeedLocalService the journal feed local service
515             */
516            public void setJournalFeedLocalService(
517                    JournalFeedLocalService journalFeedLocalService) {
518                    this.journalFeedLocalService = journalFeedLocalService;
519            }
520    
521            /**
522             * Returns the journal feed remote service.
523             *
524             * @return the journal feed remote service
525             */
526            public JournalFeedService getJournalFeedService() {
527                    return journalFeedService;
528            }
529    
530            /**
531             * Sets the journal feed remote service.
532             *
533             * @param journalFeedService the journal feed remote service
534             */
535            public void setJournalFeedService(JournalFeedService journalFeedService) {
536                    this.journalFeedService = journalFeedService;
537            }
538    
539            /**
540             * Returns the journal feed persistence.
541             *
542             * @return the journal feed persistence
543             */
544            public JournalFeedPersistence getJournalFeedPersistence() {
545                    return journalFeedPersistence;
546            }
547    
548            /**
549             * Sets the journal feed persistence.
550             *
551             * @param journalFeedPersistence the journal feed persistence
552             */
553            public void setJournalFeedPersistence(
554                    JournalFeedPersistence journalFeedPersistence) {
555                    this.journalFeedPersistence = journalFeedPersistence;
556            }
557    
558            /**
559             * Returns the journal feed finder.
560             *
561             * @return the journal feed finder
562             */
563            public JournalFeedFinder getJournalFeedFinder() {
564                    return journalFeedFinder;
565            }
566    
567            /**
568             * Sets the journal feed finder.
569             *
570             * @param journalFeedFinder the journal feed finder
571             */
572            public void setJournalFeedFinder(JournalFeedFinder journalFeedFinder) {
573                    this.journalFeedFinder = journalFeedFinder;
574            }
575    
576            /**
577             * Returns the journal structure local service.
578             *
579             * @return the journal structure local service
580             */
581            public JournalStructureLocalService getJournalStructureLocalService() {
582                    return journalStructureLocalService;
583            }
584    
585            /**
586             * Sets the journal structure local service.
587             *
588             * @param journalStructureLocalService the journal structure local service
589             */
590            public void setJournalStructureLocalService(
591                    JournalStructureLocalService journalStructureLocalService) {
592                    this.journalStructureLocalService = journalStructureLocalService;
593            }
594    
595            /**
596             * Returns the journal structure remote service.
597             *
598             * @return the journal structure remote service
599             */
600            public JournalStructureService getJournalStructureService() {
601                    return journalStructureService;
602            }
603    
604            /**
605             * Sets the journal structure remote service.
606             *
607             * @param journalStructureService the journal structure remote service
608             */
609            public void setJournalStructureService(
610                    JournalStructureService journalStructureService) {
611                    this.journalStructureService = journalStructureService;
612            }
613    
614            /**
615             * Returns the journal structure persistence.
616             *
617             * @return the journal structure persistence
618             */
619            public JournalStructurePersistence getJournalStructurePersistence() {
620                    return journalStructurePersistence;
621            }
622    
623            /**
624             * Sets the journal structure persistence.
625             *
626             * @param journalStructurePersistence the journal structure persistence
627             */
628            public void setJournalStructurePersistence(
629                    JournalStructurePersistence journalStructurePersistence) {
630                    this.journalStructurePersistence = journalStructurePersistence;
631            }
632    
633            /**
634             * Returns the journal structure finder.
635             *
636             * @return the journal structure finder
637             */
638            public JournalStructureFinder getJournalStructureFinder() {
639                    return journalStructureFinder;
640            }
641    
642            /**
643             * Sets the journal structure finder.
644             *
645             * @param journalStructureFinder the journal structure finder
646             */
647            public void setJournalStructureFinder(
648                    JournalStructureFinder journalStructureFinder) {
649                    this.journalStructureFinder = journalStructureFinder;
650            }
651    
652            /**
653             * Returns the journal template local service.
654             *
655             * @return the journal template local service
656             */
657            public JournalTemplateLocalService getJournalTemplateLocalService() {
658                    return journalTemplateLocalService;
659            }
660    
661            /**
662             * Sets the journal template local service.
663             *
664             * @param journalTemplateLocalService the journal template local service
665             */
666            public void setJournalTemplateLocalService(
667                    JournalTemplateLocalService journalTemplateLocalService) {
668                    this.journalTemplateLocalService = journalTemplateLocalService;
669            }
670    
671            /**
672             * Returns the journal template remote service.
673             *
674             * @return the journal template remote service
675             */
676            public JournalTemplateService getJournalTemplateService() {
677                    return journalTemplateService;
678            }
679    
680            /**
681             * Sets the journal template remote service.
682             *
683             * @param journalTemplateService the journal template remote service
684             */
685            public void setJournalTemplateService(
686                    JournalTemplateService journalTemplateService) {
687                    this.journalTemplateService = journalTemplateService;
688            }
689    
690            /**
691             * Returns the journal template persistence.
692             *
693             * @return the journal template persistence
694             */
695            public JournalTemplatePersistence getJournalTemplatePersistence() {
696                    return journalTemplatePersistence;
697            }
698    
699            /**
700             * Sets the journal template persistence.
701             *
702             * @param journalTemplatePersistence the journal template persistence
703             */
704            public void setJournalTemplatePersistence(
705                    JournalTemplatePersistence journalTemplatePersistence) {
706                    this.journalTemplatePersistence = journalTemplatePersistence;
707            }
708    
709            /**
710             * Returns the journal template finder.
711             *
712             * @return the journal template finder
713             */
714            public JournalTemplateFinder getJournalTemplateFinder() {
715                    return journalTemplateFinder;
716            }
717    
718            /**
719             * Sets the journal template finder.
720             *
721             * @param journalTemplateFinder the journal template finder
722             */
723            public void setJournalTemplateFinder(
724                    JournalTemplateFinder journalTemplateFinder) {
725                    this.journalTemplateFinder = journalTemplateFinder;
726            }
727    
728            /**
729             * Returns the counter local service.
730             *
731             * @return the counter local service
732             */
733            public CounterLocalService getCounterLocalService() {
734                    return counterLocalService;
735            }
736    
737            /**
738             * Sets the counter local service.
739             *
740             * @param counterLocalService the counter local service
741             */
742            public void setCounterLocalService(CounterLocalService counterLocalService) {
743                    this.counterLocalService = counterLocalService;
744            }
745    
746            /**
747             * Returns the group local service.
748             *
749             * @return the group local service
750             */
751            public GroupLocalService getGroupLocalService() {
752                    return groupLocalService;
753            }
754    
755            /**
756             * Sets the group local service.
757             *
758             * @param groupLocalService the group local service
759             */
760            public void setGroupLocalService(GroupLocalService groupLocalService) {
761                    this.groupLocalService = groupLocalService;
762            }
763    
764            /**
765             * Returns the group remote service.
766             *
767             * @return the group remote service
768             */
769            public GroupService getGroupService() {
770                    return groupService;
771            }
772    
773            /**
774             * Sets the group remote service.
775             *
776             * @param groupService the group remote service
777             */
778            public void setGroupService(GroupService groupService) {
779                    this.groupService = groupService;
780            }
781    
782            /**
783             * Returns the group persistence.
784             *
785             * @return the group persistence
786             */
787            public GroupPersistence getGroupPersistence() {
788                    return groupPersistence;
789            }
790    
791            /**
792             * Sets the group persistence.
793             *
794             * @param groupPersistence the group persistence
795             */
796            public void setGroupPersistence(GroupPersistence groupPersistence) {
797                    this.groupPersistence = groupPersistence;
798            }
799    
800            /**
801             * Returns the group finder.
802             *
803             * @return the group finder
804             */
805            public GroupFinder getGroupFinder() {
806                    return groupFinder;
807            }
808    
809            /**
810             * Sets the group finder.
811             *
812             * @param groupFinder the group finder
813             */
814            public void setGroupFinder(GroupFinder groupFinder) {
815                    this.groupFinder = groupFinder;
816            }
817    
818            /**
819             * Returns the layout local service.
820             *
821             * @return the layout local service
822             */
823            public LayoutLocalService getLayoutLocalService() {
824                    return layoutLocalService;
825            }
826    
827            /**
828             * Sets the layout local service.
829             *
830             * @param layoutLocalService the layout local service
831             */
832            public void setLayoutLocalService(LayoutLocalService layoutLocalService) {
833                    this.layoutLocalService = layoutLocalService;
834            }
835    
836            /**
837             * Returns the layout remote service.
838             *
839             * @return the layout remote service
840             */
841            public LayoutService getLayoutService() {
842                    return layoutService;
843            }
844    
845            /**
846             * Sets the layout remote service.
847             *
848             * @param layoutService the layout remote service
849             */
850            public void setLayoutService(LayoutService layoutService) {
851                    this.layoutService = layoutService;
852            }
853    
854            /**
855             * Returns the layout persistence.
856             *
857             * @return the layout persistence
858             */
859            public LayoutPersistence getLayoutPersistence() {
860                    return layoutPersistence;
861            }
862    
863            /**
864             * Sets the layout persistence.
865             *
866             * @param layoutPersistence the layout persistence
867             */
868            public void setLayoutPersistence(LayoutPersistence layoutPersistence) {
869                    this.layoutPersistence = layoutPersistence;
870            }
871    
872            /**
873             * Returns the layout finder.
874             *
875             * @return the layout finder
876             */
877            public LayoutFinder getLayoutFinder() {
878                    return layoutFinder;
879            }
880    
881            /**
882             * Sets the layout finder.
883             *
884             * @param layoutFinder the layout finder
885             */
886            public void setLayoutFinder(LayoutFinder layoutFinder) {
887                    this.layoutFinder = layoutFinder;
888            }
889    
890            /**
891             * Returns the portlet preferences local service.
892             *
893             * @return the portlet preferences local service
894             */
895            public PortletPreferencesLocalService getPortletPreferencesLocalService() {
896                    return portletPreferencesLocalService;
897            }
898    
899            /**
900             * Sets the portlet preferences local service.
901             *
902             * @param portletPreferencesLocalService the portlet preferences local service
903             */
904            public void setPortletPreferencesLocalService(
905                    PortletPreferencesLocalService portletPreferencesLocalService) {
906                    this.portletPreferencesLocalService = portletPreferencesLocalService;
907            }
908    
909            /**
910             * Returns the portlet preferences remote service.
911             *
912             * @return the portlet preferences remote service
913             */
914            public PortletPreferencesService getPortletPreferencesService() {
915                    return portletPreferencesService;
916            }
917    
918            /**
919             * Sets the portlet preferences remote service.
920             *
921             * @param portletPreferencesService the portlet preferences remote service
922             */
923            public void setPortletPreferencesService(
924                    PortletPreferencesService portletPreferencesService) {
925                    this.portletPreferencesService = portletPreferencesService;
926            }
927    
928            /**
929             * Returns the portlet preferences persistence.
930             *
931             * @return the portlet preferences persistence
932             */
933            public PortletPreferencesPersistence getPortletPreferencesPersistence() {
934                    return portletPreferencesPersistence;
935            }
936    
937            /**
938             * Sets the portlet preferences persistence.
939             *
940             * @param portletPreferencesPersistence the portlet preferences persistence
941             */
942            public void setPortletPreferencesPersistence(
943                    PortletPreferencesPersistence portletPreferencesPersistence) {
944                    this.portletPreferencesPersistence = portletPreferencesPersistence;
945            }
946    
947            /**
948             * Returns the portlet preferences finder.
949             *
950             * @return the portlet preferences finder
951             */
952            public PortletPreferencesFinder getPortletPreferencesFinder() {
953                    return portletPreferencesFinder;
954            }
955    
956            /**
957             * Sets the portlet preferences finder.
958             *
959             * @param portletPreferencesFinder the portlet preferences finder
960             */
961            public void setPortletPreferencesFinder(
962                    PortletPreferencesFinder portletPreferencesFinder) {
963                    this.portletPreferencesFinder = portletPreferencesFinder;
964            }
965    
966            /**
967             * Returns the resource local service.
968             *
969             * @return the resource local service
970             */
971            public ResourceLocalService getResourceLocalService() {
972                    return resourceLocalService;
973            }
974    
975            /**
976             * Sets the resource local service.
977             *
978             * @param resourceLocalService the resource local service
979             */
980            public void setResourceLocalService(
981                    ResourceLocalService resourceLocalService) {
982                    this.resourceLocalService = resourceLocalService;
983            }
984    
985            /**
986             * Returns the resource remote service.
987             *
988             * @return the resource remote service
989             */
990            public ResourceService getResourceService() {
991                    return resourceService;
992            }
993    
994            /**
995             * Sets the resource remote service.
996             *
997             * @param resourceService the resource remote service
998             */
999            public void setResourceService(ResourceService resourceService) {
1000                    this.resourceService = resourceService;
1001            }
1002    
1003            /**
1004             * Returns the resource persistence.
1005             *
1006             * @return the resource persistence
1007             */
1008            public ResourcePersistence getResourcePersistence() {
1009                    return resourcePersistence;
1010            }
1011    
1012            /**
1013             * Sets the resource persistence.
1014             *
1015             * @param resourcePersistence the resource persistence
1016             */
1017            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
1018                    this.resourcePersistence = resourcePersistence;
1019            }
1020    
1021            /**
1022             * Returns the resource finder.
1023             *
1024             * @return the resource finder
1025             */
1026            public ResourceFinder getResourceFinder() {
1027                    return resourceFinder;
1028            }
1029    
1030            /**
1031             * Sets the resource finder.
1032             *
1033             * @param resourceFinder the resource finder
1034             */
1035            public void setResourceFinder(ResourceFinder resourceFinder) {
1036                    this.resourceFinder = resourceFinder;
1037            }
1038    
1039            /**
1040             * Returns the user local service.
1041             *
1042             * @return the user local service
1043             */
1044            public UserLocalService getUserLocalService() {
1045                    return userLocalService;
1046            }
1047    
1048            /**
1049             * Sets the user local service.
1050             *
1051             * @param userLocalService the user local service
1052             */
1053            public void setUserLocalService(UserLocalService userLocalService) {
1054                    this.userLocalService = userLocalService;
1055            }
1056    
1057            /**
1058             * Returns the user remote service.
1059             *
1060             * @return the user remote service
1061             */
1062            public UserService getUserService() {
1063                    return userService;
1064            }
1065    
1066            /**
1067             * Sets the user remote service.
1068             *
1069             * @param userService the user remote service
1070             */
1071            public void setUserService(UserService userService) {
1072                    this.userService = userService;
1073            }
1074    
1075            /**
1076             * Returns the user persistence.
1077             *
1078             * @return the user persistence
1079             */
1080            public UserPersistence getUserPersistence() {
1081                    return userPersistence;
1082            }
1083    
1084            /**
1085             * Sets the user persistence.
1086             *
1087             * @param userPersistence the user persistence
1088             */
1089            public void setUserPersistence(UserPersistence userPersistence) {
1090                    this.userPersistence = userPersistence;
1091            }
1092    
1093            /**
1094             * Returns the user finder.
1095             *
1096             * @return the user finder
1097             */
1098            public UserFinder getUserFinder() {
1099                    return userFinder;
1100            }
1101    
1102            /**
1103             * Sets the user finder.
1104             *
1105             * @param userFinder the user finder
1106             */
1107            public void setUserFinder(UserFinder userFinder) {
1108                    this.userFinder = userFinder;
1109            }
1110    
1111            public void afterPropertiesSet() {
1112                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.journal.model.JournalContentSearch",
1113                            journalContentSearchLocalService);
1114            }
1115    
1116            public void destroy() {
1117                    persistedModelLocalServiceRegistry.unregister(
1118                            "com.liferay.portlet.journal.model.JournalContentSearch");
1119            }
1120    
1121            /**
1122             * Returns the Spring bean ID for this bean.
1123             *
1124             * @return the Spring bean ID for this bean
1125             */
1126            public String getBeanIdentifier() {
1127                    return _beanIdentifier;
1128            }
1129    
1130            /**
1131             * Sets the Spring bean ID for this bean.
1132             *
1133             * @param beanIdentifier the Spring bean ID for this bean
1134             */
1135            public void setBeanIdentifier(String beanIdentifier) {
1136                    _beanIdentifier = beanIdentifier;
1137            }
1138    
1139            protected Class<?> getModelClass() {
1140                    return JournalContentSearch.class;
1141            }
1142    
1143            protected String getModelClassName() {
1144                    return JournalContentSearch.class.getName();
1145            }
1146    
1147            /**
1148             * Performs an SQL query.
1149             *
1150             * @param sql the sql query
1151             */
1152            protected void runSQL(String sql) throws SystemException {
1153                    try {
1154                            DataSource dataSource = journalContentSearchPersistence.getDataSource();
1155    
1156                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1157                                            sql, new int[0]);
1158    
1159                            sqlUpdate.update();
1160                    }
1161                    catch (Exception e) {
1162                            throw new SystemException(e);
1163                    }
1164            }
1165    
1166            @BeanReference(type = JournalArticleLocalService.class)
1167            protected JournalArticleLocalService journalArticleLocalService;
1168            @BeanReference(type = JournalArticleService.class)
1169            protected JournalArticleService journalArticleService;
1170            @BeanReference(type = JournalArticlePersistence.class)
1171            protected JournalArticlePersistence journalArticlePersistence;
1172            @BeanReference(type = JournalArticleFinder.class)
1173            protected JournalArticleFinder journalArticleFinder;
1174            @BeanReference(type = JournalArticleImageLocalService.class)
1175            protected JournalArticleImageLocalService journalArticleImageLocalService;
1176            @BeanReference(type = JournalArticleImagePersistence.class)
1177            protected JournalArticleImagePersistence journalArticleImagePersistence;
1178            @BeanReference(type = JournalArticleResourceLocalService.class)
1179            protected JournalArticleResourceLocalService journalArticleResourceLocalService;
1180            @BeanReference(type = JournalArticleResourcePersistence.class)
1181            protected JournalArticleResourcePersistence journalArticleResourcePersistence;
1182            @BeanReference(type = JournalContentSearchLocalService.class)
1183            protected JournalContentSearchLocalService journalContentSearchLocalService;
1184            @BeanReference(type = JournalContentSearchPersistence.class)
1185            protected JournalContentSearchPersistence journalContentSearchPersistence;
1186            @BeanReference(type = JournalFeedLocalService.class)
1187            protected JournalFeedLocalService journalFeedLocalService;
1188            @BeanReference(type = JournalFeedService.class)
1189            protected JournalFeedService journalFeedService;
1190            @BeanReference(type = JournalFeedPersistence.class)
1191            protected JournalFeedPersistence journalFeedPersistence;
1192            @BeanReference(type = JournalFeedFinder.class)
1193            protected JournalFeedFinder journalFeedFinder;
1194            @BeanReference(type = JournalStructureLocalService.class)
1195            protected JournalStructureLocalService journalStructureLocalService;
1196            @BeanReference(type = JournalStructureService.class)
1197            protected JournalStructureService journalStructureService;
1198            @BeanReference(type = JournalStructurePersistence.class)
1199            protected JournalStructurePersistence journalStructurePersistence;
1200            @BeanReference(type = JournalStructureFinder.class)
1201            protected JournalStructureFinder journalStructureFinder;
1202            @BeanReference(type = JournalTemplateLocalService.class)
1203            protected JournalTemplateLocalService journalTemplateLocalService;
1204            @BeanReference(type = JournalTemplateService.class)
1205            protected JournalTemplateService journalTemplateService;
1206            @BeanReference(type = JournalTemplatePersistence.class)
1207            protected JournalTemplatePersistence journalTemplatePersistence;
1208            @BeanReference(type = JournalTemplateFinder.class)
1209            protected JournalTemplateFinder journalTemplateFinder;
1210            @BeanReference(type = CounterLocalService.class)
1211            protected CounterLocalService counterLocalService;
1212            @BeanReference(type = GroupLocalService.class)
1213            protected GroupLocalService groupLocalService;
1214            @BeanReference(type = GroupService.class)
1215            protected GroupService groupService;
1216            @BeanReference(type = GroupPersistence.class)
1217            protected GroupPersistence groupPersistence;
1218            @BeanReference(type = GroupFinder.class)
1219            protected GroupFinder groupFinder;
1220            @BeanReference(type = LayoutLocalService.class)
1221            protected LayoutLocalService layoutLocalService;
1222            @BeanReference(type = LayoutService.class)
1223            protected LayoutService layoutService;
1224            @BeanReference(type = LayoutPersistence.class)
1225            protected LayoutPersistence layoutPersistence;
1226            @BeanReference(type = LayoutFinder.class)
1227            protected LayoutFinder layoutFinder;
1228            @BeanReference(type = PortletPreferencesLocalService.class)
1229            protected PortletPreferencesLocalService portletPreferencesLocalService;
1230            @BeanReference(type = PortletPreferencesService.class)
1231            protected PortletPreferencesService portletPreferencesService;
1232            @BeanReference(type = PortletPreferencesPersistence.class)
1233            protected PortletPreferencesPersistence portletPreferencesPersistence;
1234            @BeanReference(type = PortletPreferencesFinder.class)
1235            protected PortletPreferencesFinder portletPreferencesFinder;
1236            @BeanReference(type = ResourceLocalService.class)
1237            protected ResourceLocalService resourceLocalService;
1238            @BeanReference(type = ResourceService.class)
1239            protected ResourceService resourceService;
1240            @BeanReference(type = ResourcePersistence.class)
1241            protected ResourcePersistence resourcePersistence;
1242            @BeanReference(type = ResourceFinder.class)
1243            protected ResourceFinder resourceFinder;
1244            @BeanReference(type = UserLocalService.class)
1245            protected UserLocalService userLocalService;
1246            @BeanReference(type = UserService.class)
1247            protected UserService userService;
1248            @BeanReference(type = UserPersistence.class)
1249            protected UserPersistence userPersistence;
1250            @BeanReference(type = UserFinder.class)
1251            protected UserFinder userFinder;
1252            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1253            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1254            private String _beanIdentifier;
1255    }