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