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