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