001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.journal.service.base;
016    
017    import com.liferay.portal.kernel.bean.BeanReference;
018    import com.liferay.portal.kernel.bean.IdentifiableBean;
019    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
020    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
021    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
022    import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
023    import com.liferay.portal.kernel.dao.orm.Projection;
024    import com.liferay.portal.kernel.exception.PortalException;
025    import com.liferay.portal.kernel.exception.SystemException;
026    import com.liferay.portal.kernel.search.Indexable;
027    import com.liferay.portal.kernel.search.IndexableType;
028    import com.liferay.portal.kernel.util.OrderByComparator;
029    import com.liferay.portal.model.PersistedModel;
030    import com.liferay.portal.service.BaseLocalServiceImpl;
031    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
032    import com.liferay.portal.service.persistence.GroupFinder;
033    import com.liferay.portal.service.persistence.GroupPersistence;
034    import com.liferay.portal.service.persistence.LayoutFinder;
035    import com.liferay.portal.service.persistence.LayoutPersistence;
036    import com.liferay.portal.service.persistence.PortletPreferencesFinder;
037    import com.liferay.portal.service.persistence.PortletPreferencesPersistence;
038    import com.liferay.portal.service.persistence.UserFinder;
039    import com.liferay.portal.service.persistence.UserPersistence;
040    
041    import com.liferay.portlet.journal.model.JournalContentSearch;
042    import com.liferay.portlet.journal.service.JournalContentSearchLocalService;
043    import com.liferay.portlet.journal.service.persistence.JournalArticleFinder;
044    import com.liferay.portlet.journal.service.persistence.JournalArticleImagePersistence;
045    import com.liferay.portlet.journal.service.persistence.JournalArticlePersistence;
046    import com.liferay.portlet.journal.service.persistence.JournalArticleResourcePersistence;
047    import com.liferay.portlet.journal.service.persistence.JournalContentSearchPersistence;
048    import com.liferay.portlet.journal.service.persistence.JournalFeedFinder;
049    import com.liferay.portlet.journal.service.persistence.JournalFeedPersistence;
050    import com.liferay.portlet.journal.service.persistence.JournalFolderFinder;
051    import com.liferay.portlet.journal.service.persistence.JournalFolderPersistence;
052    
053    import java.io.Serializable;
054    
055    import java.util.List;
056    
057    import javax.sql.DataSource;
058    
059    /**
060     * Provides the base implementation for the journal content search local service.
061     *
062     * <p>
063     * 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}.
064     * </p>
065     *
066     * @author Brian Wing Shun Chan
067     * @see com.liferay.portlet.journal.service.impl.JournalContentSearchLocalServiceImpl
068     * @see com.liferay.portlet.journal.service.JournalContentSearchLocalServiceUtil
069     * @generated
070     */
071    public abstract class JournalContentSearchLocalServiceBaseImpl
072            extends BaseLocalServiceImpl implements JournalContentSearchLocalService,
073                    IdentifiableBean {
074            /*
075             * NOTE FOR DEVELOPERS:
076             *
077             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.journal.service.JournalContentSearchLocalServiceUtil} to access the journal content search local service.
078             */
079    
080            /**
081             * Adds the journal content search to the database. Also notifies the appropriate model listeners.
082             *
083             * @param journalContentSearch the journal content search
084             * @return the journal content search that was added
085             * @throws SystemException if a system exception occurred
086             */
087            @Indexable(type = IndexableType.REINDEX)
088            @Override
089            public JournalContentSearch addJournalContentSearch(
090                    JournalContentSearch journalContentSearch) throws SystemException {
091                    journalContentSearch.setNew(true);
092    
093                    return journalContentSearchPersistence.update(journalContentSearch);
094            }
095    
096            /**
097             * Creates a new journal content search with the primary key. Does not add the journal content search to the database.
098             *
099             * @param contentSearchId the primary key for the new journal content search
100             * @return the new journal content search
101             */
102            @Override
103            public JournalContentSearch createJournalContentSearch(long contentSearchId) {
104                    return journalContentSearchPersistence.create(contentSearchId);
105            }
106    
107            /**
108             * Deletes the journal content search with the primary key from the database. Also notifies the appropriate model listeners.
109             *
110             * @param contentSearchId the primary key of the journal content search
111             * @return the journal content search that was removed
112             * @throws PortalException if a journal content search with the primary key could not be found
113             * @throws SystemException if a system exception occurred
114             */
115            @Indexable(type = IndexableType.DELETE)
116            @Override
117            public JournalContentSearch deleteJournalContentSearch(long contentSearchId)
118                    throws PortalException, SystemException {
119                    return journalContentSearchPersistence.remove(contentSearchId);
120            }
121    
122            /**
123             * Deletes the journal content search from the database. Also notifies the appropriate model listeners.
124             *
125             * @param journalContentSearch the journal content search
126             * @return the journal content search that was removed
127             * @throws SystemException if a system exception occurred
128             */
129            @Indexable(type = IndexableType.DELETE)
130            @Override
131            public JournalContentSearch deleteJournalContentSearch(
132                    JournalContentSearch journalContentSearch) throws SystemException {
133                    return journalContentSearchPersistence.remove(journalContentSearch);
134            }
135    
136            @Override
137            public DynamicQuery dynamicQuery() {
138                    Class<?> clazz = getClass();
139    
140                    return DynamicQueryFactoryUtil.forClass(JournalContentSearch.class,
141                            clazz.getClassLoader());
142            }
143    
144            /**
145             * Performs a dynamic query on the database and returns the matching rows.
146             *
147             * @param dynamicQuery the dynamic query
148             * @return the matching rows
149             * @throws SystemException if a system exception occurred
150             */
151            @Override
152            @SuppressWarnings("rawtypes")
153            public List dynamicQuery(DynamicQuery dynamicQuery)
154                    throws SystemException {
155                    return journalContentSearchPersistence.findWithDynamicQuery(dynamicQuery);
156            }
157    
158            /**
159             * Performs a dynamic query on the database and returns a range of the matching rows.
160             *
161             * <p>
162             * 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.JournalContentSearchModelImpl}. 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.
163             * </p>
164             *
165             * @param dynamicQuery the dynamic query
166             * @param start the lower bound of the range of model instances
167             * @param end the upper bound of the range of model instances (not inclusive)
168             * @return the range of matching rows
169             * @throws SystemException if a system exception occurred
170             */
171            @Override
172            @SuppressWarnings("rawtypes")
173            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
174                    throws SystemException {
175                    return journalContentSearchPersistence.findWithDynamicQuery(dynamicQuery,
176                            start, end);
177            }
178    
179            /**
180             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
181             *
182             * <p>
183             * 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.JournalContentSearchModelImpl}. 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.
184             * </p>
185             *
186             * @param dynamicQuery the dynamic query
187             * @param start the lower bound of the range of model instances
188             * @param end the upper bound of the range of model instances (not inclusive)
189             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
190             * @return the ordered range of matching rows
191             * @throws SystemException if a system exception occurred
192             */
193            @Override
194            @SuppressWarnings("rawtypes")
195            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
196                    OrderByComparator orderByComparator) throws SystemException {
197                    return journalContentSearchPersistence.findWithDynamicQuery(dynamicQuery,
198                            start, end, orderByComparator);
199            }
200    
201            /**
202             * Returns the number of rows that match the dynamic query.
203             *
204             * @param dynamicQuery the dynamic query
205             * @return the number of rows that match the dynamic query
206             * @throws SystemException if a system exception occurred
207             */
208            @Override
209            public long dynamicQueryCount(DynamicQuery dynamicQuery)
210                    throws SystemException {
211                    return journalContentSearchPersistence.countWithDynamicQuery(dynamicQuery);
212            }
213    
214            /**
215             * Returns the number of rows that match the dynamic query.
216             *
217             * @param dynamicQuery the dynamic query
218             * @param projection the projection to apply to the query
219             * @return the number of rows that match the dynamic query
220             * @throws SystemException if a system exception occurred
221             */
222            @Override
223            public long dynamicQueryCount(DynamicQuery dynamicQuery,
224                    Projection projection) throws SystemException {
225                    return journalContentSearchPersistence.countWithDynamicQuery(dynamicQuery,
226                            projection);
227            }
228    
229            @Override
230            public JournalContentSearch fetchJournalContentSearch(long contentSearchId)
231                    throws SystemException {
232                    return journalContentSearchPersistence.fetchByPrimaryKey(contentSearchId);
233            }
234    
235            /**
236             * Returns the journal content search with the primary key.
237             *
238             * @param contentSearchId the primary key of the journal content search
239             * @return the journal content search
240             * @throws PortalException if a journal content search with the primary key could not be found
241             * @throws SystemException if a system exception occurred
242             */
243            @Override
244            public JournalContentSearch getJournalContentSearch(long contentSearchId)
245                    throws PortalException, SystemException {
246                    return journalContentSearchPersistence.findByPrimaryKey(contentSearchId);
247            }
248    
249            @Override
250            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
251                    throws PortalException, SystemException {
252                    return journalContentSearchPersistence.findByPrimaryKey(primaryKeyObj);
253            }
254    
255            /**
256             * Returns a range of all the journal content searchs.
257             *
258             * <p>
259             * 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.JournalContentSearchModelImpl}. 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.
260             * </p>
261             *
262             * @param start the lower bound of the range of journal content searchs
263             * @param end the upper bound of the range of journal content searchs (not inclusive)
264             * @return the range of journal content searchs
265             * @throws SystemException if a system exception occurred
266             */
267            @Override
268            public List<JournalContentSearch> getJournalContentSearchs(int start,
269                    int end) throws SystemException {
270                    return journalContentSearchPersistence.findAll(start, end);
271            }
272    
273            /**
274             * Returns the number of journal content searchs.
275             *
276             * @return the number of journal content searchs
277             * @throws SystemException if a system exception occurred
278             */
279            @Override
280            public int getJournalContentSearchsCount() throws SystemException {
281                    return journalContentSearchPersistence.countAll();
282            }
283    
284            /**
285             * Updates the journal content search in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
286             *
287             * @param journalContentSearch the journal content search
288             * @return the journal content search that was updated
289             * @throws SystemException if a system exception occurred
290             */
291            @Indexable(type = IndexableType.REINDEX)
292            @Override
293            public JournalContentSearch updateJournalContentSearch(
294                    JournalContentSearch journalContentSearch) throws SystemException {
295                    return journalContentSearchPersistence.update(journalContentSearch);
296            }
297    
298            /**
299             * Returns the journal article local service.
300             *
301             * @return the journal article local service
302             */
303            public com.liferay.portlet.journal.service.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                    com.liferay.portlet.journal.service.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 com.liferay.portlet.journal.service.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                    com.liferay.portlet.journal.service.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 com.liferay.portlet.journal.service.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                    com.liferay.portlet.journal.service.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 com.liferay.portlet.journal.service.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                    com.liferay.portlet.journal.service.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 com.liferay.portlet.journal.service.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                    com.liferay.portlet.journal.service.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 com.liferay.portlet.journal.service.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                    com.liferay.portlet.journal.service.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 com.liferay.portlet.journal.service.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(
522                    com.liferay.portlet.journal.service.JournalFeedService journalFeedService) {
523                    this.journalFeedService = journalFeedService;
524            }
525    
526            /**
527             * Returns the journal feed persistence.
528             *
529             * @return the journal feed persistence
530             */
531            public JournalFeedPersistence getJournalFeedPersistence() {
532                    return journalFeedPersistence;
533            }
534    
535            /**
536             * Sets the journal feed persistence.
537             *
538             * @param journalFeedPersistence the journal feed persistence
539             */
540            public void setJournalFeedPersistence(
541                    JournalFeedPersistence journalFeedPersistence) {
542                    this.journalFeedPersistence = journalFeedPersistence;
543            }
544    
545            /**
546             * Returns the journal feed finder.
547             *
548             * @return the journal feed finder
549             */
550            public JournalFeedFinder getJournalFeedFinder() {
551                    return journalFeedFinder;
552            }
553    
554            /**
555             * Sets the journal feed finder.
556             *
557             * @param journalFeedFinder the journal feed finder
558             */
559            public void setJournalFeedFinder(JournalFeedFinder journalFeedFinder) {
560                    this.journalFeedFinder = journalFeedFinder;
561            }
562    
563            /**
564             * Returns the journal folder local service.
565             *
566             * @return the journal folder local service
567             */
568            public com.liferay.portlet.journal.service.JournalFolderLocalService getJournalFolderLocalService() {
569                    return journalFolderLocalService;
570            }
571    
572            /**
573             * Sets the journal folder local service.
574             *
575             * @param journalFolderLocalService the journal folder local service
576             */
577            public void setJournalFolderLocalService(
578                    com.liferay.portlet.journal.service.JournalFolderLocalService journalFolderLocalService) {
579                    this.journalFolderLocalService = journalFolderLocalService;
580            }
581    
582            /**
583             * Returns the journal folder remote service.
584             *
585             * @return the journal folder remote service
586             */
587            public com.liferay.portlet.journal.service.JournalFolderService getJournalFolderService() {
588                    return journalFolderService;
589            }
590    
591            /**
592             * Sets the journal folder remote service.
593             *
594             * @param journalFolderService the journal folder remote service
595             */
596            public void setJournalFolderService(
597                    com.liferay.portlet.journal.service.JournalFolderService journalFolderService) {
598                    this.journalFolderService = journalFolderService;
599            }
600    
601            /**
602             * Returns the journal folder persistence.
603             *
604             * @return the journal folder persistence
605             */
606            public JournalFolderPersistence getJournalFolderPersistence() {
607                    return journalFolderPersistence;
608            }
609    
610            /**
611             * Sets the journal folder persistence.
612             *
613             * @param journalFolderPersistence the journal folder persistence
614             */
615            public void setJournalFolderPersistence(
616                    JournalFolderPersistence journalFolderPersistence) {
617                    this.journalFolderPersistence = journalFolderPersistence;
618            }
619    
620            /**
621             * Returns the journal folder finder.
622             *
623             * @return the journal folder finder
624             */
625            public JournalFolderFinder getJournalFolderFinder() {
626                    return journalFolderFinder;
627            }
628    
629            /**
630             * Sets the journal folder finder.
631             *
632             * @param journalFolderFinder the journal folder finder
633             */
634            public void setJournalFolderFinder(JournalFolderFinder journalFolderFinder) {
635                    this.journalFolderFinder = journalFolderFinder;
636            }
637    
638            /**
639             * Returns the journal structure local service.
640             *
641             * @return the journal structure local service
642             */
643            @SuppressWarnings("deprecation")
644            public com.liferay.portlet.journal.service.JournalStructureLocalService getJournalStructureLocalService() {
645                    return journalStructureLocalService;
646            }
647    
648            /**
649             * Sets the journal structure local service.
650             *
651             * @param journalStructureLocalService the journal structure local service
652             */
653            @SuppressWarnings("deprecation")
654            public void setJournalStructureLocalService(
655                    com.liferay.portlet.journal.service.JournalStructureLocalService journalStructureLocalService) {
656                    this.journalStructureLocalService = journalStructureLocalService;
657            }
658    
659            /**
660             * Returns the journal structure remote service.
661             *
662             * @return the journal structure remote service
663             */
664            @SuppressWarnings("deprecation")
665            public com.liferay.portlet.journal.service.JournalStructureService getJournalStructureService() {
666                    return journalStructureService;
667            }
668    
669            /**
670             * Sets the journal structure remote service.
671             *
672             * @param journalStructureService the journal structure remote service
673             */
674            @SuppressWarnings("deprecation")
675            public void setJournalStructureService(
676                    com.liferay.portlet.journal.service.JournalStructureService journalStructureService) {
677                    this.journalStructureService = journalStructureService;
678            }
679    
680            /**
681             * Returns the journal template local service.
682             *
683             * @return the journal template local service
684             */
685            @SuppressWarnings("deprecation")
686            public com.liferay.portlet.journal.service.JournalTemplateLocalService getJournalTemplateLocalService() {
687                    return journalTemplateLocalService;
688            }
689    
690            /**
691             * Sets the journal template local service.
692             *
693             * @param journalTemplateLocalService the journal template local service
694             */
695            @SuppressWarnings("deprecation")
696            public void setJournalTemplateLocalService(
697                    com.liferay.portlet.journal.service.JournalTemplateLocalService journalTemplateLocalService) {
698                    this.journalTemplateLocalService = journalTemplateLocalService;
699            }
700    
701            /**
702             * Returns the journal template remote service.
703             *
704             * @return the journal template remote service
705             */
706            @SuppressWarnings("deprecation")
707            public com.liferay.portlet.journal.service.JournalTemplateService getJournalTemplateService() {
708                    return journalTemplateService;
709            }
710    
711            /**
712             * Sets the journal template remote service.
713             *
714             * @param journalTemplateService the journal template remote service
715             */
716            @SuppressWarnings("deprecation")
717            public void setJournalTemplateService(
718                    com.liferay.portlet.journal.service.JournalTemplateService journalTemplateService) {
719                    this.journalTemplateService = journalTemplateService;
720            }
721    
722            /**
723             * Returns the counter local service.
724             *
725             * @return the counter local service
726             */
727            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
728                    return counterLocalService;
729            }
730    
731            /**
732             * Sets the counter local service.
733             *
734             * @param counterLocalService the counter local service
735             */
736            public void setCounterLocalService(
737                    com.liferay.counter.service.CounterLocalService counterLocalService) {
738                    this.counterLocalService = counterLocalService;
739            }
740    
741            /**
742             * Returns the group local service.
743             *
744             * @return the group local service
745             */
746            public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
747                    return groupLocalService;
748            }
749    
750            /**
751             * Sets the group local service.
752             *
753             * @param groupLocalService the group local service
754             */
755            public void setGroupLocalService(
756                    com.liferay.portal.service.GroupLocalService groupLocalService) {
757                    this.groupLocalService = groupLocalService;
758            }
759    
760            /**
761             * Returns the group remote service.
762             *
763             * @return the group remote service
764             */
765            public com.liferay.portal.service.GroupService getGroupService() {
766                    return groupService;
767            }
768    
769            /**
770             * Sets the group remote service.
771             *
772             * @param groupService the group remote service
773             */
774            public void setGroupService(
775                    com.liferay.portal.service.GroupService groupService) {
776                    this.groupService = groupService;
777            }
778    
779            /**
780             * Returns the group persistence.
781             *
782             * @return the group persistence
783             */
784            public GroupPersistence getGroupPersistence() {
785                    return groupPersistence;
786            }
787    
788            /**
789             * Sets the group persistence.
790             *
791             * @param groupPersistence the group persistence
792             */
793            public void setGroupPersistence(GroupPersistence groupPersistence) {
794                    this.groupPersistence = groupPersistence;
795            }
796    
797            /**
798             * Returns the group finder.
799             *
800             * @return the group finder
801             */
802            public GroupFinder getGroupFinder() {
803                    return groupFinder;
804            }
805    
806            /**
807             * Sets the group finder.
808             *
809             * @param groupFinder the group finder
810             */
811            public void setGroupFinder(GroupFinder groupFinder) {
812                    this.groupFinder = groupFinder;
813            }
814    
815            /**
816             * Returns the layout local service.
817             *
818             * @return the layout local service
819             */
820            public com.liferay.portal.service.LayoutLocalService getLayoutLocalService() {
821                    return layoutLocalService;
822            }
823    
824            /**
825             * Sets the layout local service.
826             *
827             * @param layoutLocalService the layout local service
828             */
829            public void setLayoutLocalService(
830                    com.liferay.portal.service.LayoutLocalService layoutLocalService) {
831                    this.layoutLocalService = layoutLocalService;
832            }
833    
834            /**
835             * Returns the layout remote service.
836             *
837             * @return the layout remote service
838             */
839            public com.liferay.portal.service.LayoutService getLayoutService() {
840                    return layoutService;
841            }
842    
843            /**
844             * Sets the layout remote service.
845             *
846             * @param layoutService the layout remote service
847             */
848            public void setLayoutService(
849                    com.liferay.portal.service.LayoutService layoutService) {
850                    this.layoutService = layoutService;
851            }
852    
853            /**
854             * Returns the layout persistence.
855             *
856             * @return the layout persistence
857             */
858            public LayoutPersistence getLayoutPersistence() {
859                    return layoutPersistence;
860            }
861    
862            /**
863             * Sets the layout persistence.
864             *
865             * @param layoutPersistence the layout persistence
866             */
867            public void setLayoutPersistence(LayoutPersistence layoutPersistence) {
868                    this.layoutPersistence = layoutPersistence;
869            }
870    
871            /**
872             * Returns the layout finder.
873             *
874             * @return the layout finder
875             */
876            public LayoutFinder getLayoutFinder() {
877                    return layoutFinder;
878            }
879    
880            /**
881             * Sets the layout finder.
882             *
883             * @param layoutFinder the layout finder
884             */
885            public void setLayoutFinder(LayoutFinder layoutFinder) {
886                    this.layoutFinder = layoutFinder;
887            }
888    
889            /**
890             * Returns the portlet preferences local service.
891             *
892             * @return the portlet preferences local service
893             */
894            public com.liferay.portal.service.PortletPreferencesLocalService getPortletPreferencesLocalService() {
895                    return portletPreferencesLocalService;
896            }
897    
898            /**
899             * Sets the portlet preferences local service.
900             *
901             * @param portletPreferencesLocalService the portlet preferences local service
902             */
903            public void setPortletPreferencesLocalService(
904                    com.liferay.portal.service.PortletPreferencesLocalService portletPreferencesLocalService) {
905                    this.portletPreferencesLocalService = portletPreferencesLocalService;
906            }
907    
908            /**
909             * Returns the portlet preferences remote service.
910             *
911             * @return the portlet preferences remote service
912             */
913            public com.liferay.portal.service.PortletPreferencesService getPortletPreferencesService() {
914                    return portletPreferencesService;
915            }
916    
917            /**
918             * Sets the portlet preferences remote service.
919             *
920             * @param portletPreferencesService the portlet preferences remote service
921             */
922            public void setPortletPreferencesService(
923                    com.liferay.portal.service.PortletPreferencesService portletPreferencesService) {
924                    this.portletPreferencesService = portletPreferencesService;
925            }
926    
927            /**
928             * Returns the portlet preferences persistence.
929             *
930             * @return the portlet preferences persistence
931             */
932            public PortletPreferencesPersistence getPortletPreferencesPersistence() {
933                    return portletPreferencesPersistence;
934            }
935    
936            /**
937             * Sets the portlet preferences persistence.
938             *
939             * @param portletPreferencesPersistence the portlet preferences persistence
940             */
941            public void setPortletPreferencesPersistence(
942                    PortletPreferencesPersistence portletPreferencesPersistence) {
943                    this.portletPreferencesPersistence = portletPreferencesPersistence;
944            }
945    
946            /**
947             * Returns the portlet preferences finder.
948             *
949             * @return the portlet preferences finder
950             */
951            public PortletPreferencesFinder getPortletPreferencesFinder() {
952                    return portletPreferencesFinder;
953            }
954    
955            /**
956             * Sets the portlet preferences finder.
957             *
958             * @param portletPreferencesFinder the portlet preferences finder
959             */
960            public void setPortletPreferencesFinder(
961                    PortletPreferencesFinder portletPreferencesFinder) {
962                    this.portletPreferencesFinder = portletPreferencesFinder;
963            }
964    
965            /**
966             * Returns the resource local service.
967             *
968             * @return the resource local service
969             */
970            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
971                    return resourceLocalService;
972            }
973    
974            /**
975             * Sets the resource local service.
976             *
977             * @param resourceLocalService the resource local service
978             */
979            public void setResourceLocalService(
980                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
981                    this.resourceLocalService = resourceLocalService;
982            }
983    
984            /**
985             * Returns the user local service.
986             *
987             * @return the user local service
988             */
989            public com.liferay.portal.service.UserLocalService getUserLocalService() {
990                    return userLocalService;
991            }
992    
993            /**
994             * Sets the user local service.
995             *
996             * @param userLocalService the user local service
997             */
998            public void setUserLocalService(
999                    com.liferay.portal.service.UserLocalService userLocalService) {
1000                    this.userLocalService = userLocalService;
1001            }
1002    
1003            /**
1004             * Returns the user remote service.
1005             *
1006             * @return the user remote service
1007             */
1008            public com.liferay.portal.service.UserService getUserService() {
1009                    return userService;
1010            }
1011    
1012            /**
1013             * Sets the user remote service.
1014             *
1015             * @param userService the user remote service
1016             */
1017            public void setUserService(
1018                    com.liferay.portal.service.UserService userService) {
1019                    this.userService = userService;
1020            }
1021    
1022            /**
1023             * Returns the user persistence.
1024             *
1025             * @return the user persistence
1026             */
1027            public UserPersistence getUserPersistence() {
1028                    return userPersistence;
1029            }
1030    
1031            /**
1032             * Sets the user persistence.
1033             *
1034             * @param userPersistence the user persistence
1035             */
1036            public void setUserPersistence(UserPersistence userPersistence) {
1037                    this.userPersistence = userPersistence;
1038            }
1039    
1040            /**
1041             * Returns the user finder.
1042             *
1043             * @return the user finder
1044             */
1045            public UserFinder getUserFinder() {
1046                    return userFinder;
1047            }
1048    
1049            /**
1050             * Sets the user finder.
1051             *
1052             * @param userFinder the user finder
1053             */
1054            public void setUserFinder(UserFinder userFinder) {
1055                    this.userFinder = userFinder;
1056            }
1057    
1058            public void afterPropertiesSet() {
1059                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.journal.model.JournalContentSearch",
1060                            journalContentSearchLocalService);
1061            }
1062    
1063            public void destroy() {
1064                    persistedModelLocalServiceRegistry.unregister(
1065                            "com.liferay.portlet.journal.model.JournalContentSearch");
1066            }
1067    
1068            /**
1069             * Returns the Spring bean ID for this bean.
1070             *
1071             * @return the Spring bean ID for this bean
1072             */
1073            @Override
1074            public String getBeanIdentifier() {
1075                    return _beanIdentifier;
1076            }
1077    
1078            /**
1079             * Sets the Spring bean ID for this bean.
1080             *
1081             * @param beanIdentifier the Spring bean ID for this bean
1082             */
1083            @Override
1084            public void setBeanIdentifier(String beanIdentifier) {
1085                    _beanIdentifier = beanIdentifier;
1086            }
1087    
1088            protected Class<?> getModelClass() {
1089                    return JournalContentSearch.class;
1090            }
1091    
1092            protected String getModelClassName() {
1093                    return JournalContentSearch.class.getName();
1094            }
1095    
1096            /**
1097             * Performs an SQL query.
1098             *
1099             * @param sql the sql query
1100             */
1101            protected void runSQL(String sql) throws SystemException {
1102                    try {
1103                            DataSource dataSource = journalContentSearchPersistence.getDataSource();
1104    
1105                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1106                                            sql, new int[0]);
1107    
1108                            sqlUpdate.update();
1109                    }
1110                    catch (Exception e) {
1111                            throw new SystemException(e);
1112                    }
1113            }
1114    
1115            @BeanReference(type = com.liferay.portlet.journal.service.JournalArticleLocalService.class)
1116            protected com.liferay.portlet.journal.service.JournalArticleLocalService journalArticleLocalService;
1117            @BeanReference(type = com.liferay.portlet.journal.service.JournalArticleService.class)
1118            protected com.liferay.portlet.journal.service.JournalArticleService journalArticleService;
1119            @BeanReference(type = JournalArticlePersistence.class)
1120            protected JournalArticlePersistence journalArticlePersistence;
1121            @BeanReference(type = JournalArticleFinder.class)
1122            protected JournalArticleFinder journalArticleFinder;
1123            @BeanReference(type = com.liferay.portlet.journal.service.JournalArticleImageLocalService.class)
1124            protected com.liferay.portlet.journal.service.JournalArticleImageLocalService journalArticleImageLocalService;
1125            @BeanReference(type = JournalArticleImagePersistence.class)
1126            protected JournalArticleImagePersistence journalArticleImagePersistence;
1127            @BeanReference(type = com.liferay.portlet.journal.service.JournalArticleResourceLocalService.class)
1128            protected com.liferay.portlet.journal.service.JournalArticleResourceLocalService journalArticleResourceLocalService;
1129            @BeanReference(type = JournalArticleResourcePersistence.class)
1130            protected JournalArticleResourcePersistence journalArticleResourcePersistence;
1131            @BeanReference(type = com.liferay.portlet.journal.service.JournalContentSearchLocalService.class)
1132            protected com.liferay.portlet.journal.service.JournalContentSearchLocalService journalContentSearchLocalService;
1133            @BeanReference(type = JournalContentSearchPersistence.class)
1134            protected JournalContentSearchPersistence journalContentSearchPersistence;
1135            @BeanReference(type = com.liferay.portlet.journal.service.JournalFeedLocalService.class)
1136            protected com.liferay.portlet.journal.service.JournalFeedLocalService journalFeedLocalService;
1137            @BeanReference(type = com.liferay.portlet.journal.service.JournalFeedService.class)
1138            protected com.liferay.portlet.journal.service.JournalFeedService journalFeedService;
1139            @BeanReference(type = JournalFeedPersistence.class)
1140            protected JournalFeedPersistence journalFeedPersistence;
1141            @BeanReference(type = JournalFeedFinder.class)
1142            protected JournalFeedFinder journalFeedFinder;
1143            @BeanReference(type = com.liferay.portlet.journal.service.JournalFolderLocalService.class)
1144            protected com.liferay.portlet.journal.service.JournalFolderLocalService journalFolderLocalService;
1145            @BeanReference(type = com.liferay.portlet.journal.service.JournalFolderService.class)
1146            protected com.liferay.portlet.journal.service.JournalFolderService journalFolderService;
1147            @BeanReference(type = JournalFolderPersistence.class)
1148            protected JournalFolderPersistence journalFolderPersistence;
1149            @BeanReference(type = JournalFolderFinder.class)
1150            protected JournalFolderFinder journalFolderFinder;
1151            @BeanReference(type = com.liferay.portlet.journal.service.JournalStructureLocalService.class)
1152            @SuppressWarnings("deprecation")
1153            protected com.liferay.portlet.journal.service.JournalStructureLocalService journalStructureLocalService;
1154            @BeanReference(type = com.liferay.portlet.journal.service.JournalStructureService.class)
1155            @SuppressWarnings("deprecation")
1156            protected com.liferay.portlet.journal.service.JournalStructureService journalStructureService;
1157            @BeanReference(type = com.liferay.portlet.journal.service.JournalTemplateLocalService.class)
1158            @SuppressWarnings("deprecation")
1159            protected com.liferay.portlet.journal.service.JournalTemplateLocalService journalTemplateLocalService;
1160            @BeanReference(type = com.liferay.portlet.journal.service.JournalTemplateService.class)
1161            @SuppressWarnings("deprecation")
1162            protected com.liferay.portlet.journal.service.JournalTemplateService journalTemplateService;
1163            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1164            protected com.liferay.counter.service.CounterLocalService counterLocalService;
1165            @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1166            protected com.liferay.portal.service.GroupLocalService groupLocalService;
1167            @BeanReference(type = com.liferay.portal.service.GroupService.class)
1168            protected com.liferay.portal.service.GroupService groupService;
1169            @BeanReference(type = GroupPersistence.class)
1170            protected GroupPersistence groupPersistence;
1171            @BeanReference(type = GroupFinder.class)
1172            protected GroupFinder groupFinder;
1173            @BeanReference(type = com.liferay.portal.service.LayoutLocalService.class)
1174            protected com.liferay.portal.service.LayoutLocalService layoutLocalService;
1175            @BeanReference(type = com.liferay.portal.service.LayoutService.class)
1176            protected com.liferay.portal.service.LayoutService layoutService;
1177            @BeanReference(type = LayoutPersistence.class)
1178            protected LayoutPersistence layoutPersistence;
1179            @BeanReference(type = LayoutFinder.class)
1180            protected LayoutFinder layoutFinder;
1181            @BeanReference(type = com.liferay.portal.service.PortletPreferencesLocalService.class)
1182            protected com.liferay.portal.service.PortletPreferencesLocalService portletPreferencesLocalService;
1183            @BeanReference(type = com.liferay.portal.service.PortletPreferencesService.class)
1184            protected com.liferay.portal.service.PortletPreferencesService portletPreferencesService;
1185            @BeanReference(type = PortletPreferencesPersistence.class)
1186            protected PortletPreferencesPersistence portletPreferencesPersistence;
1187            @BeanReference(type = PortletPreferencesFinder.class)
1188            protected PortletPreferencesFinder portletPreferencesFinder;
1189            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1190            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1191            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1192            protected com.liferay.portal.service.UserLocalService userLocalService;
1193            @BeanReference(type = com.liferay.portal.service.UserService.class)
1194            protected com.liferay.portal.service.UserService userService;
1195            @BeanReference(type = UserPersistence.class)
1196            protected UserPersistence userPersistence;
1197            @BeanReference(type = UserFinder.class)
1198            protected UserFinder userFinder;
1199            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1200            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1201            private String _beanIdentifier;
1202    }