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