001    /**
002     * Copyright (c) 2000-2012 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.mobiledevicerules.service.base;
016    
017    import com.liferay.counter.service.CounterLocalService;
018    
019    import com.liferay.portal.kernel.bean.BeanReference;
020    import com.liferay.portal.kernel.bean.IdentifiableBean;
021    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
022    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
023    import com.liferay.portal.kernel.exception.SystemException;
024    import com.liferay.portal.service.GroupLocalService;
025    import com.liferay.portal.service.GroupService;
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.base.PrincipalBean;
031    import com.liferay.portal.service.persistence.GroupFinder;
032    import com.liferay.portal.service.persistence.GroupPersistence;
033    import com.liferay.portal.service.persistence.ResourceFinder;
034    import com.liferay.portal.service.persistence.ResourcePersistence;
035    import com.liferay.portal.service.persistence.UserFinder;
036    import com.liferay.portal.service.persistence.UserPersistence;
037    
038    import com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup;
039    import com.liferay.portlet.mobiledevicerules.service.MDRActionLocalService;
040    import com.liferay.portlet.mobiledevicerules.service.MDRActionService;
041    import com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupInstanceLocalService;
042    import com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupInstanceService;
043    import com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupLocalService;
044    import com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupService;
045    import com.liferay.portlet.mobiledevicerules.service.MDRRuleLocalService;
046    import com.liferay.portlet.mobiledevicerules.service.MDRRuleService;
047    import com.liferay.portlet.mobiledevicerules.service.persistence.MDRActionPersistence;
048    import com.liferay.portlet.mobiledevicerules.service.persistence.MDRRuleGroupFinder;
049    import com.liferay.portlet.mobiledevicerules.service.persistence.MDRRuleGroupInstancePersistence;
050    import com.liferay.portlet.mobiledevicerules.service.persistence.MDRRuleGroupPersistence;
051    import com.liferay.portlet.mobiledevicerules.service.persistence.MDRRulePersistence;
052    
053    import javax.sql.DataSource;
054    
055    /**
056     * The base implementation of the m d r rule group remote service.
057     *
058     * <p>
059     * 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.mobiledevicerules.service.impl.MDRRuleGroupServiceImpl}.
060     * </p>
061     *
062     * @author Edward C. Han
063     * @see com.liferay.portlet.mobiledevicerules.service.impl.MDRRuleGroupServiceImpl
064     * @see com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupServiceUtil
065     * @generated
066     */
067    public abstract class MDRRuleGroupServiceBaseImpl extends PrincipalBean
068            implements MDRRuleGroupService, IdentifiableBean {
069            /*
070             * NOTE FOR DEVELOPERS:
071             *
072             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupServiceUtil} to access the m d r rule group remote service.
073             */
074    
075            /**
076             * Returns the m d r action local service.
077             *
078             * @return the m d r action local service
079             */
080            public MDRActionLocalService getMDRActionLocalService() {
081                    return mdrActionLocalService;
082            }
083    
084            /**
085             * Sets the m d r action local service.
086             *
087             * @param mdrActionLocalService the m d r action local service
088             */
089            public void setMDRActionLocalService(
090                    MDRActionLocalService mdrActionLocalService) {
091                    this.mdrActionLocalService = mdrActionLocalService;
092            }
093    
094            /**
095             * Returns the m d r action remote service.
096             *
097             * @return the m d r action remote service
098             */
099            public MDRActionService getMDRActionService() {
100                    return mdrActionService;
101            }
102    
103            /**
104             * Sets the m d r action remote service.
105             *
106             * @param mdrActionService the m d r action remote service
107             */
108            public void setMDRActionService(MDRActionService mdrActionService) {
109                    this.mdrActionService = mdrActionService;
110            }
111    
112            /**
113             * Returns the m d r action persistence.
114             *
115             * @return the m d r action persistence
116             */
117            public MDRActionPersistence getMDRActionPersistence() {
118                    return mdrActionPersistence;
119            }
120    
121            /**
122             * Sets the m d r action persistence.
123             *
124             * @param mdrActionPersistence the m d r action persistence
125             */
126            public void setMDRActionPersistence(
127                    MDRActionPersistence mdrActionPersistence) {
128                    this.mdrActionPersistence = mdrActionPersistence;
129            }
130    
131            /**
132             * Returns the m d r rule local service.
133             *
134             * @return the m d r rule local service
135             */
136            public MDRRuleLocalService getMDRRuleLocalService() {
137                    return mdrRuleLocalService;
138            }
139    
140            /**
141             * Sets the m d r rule local service.
142             *
143             * @param mdrRuleLocalService the m d r rule local service
144             */
145            public void setMDRRuleLocalService(MDRRuleLocalService mdrRuleLocalService) {
146                    this.mdrRuleLocalService = mdrRuleLocalService;
147            }
148    
149            /**
150             * Returns the m d r rule remote service.
151             *
152             * @return the m d r rule remote service
153             */
154            public MDRRuleService getMDRRuleService() {
155                    return mdrRuleService;
156            }
157    
158            /**
159             * Sets the m d r rule remote service.
160             *
161             * @param mdrRuleService the m d r rule remote service
162             */
163            public void setMDRRuleService(MDRRuleService mdrRuleService) {
164                    this.mdrRuleService = mdrRuleService;
165            }
166    
167            /**
168             * Returns the m d r rule persistence.
169             *
170             * @return the m d r rule persistence
171             */
172            public MDRRulePersistence getMDRRulePersistence() {
173                    return mdrRulePersistence;
174            }
175    
176            /**
177             * Sets the m d r rule persistence.
178             *
179             * @param mdrRulePersistence the m d r rule persistence
180             */
181            public void setMDRRulePersistence(MDRRulePersistence mdrRulePersistence) {
182                    this.mdrRulePersistence = mdrRulePersistence;
183            }
184    
185            /**
186             * Returns the m d r rule group local service.
187             *
188             * @return the m d r rule group local service
189             */
190            public MDRRuleGroupLocalService getMDRRuleGroupLocalService() {
191                    return mdrRuleGroupLocalService;
192            }
193    
194            /**
195             * Sets the m d r rule group local service.
196             *
197             * @param mdrRuleGroupLocalService the m d r rule group local service
198             */
199            public void setMDRRuleGroupLocalService(
200                    MDRRuleGroupLocalService mdrRuleGroupLocalService) {
201                    this.mdrRuleGroupLocalService = mdrRuleGroupLocalService;
202            }
203    
204            /**
205             * Returns the m d r rule group remote service.
206             *
207             * @return the m d r rule group remote service
208             */
209            public MDRRuleGroupService getMDRRuleGroupService() {
210                    return mdrRuleGroupService;
211            }
212    
213            /**
214             * Sets the m d r rule group remote service.
215             *
216             * @param mdrRuleGroupService the m d r rule group remote service
217             */
218            public void setMDRRuleGroupService(MDRRuleGroupService mdrRuleGroupService) {
219                    this.mdrRuleGroupService = mdrRuleGroupService;
220            }
221    
222            /**
223             * Returns the m d r rule group persistence.
224             *
225             * @return the m d r rule group persistence
226             */
227            public MDRRuleGroupPersistence getMDRRuleGroupPersistence() {
228                    return mdrRuleGroupPersistence;
229            }
230    
231            /**
232             * Sets the m d r rule group persistence.
233             *
234             * @param mdrRuleGroupPersistence the m d r rule group persistence
235             */
236            public void setMDRRuleGroupPersistence(
237                    MDRRuleGroupPersistence mdrRuleGroupPersistence) {
238                    this.mdrRuleGroupPersistence = mdrRuleGroupPersistence;
239            }
240    
241            /**
242             * Returns the m d r rule group finder.
243             *
244             * @return the m d r rule group finder
245             */
246            public MDRRuleGroupFinder getMDRRuleGroupFinder() {
247                    return mdrRuleGroupFinder;
248            }
249    
250            /**
251             * Sets the m d r rule group finder.
252             *
253             * @param mdrRuleGroupFinder the m d r rule group finder
254             */
255            public void setMDRRuleGroupFinder(MDRRuleGroupFinder mdrRuleGroupFinder) {
256                    this.mdrRuleGroupFinder = mdrRuleGroupFinder;
257            }
258    
259            /**
260             * Returns the m d r rule group instance local service.
261             *
262             * @return the m d r rule group instance local service
263             */
264            public MDRRuleGroupInstanceLocalService getMDRRuleGroupInstanceLocalService() {
265                    return mdrRuleGroupInstanceLocalService;
266            }
267    
268            /**
269             * Sets the m d r rule group instance local service.
270             *
271             * @param mdrRuleGroupInstanceLocalService the m d r rule group instance local service
272             */
273            public void setMDRRuleGroupInstanceLocalService(
274                    MDRRuleGroupInstanceLocalService mdrRuleGroupInstanceLocalService) {
275                    this.mdrRuleGroupInstanceLocalService = mdrRuleGroupInstanceLocalService;
276            }
277    
278            /**
279             * Returns the m d r rule group instance remote service.
280             *
281             * @return the m d r rule group instance remote service
282             */
283            public MDRRuleGroupInstanceService getMDRRuleGroupInstanceService() {
284                    return mdrRuleGroupInstanceService;
285            }
286    
287            /**
288             * Sets the m d r rule group instance remote service.
289             *
290             * @param mdrRuleGroupInstanceService the m d r rule group instance remote service
291             */
292            public void setMDRRuleGroupInstanceService(
293                    MDRRuleGroupInstanceService mdrRuleGroupInstanceService) {
294                    this.mdrRuleGroupInstanceService = mdrRuleGroupInstanceService;
295            }
296    
297            /**
298             * Returns the m d r rule group instance persistence.
299             *
300             * @return the m d r rule group instance persistence
301             */
302            public MDRRuleGroupInstancePersistence getMDRRuleGroupInstancePersistence() {
303                    return mdrRuleGroupInstancePersistence;
304            }
305    
306            /**
307             * Sets the m d r rule group instance persistence.
308             *
309             * @param mdrRuleGroupInstancePersistence the m d r rule group instance persistence
310             */
311            public void setMDRRuleGroupInstancePersistence(
312                    MDRRuleGroupInstancePersistence mdrRuleGroupInstancePersistence) {
313                    this.mdrRuleGroupInstancePersistence = mdrRuleGroupInstancePersistence;
314            }
315    
316            /**
317             * Returns the counter local service.
318             *
319             * @return the counter local service
320             */
321            public CounterLocalService getCounterLocalService() {
322                    return counterLocalService;
323            }
324    
325            /**
326             * Sets the counter local service.
327             *
328             * @param counterLocalService the counter local service
329             */
330            public void setCounterLocalService(CounterLocalService counterLocalService) {
331                    this.counterLocalService = counterLocalService;
332            }
333    
334            /**
335             * Returns the group local service.
336             *
337             * @return the group local service
338             */
339            public GroupLocalService getGroupLocalService() {
340                    return groupLocalService;
341            }
342    
343            /**
344             * Sets the group local service.
345             *
346             * @param groupLocalService the group local service
347             */
348            public void setGroupLocalService(GroupLocalService groupLocalService) {
349                    this.groupLocalService = groupLocalService;
350            }
351    
352            /**
353             * Returns the group remote service.
354             *
355             * @return the group remote service
356             */
357            public GroupService getGroupService() {
358                    return groupService;
359            }
360    
361            /**
362             * Sets the group remote service.
363             *
364             * @param groupService the group remote service
365             */
366            public void setGroupService(GroupService groupService) {
367                    this.groupService = groupService;
368            }
369    
370            /**
371             * Returns the group persistence.
372             *
373             * @return the group persistence
374             */
375            public GroupPersistence getGroupPersistence() {
376                    return groupPersistence;
377            }
378    
379            /**
380             * Sets the group persistence.
381             *
382             * @param groupPersistence the group persistence
383             */
384            public void setGroupPersistence(GroupPersistence groupPersistence) {
385                    this.groupPersistence = groupPersistence;
386            }
387    
388            /**
389             * Returns the group finder.
390             *
391             * @return the group finder
392             */
393            public GroupFinder getGroupFinder() {
394                    return groupFinder;
395            }
396    
397            /**
398             * Sets the group finder.
399             *
400             * @param groupFinder the group finder
401             */
402            public void setGroupFinder(GroupFinder groupFinder) {
403                    this.groupFinder = groupFinder;
404            }
405    
406            /**
407             * Returns the resource local service.
408             *
409             * @return the resource local service
410             */
411            public ResourceLocalService getResourceLocalService() {
412                    return resourceLocalService;
413            }
414    
415            /**
416             * Sets the resource local service.
417             *
418             * @param resourceLocalService the resource local service
419             */
420            public void setResourceLocalService(
421                    ResourceLocalService resourceLocalService) {
422                    this.resourceLocalService = resourceLocalService;
423            }
424    
425            /**
426             * Returns the resource remote service.
427             *
428             * @return the resource remote service
429             */
430            public ResourceService getResourceService() {
431                    return resourceService;
432            }
433    
434            /**
435             * Sets the resource remote service.
436             *
437             * @param resourceService the resource remote service
438             */
439            public void setResourceService(ResourceService resourceService) {
440                    this.resourceService = resourceService;
441            }
442    
443            /**
444             * Returns the resource persistence.
445             *
446             * @return the resource persistence
447             */
448            public ResourcePersistence getResourcePersistence() {
449                    return resourcePersistence;
450            }
451    
452            /**
453             * Sets the resource persistence.
454             *
455             * @param resourcePersistence the resource persistence
456             */
457            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
458                    this.resourcePersistence = resourcePersistence;
459            }
460    
461            /**
462             * Returns the resource finder.
463             *
464             * @return the resource finder
465             */
466            public ResourceFinder getResourceFinder() {
467                    return resourceFinder;
468            }
469    
470            /**
471             * Sets the resource finder.
472             *
473             * @param resourceFinder the resource finder
474             */
475            public void setResourceFinder(ResourceFinder resourceFinder) {
476                    this.resourceFinder = resourceFinder;
477            }
478    
479            /**
480             * Returns the user local service.
481             *
482             * @return the user local service
483             */
484            public UserLocalService getUserLocalService() {
485                    return userLocalService;
486            }
487    
488            /**
489             * Sets the user local service.
490             *
491             * @param userLocalService the user local service
492             */
493            public void setUserLocalService(UserLocalService userLocalService) {
494                    this.userLocalService = userLocalService;
495            }
496    
497            /**
498             * Returns the user remote service.
499             *
500             * @return the user remote service
501             */
502            public UserService getUserService() {
503                    return userService;
504            }
505    
506            /**
507             * Sets the user remote service.
508             *
509             * @param userService the user remote service
510             */
511            public void setUserService(UserService userService) {
512                    this.userService = userService;
513            }
514    
515            /**
516             * Returns the user persistence.
517             *
518             * @return the user persistence
519             */
520            public UserPersistence getUserPersistence() {
521                    return userPersistence;
522            }
523    
524            /**
525             * Sets the user persistence.
526             *
527             * @param userPersistence the user persistence
528             */
529            public void setUserPersistence(UserPersistence userPersistence) {
530                    this.userPersistence = userPersistence;
531            }
532    
533            /**
534             * Returns the user finder.
535             *
536             * @return the user finder
537             */
538            public UserFinder getUserFinder() {
539                    return userFinder;
540            }
541    
542            /**
543             * Sets the user finder.
544             *
545             * @param userFinder the user finder
546             */
547            public void setUserFinder(UserFinder userFinder) {
548                    this.userFinder = userFinder;
549            }
550    
551            public void afterPropertiesSet() {
552            }
553    
554            public void destroy() {
555            }
556    
557            /**
558             * Returns the Spring bean ID for this bean.
559             *
560             * @return the Spring bean ID for this bean
561             */
562            public String getBeanIdentifier() {
563                    return _beanIdentifier;
564            }
565    
566            /**
567             * Sets the Spring bean ID for this bean.
568             *
569             * @param beanIdentifier the Spring bean ID for this bean
570             */
571            public void setBeanIdentifier(String beanIdentifier) {
572                    _beanIdentifier = beanIdentifier;
573            }
574    
575            protected ClassLoader getClassLoader() {
576                    Class<?> clazz = getClass();
577    
578                    return clazz.getClassLoader();
579            }
580    
581            protected Class<?> getModelClass() {
582                    return MDRRuleGroup.class;
583            }
584    
585            protected String getModelClassName() {
586                    return MDRRuleGroup.class.getName();
587            }
588    
589            /**
590             * Performs an SQL query.
591             *
592             * @param sql the sql query
593             */
594            protected void runSQL(String sql) throws SystemException {
595                    try {
596                            DataSource dataSource = mdrRuleGroupPersistence.getDataSource();
597    
598                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
599                                            sql, new int[0]);
600    
601                            sqlUpdate.update();
602                    }
603                    catch (Exception e) {
604                            throw new SystemException(e);
605                    }
606            }
607    
608            @BeanReference(type = MDRActionLocalService.class)
609            protected MDRActionLocalService mdrActionLocalService;
610            @BeanReference(type = MDRActionService.class)
611            protected MDRActionService mdrActionService;
612            @BeanReference(type = MDRActionPersistence.class)
613            protected MDRActionPersistence mdrActionPersistence;
614            @BeanReference(type = MDRRuleLocalService.class)
615            protected MDRRuleLocalService mdrRuleLocalService;
616            @BeanReference(type = MDRRuleService.class)
617            protected MDRRuleService mdrRuleService;
618            @BeanReference(type = MDRRulePersistence.class)
619            protected MDRRulePersistence mdrRulePersistence;
620            @BeanReference(type = MDRRuleGroupLocalService.class)
621            protected MDRRuleGroupLocalService mdrRuleGroupLocalService;
622            @BeanReference(type = MDRRuleGroupService.class)
623            protected MDRRuleGroupService mdrRuleGroupService;
624            @BeanReference(type = MDRRuleGroupPersistence.class)
625            protected MDRRuleGroupPersistence mdrRuleGroupPersistence;
626            @BeanReference(type = MDRRuleGroupFinder.class)
627            protected MDRRuleGroupFinder mdrRuleGroupFinder;
628            @BeanReference(type = MDRRuleGroupInstanceLocalService.class)
629            protected MDRRuleGroupInstanceLocalService mdrRuleGroupInstanceLocalService;
630            @BeanReference(type = MDRRuleGroupInstanceService.class)
631            protected MDRRuleGroupInstanceService mdrRuleGroupInstanceService;
632            @BeanReference(type = MDRRuleGroupInstancePersistence.class)
633            protected MDRRuleGroupInstancePersistence mdrRuleGroupInstancePersistence;
634            @BeanReference(type = CounterLocalService.class)
635            protected CounterLocalService counterLocalService;
636            @BeanReference(type = GroupLocalService.class)
637            protected GroupLocalService groupLocalService;
638            @BeanReference(type = GroupService.class)
639            protected GroupService groupService;
640            @BeanReference(type = GroupPersistence.class)
641            protected GroupPersistence groupPersistence;
642            @BeanReference(type = GroupFinder.class)
643            protected GroupFinder groupFinder;
644            @BeanReference(type = ResourceLocalService.class)
645            protected ResourceLocalService resourceLocalService;
646            @BeanReference(type = ResourceService.class)
647            protected ResourceService resourceService;
648            @BeanReference(type = ResourcePersistence.class)
649            protected ResourcePersistence resourcePersistence;
650            @BeanReference(type = ResourceFinder.class)
651            protected ResourceFinder resourceFinder;
652            @BeanReference(type = UserLocalService.class)
653            protected UserLocalService userLocalService;
654            @BeanReference(type = UserService.class)
655            protected UserService userService;
656            @BeanReference(type = UserPersistence.class)
657            protected UserPersistence userPersistence;
658            @BeanReference(type = UserFinder.class)
659            protected UserFinder userFinder;
660            private String _beanIdentifier;
661    }