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