001    /**
002     * Copyright (c) 2000-2010 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.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.ResourceLocalService;
027    import com.liferay.portal.service.ResourceService;
028    import com.liferay.portal.service.UserLocalService;
029    import com.liferay.portal.service.UserService;
030    import com.liferay.portal.service.persistence.ResourceFinder;
031    import com.liferay.portal.service.persistence.ResourcePersistence;
032    import com.liferay.portal.service.persistence.UserFinder;
033    import com.liferay.portal.service.persistence.UserPersistence;
034    
035    import com.liferay.portlet.messageboards.model.MBBan;
036    import com.liferay.portlet.messageboards.service.MBBanLocalService;
037    import com.liferay.portlet.messageboards.service.MBBanService;
038    import com.liferay.portlet.messageboards.service.MBCategoryLocalService;
039    import com.liferay.portlet.messageboards.service.MBCategoryService;
040    import com.liferay.portlet.messageboards.service.MBDiscussionLocalService;
041    import com.liferay.portlet.messageboards.service.MBMailingListLocalService;
042    import com.liferay.portlet.messageboards.service.MBMessageFlagLocalService;
043    import com.liferay.portlet.messageboards.service.MBMessageFlagService;
044    import com.liferay.portlet.messageboards.service.MBMessageLocalService;
045    import com.liferay.portlet.messageboards.service.MBMessageService;
046    import com.liferay.portlet.messageboards.service.MBStatsUserLocalService;
047    import com.liferay.portlet.messageboards.service.MBThreadLocalService;
048    import com.liferay.portlet.messageboards.service.MBThreadService;
049    import com.liferay.portlet.messageboards.service.persistence.MBBanPersistence;
050    import com.liferay.portlet.messageboards.service.persistence.MBCategoryFinder;
051    import com.liferay.portlet.messageboards.service.persistence.MBCategoryPersistence;
052    import com.liferay.portlet.messageboards.service.persistence.MBDiscussionPersistence;
053    import com.liferay.portlet.messageboards.service.persistence.MBMailingListPersistence;
054    import com.liferay.portlet.messageboards.service.persistence.MBMessageFinder;
055    import com.liferay.portlet.messageboards.service.persistence.MBMessageFlagPersistence;
056    import com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence;
057    import com.liferay.portlet.messageboards.service.persistence.MBStatsUserPersistence;
058    import com.liferay.portlet.messageboards.service.persistence.MBThreadFinder;
059    import com.liferay.portlet.messageboards.service.persistence.MBThreadPersistence;
060    
061    import java.util.List;
062    
063    import javax.sql.DataSource;
064    
065    /**
066     * The base implementation of the message boards ban local service.
067     *
068     * <p>
069     * 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.MBBanLocalServiceImpl}.
070     * </p>
071     *
072     * <p>
073     * Never modify or reference this class directly. Always use {@link com.liferay.portlet.messageboards.service.MBBanLocalServiceUtil} to access the message boards ban local service.
074     * </p>
075     *
076     * @author Brian Wing Shun Chan
077     * @see com.liferay.portlet.messageboards.service.impl.MBBanLocalServiceImpl
078     * @see com.liferay.portlet.messageboards.service.MBBanLocalServiceUtil
079     * @generated
080     */
081    public abstract class MBBanLocalServiceBaseImpl implements MBBanLocalService {
082            /**
083             * Adds the message boards ban to the database. Also notifies the appropriate model listeners.
084             *
085             * @param mbBan the message boards ban to add
086             * @return the message boards ban that was added
087             * @throws SystemException if a system exception occurred
088             */
089            public MBBan addMBBan(MBBan mbBan) throws SystemException {
090                    mbBan.setNew(true);
091    
092                    return mbBanPersistence.update(mbBan, false);
093            }
094    
095            /**
096             * Creates a new message boards ban with the primary key. Does not add the message boards ban to the database.
097             *
098             * @param banId the primary key for the new message boards ban
099             * @return the new message boards ban
100             */
101            public MBBan createMBBan(long banId) {
102                    return mbBanPersistence.create(banId);
103            }
104    
105            /**
106             * Deletes the message boards ban with the primary key from the database. Also notifies the appropriate model listeners.
107             *
108             * @param banId the primary key of the message boards ban to delete
109             * @throws PortalException if a message boards ban with the primary key could not be found
110             * @throws SystemException if a system exception occurred
111             */
112            public void deleteMBBan(long banId) throws PortalException, SystemException {
113                    mbBanPersistence.remove(banId);
114            }
115    
116            /**
117             * Deletes the message boards ban from the database. Also notifies the appropriate model listeners.
118             *
119             * @param mbBan the message boards ban to delete
120             * @throws SystemException if a system exception occurred
121             */
122            public void deleteMBBan(MBBan mbBan) throws SystemException {
123                    mbBanPersistence.remove(mbBan);
124            }
125    
126            /**
127             * Performs a dynamic query on the database and returns the matching rows.
128             *
129             * @param dynamicQuery the dynamic query to search with
130             * @return the matching rows
131             * @throws SystemException if a system exception occurred
132             */
133            @SuppressWarnings("rawtypes")
134            public List dynamicQuery(DynamicQuery dynamicQuery)
135                    throws SystemException {
136                    return mbBanPersistence.findWithDynamicQuery(dynamicQuery);
137            }
138    
139            /**
140             * Performs a dynamic query on the database and returns a range of the matching rows.
141             *
142             * <p>
143             * 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.
144             * </p>
145             *
146             * @param dynamicQuery the dynamic query to search with
147             * @param start the lower bound of the range of model instances to return
148             * @param end the upper bound of the range of model instances to return (not inclusive)
149             * @return the range of matching rows
150             * @throws SystemException if a system exception occurred
151             */
152            @SuppressWarnings("rawtypes")
153            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
154                    throws SystemException {
155                    return mbBanPersistence.findWithDynamicQuery(dynamicQuery, start, end);
156            }
157    
158            /**
159             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
160             *
161             * <p>
162             * 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.
163             * </p>
164             *
165             * @param dynamicQuery the dynamic query to search with
166             * @param start the lower bound of the range of model instances to return
167             * @param end the upper bound of the range of model instances to return (not inclusive)
168             * @param orderByComparator the comparator to order the results by
169             * @return the ordered range of matching rows
170             * @throws SystemException if a system exception occurred
171             */
172            @SuppressWarnings("rawtypes")
173            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
174                    OrderByComparator orderByComparator) throws SystemException {
175                    return mbBanPersistence.findWithDynamicQuery(dynamicQuery, start, end,
176                            orderByComparator);
177            }
178    
179            /**
180             * Counts the number of rows that match the dynamic query.
181             *
182             * @param dynamicQuery the dynamic query to search with
183             * @return the number of rows that match the dynamic query
184             * @throws SystemException if a system exception occurred
185             */
186            public long dynamicQueryCount(DynamicQuery dynamicQuery)
187                    throws SystemException {
188                    return mbBanPersistence.countWithDynamicQuery(dynamicQuery);
189            }
190    
191            /**
192             * Gets the message boards ban with the primary key.
193             *
194             * @param banId the primary key of the message boards ban to get
195             * @return the message boards ban
196             * @throws PortalException if a message boards ban with the primary key could not be found
197             * @throws SystemException if a system exception occurred
198             */
199            public MBBan getMBBan(long banId) throws PortalException, SystemException {
200                    return mbBanPersistence.findByPrimaryKey(banId);
201            }
202    
203            /**
204             * Gets a range of all the message boards bans.
205             *
206             * <p>
207             * 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.
208             * </p>
209             *
210             * @param start the lower bound of the range of message boards bans to return
211             * @param end the upper bound of the range of message boards bans to return (not inclusive)
212             * @return the range of message boards bans
213             * @throws SystemException if a system exception occurred
214             */
215            public List<MBBan> getMBBans(int start, int end) throws SystemException {
216                    return mbBanPersistence.findAll(start, end);
217            }
218    
219            /**
220             * Gets the number of message boards bans.
221             *
222             * @return the number of message boards bans
223             * @throws SystemException if a system exception occurred
224             */
225            public int getMBBansCount() throws SystemException {
226                    return mbBanPersistence.countAll();
227            }
228    
229            /**
230             * Updates the message boards ban in the database. Also notifies the appropriate model listeners.
231             *
232             * @param mbBan the message boards ban to update
233             * @return the message boards ban that was updated
234             * @throws SystemException if a system exception occurred
235             */
236            public MBBan updateMBBan(MBBan mbBan) throws SystemException {
237                    mbBan.setNew(false);
238    
239                    return mbBanPersistence.update(mbBan, true);
240            }
241    
242            /**
243             * Updates the message boards ban in the database. Also notifies the appropriate model listeners.
244             *
245             * @param mbBan the message boards ban to update
246             * @param merge whether to merge the message boards ban 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.
247             * @return the message boards ban that was updated
248             * @throws SystemException if a system exception occurred
249             */
250            public MBBan updateMBBan(MBBan mbBan, boolean merge)
251                    throws SystemException {
252                    mbBan.setNew(false);
253    
254                    return mbBanPersistence.update(mbBan, merge);
255            }
256    
257            /**
258             * Gets the message boards ban local service.
259             *
260             * @return the message boards ban local service
261             */
262            public MBBanLocalService getMBBanLocalService() {
263                    return mbBanLocalService;
264            }
265    
266            /**
267             * Sets the message boards ban local service.
268             *
269             * @param mbBanLocalService the message boards ban local service
270             */
271            public void setMBBanLocalService(MBBanLocalService mbBanLocalService) {
272                    this.mbBanLocalService = mbBanLocalService;
273            }
274    
275            /**
276             * Gets the message boards ban remote service.
277             *
278             * @return the message boards ban remote service
279             */
280            public MBBanService getMBBanService() {
281                    return mbBanService;
282            }
283    
284            /**
285             * Sets the message boards ban remote service.
286             *
287             * @param mbBanService the message boards ban remote service
288             */
289            public void setMBBanService(MBBanService mbBanService) {
290                    this.mbBanService = mbBanService;
291            }
292    
293            /**
294             * Gets the message boards ban persistence.
295             *
296             * @return the message boards ban persistence
297             */
298            public MBBanPersistence getMBBanPersistence() {
299                    return mbBanPersistence;
300            }
301    
302            /**
303             * Sets the message boards ban persistence.
304             *
305             * @param mbBanPersistence the message boards ban persistence
306             */
307            public void setMBBanPersistence(MBBanPersistence mbBanPersistence) {
308                    this.mbBanPersistence = mbBanPersistence;
309            }
310    
311            /**
312             * Gets the message boards category local service.
313             *
314             * @return the message boards category local service
315             */
316            public MBCategoryLocalService getMBCategoryLocalService() {
317                    return mbCategoryLocalService;
318            }
319    
320            /**
321             * Sets the message boards category local service.
322             *
323             * @param mbCategoryLocalService the message boards category local service
324             */
325            public void setMBCategoryLocalService(
326                    MBCategoryLocalService mbCategoryLocalService) {
327                    this.mbCategoryLocalService = mbCategoryLocalService;
328            }
329    
330            /**
331             * Gets the message boards category remote service.
332             *
333             * @return the message boards category remote service
334             */
335            public MBCategoryService getMBCategoryService() {
336                    return mbCategoryService;
337            }
338    
339            /**
340             * Sets the message boards category remote service.
341             *
342             * @param mbCategoryService the message boards category remote service
343             */
344            public void setMBCategoryService(MBCategoryService mbCategoryService) {
345                    this.mbCategoryService = mbCategoryService;
346            }
347    
348            /**
349             * Gets the message boards category persistence.
350             *
351             * @return the message boards category persistence
352             */
353            public MBCategoryPersistence getMBCategoryPersistence() {
354                    return mbCategoryPersistence;
355            }
356    
357            /**
358             * Sets the message boards category persistence.
359             *
360             * @param mbCategoryPersistence the message boards category persistence
361             */
362            public void setMBCategoryPersistence(
363                    MBCategoryPersistence mbCategoryPersistence) {
364                    this.mbCategoryPersistence = mbCategoryPersistence;
365            }
366    
367            /**
368             * Gets the message boards category finder.
369             *
370             * @return the message boards category finder
371             */
372            public MBCategoryFinder getMBCategoryFinder() {
373                    return mbCategoryFinder;
374            }
375    
376            /**
377             * Sets the message boards category finder.
378             *
379             * @param mbCategoryFinder the message boards category finder
380             */
381            public void setMBCategoryFinder(MBCategoryFinder mbCategoryFinder) {
382                    this.mbCategoryFinder = mbCategoryFinder;
383            }
384    
385            /**
386             * Gets the message boards discussion local service.
387             *
388             * @return the message boards discussion local service
389             */
390            public MBDiscussionLocalService getMBDiscussionLocalService() {
391                    return mbDiscussionLocalService;
392            }
393    
394            /**
395             * Sets the message boards discussion local service.
396             *
397             * @param mbDiscussionLocalService the message boards discussion local service
398             */
399            public void setMBDiscussionLocalService(
400                    MBDiscussionLocalService mbDiscussionLocalService) {
401                    this.mbDiscussionLocalService = mbDiscussionLocalService;
402            }
403    
404            /**
405             * Gets the message boards discussion persistence.
406             *
407             * @return the message boards discussion persistence
408             */
409            public MBDiscussionPersistence getMBDiscussionPersistence() {
410                    return mbDiscussionPersistence;
411            }
412    
413            /**
414             * Sets the message boards discussion persistence.
415             *
416             * @param mbDiscussionPersistence the message boards discussion persistence
417             */
418            public void setMBDiscussionPersistence(
419                    MBDiscussionPersistence mbDiscussionPersistence) {
420                    this.mbDiscussionPersistence = mbDiscussionPersistence;
421            }
422    
423            /**
424             * Gets the message boards mailing list local service.
425             *
426             * @return the message boards mailing list local service
427             */
428            public MBMailingListLocalService getMBMailingListLocalService() {
429                    return mbMailingListLocalService;
430            }
431    
432            /**
433             * Sets the message boards mailing list local service.
434             *
435             * @param mbMailingListLocalService the message boards mailing list local service
436             */
437            public void setMBMailingListLocalService(
438                    MBMailingListLocalService mbMailingListLocalService) {
439                    this.mbMailingListLocalService = mbMailingListLocalService;
440            }
441    
442            /**
443             * Gets the message boards mailing list persistence.
444             *
445             * @return the message boards mailing list persistence
446             */
447            public MBMailingListPersistence getMBMailingListPersistence() {
448                    return mbMailingListPersistence;
449            }
450    
451            /**
452             * Sets the message boards mailing list persistence.
453             *
454             * @param mbMailingListPersistence the message boards mailing list persistence
455             */
456            public void setMBMailingListPersistence(
457                    MBMailingListPersistence mbMailingListPersistence) {
458                    this.mbMailingListPersistence = mbMailingListPersistence;
459            }
460    
461            /**
462             * Gets the message-boards message local service.
463             *
464             * @return the message-boards message local service
465             */
466            public MBMessageLocalService getMBMessageLocalService() {
467                    return mbMessageLocalService;
468            }
469    
470            /**
471             * Sets the message-boards message local service.
472             *
473             * @param mbMessageLocalService the message-boards message local service
474             */
475            public void setMBMessageLocalService(
476                    MBMessageLocalService mbMessageLocalService) {
477                    this.mbMessageLocalService = mbMessageLocalService;
478            }
479    
480            /**
481             * Gets the message-boards message remote service.
482             *
483             * @return the message-boards message remote service
484             */
485            public MBMessageService getMBMessageService() {
486                    return mbMessageService;
487            }
488    
489            /**
490             * Sets the message-boards message remote service.
491             *
492             * @param mbMessageService the message-boards message remote service
493             */
494            public void setMBMessageService(MBMessageService mbMessageService) {
495                    this.mbMessageService = mbMessageService;
496            }
497    
498            /**
499             * Gets the message-boards message persistence.
500             *
501             * @return the message-boards message persistence
502             */
503            public MBMessagePersistence getMBMessagePersistence() {
504                    return mbMessagePersistence;
505            }
506    
507            /**
508             * Sets the message-boards message persistence.
509             *
510             * @param mbMessagePersistence the message-boards message persistence
511             */
512            public void setMBMessagePersistence(
513                    MBMessagePersistence mbMessagePersistence) {
514                    this.mbMessagePersistence = mbMessagePersistence;
515            }
516    
517            /**
518             * Gets the message-boards message finder.
519             *
520             * @return the message-boards message finder
521             */
522            public MBMessageFinder getMBMessageFinder() {
523                    return mbMessageFinder;
524            }
525    
526            /**
527             * Sets the message-boards message finder.
528             *
529             * @param mbMessageFinder the message-boards message finder
530             */
531            public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
532                    this.mbMessageFinder = mbMessageFinder;
533            }
534    
535            /**
536             * Gets the message boards message flag local service.
537             *
538             * @return the message boards message flag local service
539             */
540            public MBMessageFlagLocalService getMBMessageFlagLocalService() {
541                    return mbMessageFlagLocalService;
542            }
543    
544            /**
545             * Sets the message boards message flag local service.
546             *
547             * @param mbMessageFlagLocalService the message boards message flag local service
548             */
549            public void setMBMessageFlagLocalService(
550                    MBMessageFlagLocalService mbMessageFlagLocalService) {
551                    this.mbMessageFlagLocalService = mbMessageFlagLocalService;
552            }
553    
554            /**
555             * Gets the message boards message flag remote service.
556             *
557             * @return the message boards message flag remote service
558             */
559            public MBMessageFlagService getMBMessageFlagService() {
560                    return mbMessageFlagService;
561            }
562    
563            /**
564             * Sets the message boards message flag remote service.
565             *
566             * @param mbMessageFlagService the message boards message flag remote service
567             */
568            public void setMBMessageFlagService(
569                    MBMessageFlagService mbMessageFlagService) {
570                    this.mbMessageFlagService = mbMessageFlagService;
571            }
572    
573            /**
574             * Gets the message boards message flag persistence.
575             *
576             * @return the message boards message flag persistence
577             */
578            public MBMessageFlagPersistence getMBMessageFlagPersistence() {
579                    return mbMessageFlagPersistence;
580            }
581    
582            /**
583             * Sets the message boards message flag persistence.
584             *
585             * @param mbMessageFlagPersistence the message boards message flag persistence
586             */
587            public void setMBMessageFlagPersistence(
588                    MBMessageFlagPersistence mbMessageFlagPersistence) {
589                    this.mbMessageFlagPersistence = mbMessageFlagPersistence;
590            }
591    
592            /**
593             * Gets the message boards stats user local service.
594             *
595             * @return the message boards stats user local service
596             */
597            public MBStatsUserLocalService getMBStatsUserLocalService() {
598                    return mbStatsUserLocalService;
599            }
600    
601            /**
602             * Sets the message boards stats user local service.
603             *
604             * @param mbStatsUserLocalService the message boards stats user local service
605             */
606            public void setMBStatsUserLocalService(
607                    MBStatsUserLocalService mbStatsUserLocalService) {
608                    this.mbStatsUserLocalService = mbStatsUserLocalService;
609            }
610    
611            /**
612             * Gets the message boards stats user persistence.
613             *
614             * @return the message boards stats user persistence
615             */
616            public MBStatsUserPersistence getMBStatsUserPersistence() {
617                    return mbStatsUserPersistence;
618            }
619    
620            /**
621             * Sets the message boards stats user persistence.
622             *
623             * @param mbStatsUserPersistence the message boards stats user persistence
624             */
625            public void setMBStatsUserPersistence(
626                    MBStatsUserPersistence mbStatsUserPersistence) {
627                    this.mbStatsUserPersistence = mbStatsUserPersistence;
628            }
629    
630            /**
631             * Gets the message boards thread local service.
632             *
633             * @return the message boards thread local service
634             */
635            public MBThreadLocalService getMBThreadLocalService() {
636                    return mbThreadLocalService;
637            }
638    
639            /**
640             * Sets the message boards thread local service.
641             *
642             * @param mbThreadLocalService the message boards thread local service
643             */
644            public void setMBThreadLocalService(
645                    MBThreadLocalService mbThreadLocalService) {
646                    this.mbThreadLocalService = mbThreadLocalService;
647            }
648    
649            /**
650             * Gets the message boards thread remote service.
651             *
652             * @return the message boards thread remote service
653             */
654            public MBThreadService getMBThreadService() {
655                    return mbThreadService;
656            }
657    
658            /**
659             * Sets the message boards thread remote service.
660             *
661             * @param mbThreadService the message boards thread remote service
662             */
663            public void setMBThreadService(MBThreadService mbThreadService) {
664                    this.mbThreadService = mbThreadService;
665            }
666    
667            /**
668             * Gets the message boards thread persistence.
669             *
670             * @return the message boards thread persistence
671             */
672            public MBThreadPersistence getMBThreadPersistence() {
673                    return mbThreadPersistence;
674            }
675    
676            /**
677             * Sets the message boards thread persistence.
678             *
679             * @param mbThreadPersistence the message boards thread persistence
680             */
681            public void setMBThreadPersistence(MBThreadPersistence mbThreadPersistence) {
682                    this.mbThreadPersistence = mbThreadPersistence;
683            }
684    
685            /**
686             * Gets the message boards thread finder.
687             *
688             * @return the message boards thread finder
689             */
690            public MBThreadFinder getMBThreadFinder() {
691                    return mbThreadFinder;
692            }
693    
694            /**
695             * Sets the message boards thread finder.
696             *
697             * @param mbThreadFinder the message boards thread finder
698             */
699            public void setMBThreadFinder(MBThreadFinder mbThreadFinder) {
700                    this.mbThreadFinder = mbThreadFinder;
701            }
702    
703            /**
704             * Gets the counter local service.
705             *
706             * @return the counter local service
707             */
708            public CounterLocalService getCounterLocalService() {
709                    return counterLocalService;
710            }
711    
712            /**
713             * Sets the counter local service.
714             *
715             * @param counterLocalService the counter local service
716             */
717            public void setCounterLocalService(CounterLocalService counterLocalService) {
718                    this.counterLocalService = counterLocalService;
719            }
720    
721            /**
722             * Gets the resource local service.
723             *
724             * @return the resource local service
725             */
726            public ResourceLocalService getResourceLocalService() {
727                    return resourceLocalService;
728            }
729    
730            /**
731             * Sets the resource local service.
732             *
733             * @param resourceLocalService the resource local service
734             */
735            public void setResourceLocalService(
736                    ResourceLocalService resourceLocalService) {
737                    this.resourceLocalService = resourceLocalService;
738            }
739    
740            /**
741             * Gets the resource remote service.
742             *
743             * @return the resource remote service
744             */
745            public ResourceService getResourceService() {
746                    return resourceService;
747            }
748    
749            /**
750             * Sets the resource remote service.
751             *
752             * @param resourceService the resource remote service
753             */
754            public void setResourceService(ResourceService resourceService) {
755                    this.resourceService = resourceService;
756            }
757    
758            /**
759             * Gets the resource persistence.
760             *
761             * @return the resource persistence
762             */
763            public ResourcePersistence getResourcePersistence() {
764                    return resourcePersistence;
765            }
766    
767            /**
768             * Sets the resource persistence.
769             *
770             * @param resourcePersistence the resource persistence
771             */
772            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
773                    this.resourcePersistence = resourcePersistence;
774            }
775    
776            /**
777             * Gets the resource finder.
778             *
779             * @return the resource finder
780             */
781            public ResourceFinder getResourceFinder() {
782                    return resourceFinder;
783            }
784    
785            /**
786             * Sets the resource finder.
787             *
788             * @param resourceFinder the resource finder
789             */
790            public void setResourceFinder(ResourceFinder resourceFinder) {
791                    this.resourceFinder = resourceFinder;
792            }
793    
794            /**
795             * Gets the user local service.
796             *
797             * @return the user local service
798             */
799            public UserLocalService getUserLocalService() {
800                    return userLocalService;
801            }
802    
803            /**
804             * Sets the user local service.
805             *
806             * @param userLocalService the user local service
807             */
808            public void setUserLocalService(UserLocalService userLocalService) {
809                    this.userLocalService = userLocalService;
810            }
811    
812            /**
813             * Gets the user remote service.
814             *
815             * @return the user remote service
816             */
817            public UserService getUserService() {
818                    return userService;
819            }
820    
821            /**
822             * Sets the user remote service.
823             *
824             * @param userService the user remote service
825             */
826            public void setUserService(UserService userService) {
827                    this.userService = userService;
828            }
829    
830            /**
831             * Gets the user persistence.
832             *
833             * @return the user persistence
834             */
835            public UserPersistence getUserPersistence() {
836                    return userPersistence;
837            }
838    
839            /**
840             * Sets the user persistence.
841             *
842             * @param userPersistence the user persistence
843             */
844            public void setUserPersistence(UserPersistence userPersistence) {
845                    this.userPersistence = userPersistence;
846            }
847    
848            /**
849             * Gets the user finder.
850             *
851             * @return the user finder
852             */
853            public UserFinder getUserFinder() {
854                    return userFinder;
855            }
856    
857            /**
858             * Sets the user finder.
859             *
860             * @param userFinder the user finder
861             */
862            public void setUserFinder(UserFinder userFinder) {
863                    this.userFinder = userFinder;
864            }
865    
866            /**
867             * Performs an SQL query.
868             *
869             * @param sql the sql query to perform
870             */
871            protected void runSQL(String sql) throws SystemException {
872                    try {
873                            DataSource dataSource = mbBanPersistence.getDataSource();
874    
875                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
876                                            sql, new int[0]);
877    
878                            sqlUpdate.update();
879                    }
880                    catch (Exception e) {
881                            throw new SystemException(e);
882                    }
883            }
884    
885            @BeanReference(type = MBBanLocalService.class)
886            protected MBBanLocalService mbBanLocalService;
887            @BeanReference(type = MBBanService.class)
888            protected MBBanService mbBanService;
889            @BeanReference(type = MBBanPersistence.class)
890            protected MBBanPersistence mbBanPersistence;
891            @BeanReference(type = MBCategoryLocalService.class)
892            protected MBCategoryLocalService mbCategoryLocalService;
893            @BeanReference(type = MBCategoryService.class)
894            protected MBCategoryService mbCategoryService;
895            @BeanReference(type = MBCategoryPersistence.class)
896            protected MBCategoryPersistence mbCategoryPersistence;
897            @BeanReference(type = MBCategoryFinder.class)
898            protected MBCategoryFinder mbCategoryFinder;
899            @BeanReference(type = MBDiscussionLocalService.class)
900            protected MBDiscussionLocalService mbDiscussionLocalService;
901            @BeanReference(type = MBDiscussionPersistence.class)
902            protected MBDiscussionPersistence mbDiscussionPersistence;
903            @BeanReference(type = MBMailingListLocalService.class)
904            protected MBMailingListLocalService mbMailingListLocalService;
905            @BeanReference(type = MBMailingListPersistence.class)
906            protected MBMailingListPersistence mbMailingListPersistence;
907            @BeanReference(type = MBMessageLocalService.class)
908            protected MBMessageLocalService mbMessageLocalService;
909            @BeanReference(type = MBMessageService.class)
910            protected MBMessageService mbMessageService;
911            @BeanReference(type = MBMessagePersistence.class)
912            protected MBMessagePersistence mbMessagePersistence;
913            @BeanReference(type = MBMessageFinder.class)
914            protected MBMessageFinder mbMessageFinder;
915            @BeanReference(type = MBMessageFlagLocalService.class)
916            protected MBMessageFlagLocalService mbMessageFlagLocalService;
917            @BeanReference(type = MBMessageFlagService.class)
918            protected MBMessageFlagService mbMessageFlagService;
919            @BeanReference(type = MBMessageFlagPersistence.class)
920            protected MBMessageFlagPersistence mbMessageFlagPersistence;
921            @BeanReference(type = MBStatsUserLocalService.class)
922            protected MBStatsUserLocalService mbStatsUserLocalService;
923            @BeanReference(type = MBStatsUserPersistence.class)
924            protected MBStatsUserPersistence mbStatsUserPersistence;
925            @BeanReference(type = MBThreadLocalService.class)
926            protected MBThreadLocalService mbThreadLocalService;
927            @BeanReference(type = MBThreadService.class)
928            protected MBThreadService mbThreadService;
929            @BeanReference(type = MBThreadPersistence.class)
930            protected MBThreadPersistence mbThreadPersistence;
931            @BeanReference(type = MBThreadFinder.class)
932            protected MBThreadFinder mbThreadFinder;
933            @BeanReference(type = CounterLocalService.class)
934            protected CounterLocalService counterLocalService;
935            @BeanReference(type = ResourceLocalService.class)
936            protected ResourceLocalService resourceLocalService;
937            @BeanReference(type = ResourceService.class)
938            protected ResourceService resourceService;
939            @BeanReference(type = ResourcePersistence.class)
940            protected ResourcePersistence resourcePersistence;
941            @BeanReference(type = ResourceFinder.class)
942            protected ResourceFinder resourceFinder;
943            @BeanReference(type = UserLocalService.class)
944            protected UserLocalService userLocalService;
945            @BeanReference(type = UserService.class)
946            protected UserService userService;
947            @BeanReference(type = UserPersistence.class)
948            protected UserPersistence userPersistence;
949            @BeanReference(type = UserFinder.class)
950            protected UserFinder userFinder;
951    }