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