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