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