001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.blogs.service.base;
016    
017    import com.liferay.counter.service.CounterLocalService;
018    
019    import com.liferay.portal.kernel.bean.BeanReference;
020    import com.liferay.portal.kernel.bean.IdentifiableBean;
021    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
022    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
023    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
024    import com.liferay.portal.kernel.exception.PortalException;
025    import com.liferay.portal.kernel.exception.SystemException;
026    import com.liferay.portal.kernel.log.Log;
027    import com.liferay.portal.kernel.log.LogFactoryUtil;
028    import com.liferay.portal.kernel.search.Indexer;
029    import com.liferay.portal.kernel.search.IndexerRegistryUtil;
030    import com.liferay.portal.kernel.search.SearchException;
031    import com.liferay.portal.kernel.util.OrderByComparator;
032    import com.liferay.portal.model.PersistedModel;
033    import com.liferay.portal.service.CompanyLocalService;
034    import com.liferay.portal.service.CompanyService;
035    import com.liferay.portal.service.GroupLocalService;
036    import com.liferay.portal.service.GroupService;
037    import com.liferay.portal.service.ImageLocalService;
038    import com.liferay.portal.service.ImageService;
039    import com.liferay.portal.service.OrganizationLocalService;
040    import com.liferay.portal.service.OrganizationService;
041    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
042    import com.liferay.portal.service.PortletPreferencesLocalService;
043    import com.liferay.portal.service.PortletPreferencesService;
044    import com.liferay.portal.service.ResourceLocalService;
045    import com.liferay.portal.service.ResourceService;
046    import com.liferay.portal.service.SubscriptionLocalService;
047    import com.liferay.portal.service.UserLocalService;
048    import com.liferay.portal.service.UserService;
049    import com.liferay.portal.service.WorkflowInstanceLinkLocalService;
050    import com.liferay.portal.service.persistence.CompanyPersistence;
051    import com.liferay.portal.service.persistence.GroupFinder;
052    import com.liferay.portal.service.persistence.GroupPersistence;
053    import com.liferay.portal.service.persistence.ImagePersistence;
054    import com.liferay.portal.service.persistence.OrganizationFinder;
055    import com.liferay.portal.service.persistence.OrganizationPersistence;
056    import com.liferay.portal.service.persistence.PortletPreferencesFinder;
057    import com.liferay.portal.service.persistence.PortletPreferencesPersistence;
058    import com.liferay.portal.service.persistence.ResourceFinder;
059    import com.liferay.portal.service.persistence.ResourcePersistence;
060    import com.liferay.portal.service.persistence.SubscriptionPersistence;
061    import com.liferay.portal.service.persistence.UserFinder;
062    import com.liferay.portal.service.persistence.UserPersistence;
063    import com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence;
064    
065    import com.liferay.portlet.asset.service.AssetEntryLocalService;
066    import com.liferay.portlet.asset.service.AssetEntryService;
067    import com.liferay.portlet.asset.service.AssetLinkLocalService;
068    import com.liferay.portlet.asset.service.AssetTagLocalService;
069    import com.liferay.portlet.asset.service.AssetTagService;
070    import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
071    import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
072    import com.liferay.portlet.asset.service.persistence.AssetLinkPersistence;
073    import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
074    import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
075    import com.liferay.portlet.blogs.model.BlogsEntry;
076    import com.liferay.portlet.blogs.service.BlogsEntryLocalService;
077    import com.liferay.portlet.blogs.service.BlogsEntryService;
078    import com.liferay.portlet.blogs.service.BlogsStatsUserLocalService;
079    import com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder;
080    import com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence;
081    import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserFinder;
082    import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserPersistence;
083    import com.liferay.portlet.expando.service.ExpandoValueLocalService;
084    import com.liferay.portlet.expando.service.ExpandoValueService;
085    import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
086    import com.liferay.portlet.messageboards.service.MBMessageLocalService;
087    import com.liferay.portlet.messageboards.service.MBMessageService;
088    import com.liferay.portlet.messageboards.service.persistence.MBMessageFinder;
089    import com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence;
090    import com.liferay.portlet.ratings.service.RatingsStatsLocalService;
091    import com.liferay.portlet.ratings.service.persistence.RatingsStatsFinder;
092    import com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence;
093    import com.liferay.portlet.social.service.SocialActivityLocalService;
094    import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
095    import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
096    
097    import java.io.Serializable;
098    
099    import java.util.List;
100    
101    import javax.sql.DataSource;
102    
103    /**
104     * The base implementation of the blogs entry local service.
105     *
106     * <p>
107     * 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.blogs.service.impl.BlogsEntryLocalServiceImpl}.
108     * </p>
109     *
110     * @author Brian Wing Shun Chan
111     * @see com.liferay.portlet.blogs.service.impl.BlogsEntryLocalServiceImpl
112     * @see com.liferay.portlet.blogs.service.BlogsEntryLocalServiceUtil
113     * @generated
114     */
115    public abstract class BlogsEntryLocalServiceBaseImpl
116            implements BlogsEntryLocalService, IdentifiableBean {
117            /*
118             * NOTE FOR DEVELOPERS:
119             *
120             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.blogs.service.BlogsEntryLocalServiceUtil} to access the blogs entry local service.
121             */
122    
123            /**
124             * Adds the blogs entry to the database. Also notifies the appropriate model listeners.
125             *
126             * @param blogsEntry the blogs entry
127             * @return the blogs entry that was added
128             * @throws SystemException if a system exception occurred
129             */
130            public BlogsEntry addBlogsEntry(BlogsEntry blogsEntry)
131                    throws SystemException {
132                    blogsEntry.setNew(true);
133    
134                    blogsEntry = blogsEntryPersistence.update(blogsEntry, false);
135    
136                    Indexer indexer = IndexerRegistryUtil.getIndexer(getModelClassName());
137    
138                    if (indexer != null) {
139                            try {
140                                    indexer.reindex(blogsEntry);
141                            }
142                            catch (SearchException se) {
143                                    if (_log.isWarnEnabled()) {
144                                            _log.warn(se, se);
145                                    }
146                            }
147                    }
148    
149                    return blogsEntry;
150            }
151    
152            /**
153             * Creates a new blogs entry with the primary key. Does not add the blogs entry to the database.
154             *
155             * @param entryId the primary key for the new blogs entry
156             * @return the new blogs entry
157             */
158            public BlogsEntry createBlogsEntry(long entryId) {
159                    return blogsEntryPersistence.create(entryId);
160            }
161    
162            /**
163             * Deletes the blogs entry with the primary key from the database. Also notifies the appropriate model listeners.
164             *
165             * @param entryId the primary key of the blogs entry
166             * @throws PortalException if a blogs entry with the primary key could not be found
167             * @throws SystemException if a system exception occurred
168             */
169            public void deleteBlogsEntry(long entryId)
170                    throws PortalException, SystemException {
171                    BlogsEntry blogsEntry = blogsEntryPersistence.remove(entryId);
172    
173                    Indexer indexer = IndexerRegistryUtil.getIndexer(getModelClassName());
174    
175                    if (indexer != null) {
176                            try {
177                                    indexer.delete(blogsEntry);
178                            }
179                            catch (SearchException se) {
180                                    if (_log.isWarnEnabled()) {
181                                            _log.warn(se, se);
182                                    }
183                            }
184                    }
185            }
186    
187            /**
188             * Deletes the blogs entry from the database. Also notifies the appropriate model listeners.
189             *
190             * @param blogsEntry the blogs entry
191             * @throws SystemException if a system exception occurred
192             */
193            public void deleteBlogsEntry(BlogsEntry blogsEntry)
194                    throws SystemException {
195                    blogsEntryPersistence.remove(blogsEntry);
196    
197                    Indexer indexer = IndexerRegistryUtil.getIndexer(getModelClassName());
198    
199                    if (indexer != null) {
200                            try {
201                                    indexer.delete(blogsEntry);
202                            }
203                            catch (SearchException se) {
204                                    if (_log.isWarnEnabled()) {
205                                            _log.warn(se, se);
206                                    }
207                            }
208                    }
209            }
210    
211            /**
212             * Performs a dynamic query on the database and returns the matching rows.
213             *
214             * @param dynamicQuery the dynamic query
215             * @return the matching rows
216             * @throws SystemException if a system exception occurred
217             */
218            @SuppressWarnings("rawtypes")
219            public List dynamicQuery(DynamicQuery dynamicQuery)
220                    throws SystemException {
221                    return blogsEntryPersistence.findWithDynamicQuery(dynamicQuery);
222            }
223    
224            /**
225             * Performs a dynamic query on the database and returns a range of the matching rows.
226             *
227             * <p>
228             * 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.
229             * </p>
230             *
231             * @param dynamicQuery the dynamic query
232             * @param start the lower bound of the range of model instances
233             * @param end the upper bound of the range of model instances (not inclusive)
234             * @return the range of matching rows
235             * @throws SystemException if a system exception occurred
236             */
237            @SuppressWarnings("rawtypes")
238            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
239                    throws SystemException {
240                    return blogsEntryPersistence.findWithDynamicQuery(dynamicQuery, start,
241                            end);
242            }
243    
244            /**
245             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
246             *
247             * <p>
248             * 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.
249             * </p>
250             *
251             * @param dynamicQuery the dynamic query
252             * @param start the lower bound of the range of model instances
253             * @param end the upper bound of the range of model instances (not inclusive)
254             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
255             * @return the ordered range of matching rows
256             * @throws SystemException if a system exception occurred
257             */
258            @SuppressWarnings("rawtypes")
259            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
260                    OrderByComparator orderByComparator) throws SystemException {
261                    return blogsEntryPersistence.findWithDynamicQuery(dynamicQuery, start,
262                            end, orderByComparator);
263            }
264    
265            /**
266             * Returns the number of rows that match the dynamic query.
267             *
268             * @param dynamicQuery the dynamic query
269             * @return the number of rows that match the dynamic query
270             * @throws SystemException if a system exception occurred
271             */
272            public long dynamicQueryCount(DynamicQuery dynamicQuery)
273                    throws SystemException {
274                    return blogsEntryPersistence.countWithDynamicQuery(dynamicQuery);
275            }
276    
277            public BlogsEntry fetchBlogsEntry(long entryId) throws SystemException {
278                    return blogsEntryPersistence.fetchByPrimaryKey(entryId);
279            }
280    
281            /**
282             * Returns the blogs entry with the primary key.
283             *
284             * @param entryId the primary key of the blogs entry
285             * @return the blogs entry
286             * @throws PortalException if a blogs entry with the primary key could not be found
287             * @throws SystemException if a system exception occurred
288             */
289            public BlogsEntry getBlogsEntry(long entryId)
290                    throws PortalException, SystemException {
291                    return blogsEntryPersistence.findByPrimaryKey(entryId);
292            }
293    
294            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
295                    throws PortalException, SystemException {
296                    return blogsEntryPersistence.findByPrimaryKey(primaryKeyObj);
297            }
298    
299            /**
300             * Returns the blogs entry with the UUID in the group.
301             *
302             * @param uuid the UUID of blogs entry
303             * @param groupId the group id of the blogs entry
304             * @return the blogs entry
305             * @throws PortalException if a blogs entry with the UUID in the group could not be found
306             * @throws SystemException if a system exception occurred
307             */
308            public BlogsEntry getBlogsEntryByUuidAndGroupId(String uuid, long groupId)
309                    throws PortalException, SystemException {
310                    return blogsEntryPersistence.findByUUID_G(uuid, groupId);
311            }
312    
313            /**
314             * Returns a range of all the blogs entries.
315             *
316             * <p>
317             * 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.
318             * </p>
319             *
320             * @param start the lower bound of the range of blogs entries
321             * @param end the upper bound of the range of blogs entries (not inclusive)
322             * @return the range of blogs entries
323             * @throws SystemException if a system exception occurred
324             */
325            public List<BlogsEntry> getBlogsEntries(int start, int end)
326                    throws SystemException {
327                    return blogsEntryPersistence.findAll(start, end);
328            }
329    
330            /**
331             * Returns the number of blogs entries.
332             *
333             * @return the number of blogs entries
334             * @throws SystemException if a system exception occurred
335             */
336            public int getBlogsEntriesCount() throws SystemException {
337                    return blogsEntryPersistence.countAll();
338            }
339    
340            /**
341             * Updates the blogs entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
342             *
343             * @param blogsEntry the blogs entry
344             * @return the blogs entry that was updated
345             * @throws SystemException if a system exception occurred
346             */
347            public BlogsEntry updateBlogsEntry(BlogsEntry blogsEntry)
348                    throws SystemException {
349                    return updateBlogsEntry(blogsEntry, true);
350            }
351    
352            /**
353             * Updates the blogs entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
354             *
355             * @param blogsEntry the blogs entry
356             * @param merge whether to merge the blogs entry with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
357             * @return the blogs entry that was updated
358             * @throws SystemException if a system exception occurred
359             */
360            public BlogsEntry updateBlogsEntry(BlogsEntry blogsEntry, boolean merge)
361                    throws SystemException {
362                    blogsEntry.setNew(false);
363    
364                    blogsEntry = blogsEntryPersistence.update(blogsEntry, merge);
365    
366                    Indexer indexer = IndexerRegistryUtil.getIndexer(getModelClassName());
367    
368                    if (indexer != null) {
369                            try {
370                                    indexer.reindex(blogsEntry);
371                            }
372                            catch (SearchException se) {
373                                    if (_log.isWarnEnabled()) {
374                                            _log.warn(se, se);
375                                    }
376                            }
377                    }
378    
379                    return blogsEntry;
380            }
381    
382            /**
383             * Returns the blogs entry local service.
384             *
385             * @return the blogs entry local service
386             */
387            public BlogsEntryLocalService getBlogsEntryLocalService() {
388                    return blogsEntryLocalService;
389            }
390    
391            /**
392             * Sets the blogs entry local service.
393             *
394             * @param blogsEntryLocalService the blogs entry local service
395             */
396            public void setBlogsEntryLocalService(
397                    BlogsEntryLocalService blogsEntryLocalService) {
398                    this.blogsEntryLocalService = blogsEntryLocalService;
399            }
400    
401            /**
402             * Returns the blogs entry remote service.
403             *
404             * @return the blogs entry remote service
405             */
406            public BlogsEntryService getBlogsEntryService() {
407                    return blogsEntryService;
408            }
409    
410            /**
411             * Sets the blogs entry remote service.
412             *
413             * @param blogsEntryService the blogs entry remote service
414             */
415            public void setBlogsEntryService(BlogsEntryService blogsEntryService) {
416                    this.blogsEntryService = blogsEntryService;
417            }
418    
419            /**
420             * Returns the blogs entry persistence.
421             *
422             * @return the blogs entry persistence
423             */
424            public BlogsEntryPersistence getBlogsEntryPersistence() {
425                    return blogsEntryPersistence;
426            }
427    
428            /**
429             * Sets the blogs entry persistence.
430             *
431             * @param blogsEntryPersistence the blogs entry persistence
432             */
433            public void setBlogsEntryPersistence(
434                    BlogsEntryPersistence blogsEntryPersistence) {
435                    this.blogsEntryPersistence = blogsEntryPersistence;
436            }
437    
438            /**
439             * Returns the blogs entry finder.
440             *
441             * @return the blogs entry finder
442             */
443            public BlogsEntryFinder getBlogsEntryFinder() {
444                    return blogsEntryFinder;
445            }
446    
447            /**
448             * Sets the blogs entry finder.
449             *
450             * @param blogsEntryFinder the blogs entry finder
451             */
452            public void setBlogsEntryFinder(BlogsEntryFinder blogsEntryFinder) {
453                    this.blogsEntryFinder = blogsEntryFinder;
454            }
455    
456            /**
457             * Returns the blogs stats user local service.
458             *
459             * @return the blogs stats user local service
460             */
461            public BlogsStatsUserLocalService getBlogsStatsUserLocalService() {
462                    return blogsStatsUserLocalService;
463            }
464    
465            /**
466             * Sets the blogs stats user local service.
467             *
468             * @param blogsStatsUserLocalService the blogs stats user local service
469             */
470            public void setBlogsStatsUserLocalService(
471                    BlogsStatsUserLocalService blogsStatsUserLocalService) {
472                    this.blogsStatsUserLocalService = blogsStatsUserLocalService;
473            }
474    
475            /**
476             * Returns the blogs stats user persistence.
477             *
478             * @return the blogs stats user persistence
479             */
480            public BlogsStatsUserPersistence getBlogsStatsUserPersistence() {
481                    return blogsStatsUserPersistence;
482            }
483    
484            /**
485             * Sets the blogs stats user persistence.
486             *
487             * @param blogsStatsUserPersistence the blogs stats user persistence
488             */
489            public void setBlogsStatsUserPersistence(
490                    BlogsStatsUserPersistence blogsStatsUserPersistence) {
491                    this.blogsStatsUserPersistence = blogsStatsUserPersistence;
492            }
493    
494            /**
495             * Returns the blogs stats user finder.
496             *
497             * @return the blogs stats user finder
498             */
499            public BlogsStatsUserFinder getBlogsStatsUserFinder() {
500                    return blogsStatsUserFinder;
501            }
502    
503            /**
504             * Sets the blogs stats user finder.
505             *
506             * @param blogsStatsUserFinder the blogs stats user finder
507             */
508            public void setBlogsStatsUserFinder(
509                    BlogsStatsUserFinder blogsStatsUserFinder) {
510                    this.blogsStatsUserFinder = blogsStatsUserFinder;
511            }
512    
513            /**
514             * Returns the counter local service.
515             *
516             * @return the counter local service
517             */
518            public CounterLocalService getCounterLocalService() {
519                    return counterLocalService;
520            }
521    
522            /**
523             * Sets the counter local service.
524             *
525             * @param counterLocalService the counter local service
526             */
527            public void setCounterLocalService(CounterLocalService counterLocalService) {
528                    this.counterLocalService = counterLocalService;
529            }
530    
531            /**
532             * Returns the company local service.
533             *
534             * @return the company local service
535             */
536            public CompanyLocalService getCompanyLocalService() {
537                    return companyLocalService;
538            }
539    
540            /**
541             * Sets the company local service.
542             *
543             * @param companyLocalService the company local service
544             */
545            public void setCompanyLocalService(CompanyLocalService companyLocalService) {
546                    this.companyLocalService = companyLocalService;
547            }
548    
549            /**
550             * Returns the company remote service.
551             *
552             * @return the company remote service
553             */
554            public CompanyService getCompanyService() {
555                    return companyService;
556            }
557    
558            /**
559             * Sets the company remote service.
560             *
561             * @param companyService the company remote service
562             */
563            public void setCompanyService(CompanyService companyService) {
564                    this.companyService = companyService;
565            }
566    
567            /**
568             * Returns the company persistence.
569             *
570             * @return the company persistence
571             */
572            public CompanyPersistence getCompanyPersistence() {
573                    return companyPersistence;
574            }
575    
576            /**
577             * Sets the company persistence.
578             *
579             * @param companyPersistence the company persistence
580             */
581            public void setCompanyPersistence(CompanyPersistence companyPersistence) {
582                    this.companyPersistence = companyPersistence;
583            }
584    
585            /**
586             * Returns the group local service.
587             *
588             * @return the group local service
589             */
590            public GroupLocalService getGroupLocalService() {
591                    return groupLocalService;
592            }
593    
594            /**
595             * Sets the group local service.
596             *
597             * @param groupLocalService the group local service
598             */
599            public void setGroupLocalService(GroupLocalService groupLocalService) {
600                    this.groupLocalService = groupLocalService;
601            }
602    
603            /**
604             * Returns the group remote service.
605             *
606             * @return the group remote service
607             */
608            public GroupService getGroupService() {
609                    return groupService;
610            }
611    
612            /**
613             * Sets the group remote service.
614             *
615             * @param groupService the group remote service
616             */
617            public void setGroupService(GroupService groupService) {
618                    this.groupService = groupService;
619            }
620    
621            /**
622             * Returns the group persistence.
623             *
624             * @return the group persistence
625             */
626            public GroupPersistence getGroupPersistence() {
627                    return groupPersistence;
628            }
629    
630            /**
631             * Sets the group persistence.
632             *
633             * @param groupPersistence the group persistence
634             */
635            public void setGroupPersistence(GroupPersistence groupPersistence) {
636                    this.groupPersistence = groupPersistence;
637            }
638    
639            /**
640             * Returns the group finder.
641             *
642             * @return the group finder
643             */
644            public GroupFinder getGroupFinder() {
645                    return groupFinder;
646            }
647    
648            /**
649             * Sets the group finder.
650             *
651             * @param groupFinder the group finder
652             */
653            public void setGroupFinder(GroupFinder groupFinder) {
654                    this.groupFinder = groupFinder;
655            }
656    
657            /**
658             * Returns the image local service.
659             *
660             * @return the image local service
661             */
662            public ImageLocalService getImageLocalService() {
663                    return imageLocalService;
664            }
665    
666            /**
667             * Sets the image local service.
668             *
669             * @param imageLocalService the image local service
670             */
671            public void setImageLocalService(ImageLocalService imageLocalService) {
672                    this.imageLocalService = imageLocalService;
673            }
674    
675            /**
676             * Returns the image remote service.
677             *
678             * @return the image remote service
679             */
680            public ImageService getImageService() {
681                    return imageService;
682            }
683    
684            /**
685             * Sets the image remote service.
686             *
687             * @param imageService the image remote service
688             */
689            public void setImageService(ImageService imageService) {
690                    this.imageService = imageService;
691            }
692    
693            /**
694             * Returns the image persistence.
695             *
696             * @return the image persistence
697             */
698            public ImagePersistence getImagePersistence() {
699                    return imagePersistence;
700            }
701    
702            /**
703             * Sets the image persistence.
704             *
705             * @param imagePersistence the image persistence
706             */
707            public void setImagePersistence(ImagePersistence imagePersistence) {
708                    this.imagePersistence = imagePersistence;
709            }
710    
711            /**
712             * Returns the organization local service.
713             *
714             * @return the organization local service
715             */
716            public OrganizationLocalService getOrganizationLocalService() {
717                    return organizationLocalService;
718            }
719    
720            /**
721             * Sets the organization local service.
722             *
723             * @param organizationLocalService the organization local service
724             */
725            public void setOrganizationLocalService(
726                    OrganizationLocalService organizationLocalService) {
727                    this.organizationLocalService = organizationLocalService;
728            }
729    
730            /**
731             * Returns the organization remote service.
732             *
733             * @return the organization remote service
734             */
735            public OrganizationService getOrganizationService() {
736                    return organizationService;
737            }
738    
739            /**
740             * Sets the organization remote service.
741             *
742             * @param organizationService the organization remote service
743             */
744            public void setOrganizationService(OrganizationService organizationService) {
745                    this.organizationService = organizationService;
746            }
747    
748            /**
749             * Returns the organization persistence.
750             *
751             * @return the organization persistence
752             */
753            public OrganizationPersistence getOrganizationPersistence() {
754                    return organizationPersistence;
755            }
756    
757            /**
758             * Sets the organization persistence.
759             *
760             * @param organizationPersistence the organization persistence
761             */
762            public void setOrganizationPersistence(
763                    OrganizationPersistence organizationPersistence) {
764                    this.organizationPersistence = organizationPersistence;
765            }
766    
767            /**
768             * Returns the organization finder.
769             *
770             * @return the organization finder
771             */
772            public OrganizationFinder getOrganizationFinder() {
773                    return organizationFinder;
774            }
775    
776            /**
777             * Sets the organization finder.
778             *
779             * @param organizationFinder the organization finder
780             */
781            public void setOrganizationFinder(OrganizationFinder organizationFinder) {
782                    this.organizationFinder = organizationFinder;
783            }
784    
785            /**
786             * Returns the portlet preferences local service.
787             *
788             * @return the portlet preferences local service
789             */
790            public PortletPreferencesLocalService getPortletPreferencesLocalService() {
791                    return portletPreferencesLocalService;
792            }
793    
794            /**
795             * Sets the portlet preferences local service.
796             *
797             * @param portletPreferencesLocalService the portlet preferences local service
798             */
799            public void setPortletPreferencesLocalService(
800                    PortletPreferencesLocalService portletPreferencesLocalService) {
801                    this.portletPreferencesLocalService = portletPreferencesLocalService;
802            }
803    
804            /**
805             * Returns the portlet preferences remote service.
806             *
807             * @return the portlet preferences remote service
808             */
809            public PortletPreferencesService getPortletPreferencesService() {
810                    return portletPreferencesService;
811            }
812    
813            /**
814             * Sets the portlet preferences remote service.
815             *
816             * @param portletPreferencesService the portlet preferences remote service
817             */
818            public void setPortletPreferencesService(
819                    PortletPreferencesService portletPreferencesService) {
820                    this.portletPreferencesService = portletPreferencesService;
821            }
822    
823            /**
824             * Returns the portlet preferences persistence.
825             *
826             * @return the portlet preferences persistence
827             */
828            public PortletPreferencesPersistence getPortletPreferencesPersistence() {
829                    return portletPreferencesPersistence;
830            }
831    
832            /**
833             * Sets the portlet preferences persistence.
834             *
835             * @param portletPreferencesPersistence the portlet preferences persistence
836             */
837            public void setPortletPreferencesPersistence(
838                    PortletPreferencesPersistence portletPreferencesPersistence) {
839                    this.portletPreferencesPersistence = portletPreferencesPersistence;
840            }
841    
842            /**
843             * Returns the portlet preferences finder.
844             *
845             * @return the portlet preferences finder
846             */
847            public PortletPreferencesFinder getPortletPreferencesFinder() {
848                    return portletPreferencesFinder;
849            }
850    
851            /**
852             * Sets the portlet preferences finder.
853             *
854             * @param portletPreferencesFinder the portlet preferences finder
855             */
856            public void setPortletPreferencesFinder(
857                    PortletPreferencesFinder portletPreferencesFinder) {
858                    this.portletPreferencesFinder = portletPreferencesFinder;
859            }
860    
861            /**
862             * Returns the resource local service.
863             *
864             * @return the resource local service
865             */
866            public ResourceLocalService getResourceLocalService() {
867                    return resourceLocalService;
868            }
869    
870            /**
871             * Sets the resource local service.
872             *
873             * @param resourceLocalService the resource local service
874             */
875            public void setResourceLocalService(
876                    ResourceLocalService resourceLocalService) {
877                    this.resourceLocalService = resourceLocalService;
878            }
879    
880            /**
881             * Returns the resource remote service.
882             *
883             * @return the resource remote service
884             */
885            public ResourceService getResourceService() {
886                    return resourceService;
887            }
888    
889            /**
890             * Sets the resource remote service.
891             *
892             * @param resourceService the resource remote service
893             */
894            public void setResourceService(ResourceService resourceService) {
895                    this.resourceService = resourceService;
896            }
897    
898            /**
899             * Returns the resource persistence.
900             *
901             * @return the resource persistence
902             */
903            public ResourcePersistence getResourcePersistence() {
904                    return resourcePersistence;
905            }
906    
907            /**
908             * Sets the resource persistence.
909             *
910             * @param resourcePersistence the resource persistence
911             */
912            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
913                    this.resourcePersistence = resourcePersistence;
914            }
915    
916            /**
917             * Returns the resource finder.
918             *
919             * @return the resource finder
920             */
921            public ResourceFinder getResourceFinder() {
922                    return resourceFinder;
923            }
924    
925            /**
926             * Sets the resource finder.
927             *
928             * @param resourceFinder the resource finder
929             */
930            public void setResourceFinder(ResourceFinder resourceFinder) {
931                    this.resourceFinder = resourceFinder;
932            }
933    
934            /**
935             * Returns the subscription local service.
936             *
937             * @return the subscription local service
938             */
939            public SubscriptionLocalService getSubscriptionLocalService() {
940                    return subscriptionLocalService;
941            }
942    
943            /**
944             * Sets the subscription local service.
945             *
946             * @param subscriptionLocalService the subscription local service
947             */
948            public void setSubscriptionLocalService(
949                    SubscriptionLocalService subscriptionLocalService) {
950                    this.subscriptionLocalService = subscriptionLocalService;
951            }
952    
953            /**
954             * Returns the subscription persistence.
955             *
956             * @return the subscription persistence
957             */
958            public SubscriptionPersistence getSubscriptionPersistence() {
959                    return subscriptionPersistence;
960            }
961    
962            /**
963             * Sets the subscription persistence.
964             *
965             * @param subscriptionPersistence the subscription persistence
966             */
967            public void setSubscriptionPersistence(
968                    SubscriptionPersistence subscriptionPersistence) {
969                    this.subscriptionPersistence = subscriptionPersistence;
970            }
971    
972            /**
973             * Returns the user local service.
974             *
975             * @return the user local service
976             */
977            public UserLocalService getUserLocalService() {
978                    return userLocalService;
979            }
980    
981            /**
982             * Sets the user local service.
983             *
984             * @param userLocalService the user local service
985             */
986            public void setUserLocalService(UserLocalService userLocalService) {
987                    this.userLocalService = userLocalService;
988            }
989    
990            /**
991             * Returns the user remote service.
992             *
993             * @return the user remote service
994             */
995            public UserService getUserService() {
996                    return userService;
997            }
998    
999            /**
1000             * Sets the user remote service.
1001             *
1002             * @param userService the user remote service
1003             */
1004            public void setUserService(UserService userService) {
1005                    this.userService = userService;
1006            }
1007    
1008            /**
1009             * Returns the user persistence.
1010             *
1011             * @return the user persistence
1012             */
1013            public UserPersistence getUserPersistence() {
1014                    return userPersistence;
1015            }
1016    
1017            /**
1018             * Sets the user persistence.
1019             *
1020             * @param userPersistence the user persistence
1021             */
1022            public void setUserPersistence(UserPersistence userPersistence) {
1023                    this.userPersistence = userPersistence;
1024            }
1025    
1026            /**
1027             * Returns the user finder.
1028             *
1029             * @return the user finder
1030             */
1031            public UserFinder getUserFinder() {
1032                    return userFinder;
1033            }
1034    
1035            /**
1036             * Sets the user finder.
1037             *
1038             * @param userFinder the user finder
1039             */
1040            public void setUserFinder(UserFinder userFinder) {
1041                    this.userFinder = userFinder;
1042            }
1043    
1044            /**
1045             * Returns the workflow instance link local service.
1046             *
1047             * @return the workflow instance link local service
1048             */
1049            public WorkflowInstanceLinkLocalService getWorkflowInstanceLinkLocalService() {
1050                    return workflowInstanceLinkLocalService;
1051            }
1052    
1053            /**
1054             * Sets the workflow instance link local service.
1055             *
1056             * @param workflowInstanceLinkLocalService the workflow instance link local service
1057             */
1058            public void setWorkflowInstanceLinkLocalService(
1059                    WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
1060                    this.workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
1061            }
1062    
1063            /**
1064             * Returns the workflow instance link persistence.
1065             *
1066             * @return the workflow instance link persistence
1067             */
1068            public WorkflowInstanceLinkPersistence getWorkflowInstanceLinkPersistence() {
1069                    return workflowInstanceLinkPersistence;
1070            }
1071    
1072            /**
1073             * Sets the workflow instance link persistence.
1074             *
1075             * @param workflowInstanceLinkPersistence the workflow instance link persistence
1076             */
1077            public void setWorkflowInstanceLinkPersistence(
1078                    WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence) {
1079                    this.workflowInstanceLinkPersistence = workflowInstanceLinkPersistence;
1080            }
1081    
1082            /**
1083             * Returns the asset entry local service.
1084             *
1085             * @return the asset entry local service
1086             */
1087            public AssetEntryLocalService getAssetEntryLocalService() {
1088                    return assetEntryLocalService;
1089            }
1090    
1091            /**
1092             * Sets the asset entry local service.
1093             *
1094             * @param assetEntryLocalService the asset entry local service
1095             */
1096            public void setAssetEntryLocalService(
1097                    AssetEntryLocalService assetEntryLocalService) {
1098                    this.assetEntryLocalService = assetEntryLocalService;
1099            }
1100    
1101            /**
1102             * Returns the asset entry remote service.
1103             *
1104             * @return the asset entry remote service
1105             */
1106            public AssetEntryService getAssetEntryService() {
1107                    return assetEntryService;
1108            }
1109    
1110            /**
1111             * Sets the asset entry remote service.
1112             *
1113             * @param assetEntryService the asset entry remote service
1114             */
1115            public void setAssetEntryService(AssetEntryService assetEntryService) {
1116                    this.assetEntryService = assetEntryService;
1117            }
1118    
1119            /**
1120             * Returns the asset entry persistence.
1121             *
1122             * @return the asset entry persistence
1123             */
1124            public AssetEntryPersistence getAssetEntryPersistence() {
1125                    return assetEntryPersistence;
1126            }
1127    
1128            /**
1129             * Sets the asset entry persistence.
1130             *
1131             * @param assetEntryPersistence the asset entry persistence
1132             */
1133            public void setAssetEntryPersistence(
1134                    AssetEntryPersistence assetEntryPersistence) {
1135                    this.assetEntryPersistence = assetEntryPersistence;
1136            }
1137    
1138            /**
1139             * Returns the asset entry finder.
1140             *
1141             * @return the asset entry finder
1142             */
1143            public AssetEntryFinder getAssetEntryFinder() {
1144                    return assetEntryFinder;
1145            }
1146    
1147            /**
1148             * Sets the asset entry finder.
1149             *
1150             * @param assetEntryFinder the asset entry finder
1151             */
1152            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
1153                    this.assetEntryFinder = assetEntryFinder;
1154            }
1155    
1156            /**
1157             * Returns the asset link local service.
1158             *
1159             * @return the asset link local service
1160             */
1161            public AssetLinkLocalService getAssetLinkLocalService() {
1162                    return assetLinkLocalService;
1163            }
1164    
1165            /**
1166             * Sets the asset link local service.
1167             *
1168             * @param assetLinkLocalService the asset link local service
1169             */
1170            public void setAssetLinkLocalService(
1171                    AssetLinkLocalService assetLinkLocalService) {
1172                    this.assetLinkLocalService = assetLinkLocalService;
1173            }
1174    
1175            /**
1176             * Returns the asset link persistence.
1177             *
1178             * @return the asset link persistence
1179             */
1180            public AssetLinkPersistence getAssetLinkPersistence() {
1181                    return assetLinkPersistence;
1182            }
1183    
1184            /**
1185             * Sets the asset link persistence.
1186             *
1187             * @param assetLinkPersistence the asset link persistence
1188             */
1189            public void setAssetLinkPersistence(
1190                    AssetLinkPersistence assetLinkPersistence) {
1191                    this.assetLinkPersistence = assetLinkPersistence;
1192            }
1193    
1194            /**
1195             * Returns the asset tag local service.
1196             *
1197             * @return the asset tag local service
1198             */
1199            public AssetTagLocalService getAssetTagLocalService() {
1200                    return assetTagLocalService;
1201            }
1202    
1203            /**
1204             * Sets the asset tag local service.
1205             *
1206             * @param assetTagLocalService the asset tag local service
1207             */
1208            public void setAssetTagLocalService(
1209                    AssetTagLocalService assetTagLocalService) {
1210                    this.assetTagLocalService = assetTagLocalService;
1211            }
1212    
1213            /**
1214             * Returns the asset tag remote service.
1215             *
1216             * @return the asset tag remote service
1217             */
1218            public AssetTagService getAssetTagService() {
1219                    return assetTagService;
1220            }
1221    
1222            /**
1223             * Sets the asset tag remote service.
1224             *
1225             * @param assetTagService the asset tag remote service
1226             */
1227            public void setAssetTagService(AssetTagService assetTagService) {
1228                    this.assetTagService = assetTagService;
1229            }
1230    
1231            /**
1232             * Returns the asset tag persistence.
1233             *
1234             * @return the asset tag persistence
1235             */
1236            public AssetTagPersistence getAssetTagPersistence() {
1237                    return assetTagPersistence;
1238            }
1239    
1240            /**
1241             * Sets the asset tag persistence.
1242             *
1243             * @param assetTagPersistence the asset tag persistence
1244             */
1245            public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
1246                    this.assetTagPersistence = assetTagPersistence;
1247            }
1248    
1249            /**
1250             * Returns the asset tag finder.
1251             *
1252             * @return the asset tag finder
1253             */
1254            public AssetTagFinder getAssetTagFinder() {
1255                    return assetTagFinder;
1256            }
1257    
1258            /**
1259             * Sets the asset tag finder.
1260             *
1261             * @param assetTagFinder the asset tag finder
1262             */
1263            public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
1264                    this.assetTagFinder = assetTagFinder;
1265            }
1266    
1267            /**
1268             * Returns the expando value local service.
1269             *
1270             * @return the expando value local service
1271             */
1272            public ExpandoValueLocalService getExpandoValueLocalService() {
1273                    return expandoValueLocalService;
1274            }
1275    
1276            /**
1277             * Sets the expando value local service.
1278             *
1279             * @param expandoValueLocalService the expando value local service
1280             */
1281            public void setExpandoValueLocalService(
1282                    ExpandoValueLocalService expandoValueLocalService) {
1283                    this.expandoValueLocalService = expandoValueLocalService;
1284            }
1285    
1286            /**
1287             * Returns the expando value remote service.
1288             *
1289             * @return the expando value remote service
1290             */
1291            public ExpandoValueService getExpandoValueService() {
1292                    return expandoValueService;
1293            }
1294    
1295            /**
1296             * Sets the expando value remote service.
1297             *
1298             * @param expandoValueService the expando value remote service
1299             */
1300            public void setExpandoValueService(ExpandoValueService expandoValueService) {
1301                    this.expandoValueService = expandoValueService;
1302            }
1303    
1304            /**
1305             * Returns the expando value persistence.
1306             *
1307             * @return the expando value persistence
1308             */
1309            public ExpandoValuePersistence getExpandoValuePersistence() {
1310                    return expandoValuePersistence;
1311            }
1312    
1313            /**
1314             * Sets the expando value persistence.
1315             *
1316             * @param expandoValuePersistence the expando value persistence
1317             */
1318            public void setExpandoValuePersistence(
1319                    ExpandoValuePersistence expandoValuePersistence) {
1320                    this.expandoValuePersistence = expandoValuePersistence;
1321            }
1322    
1323            /**
1324             * Returns the message-boards message local service.
1325             *
1326             * @return the message-boards message local service
1327             */
1328            public MBMessageLocalService getMBMessageLocalService() {
1329                    return mbMessageLocalService;
1330            }
1331    
1332            /**
1333             * Sets the message-boards message local service.
1334             *
1335             * @param mbMessageLocalService the message-boards message local service
1336             */
1337            public void setMBMessageLocalService(
1338                    MBMessageLocalService mbMessageLocalService) {
1339                    this.mbMessageLocalService = mbMessageLocalService;
1340            }
1341    
1342            /**
1343             * Returns the message-boards message remote service.
1344             *
1345             * @return the message-boards message remote service
1346             */
1347            public MBMessageService getMBMessageService() {
1348                    return mbMessageService;
1349            }
1350    
1351            /**
1352             * Sets the message-boards message remote service.
1353             *
1354             * @param mbMessageService the message-boards message remote service
1355             */
1356            public void setMBMessageService(MBMessageService mbMessageService) {
1357                    this.mbMessageService = mbMessageService;
1358            }
1359    
1360            /**
1361             * Returns the message-boards message persistence.
1362             *
1363             * @return the message-boards message persistence
1364             */
1365            public MBMessagePersistence getMBMessagePersistence() {
1366                    return mbMessagePersistence;
1367            }
1368    
1369            /**
1370             * Sets the message-boards message persistence.
1371             *
1372             * @param mbMessagePersistence the message-boards message persistence
1373             */
1374            public void setMBMessagePersistence(
1375                    MBMessagePersistence mbMessagePersistence) {
1376                    this.mbMessagePersistence = mbMessagePersistence;
1377            }
1378    
1379            /**
1380             * Returns the message-boards message finder.
1381             *
1382             * @return the message-boards message finder
1383             */
1384            public MBMessageFinder getMBMessageFinder() {
1385                    return mbMessageFinder;
1386            }
1387    
1388            /**
1389             * Sets the message-boards message finder.
1390             *
1391             * @param mbMessageFinder the message-boards message finder
1392             */
1393            public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
1394                    this.mbMessageFinder = mbMessageFinder;
1395            }
1396    
1397            /**
1398             * Returns the ratings stats local service.
1399             *
1400             * @return the ratings stats local service
1401             */
1402            public RatingsStatsLocalService getRatingsStatsLocalService() {
1403                    return ratingsStatsLocalService;
1404            }
1405    
1406            /**
1407             * Sets the ratings stats local service.
1408             *
1409             * @param ratingsStatsLocalService the ratings stats local service
1410             */
1411            public void setRatingsStatsLocalService(
1412                    RatingsStatsLocalService ratingsStatsLocalService) {
1413                    this.ratingsStatsLocalService = ratingsStatsLocalService;
1414            }
1415    
1416            /**
1417             * Returns the ratings stats persistence.
1418             *
1419             * @return the ratings stats persistence
1420             */
1421            public RatingsStatsPersistence getRatingsStatsPersistence() {
1422                    return ratingsStatsPersistence;
1423            }
1424    
1425            /**
1426             * Sets the ratings stats persistence.
1427             *
1428             * @param ratingsStatsPersistence the ratings stats persistence
1429             */
1430            public void setRatingsStatsPersistence(
1431                    RatingsStatsPersistence ratingsStatsPersistence) {
1432                    this.ratingsStatsPersistence = ratingsStatsPersistence;
1433            }
1434    
1435            /**
1436             * Returns the ratings stats finder.
1437             *
1438             * @return the ratings stats finder
1439             */
1440            public RatingsStatsFinder getRatingsStatsFinder() {
1441                    return ratingsStatsFinder;
1442            }
1443    
1444            /**
1445             * Sets the ratings stats finder.
1446             *
1447             * @param ratingsStatsFinder the ratings stats finder
1448             */
1449            public void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder) {
1450                    this.ratingsStatsFinder = ratingsStatsFinder;
1451            }
1452    
1453            /**
1454             * Returns the social activity local service.
1455             *
1456             * @return the social activity local service
1457             */
1458            public SocialActivityLocalService getSocialActivityLocalService() {
1459                    return socialActivityLocalService;
1460            }
1461    
1462            /**
1463             * Sets the social activity local service.
1464             *
1465             * @param socialActivityLocalService the social activity local service
1466             */
1467            public void setSocialActivityLocalService(
1468                    SocialActivityLocalService socialActivityLocalService) {
1469                    this.socialActivityLocalService = socialActivityLocalService;
1470            }
1471    
1472            /**
1473             * Returns the social activity persistence.
1474             *
1475             * @return the social activity persistence
1476             */
1477            public SocialActivityPersistence getSocialActivityPersistence() {
1478                    return socialActivityPersistence;
1479            }
1480    
1481            /**
1482             * Sets the social activity persistence.
1483             *
1484             * @param socialActivityPersistence the social activity persistence
1485             */
1486            public void setSocialActivityPersistence(
1487                    SocialActivityPersistence socialActivityPersistence) {
1488                    this.socialActivityPersistence = socialActivityPersistence;
1489            }
1490    
1491            /**
1492             * Returns the social activity finder.
1493             *
1494             * @return the social activity finder
1495             */
1496            public SocialActivityFinder getSocialActivityFinder() {
1497                    return socialActivityFinder;
1498            }
1499    
1500            /**
1501             * Sets the social activity finder.
1502             *
1503             * @param socialActivityFinder the social activity finder
1504             */
1505            public void setSocialActivityFinder(
1506                    SocialActivityFinder socialActivityFinder) {
1507                    this.socialActivityFinder = socialActivityFinder;
1508            }
1509    
1510            public void afterPropertiesSet() {
1511                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.blogs.model.BlogsEntry",
1512                            blogsEntryLocalService);
1513            }
1514    
1515            public void destroy() {
1516                    persistedModelLocalServiceRegistry.unregister(
1517                            "com.liferay.portlet.blogs.model.BlogsEntry");
1518            }
1519    
1520            /**
1521             * Returns the Spring bean ID for this bean.
1522             *
1523             * @return the Spring bean ID for this bean
1524             */
1525            public String getBeanIdentifier() {
1526                    return _beanIdentifier;
1527            }
1528    
1529            /**
1530             * Sets the Spring bean ID for this bean.
1531             *
1532             * @param beanIdentifier the Spring bean ID for this bean
1533             */
1534            public void setBeanIdentifier(String beanIdentifier) {
1535                    _beanIdentifier = beanIdentifier;
1536            }
1537    
1538            protected ClassLoader getClassLoader() {
1539                    Class<?> clazz = getClass();
1540    
1541                    return clazz.getClassLoader();
1542            }
1543    
1544            protected Class<?> getModelClass() {
1545                    return BlogsEntry.class;
1546            }
1547    
1548            protected String getModelClassName() {
1549                    return BlogsEntry.class.getName();
1550            }
1551    
1552            /**
1553             * Performs an SQL query.
1554             *
1555             * @param sql the sql query
1556             */
1557            protected void runSQL(String sql) throws SystemException {
1558                    try {
1559                            DataSource dataSource = blogsEntryPersistence.getDataSource();
1560    
1561                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1562                                            sql, new int[0]);
1563    
1564                            sqlUpdate.update();
1565                    }
1566                    catch (Exception e) {
1567                            throw new SystemException(e);
1568                    }
1569            }
1570    
1571            @BeanReference(type = BlogsEntryLocalService.class)
1572            protected BlogsEntryLocalService blogsEntryLocalService;
1573            @BeanReference(type = BlogsEntryService.class)
1574            protected BlogsEntryService blogsEntryService;
1575            @BeanReference(type = BlogsEntryPersistence.class)
1576            protected BlogsEntryPersistence blogsEntryPersistence;
1577            @BeanReference(type = BlogsEntryFinder.class)
1578            protected BlogsEntryFinder blogsEntryFinder;
1579            @BeanReference(type = BlogsStatsUserLocalService.class)
1580            protected BlogsStatsUserLocalService blogsStatsUserLocalService;
1581            @BeanReference(type = BlogsStatsUserPersistence.class)
1582            protected BlogsStatsUserPersistence blogsStatsUserPersistence;
1583            @BeanReference(type = BlogsStatsUserFinder.class)
1584            protected BlogsStatsUserFinder blogsStatsUserFinder;
1585            @BeanReference(type = CounterLocalService.class)
1586            protected CounterLocalService counterLocalService;
1587            @BeanReference(type = CompanyLocalService.class)
1588            protected CompanyLocalService companyLocalService;
1589            @BeanReference(type = CompanyService.class)
1590            protected CompanyService companyService;
1591            @BeanReference(type = CompanyPersistence.class)
1592            protected CompanyPersistence companyPersistence;
1593            @BeanReference(type = GroupLocalService.class)
1594            protected GroupLocalService groupLocalService;
1595            @BeanReference(type = GroupService.class)
1596            protected GroupService groupService;
1597            @BeanReference(type = GroupPersistence.class)
1598            protected GroupPersistence groupPersistence;
1599            @BeanReference(type = GroupFinder.class)
1600            protected GroupFinder groupFinder;
1601            @BeanReference(type = ImageLocalService.class)
1602            protected ImageLocalService imageLocalService;
1603            @BeanReference(type = ImageService.class)
1604            protected ImageService imageService;
1605            @BeanReference(type = ImagePersistence.class)
1606            protected ImagePersistence imagePersistence;
1607            @BeanReference(type = OrganizationLocalService.class)
1608            protected OrganizationLocalService organizationLocalService;
1609            @BeanReference(type = OrganizationService.class)
1610            protected OrganizationService organizationService;
1611            @BeanReference(type = OrganizationPersistence.class)
1612            protected OrganizationPersistence organizationPersistence;
1613            @BeanReference(type = OrganizationFinder.class)
1614            protected OrganizationFinder organizationFinder;
1615            @BeanReference(type = PortletPreferencesLocalService.class)
1616            protected PortletPreferencesLocalService portletPreferencesLocalService;
1617            @BeanReference(type = PortletPreferencesService.class)
1618            protected PortletPreferencesService portletPreferencesService;
1619            @BeanReference(type = PortletPreferencesPersistence.class)
1620            protected PortletPreferencesPersistence portletPreferencesPersistence;
1621            @BeanReference(type = PortletPreferencesFinder.class)
1622            protected PortletPreferencesFinder portletPreferencesFinder;
1623            @BeanReference(type = ResourceLocalService.class)
1624            protected ResourceLocalService resourceLocalService;
1625            @BeanReference(type = ResourceService.class)
1626            protected ResourceService resourceService;
1627            @BeanReference(type = ResourcePersistence.class)
1628            protected ResourcePersistence resourcePersistence;
1629            @BeanReference(type = ResourceFinder.class)
1630            protected ResourceFinder resourceFinder;
1631            @BeanReference(type = SubscriptionLocalService.class)
1632            protected SubscriptionLocalService subscriptionLocalService;
1633            @BeanReference(type = SubscriptionPersistence.class)
1634            protected SubscriptionPersistence subscriptionPersistence;
1635            @BeanReference(type = UserLocalService.class)
1636            protected UserLocalService userLocalService;
1637            @BeanReference(type = UserService.class)
1638            protected UserService userService;
1639            @BeanReference(type = UserPersistence.class)
1640            protected UserPersistence userPersistence;
1641            @BeanReference(type = UserFinder.class)
1642            protected UserFinder userFinder;
1643            @BeanReference(type = WorkflowInstanceLinkLocalService.class)
1644            protected WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService;
1645            @BeanReference(type = WorkflowInstanceLinkPersistence.class)
1646            protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
1647            @BeanReference(type = AssetEntryLocalService.class)
1648            protected AssetEntryLocalService assetEntryLocalService;
1649            @BeanReference(type = AssetEntryService.class)
1650            protected AssetEntryService assetEntryService;
1651            @BeanReference(type = AssetEntryPersistence.class)
1652            protected AssetEntryPersistence assetEntryPersistence;
1653            @BeanReference(type = AssetEntryFinder.class)
1654            protected AssetEntryFinder assetEntryFinder;
1655            @BeanReference(type = AssetLinkLocalService.class)
1656            protected AssetLinkLocalService assetLinkLocalService;
1657            @BeanReference(type = AssetLinkPersistence.class)
1658            protected AssetLinkPersistence assetLinkPersistence;
1659            @BeanReference(type = AssetTagLocalService.class)
1660            protected AssetTagLocalService assetTagLocalService;
1661            @BeanReference(type = AssetTagService.class)
1662            protected AssetTagService assetTagService;
1663            @BeanReference(type = AssetTagPersistence.class)
1664            protected AssetTagPersistence assetTagPersistence;
1665            @BeanReference(type = AssetTagFinder.class)
1666            protected AssetTagFinder assetTagFinder;
1667            @BeanReference(type = ExpandoValueLocalService.class)
1668            protected ExpandoValueLocalService expandoValueLocalService;
1669            @BeanReference(type = ExpandoValueService.class)
1670            protected ExpandoValueService expandoValueService;
1671            @BeanReference(type = ExpandoValuePersistence.class)
1672            protected ExpandoValuePersistence expandoValuePersistence;
1673            @BeanReference(type = MBMessageLocalService.class)
1674            protected MBMessageLocalService mbMessageLocalService;
1675            @BeanReference(type = MBMessageService.class)
1676            protected MBMessageService mbMessageService;
1677            @BeanReference(type = MBMessagePersistence.class)
1678            protected MBMessagePersistence mbMessagePersistence;
1679            @BeanReference(type = MBMessageFinder.class)
1680            protected MBMessageFinder mbMessageFinder;
1681            @BeanReference(type = RatingsStatsLocalService.class)
1682            protected RatingsStatsLocalService ratingsStatsLocalService;
1683            @BeanReference(type = RatingsStatsPersistence.class)
1684            protected RatingsStatsPersistence ratingsStatsPersistence;
1685            @BeanReference(type = RatingsStatsFinder.class)
1686            protected RatingsStatsFinder ratingsStatsFinder;
1687            @BeanReference(type = SocialActivityLocalService.class)
1688            protected SocialActivityLocalService socialActivityLocalService;
1689            @BeanReference(type = SocialActivityPersistence.class)
1690            protected SocialActivityPersistence socialActivityPersistence;
1691            @BeanReference(type = SocialActivityFinder.class)
1692            protected SocialActivityFinder socialActivityFinder;
1693            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1694            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1695            private static Log _log = LogFactoryUtil.getLog(BlogsEntryLocalServiceBaseImpl.class);
1696            private String _beanIdentifier;
1697    }