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