001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portlet.messageboards.service.base;
016    
017    import com.liferay.counter.service.CounterLocalService;
018    
019    import com.liferay.portal.kernel.annotation.BeanReference;
020    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
021    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
022    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
023    import com.liferay.portal.kernel.exception.PortalException;
024    import com.liferay.portal.kernel.exception.SystemException;
025    import com.liferay.portal.kernel.util.OrderByComparator;
026    import com.liferay.portal.service.GroupLocalService;
027    import com.liferay.portal.service.GroupService;
028    import com.liferay.portal.service.ResourceLocalService;
029    import com.liferay.portal.service.ResourceService;
030    import com.liferay.portal.service.SubscriptionLocalService;
031    import com.liferay.portal.service.UserLocalService;
032    import com.liferay.portal.service.UserService;
033    import com.liferay.portal.service.persistence.GroupFinder;
034    import com.liferay.portal.service.persistence.GroupPersistence;
035    import com.liferay.portal.service.persistence.ResourceFinder;
036    import com.liferay.portal.service.persistence.ResourcePersistence;
037    import com.liferay.portal.service.persistence.SubscriptionPersistence;
038    import com.liferay.portal.service.persistence.UserFinder;
039    import com.liferay.portal.service.persistence.UserPersistence;
040    
041    import com.liferay.portlet.asset.service.AssetTagLocalService;
042    import com.liferay.portlet.asset.service.AssetTagService;
043    import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
044    import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
045    import com.liferay.portlet.expando.service.ExpandoValueLocalService;
046    import com.liferay.portlet.expando.service.ExpandoValueService;
047    import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
048    import com.liferay.portlet.messageboards.model.MBCategory;
049    import com.liferay.portlet.messageboards.service.MBBanLocalService;
050    import com.liferay.portlet.messageboards.service.MBBanService;
051    import com.liferay.portlet.messageboards.service.MBCategoryLocalService;
052    import com.liferay.portlet.messageboards.service.MBCategoryService;
053    import com.liferay.portlet.messageboards.service.MBDiscussionLocalService;
054    import com.liferay.portlet.messageboards.service.MBMailingListLocalService;
055    import com.liferay.portlet.messageboards.service.MBMessageFlagLocalService;
056    import com.liferay.portlet.messageboards.service.MBMessageFlagService;
057    import com.liferay.portlet.messageboards.service.MBMessageLocalService;
058    import com.liferay.portlet.messageboards.service.MBMessageService;
059    import com.liferay.portlet.messageboards.service.MBStatsUserLocalService;
060    import com.liferay.portlet.messageboards.service.MBThreadLocalService;
061    import com.liferay.portlet.messageboards.service.MBThreadService;
062    import com.liferay.portlet.messageboards.service.persistence.MBBanPersistence;
063    import com.liferay.portlet.messageboards.service.persistence.MBCategoryFinder;
064    import com.liferay.portlet.messageboards.service.persistence.MBCategoryPersistence;
065    import com.liferay.portlet.messageboards.service.persistence.MBDiscussionPersistence;
066    import com.liferay.portlet.messageboards.service.persistence.MBMailingListPersistence;
067    import com.liferay.portlet.messageboards.service.persistence.MBMessageFinder;
068    import com.liferay.portlet.messageboards.service.persistence.MBMessageFlagPersistence;
069    import com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence;
070    import com.liferay.portlet.messageboards.service.persistence.MBStatsUserPersistence;
071    import com.liferay.portlet.messageboards.service.persistence.MBThreadFinder;
072    import com.liferay.portlet.messageboards.service.persistence.MBThreadPersistence;
073    
074    import java.util.List;
075    
076    import javax.sql.DataSource;
077    
078    /**
079     * The base implementation of the message boards category local service.
080     *
081     * <p>
082     * 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.MBCategoryLocalServiceImpl}.
083     * </p>
084     *
085     * <p>
086     * Never modify or reference this class directly. Always use {@link com.liferay.portlet.messageboards.service.MBCategoryLocalServiceUtil} to access the message boards category local service.
087     * </p>
088     *
089     * @author Brian Wing Shun Chan
090     * @see com.liferay.portlet.messageboards.service.impl.MBCategoryLocalServiceImpl
091     * @see com.liferay.portlet.messageboards.service.MBCategoryLocalServiceUtil
092     * @generated
093     */
094    public abstract class MBCategoryLocalServiceBaseImpl
095            implements MBCategoryLocalService {
096            /**
097             * Adds the message boards category to the database. Also notifies the appropriate model listeners.
098             *
099             * @param mbCategory the message boards category to add
100             * @return the message boards category that was added
101             * @throws SystemException if a system exception occurred
102             */
103            public MBCategory addMBCategory(MBCategory mbCategory)
104                    throws SystemException {
105                    mbCategory.setNew(true);
106    
107                    return mbCategoryPersistence.update(mbCategory, false);
108            }
109    
110            /**
111             * Creates a new message boards category with the primary key. Does not add the message boards category to the database.
112             *
113             * @param categoryId the primary key for the new message boards category
114             * @return the new message boards category
115             */
116            public MBCategory createMBCategory(long categoryId) {
117                    return mbCategoryPersistence.create(categoryId);
118            }
119    
120            /**
121             * Deletes the message boards category with the primary key from the database. Also notifies the appropriate model listeners.
122             *
123             * @param categoryId the primary key of the message boards category to delete
124             * @throws PortalException if a message boards category with the primary key could not be found
125             * @throws SystemException if a system exception occurred
126             */
127            public void deleteMBCategory(long categoryId)
128                    throws PortalException, SystemException {
129                    mbCategoryPersistence.remove(categoryId);
130            }
131    
132            /**
133             * Deletes the message boards category from the database. Also notifies the appropriate model listeners.
134             *
135             * @param mbCategory the message boards category to delete
136             * @throws SystemException if a system exception occurred
137             */
138            public void deleteMBCategory(MBCategory mbCategory)
139                    throws SystemException {
140                    mbCategoryPersistence.remove(mbCategory);
141            }
142    
143            /**
144             * Performs a dynamic query on the database and returns the matching rows.
145             *
146             * @param dynamicQuery the dynamic query to search with
147             * @return the matching rows
148             * @throws SystemException if a system exception occurred
149             */
150            @SuppressWarnings("rawtypes")
151            public List dynamicQuery(DynamicQuery dynamicQuery)
152                    throws SystemException {
153                    return mbCategoryPersistence.findWithDynamicQuery(dynamicQuery);
154            }
155    
156            /**
157             * Performs a dynamic query on the database and returns a range of the matching rows.
158             *
159             * <p>
160             * 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.
161             * </p>
162             *
163             * @param dynamicQuery the dynamic query to search with
164             * @param start the lower bound of the range of model instances to return
165             * @param end the upper bound of the range of model instances to return (not inclusive)
166             * @return the range of matching rows
167             * @throws SystemException if a system exception occurred
168             */
169            @SuppressWarnings("rawtypes")
170            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
171                    throws SystemException {
172                    return mbCategoryPersistence.findWithDynamicQuery(dynamicQuery, start,
173                            end);
174            }
175    
176            /**
177             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
178             *
179             * <p>
180             * 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.
181             * </p>
182             *
183             * @param dynamicQuery the dynamic query to search with
184             * @param start the lower bound of the range of model instances to return
185             * @param end the upper bound of the range of model instances to return (not inclusive)
186             * @param orderByComparator the comparator to order the results by
187             * @return the ordered range of matching rows
188             * @throws SystemException if a system exception occurred
189             */
190            @SuppressWarnings("rawtypes")
191            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
192                    OrderByComparator orderByComparator) throws SystemException {
193                    return mbCategoryPersistence.findWithDynamicQuery(dynamicQuery, start,
194                            end, orderByComparator);
195            }
196    
197            /**
198             * Counts the number of rows that match the dynamic query.
199             *
200             * @param dynamicQuery the dynamic query to search with
201             * @return the number of rows that match the dynamic query
202             * @throws SystemException if a system exception occurred
203             */
204            public long dynamicQueryCount(DynamicQuery dynamicQuery)
205                    throws SystemException {
206                    return mbCategoryPersistence.countWithDynamicQuery(dynamicQuery);
207            }
208    
209            /**
210             * Gets the message boards category with the primary key.
211             *
212             * @param categoryId the primary key of the message boards category to get
213             * @return the message boards category
214             * @throws PortalException if a message boards category with the primary key could not be found
215             * @throws SystemException if a system exception occurred
216             */
217            public MBCategory getMBCategory(long categoryId)
218                    throws PortalException, SystemException {
219                    return mbCategoryPersistence.findByPrimaryKey(categoryId);
220            }
221    
222            /**
223             * Gets the message boards category with the UUID and group id.
224             *
225             * @param uuid the UUID of message boards category to get
226             * @param groupId the group id of the message boards category to get
227             * @return the message boards category
228             * @throws PortalException if a message boards category with the UUID and group id could not be found
229             * @throws SystemException if a system exception occurred
230             */
231            public MBCategory getMBCategoryByUuidAndGroupId(String uuid, long groupId)
232                    throws PortalException, SystemException {
233                    return mbCategoryPersistence.findByUUID_G(uuid, groupId);
234            }
235    
236            /**
237             * Gets a range of all the message boards categories.
238             *
239             * <p>
240             * 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.
241             * </p>
242             *
243             * @param start the lower bound of the range of message boards categories to return
244             * @param end the upper bound of the range of message boards categories to return (not inclusive)
245             * @return the range of message boards categories
246             * @throws SystemException if a system exception occurred
247             */
248            public List<MBCategory> getMBCategories(int start, int end)
249                    throws SystemException {
250                    return mbCategoryPersistence.findAll(start, end);
251            }
252    
253            /**
254             * Gets the number of message boards categories.
255             *
256             * @return the number of message boards categories
257             * @throws SystemException if a system exception occurred
258             */
259            public int getMBCategoriesCount() throws SystemException {
260                    return mbCategoryPersistence.countAll();
261            }
262    
263            /**
264             * Updates the message boards category in the database. Also notifies the appropriate model listeners.
265             *
266             * @param mbCategory the message boards category to update
267             * @return the message boards category that was updated
268             * @throws SystemException if a system exception occurred
269             */
270            public MBCategory updateMBCategory(MBCategory mbCategory)
271                    throws SystemException {
272                    mbCategory.setNew(false);
273    
274                    return mbCategoryPersistence.update(mbCategory, true);
275            }
276    
277            /**
278             * Updates the message boards category in the database. Also notifies the appropriate model listeners.
279             *
280             * @param mbCategory the message boards category to update
281             * @param merge whether to merge the message boards category with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
282             * @return the message boards category that was updated
283             * @throws SystemException if a system exception occurred
284             */
285            public MBCategory updateMBCategory(MBCategory mbCategory, boolean merge)
286                    throws SystemException {
287                    mbCategory.setNew(false);
288    
289                    return mbCategoryPersistence.update(mbCategory, merge);
290            }
291    
292            /**
293             * Gets the message boards ban local service.
294             *
295             * @return the message boards ban local service
296             */
297            public MBBanLocalService getMBBanLocalService() {
298                    return mbBanLocalService;
299            }
300    
301            /**
302             * Sets the message boards ban local service.
303             *
304             * @param mbBanLocalService the message boards ban local service
305             */
306            public void setMBBanLocalService(MBBanLocalService mbBanLocalService) {
307                    this.mbBanLocalService = mbBanLocalService;
308            }
309    
310            /**
311             * Gets the message boards ban remote service.
312             *
313             * @return the message boards ban remote service
314             */
315            public MBBanService getMBBanService() {
316                    return mbBanService;
317            }
318    
319            /**
320             * Sets the message boards ban remote service.
321             *
322             * @param mbBanService the message boards ban remote service
323             */
324            public void setMBBanService(MBBanService mbBanService) {
325                    this.mbBanService = mbBanService;
326            }
327    
328            /**
329             * Gets the message boards ban persistence.
330             *
331             * @return the message boards ban persistence
332             */
333            public MBBanPersistence getMBBanPersistence() {
334                    return mbBanPersistence;
335            }
336    
337            /**
338             * Sets the message boards ban persistence.
339             *
340             * @param mbBanPersistence the message boards ban persistence
341             */
342            public void setMBBanPersistence(MBBanPersistence mbBanPersistence) {
343                    this.mbBanPersistence = mbBanPersistence;
344            }
345    
346            /**
347             * Gets the message boards category local service.
348             *
349             * @return the message boards category local service
350             */
351            public MBCategoryLocalService getMBCategoryLocalService() {
352                    return mbCategoryLocalService;
353            }
354    
355            /**
356             * Sets the message boards category local service.
357             *
358             * @param mbCategoryLocalService the message boards category local service
359             */
360            public void setMBCategoryLocalService(
361                    MBCategoryLocalService mbCategoryLocalService) {
362                    this.mbCategoryLocalService = mbCategoryLocalService;
363            }
364    
365            /**
366             * Gets the message boards category remote service.
367             *
368             * @return the message boards category remote service
369             */
370            public MBCategoryService getMBCategoryService() {
371                    return mbCategoryService;
372            }
373    
374            /**
375             * Sets the message boards category remote service.
376             *
377             * @param mbCategoryService the message boards category remote service
378             */
379            public void setMBCategoryService(MBCategoryService mbCategoryService) {
380                    this.mbCategoryService = mbCategoryService;
381            }
382    
383            /**
384             * Gets the message boards category persistence.
385             *
386             * @return the message boards category persistence
387             */
388            public MBCategoryPersistence getMBCategoryPersistence() {
389                    return mbCategoryPersistence;
390            }
391    
392            /**
393             * Sets the message boards category persistence.
394             *
395             * @param mbCategoryPersistence the message boards category persistence
396             */
397            public void setMBCategoryPersistence(
398                    MBCategoryPersistence mbCategoryPersistence) {
399                    this.mbCategoryPersistence = mbCategoryPersistence;
400            }
401    
402            /**
403             * Gets the message boards category finder.
404             *
405             * @return the message boards category finder
406             */
407            public MBCategoryFinder getMBCategoryFinder() {
408                    return mbCategoryFinder;
409            }
410    
411            /**
412             * Sets the message boards category finder.
413             *
414             * @param mbCategoryFinder the message boards category finder
415             */
416            public void setMBCategoryFinder(MBCategoryFinder mbCategoryFinder) {
417                    this.mbCategoryFinder = mbCategoryFinder;
418            }
419    
420            /**
421             * Gets the message boards discussion local service.
422             *
423             * @return the message boards discussion local service
424             */
425            public MBDiscussionLocalService getMBDiscussionLocalService() {
426                    return mbDiscussionLocalService;
427            }
428    
429            /**
430             * Sets the message boards discussion local service.
431             *
432             * @param mbDiscussionLocalService the message boards discussion local service
433             */
434            public void setMBDiscussionLocalService(
435                    MBDiscussionLocalService mbDiscussionLocalService) {
436                    this.mbDiscussionLocalService = mbDiscussionLocalService;
437            }
438    
439            /**
440             * Gets the message boards discussion persistence.
441             *
442             * @return the message boards discussion persistence
443             */
444            public MBDiscussionPersistence getMBDiscussionPersistence() {
445                    return mbDiscussionPersistence;
446            }
447    
448            /**
449             * Sets the message boards discussion persistence.
450             *
451             * @param mbDiscussionPersistence the message boards discussion persistence
452             */
453            public void setMBDiscussionPersistence(
454                    MBDiscussionPersistence mbDiscussionPersistence) {
455                    this.mbDiscussionPersistence = mbDiscussionPersistence;
456            }
457    
458            /**
459             * Gets the message boards mailing list local service.
460             *
461             * @return the message boards mailing list local service
462             */
463            public MBMailingListLocalService getMBMailingListLocalService() {
464                    return mbMailingListLocalService;
465            }
466    
467            /**
468             * Sets the message boards mailing list local service.
469             *
470             * @param mbMailingListLocalService the message boards mailing list local service
471             */
472            public void setMBMailingListLocalService(
473                    MBMailingListLocalService mbMailingListLocalService) {
474                    this.mbMailingListLocalService = mbMailingListLocalService;
475            }
476    
477            /**
478             * Gets the message boards mailing list persistence.
479             *
480             * @return the message boards mailing list persistence
481             */
482            public MBMailingListPersistence getMBMailingListPersistence() {
483                    return mbMailingListPersistence;
484            }
485    
486            /**
487             * Sets the message boards mailing list persistence.
488             *
489             * @param mbMailingListPersistence the message boards mailing list persistence
490             */
491            public void setMBMailingListPersistence(
492                    MBMailingListPersistence mbMailingListPersistence) {
493                    this.mbMailingListPersistence = mbMailingListPersistence;
494            }
495    
496            /**
497             * Gets the message-boards message local service.
498             *
499             * @return the message-boards message local service
500             */
501            public MBMessageLocalService getMBMessageLocalService() {
502                    return mbMessageLocalService;
503            }
504    
505            /**
506             * Sets the message-boards message local service.
507             *
508             * @param mbMessageLocalService the message-boards message local service
509             */
510            public void setMBMessageLocalService(
511                    MBMessageLocalService mbMessageLocalService) {
512                    this.mbMessageLocalService = mbMessageLocalService;
513            }
514    
515            /**
516             * Gets the message-boards message remote service.
517             *
518             * @return the message-boards message remote service
519             */
520            public MBMessageService getMBMessageService() {
521                    return mbMessageService;
522            }
523    
524            /**
525             * Sets the message-boards message remote service.
526             *
527             * @param mbMessageService the message-boards message remote service
528             */
529            public void setMBMessageService(MBMessageService mbMessageService) {
530                    this.mbMessageService = mbMessageService;
531            }
532    
533            /**
534             * Gets the message-boards message persistence.
535             *
536             * @return the message-boards message persistence
537             */
538            public MBMessagePersistence getMBMessagePersistence() {
539                    return mbMessagePersistence;
540            }
541    
542            /**
543             * Sets the message-boards message persistence.
544             *
545             * @param mbMessagePersistence the message-boards message persistence
546             */
547            public void setMBMessagePersistence(
548                    MBMessagePersistence mbMessagePersistence) {
549                    this.mbMessagePersistence = mbMessagePersistence;
550            }
551    
552            /**
553             * Gets the message-boards message finder.
554             *
555             * @return the message-boards message finder
556             */
557            public MBMessageFinder getMBMessageFinder() {
558                    return mbMessageFinder;
559            }
560    
561            /**
562             * Sets the message-boards message finder.
563             *
564             * @param mbMessageFinder the message-boards message finder
565             */
566            public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
567                    this.mbMessageFinder = mbMessageFinder;
568            }
569    
570            /**
571             * Gets the message boards message flag local service.
572             *
573             * @return the message boards message flag local service
574             */
575            public MBMessageFlagLocalService getMBMessageFlagLocalService() {
576                    return mbMessageFlagLocalService;
577            }
578    
579            /**
580             * Sets the message boards message flag local service.
581             *
582             * @param mbMessageFlagLocalService the message boards message flag local service
583             */
584            public void setMBMessageFlagLocalService(
585                    MBMessageFlagLocalService mbMessageFlagLocalService) {
586                    this.mbMessageFlagLocalService = mbMessageFlagLocalService;
587            }
588    
589            /**
590             * Gets the message boards message flag remote service.
591             *
592             * @return the message boards message flag remote service
593             */
594            public MBMessageFlagService getMBMessageFlagService() {
595                    return mbMessageFlagService;
596            }
597    
598            /**
599             * Sets the message boards message flag remote service.
600             *
601             * @param mbMessageFlagService the message boards message flag remote service
602             */
603            public void setMBMessageFlagService(
604                    MBMessageFlagService mbMessageFlagService) {
605                    this.mbMessageFlagService = mbMessageFlagService;
606            }
607    
608            /**
609             * Gets the message boards message flag persistence.
610             *
611             * @return the message boards message flag persistence
612             */
613            public MBMessageFlagPersistence getMBMessageFlagPersistence() {
614                    return mbMessageFlagPersistence;
615            }
616    
617            /**
618             * Sets the message boards message flag persistence.
619             *
620             * @param mbMessageFlagPersistence the message boards message flag persistence
621             */
622            public void setMBMessageFlagPersistence(
623                    MBMessageFlagPersistence mbMessageFlagPersistence) {
624                    this.mbMessageFlagPersistence = mbMessageFlagPersistence;
625            }
626    
627            /**
628             * Gets the message boards stats user local service.
629             *
630             * @return the message boards stats user local service
631             */
632            public MBStatsUserLocalService getMBStatsUserLocalService() {
633                    return mbStatsUserLocalService;
634            }
635    
636            /**
637             * Sets the message boards stats user local service.
638             *
639             * @param mbStatsUserLocalService the message boards stats user local service
640             */
641            public void setMBStatsUserLocalService(
642                    MBStatsUserLocalService mbStatsUserLocalService) {
643                    this.mbStatsUserLocalService = mbStatsUserLocalService;
644            }
645    
646            /**
647             * Gets the message boards stats user persistence.
648             *
649             * @return the message boards stats user persistence
650             */
651            public MBStatsUserPersistence getMBStatsUserPersistence() {
652                    return mbStatsUserPersistence;
653            }
654    
655            /**
656             * Sets the message boards stats user persistence.
657             *
658             * @param mbStatsUserPersistence the message boards stats user persistence
659             */
660            public void setMBStatsUserPersistence(
661                    MBStatsUserPersistence mbStatsUserPersistence) {
662                    this.mbStatsUserPersistence = mbStatsUserPersistence;
663            }
664    
665            /**
666             * Gets the message boards thread local service.
667             *
668             * @return the message boards thread local service
669             */
670            public MBThreadLocalService getMBThreadLocalService() {
671                    return mbThreadLocalService;
672            }
673    
674            /**
675             * Sets the message boards thread local service.
676             *
677             * @param mbThreadLocalService the message boards thread local service
678             */
679            public void setMBThreadLocalService(
680                    MBThreadLocalService mbThreadLocalService) {
681                    this.mbThreadLocalService = mbThreadLocalService;
682            }
683    
684            /**
685             * Gets the message boards thread remote service.
686             *
687             * @return the message boards thread remote service
688             */
689            public MBThreadService getMBThreadService() {
690                    return mbThreadService;
691            }
692    
693            /**
694             * Sets the message boards thread remote service.
695             *
696             * @param mbThreadService the message boards thread remote service
697             */
698            public void setMBThreadService(MBThreadService mbThreadService) {
699                    this.mbThreadService = mbThreadService;
700            }
701    
702            /**
703             * Gets the message boards thread persistence.
704             *
705             * @return the message boards thread persistence
706             */
707            public MBThreadPersistence getMBThreadPersistence() {
708                    return mbThreadPersistence;
709            }
710    
711            /**
712             * Sets the message boards thread persistence.
713             *
714             * @param mbThreadPersistence the message boards thread persistence
715             */
716            public void setMBThreadPersistence(MBThreadPersistence mbThreadPersistence) {
717                    this.mbThreadPersistence = mbThreadPersistence;
718            }
719    
720            /**
721             * Gets the message boards thread finder.
722             *
723             * @return the message boards thread finder
724             */
725            public MBThreadFinder getMBThreadFinder() {
726                    return mbThreadFinder;
727            }
728    
729            /**
730             * Sets the message boards thread finder.
731             *
732             * @param mbThreadFinder the message boards thread finder
733             */
734            public void setMBThreadFinder(MBThreadFinder mbThreadFinder) {
735                    this.mbThreadFinder = mbThreadFinder;
736            }
737    
738            /**
739             * Gets the counter local service.
740             *
741             * @return the counter local service
742             */
743            public CounterLocalService getCounterLocalService() {
744                    return counterLocalService;
745            }
746    
747            /**
748             * Sets the counter local service.
749             *
750             * @param counterLocalService the counter local service
751             */
752            public void setCounterLocalService(CounterLocalService counterLocalService) {
753                    this.counterLocalService = counterLocalService;
754            }
755    
756            /**
757             * Gets the group local service.
758             *
759             * @return the group local service
760             */
761            public GroupLocalService getGroupLocalService() {
762                    return groupLocalService;
763            }
764    
765            /**
766             * Sets the group local service.
767             *
768             * @param groupLocalService the group local service
769             */
770            public void setGroupLocalService(GroupLocalService groupLocalService) {
771                    this.groupLocalService = groupLocalService;
772            }
773    
774            /**
775             * Gets the group remote service.
776             *
777             * @return the group remote service
778             */
779            public GroupService getGroupService() {
780                    return groupService;
781            }
782    
783            /**
784             * Sets the group remote service.
785             *
786             * @param groupService the group remote service
787             */
788            public void setGroupService(GroupService groupService) {
789                    this.groupService = groupService;
790            }
791    
792            /**
793             * Gets the group persistence.
794             *
795             * @return the group persistence
796             */
797            public GroupPersistence getGroupPersistence() {
798                    return groupPersistence;
799            }
800    
801            /**
802             * Sets the group persistence.
803             *
804             * @param groupPersistence the group persistence
805             */
806            public void setGroupPersistence(GroupPersistence groupPersistence) {
807                    this.groupPersistence = groupPersistence;
808            }
809    
810            /**
811             * Gets the group finder.
812             *
813             * @return the group finder
814             */
815            public GroupFinder getGroupFinder() {
816                    return groupFinder;
817            }
818    
819            /**
820             * Sets the group finder.
821             *
822             * @param groupFinder the group finder
823             */
824            public void setGroupFinder(GroupFinder groupFinder) {
825                    this.groupFinder = groupFinder;
826            }
827    
828            /**
829             * Gets the resource local service.
830             *
831             * @return the resource local service
832             */
833            public ResourceLocalService getResourceLocalService() {
834                    return resourceLocalService;
835            }
836    
837            /**
838             * Sets the resource local service.
839             *
840             * @param resourceLocalService the resource local service
841             */
842            public void setResourceLocalService(
843                    ResourceLocalService resourceLocalService) {
844                    this.resourceLocalService = resourceLocalService;
845            }
846    
847            /**
848             * Gets the resource remote service.
849             *
850             * @return the resource remote service
851             */
852            public ResourceService getResourceService() {
853                    return resourceService;
854            }
855    
856            /**
857             * Sets the resource remote service.
858             *
859             * @param resourceService the resource remote service
860             */
861            public void setResourceService(ResourceService resourceService) {
862                    this.resourceService = resourceService;
863            }
864    
865            /**
866             * Gets the resource persistence.
867             *
868             * @return the resource persistence
869             */
870            public ResourcePersistence getResourcePersistence() {
871                    return resourcePersistence;
872            }
873    
874            /**
875             * Sets the resource persistence.
876             *
877             * @param resourcePersistence the resource persistence
878             */
879            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
880                    this.resourcePersistence = resourcePersistence;
881            }
882    
883            /**
884             * Gets the resource finder.
885             *
886             * @return the resource finder
887             */
888            public ResourceFinder getResourceFinder() {
889                    return resourceFinder;
890            }
891    
892            /**
893             * Sets the resource finder.
894             *
895             * @param resourceFinder the resource finder
896             */
897            public void setResourceFinder(ResourceFinder resourceFinder) {
898                    this.resourceFinder = resourceFinder;
899            }
900    
901            /**
902             * Gets the subscription local service.
903             *
904             * @return the subscription local service
905             */
906            public SubscriptionLocalService getSubscriptionLocalService() {
907                    return subscriptionLocalService;
908            }
909    
910            /**
911             * Sets the subscription local service.
912             *
913             * @param subscriptionLocalService the subscription local service
914             */
915            public void setSubscriptionLocalService(
916                    SubscriptionLocalService subscriptionLocalService) {
917                    this.subscriptionLocalService = subscriptionLocalService;
918            }
919    
920            /**
921             * Gets the subscription persistence.
922             *
923             * @return the subscription persistence
924             */
925            public SubscriptionPersistence getSubscriptionPersistence() {
926                    return subscriptionPersistence;
927            }
928    
929            /**
930             * Sets the subscription persistence.
931             *
932             * @param subscriptionPersistence the subscription persistence
933             */
934            public void setSubscriptionPersistence(
935                    SubscriptionPersistence subscriptionPersistence) {
936                    this.subscriptionPersistence = subscriptionPersistence;
937            }
938    
939            /**
940             * Gets the user local service.
941             *
942             * @return the user local service
943             */
944            public UserLocalService getUserLocalService() {
945                    return userLocalService;
946            }
947    
948            /**
949             * Sets the user local service.
950             *
951             * @param userLocalService the user local service
952             */
953            public void setUserLocalService(UserLocalService userLocalService) {
954                    this.userLocalService = userLocalService;
955            }
956    
957            /**
958             * Gets the user remote service.
959             *
960             * @return the user remote service
961             */
962            public UserService getUserService() {
963                    return userService;
964            }
965    
966            /**
967             * Sets the user remote service.
968             *
969             * @param userService the user remote service
970             */
971            public void setUserService(UserService userService) {
972                    this.userService = userService;
973            }
974    
975            /**
976             * Gets the user persistence.
977             *
978             * @return the user persistence
979             */
980            public UserPersistence getUserPersistence() {
981                    return userPersistence;
982            }
983    
984            /**
985             * Sets the user persistence.
986             *
987             * @param userPersistence the user persistence
988             */
989            public void setUserPersistence(UserPersistence userPersistence) {
990                    this.userPersistence = userPersistence;
991            }
992    
993            /**
994             * Gets the user finder.
995             *
996             * @return the user finder
997             */
998            public UserFinder getUserFinder() {
999                    return userFinder;
1000            }
1001    
1002            /**
1003             * Sets the user finder.
1004             *
1005             * @param userFinder the user finder
1006             */
1007            public void setUserFinder(UserFinder userFinder) {
1008                    this.userFinder = userFinder;
1009            }
1010    
1011            /**
1012             * Gets the asset tag local service.
1013             *
1014             * @return the asset tag local service
1015             */
1016            public AssetTagLocalService getAssetTagLocalService() {
1017                    return assetTagLocalService;
1018            }
1019    
1020            /**
1021             * Sets the asset tag local service.
1022             *
1023             * @param assetTagLocalService the asset tag local service
1024             */
1025            public void setAssetTagLocalService(
1026                    AssetTagLocalService assetTagLocalService) {
1027                    this.assetTagLocalService = assetTagLocalService;
1028            }
1029    
1030            /**
1031             * Gets the asset tag remote service.
1032             *
1033             * @return the asset tag remote service
1034             */
1035            public AssetTagService getAssetTagService() {
1036                    return assetTagService;
1037            }
1038    
1039            /**
1040             * Sets the asset tag remote service.
1041             *
1042             * @param assetTagService the asset tag remote service
1043             */
1044            public void setAssetTagService(AssetTagService assetTagService) {
1045                    this.assetTagService = assetTagService;
1046            }
1047    
1048            /**
1049             * Gets the asset tag persistence.
1050             *
1051             * @return the asset tag persistence
1052             */
1053            public AssetTagPersistence getAssetTagPersistence() {
1054                    return assetTagPersistence;
1055            }
1056    
1057            /**
1058             * Sets the asset tag persistence.
1059             *
1060             * @param assetTagPersistence the asset tag persistence
1061             */
1062            public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
1063                    this.assetTagPersistence = assetTagPersistence;
1064            }
1065    
1066            /**
1067             * Gets the asset tag finder.
1068             *
1069             * @return the asset tag finder
1070             */
1071            public AssetTagFinder getAssetTagFinder() {
1072                    return assetTagFinder;
1073            }
1074    
1075            /**
1076             * Sets the asset tag finder.
1077             *
1078             * @param assetTagFinder the asset tag finder
1079             */
1080            public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
1081                    this.assetTagFinder = assetTagFinder;
1082            }
1083    
1084            /**
1085             * Gets the expando value local service.
1086             *
1087             * @return the expando value local service
1088             */
1089            public ExpandoValueLocalService getExpandoValueLocalService() {
1090                    return expandoValueLocalService;
1091            }
1092    
1093            /**
1094             * Sets the expando value local service.
1095             *
1096             * @param expandoValueLocalService the expando value local service
1097             */
1098            public void setExpandoValueLocalService(
1099                    ExpandoValueLocalService expandoValueLocalService) {
1100                    this.expandoValueLocalService = expandoValueLocalService;
1101            }
1102    
1103            /**
1104             * Gets the expando value remote service.
1105             *
1106             * @return the expando value remote service
1107             */
1108            public ExpandoValueService getExpandoValueService() {
1109                    return expandoValueService;
1110            }
1111    
1112            /**
1113             * Sets the expando value remote service.
1114             *
1115             * @param expandoValueService the expando value remote service
1116             */
1117            public void setExpandoValueService(ExpandoValueService expandoValueService) {
1118                    this.expandoValueService = expandoValueService;
1119            }
1120    
1121            /**
1122             * Gets the expando value persistence.
1123             *
1124             * @return the expando value persistence
1125             */
1126            public ExpandoValuePersistence getExpandoValuePersistence() {
1127                    return expandoValuePersistence;
1128            }
1129    
1130            /**
1131             * Sets the expando value persistence.
1132             *
1133             * @param expandoValuePersistence the expando value persistence
1134             */
1135            public void setExpandoValuePersistence(
1136                    ExpandoValuePersistence expandoValuePersistence) {
1137                    this.expandoValuePersistence = expandoValuePersistence;
1138            }
1139    
1140            /**
1141             * Performs an SQL query.
1142             *
1143             * @param sql the sql query to perform
1144             */
1145            protected void runSQL(String sql) throws SystemException {
1146                    try {
1147                            DataSource dataSource = mbCategoryPersistence.getDataSource();
1148    
1149                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1150                                            sql, new int[0]);
1151    
1152                            sqlUpdate.update();
1153                    }
1154                    catch (Exception e) {
1155                            throw new SystemException(e);
1156                    }
1157            }
1158    
1159            @BeanReference(type = MBBanLocalService.class)
1160            protected MBBanLocalService mbBanLocalService;
1161            @BeanReference(type = MBBanService.class)
1162            protected MBBanService mbBanService;
1163            @BeanReference(type = MBBanPersistence.class)
1164            protected MBBanPersistence mbBanPersistence;
1165            @BeanReference(type = MBCategoryLocalService.class)
1166            protected MBCategoryLocalService mbCategoryLocalService;
1167            @BeanReference(type = MBCategoryService.class)
1168            protected MBCategoryService mbCategoryService;
1169            @BeanReference(type = MBCategoryPersistence.class)
1170            protected MBCategoryPersistence mbCategoryPersistence;
1171            @BeanReference(type = MBCategoryFinder.class)
1172            protected MBCategoryFinder mbCategoryFinder;
1173            @BeanReference(type = MBDiscussionLocalService.class)
1174            protected MBDiscussionLocalService mbDiscussionLocalService;
1175            @BeanReference(type = MBDiscussionPersistence.class)
1176            protected MBDiscussionPersistence mbDiscussionPersistence;
1177            @BeanReference(type = MBMailingListLocalService.class)
1178            protected MBMailingListLocalService mbMailingListLocalService;
1179            @BeanReference(type = MBMailingListPersistence.class)
1180            protected MBMailingListPersistence mbMailingListPersistence;
1181            @BeanReference(type = MBMessageLocalService.class)
1182            protected MBMessageLocalService mbMessageLocalService;
1183            @BeanReference(type = MBMessageService.class)
1184            protected MBMessageService mbMessageService;
1185            @BeanReference(type = MBMessagePersistence.class)
1186            protected MBMessagePersistence mbMessagePersistence;
1187            @BeanReference(type = MBMessageFinder.class)
1188            protected MBMessageFinder mbMessageFinder;
1189            @BeanReference(type = MBMessageFlagLocalService.class)
1190            protected MBMessageFlagLocalService mbMessageFlagLocalService;
1191            @BeanReference(type = MBMessageFlagService.class)
1192            protected MBMessageFlagService mbMessageFlagService;
1193            @BeanReference(type = MBMessageFlagPersistence.class)
1194            protected MBMessageFlagPersistence mbMessageFlagPersistence;
1195            @BeanReference(type = MBStatsUserLocalService.class)
1196            protected MBStatsUserLocalService mbStatsUserLocalService;
1197            @BeanReference(type = MBStatsUserPersistence.class)
1198            protected MBStatsUserPersistence mbStatsUserPersistence;
1199            @BeanReference(type = MBThreadLocalService.class)
1200            protected MBThreadLocalService mbThreadLocalService;
1201            @BeanReference(type = MBThreadService.class)
1202            protected MBThreadService mbThreadService;
1203            @BeanReference(type = MBThreadPersistence.class)
1204            protected MBThreadPersistence mbThreadPersistence;
1205            @BeanReference(type = MBThreadFinder.class)
1206            protected MBThreadFinder mbThreadFinder;
1207            @BeanReference(type = CounterLocalService.class)
1208            protected CounterLocalService counterLocalService;
1209            @BeanReference(type = GroupLocalService.class)
1210            protected GroupLocalService groupLocalService;
1211            @BeanReference(type = GroupService.class)
1212            protected GroupService groupService;
1213            @BeanReference(type = GroupPersistence.class)
1214            protected GroupPersistence groupPersistence;
1215            @BeanReference(type = GroupFinder.class)
1216            protected GroupFinder groupFinder;
1217            @BeanReference(type = ResourceLocalService.class)
1218            protected ResourceLocalService resourceLocalService;
1219            @BeanReference(type = ResourceService.class)
1220            protected ResourceService resourceService;
1221            @BeanReference(type = ResourcePersistence.class)
1222            protected ResourcePersistence resourcePersistence;
1223            @BeanReference(type = ResourceFinder.class)
1224            protected ResourceFinder resourceFinder;
1225            @BeanReference(type = SubscriptionLocalService.class)
1226            protected SubscriptionLocalService subscriptionLocalService;
1227            @BeanReference(type = SubscriptionPersistence.class)
1228            protected SubscriptionPersistence subscriptionPersistence;
1229            @BeanReference(type = UserLocalService.class)
1230            protected UserLocalService userLocalService;
1231            @BeanReference(type = UserService.class)
1232            protected UserService userService;
1233            @BeanReference(type = UserPersistence.class)
1234            protected UserPersistence userPersistence;
1235            @BeanReference(type = UserFinder.class)
1236            protected UserFinder userFinder;
1237            @BeanReference(type = AssetTagLocalService.class)
1238            protected AssetTagLocalService assetTagLocalService;
1239            @BeanReference(type = AssetTagService.class)
1240            protected AssetTagService assetTagService;
1241            @BeanReference(type = AssetTagPersistence.class)
1242            protected AssetTagPersistence assetTagPersistence;
1243            @BeanReference(type = AssetTagFinder.class)
1244            protected AssetTagFinder assetTagFinder;
1245            @BeanReference(type = ExpandoValueLocalService.class)
1246            protected ExpandoValueLocalService expandoValueLocalService;
1247            @BeanReference(type = ExpandoValueService.class)
1248            protected ExpandoValueService expandoValueService;
1249            @BeanReference(type = ExpandoValuePersistence.class)
1250            protected ExpandoValuePersistence expandoValuePersistence;
1251    }