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