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.dao.orm.DynamicQuery;
024    import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
025    import com.liferay.portal.kernel.exception.PortalException;
026    import com.liferay.portal.kernel.exception.SystemException;
027    import com.liferay.portal.kernel.search.Indexable;
028    import com.liferay.portal.kernel.search.IndexableType;
029    import com.liferay.portal.kernel.util.OrderByComparator;
030    import com.liferay.portal.model.PersistedModel;
031    import com.liferay.portal.service.BaseLocalServiceImpl;
032    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
033    import com.liferay.portal.service.ResourceLocalService;
034    import com.liferay.portal.service.ResourceService;
035    import com.liferay.portal.service.UserLocalService;
036    import com.liferay.portal.service.UserService;
037    import com.liferay.portal.service.persistence.ResourceFinder;
038    import com.liferay.portal.service.persistence.ResourcePersistence;
039    import com.liferay.portal.service.persistence.UserFinder;
040    import com.liferay.portal.service.persistence.UserPersistence;
041    
042    import com.liferay.portlet.mobiledevicerules.model.MDRAction;
043    import com.liferay.portlet.mobiledevicerules.service.MDRActionLocalService;
044    import com.liferay.portlet.mobiledevicerules.service.MDRActionService;
045    import com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupInstanceLocalService;
046    import com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupInstanceService;
047    import com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupLocalService;
048    import com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupService;
049    import com.liferay.portlet.mobiledevicerules.service.MDRRuleLocalService;
050    import com.liferay.portlet.mobiledevicerules.service.MDRRuleService;
051    import com.liferay.portlet.mobiledevicerules.service.persistence.MDRActionPersistence;
052    import com.liferay.portlet.mobiledevicerules.service.persistence.MDRRuleGroupFinder;
053    import com.liferay.portlet.mobiledevicerules.service.persistence.MDRRuleGroupInstancePersistence;
054    import com.liferay.portlet.mobiledevicerules.service.persistence.MDRRuleGroupPersistence;
055    import com.liferay.portlet.mobiledevicerules.service.persistence.MDRRulePersistence;
056    
057    import java.io.Serializable;
058    
059    import java.util.List;
060    
061    import javax.sql.DataSource;
062    
063    /**
064     * The base implementation of the m d r action local service.
065     *
066     * <p>
067     * 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.MDRActionLocalServiceImpl}.
068     * </p>
069     *
070     * @author Edward C. Han
071     * @see com.liferay.portlet.mobiledevicerules.service.impl.MDRActionLocalServiceImpl
072     * @see com.liferay.portlet.mobiledevicerules.service.MDRActionLocalServiceUtil
073     * @generated
074     */
075    public abstract class MDRActionLocalServiceBaseImpl extends BaseLocalServiceImpl
076            implements MDRActionLocalService, IdentifiableBean {
077            /*
078             * NOTE FOR DEVELOPERS:
079             *
080             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.mobiledevicerules.service.MDRActionLocalServiceUtil} to access the m d r action local service.
081             */
082    
083            /**
084             * Adds the m d r action to the database. Also notifies the appropriate model listeners.
085             *
086             * @param mdrAction the m d r action
087             * @return the m d r action that was added
088             * @throws SystemException if a system exception occurred
089             */
090            @Indexable(type = IndexableType.REINDEX)
091            public MDRAction addMDRAction(MDRAction mdrAction)
092                    throws SystemException {
093                    mdrAction.setNew(true);
094    
095                    return mdrActionPersistence.update(mdrAction, false);
096            }
097    
098            /**
099             * Creates a new m d r action with the primary key. Does not add the m d r action to the database.
100             *
101             * @param actionId the primary key for the new m d r action
102             * @return the new m d r action
103             */
104            public MDRAction createMDRAction(long actionId) {
105                    return mdrActionPersistence.create(actionId);
106            }
107    
108            /**
109             * Deletes the m d r action with the primary key from the database. Also notifies the appropriate model listeners.
110             *
111             * @param actionId the primary key of the m d r action
112             * @return the m d r action that was removed
113             * @throws PortalException if a m d r action with the primary key could not be found
114             * @throws SystemException if a system exception occurred
115             */
116            @Indexable(type = IndexableType.DELETE)
117            public MDRAction deleteMDRAction(long actionId)
118                    throws PortalException, SystemException {
119                    return mdrActionPersistence.remove(actionId);
120            }
121    
122            /**
123             * Deletes the m d r action from the database. Also notifies the appropriate model listeners.
124             *
125             * @param mdrAction the m d r action
126             * @return the m d r action that was removed
127             * @throws SystemException if a system exception occurred
128             */
129            @Indexable(type = IndexableType.DELETE)
130            public MDRAction deleteMDRAction(MDRAction mdrAction)
131                    throws SystemException {
132                    return mdrActionPersistence.remove(mdrAction);
133            }
134    
135            public DynamicQuery dynamicQuery() {
136                    Class<?> clazz = getClass();
137    
138                    return DynamicQueryFactoryUtil.forClass(MDRAction.class,
139                            clazz.getClassLoader());
140            }
141    
142            /**
143             * Performs a dynamic query on the database and returns the matching rows.
144             *
145             * @param dynamicQuery the dynamic query
146             * @return the matching rows
147             * @throws SystemException if a system exception occurred
148             */
149            @SuppressWarnings("rawtypes")
150            public List dynamicQuery(DynamicQuery dynamicQuery)
151                    throws SystemException {
152                    return mdrActionPersistence.findWithDynamicQuery(dynamicQuery);
153            }
154    
155            /**
156             * Performs a dynamic query on the database and returns a range of the matching rows.
157             *
158             * <p>
159             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
160             * </p>
161             *
162             * @param dynamicQuery the dynamic query
163             * @param start the lower bound of the range of model instances
164             * @param end the upper bound of the range of model instances (not inclusive)
165             * @return the range of matching rows
166             * @throws SystemException if a system exception occurred
167             */
168            @SuppressWarnings("rawtypes")
169            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
170                    throws SystemException {
171                    return mdrActionPersistence.findWithDynamicQuery(dynamicQuery, start,
172                            end);
173            }
174    
175            /**
176             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
177             *
178             * <p>
179             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
180             * </p>
181             *
182             * @param dynamicQuery the dynamic query
183             * @param start the lower bound of the range of model instances
184             * @param end the upper bound of the range of model instances (not inclusive)
185             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
186             * @return the ordered range of matching rows
187             * @throws SystemException if a system exception occurred
188             */
189            @SuppressWarnings("rawtypes")
190            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
191                    OrderByComparator orderByComparator) throws SystemException {
192                    return mdrActionPersistence.findWithDynamicQuery(dynamicQuery, start,
193                            end, orderByComparator);
194            }
195    
196            /**
197             * Returns the number of rows that match the dynamic query.
198             *
199             * @param dynamicQuery the dynamic query
200             * @return the number of rows that match the dynamic query
201             * @throws SystemException if a system exception occurred
202             */
203            public long dynamicQueryCount(DynamicQuery dynamicQuery)
204                    throws SystemException {
205                    return mdrActionPersistence.countWithDynamicQuery(dynamicQuery);
206            }
207    
208            public MDRAction fetchMDRAction(long actionId) throws SystemException {
209                    return mdrActionPersistence.fetchByPrimaryKey(actionId);
210            }
211    
212            /**
213             * Returns the m d r action with the primary key.
214             *
215             * @param actionId the primary key of the m d r action
216             * @return the m d r action
217             * @throws PortalException if a m d r action with the primary key could not be found
218             * @throws SystemException if a system exception occurred
219             */
220            public MDRAction getMDRAction(long actionId)
221                    throws PortalException, SystemException {
222                    return mdrActionPersistence.findByPrimaryKey(actionId);
223            }
224    
225            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
226                    throws PortalException, SystemException {
227                    return mdrActionPersistence.findByPrimaryKey(primaryKeyObj);
228            }
229    
230            /**
231             * Returns the m d r action with the UUID in the group.
232             *
233             * @param uuid the UUID of m d r action
234             * @param groupId the group id of the m d r action
235             * @return the m d r action
236             * @throws PortalException if a m d r action with the UUID in the group could not be found
237             * @throws SystemException if a system exception occurred
238             */
239            public MDRAction getMDRActionByUuidAndGroupId(String uuid, long groupId)
240                    throws PortalException, SystemException {
241                    return mdrActionPersistence.findByUUID_G(uuid, groupId);
242            }
243    
244            /**
245             * Returns a range of all the m d r actions.
246             *
247             * <p>
248             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
249             * </p>
250             *
251             * @param start the lower bound of the range of m d r actions
252             * @param end the upper bound of the range of m d r actions (not inclusive)
253             * @return the range of m d r actions
254             * @throws SystemException if a system exception occurred
255             */
256            public List<MDRAction> getMDRActions(int start, int end)
257                    throws SystemException {
258                    return mdrActionPersistence.findAll(start, end);
259            }
260    
261            /**
262             * Returns the number of m d r actions.
263             *
264             * @return the number of m d r actions
265             * @throws SystemException if a system exception occurred
266             */
267            public int getMDRActionsCount() throws SystemException {
268                    return mdrActionPersistence.countAll();
269            }
270    
271            /**
272             * Updates the m d r action in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
273             *
274             * @param mdrAction the m d r action
275             * @return the m d r action that was updated
276             * @throws SystemException if a system exception occurred
277             */
278            @Indexable(type = IndexableType.REINDEX)
279            public MDRAction updateMDRAction(MDRAction mdrAction)
280                    throws SystemException {
281                    return updateMDRAction(mdrAction, true);
282            }
283    
284            /**
285             * Updates the m d r action in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
286             *
287             * @param mdrAction the m d r action
288             * @param merge whether to merge the m d r action with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
289             * @return the m d r action that was updated
290             * @throws SystemException if a system exception occurred
291             */
292            @Indexable(type = IndexableType.REINDEX)
293            public MDRAction updateMDRAction(MDRAction mdrAction, boolean merge)
294                    throws SystemException {
295                    mdrAction.setNew(false);
296    
297                    return mdrActionPersistence.update(mdrAction, merge);
298            }
299    
300            /**
301             * Returns the m d r action local service.
302             *
303             * @return the m d r action local service
304             */
305            public MDRActionLocalService getMDRActionLocalService() {
306                    return mdrActionLocalService;
307            }
308    
309            /**
310             * Sets the m d r action local service.
311             *
312             * @param mdrActionLocalService the m d r action local service
313             */
314            public void setMDRActionLocalService(
315                    MDRActionLocalService mdrActionLocalService) {
316                    this.mdrActionLocalService = mdrActionLocalService;
317            }
318    
319            /**
320             * Returns the m d r action remote service.
321             *
322             * @return the m d r action remote service
323             */
324            public MDRActionService getMDRActionService() {
325                    return mdrActionService;
326            }
327    
328            /**
329             * Sets the m d r action remote service.
330             *
331             * @param mdrActionService the m d r action remote service
332             */
333            public void setMDRActionService(MDRActionService mdrActionService) {
334                    this.mdrActionService = mdrActionService;
335            }
336    
337            /**
338             * Returns the m d r action persistence.
339             *
340             * @return the m d r action persistence
341             */
342            public MDRActionPersistence getMDRActionPersistence() {
343                    return mdrActionPersistence;
344            }
345    
346            /**
347             * Sets the m d r action persistence.
348             *
349             * @param mdrActionPersistence the m d r action persistence
350             */
351            public void setMDRActionPersistence(
352                    MDRActionPersistence mdrActionPersistence) {
353                    this.mdrActionPersistence = mdrActionPersistence;
354            }
355    
356            /**
357             * Returns the m d r rule local service.
358             *
359             * @return the m d r rule local service
360             */
361            public MDRRuleLocalService getMDRRuleLocalService() {
362                    return mdrRuleLocalService;
363            }
364    
365            /**
366             * Sets the m d r rule local service.
367             *
368             * @param mdrRuleLocalService the m d r rule local service
369             */
370            public void setMDRRuleLocalService(MDRRuleLocalService mdrRuleLocalService) {
371                    this.mdrRuleLocalService = mdrRuleLocalService;
372            }
373    
374            /**
375             * Returns the m d r rule remote service.
376             *
377             * @return the m d r rule remote service
378             */
379            public MDRRuleService getMDRRuleService() {
380                    return mdrRuleService;
381            }
382    
383            /**
384             * Sets the m d r rule remote service.
385             *
386             * @param mdrRuleService the m d r rule remote service
387             */
388            public void setMDRRuleService(MDRRuleService mdrRuleService) {
389                    this.mdrRuleService = mdrRuleService;
390            }
391    
392            /**
393             * Returns the m d r rule persistence.
394             *
395             * @return the m d r rule persistence
396             */
397            public MDRRulePersistence getMDRRulePersistence() {
398                    return mdrRulePersistence;
399            }
400    
401            /**
402             * Sets the m d r rule persistence.
403             *
404             * @param mdrRulePersistence the m d r rule persistence
405             */
406            public void setMDRRulePersistence(MDRRulePersistence mdrRulePersistence) {
407                    this.mdrRulePersistence = mdrRulePersistence;
408            }
409    
410            /**
411             * Returns the m d r rule group local service.
412             *
413             * @return the m d r rule group local service
414             */
415            public MDRRuleGroupLocalService getMDRRuleGroupLocalService() {
416                    return mdrRuleGroupLocalService;
417            }
418    
419            /**
420             * Sets the m d r rule group local service.
421             *
422             * @param mdrRuleGroupLocalService the m d r rule group local service
423             */
424            public void setMDRRuleGroupLocalService(
425                    MDRRuleGroupLocalService mdrRuleGroupLocalService) {
426                    this.mdrRuleGroupLocalService = mdrRuleGroupLocalService;
427            }
428    
429            /**
430             * Returns the m d r rule group remote service.
431             *
432             * @return the m d r rule group remote service
433             */
434            public MDRRuleGroupService getMDRRuleGroupService() {
435                    return mdrRuleGroupService;
436            }
437    
438            /**
439             * Sets the m d r rule group remote service.
440             *
441             * @param mdrRuleGroupService the m d r rule group remote service
442             */
443            public void setMDRRuleGroupService(MDRRuleGroupService mdrRuleGroupService) {
444                    this.mdrRuleGroupService = mdrRuleGroupService;
445            }
446    
447            /**
448             * Returns the m d r rule group persistence.
449             *
450             * @return the m d r rule group persistence
451             */
452            public MDRRuleGroupPersistence getMDRRuleGroupPersistence() {
453                    return mdrRuleGroupPersistence;
454            }
455    
456            /**
457             * Sets the m d r rule group persistence.
458             *
459             * @param mdrRuleGroupPersistence the m d r rule group persistence
460             */
461            public void setMDRRuleGroupPersistence(
462                    MDRRuleGroupPersistence mdrRuleGroupPersistence) {
463                    this.mdrRuleGroupPersistence = mdrRuleGroupPersistence;
464            }
465    
466            /**
467             * Returns the m d r rule group finder.
468             *
469             * @return the m d r rule group finder
470             */
471            public MDRRuleGroupFinder getMDRRuleGroupFinder() {
472                    return mdrRuleGroupFinder;
473            }
474    
475            /**
476             * Sets the m d r rule group finder.
477             *
478             * @param mdrRuleGroupFinder the m d r rule group finder
479             */
480            public void setMDRRuleGroupFinder(MDRRuleGroupFinder mdrRuleGroupFinder) {
481                    this.mdrRuleGroupFinder = mdrRuleGroupFinder;
482            }
483    
484            /**
485             * Returns the m d r rule group instance local service.
486             *
487             * @return the m d r rule group instance local service
488             */
489            public MDRRuleGroupInstanceLocalService getMDRRuleGroupInstanceLocalService() {
490                    return mdrRuleGroupInstanceLocalService;
491            }
492    
493            /**
494             * Sets the m d r rule group instance local service.
495             *
496             * @param mdrRuleGroupInstanceLocalService the m d r rule group instance local service
497             */
498            public void setMDRRuleGroupInstanceLocalService(
499                    MDRRuleGroupInstanceLocalService mdrRuleGroupInstanceLocalService) {
500                    this.mdrRuleGroupInstanceLocalService = mdrRuleGroupInstanceLocalService;
501            }
502    
503            /**
504             * Returns the m d r rule group instance remote service.
505             *
506             * @return the m d r rule group instance remote service
507             */
508            public MDRRuleGroupInstanceService getMDRRuleGroupInstanceService() {
509                    return mdrRuleGroupInstanceService;
510            }
511    
512            /**
513             * Sets the m d r rule group instance remote service.
514             *
515             * @param mdrRuleGroupInstanceService the m d r rule group instance remote service
516             */
517            public void setMDRRuleGroupInstanceService(
518                    MDRRuleGroupInstanceService mdrRuleGroupInstanceService) {
519                    this.mdrRuleGroupInstanceService = mdrRuleGroupInstanceService;
520            }
521    
522            /**
523             * Returns the m d r rule group instance persistence.
524             *
525             * @return the m d r rule group instance persistence
526             */
527            public MDRRuleGroupInstancePersistence getMDRRuleGroupInstancePersistence() {
528                    return mdrRuleGroupInstancePersistence;
529            }
530    
531            /**
532             * Sets the m d r rule group instance persistence.
533             *
534             * @param mdrRuleGroupInstancePersistence the m d r rule group instance persistence
535             */
536            public void setMDRRuleGroupInstancePersistence(
537                    MDRRuleGroupInstancePersistence mdrRuleGroupInstancePersistence) {
538                    this.mdrRuleGroupInstancePersistence = mdrRuleGroupInstancePersistence;
539            }
540    
541            /**
542             * Returns the counter local service.
543             *
544             * @return the counter local service
545             */
546            public CounterLocalService getCounterLocalService() {
547                    return counterLocalService;
548            }
549    
550            /**
551             * Sets the counter local service.
552             *
553             * @param counterLocalService the counter local service
554             */
555            public void setCounterLocalService(CounterLocalService counterLocalService) {
556                    this.counterLocalService = counterLocalService;
557            }
558    
559            /**
560             * Returns the resource local service.
561             *
562             * @return the resource local service
563             */
564            public ResourceLocalService getResourceLocalService() {
565                    return resourceLocalService;
566            }
567    
568            /**
569             * Sets the resource local service.
570             *
571             * @param resourceLocalService the resource local service
572             */
573            public void setResourceLocalService(
574                    ResourceLocalService resourceLocalService) {
575                    this.resourceLocalService = resourceLocalService;
576            }
577    
578            /**
579             * Returns the resource remote service.
580             *
581             * @return the resource remote service
582             */
583            public ResourceService getResourceService() {
584                    return resourceService;
585            }
586    
587            /**
588             * Sets the resource remote service.
589             *
590             * @param resourceService the resource remote service
591             */
592            public void setResourceService(ResourceService resourceService) {
593                    this.resourceService = resourceService;
594            }
595    
596            /**
597             * Returns the resource persistence.
598             *
599             * @return the resource persistence
600             */
601            public ResourcePersistence getResourcePersistence() {
602                    return resourcePersistence;
603            }
604    
605            /**
606             * Sets the resource persistence.
607             *
608             * @param resourcePersistence the resource persistence
609             */
610            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
611                    this.resourcePersistence = resourcePersistence;
612            }
613    
614            /**
615             * Returns the resource finder.
616             *
617             * @return the resource finder
618             */
619            public ResourceFinder getResourceFinder() {
620                    return resourceFinder;
621            }
622    
623            /**
624             * Sets the resource finder.
625             *
626             * @param resourceFinder the resource finder
627             */
628            public void setResourceFinder(ResourceFinder resourceFinder) {
629                    this.resourceFinder = resourceFinder;
630            }
631    
632            /**
633             * Returns the user local service.
634             *
635             * @return the user local service
636             */
637            public UserLocalService getUserLocalService() {
638                    return userLocalService;
639            }
640    
641            /**
642             * Sets the user local service.
643             *
644             * @param userLocalService the user local service
645             */
646            public void setUserLocalService(UserLocalService userLocalService) {
647                    this.userLocalService = userLocalService;
648            }
649    
650            /**
651             * Returns the user remote service.
652             *
653             * @return the user remote service
654             */
655            public UserService getUserService() {
656                    return userService;
657            }
658    
659            /**
660             * Sets the user remote service.
661             *
662             * @param userService the user remote service
663             */
664            public void setUserService(UserService userService) {
665                    this.userService = userService;
666            }
667    
668            /**
669             * Returns the user persistence.
670             *
671             * @return the user persistence
672             */
673            public UserPersistence getUserPersistence() {
674                    return userPersistence;
675            }
676    
677            /**
678             * Sets the user persistence.
679             *
680             * @param userPersistence the user persistence
681             */
682            public void setUserPersistence(UserPersistence userPersistence) {
683                    this.userPersistence = userPersistence;
684            }
685    
686            /**
687             * Returns the user finder.
688             *
689             * @return the user finder
690             */
691            public UserFinder getUserFinder() {
692                    return userFinder;
693            }
694    
695            /**
696             * Sets the user finder.
697             *
698             * @param userFinder the user finder
699             */
700            public void setUserFinder(UserFinder userFinder) {
701                    this.userFinder = userFinder;
702            }
703    
704            public void afterPropertiesSet() {
705                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.mobiledevicerules.model.MDRAction",
706                            mdrActionLocalService);
707            }
708    
709            public void destroy() {
710                    persistedModelLocalServiceRegistry.unregister(
711                            "com.liferay.portlet.mobiledevicerules.model.MDRAction");
712            }
713    
714            /**
715             * Returns the Spring bean ID for this bean.
716             *
717             * @return the Spring bean ID for this bean
718             */
719            public String getBeanIdentifier() {
720                    return _beanIdentifier;
721            }
722    
723            /**
724             * Sets the Spring bean ID for this bean.
725             *
726             * @param beanIdentifier the Spring bean ID for this bean
727             */
728            public void setBeanIdentifier(String beanIdentifier) {
729                    _beanIdentifier = beanIdentifier;
730            }
731    
732            protected Class<?> getModelClass() {
733                    return MDRAction.class;
734            }
735    
736            protected String getModelClassName() {
737                    return MDRAction.class.getName();
738            }
739    
740            /**
741             * Performs an SQL query.
742             *
743             * @param sql the sql query
744             */
745            protected void runSQL(String sql) throws SystemException {
746                    try {
747                            DataSource dataSource = mdrActionPersistence.getDataSource();
748    
749                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
750                                            sql, new int[0]);
751    
752                            sqlUpdate.update();
753                    }
754                    catch (Exception e) {
755                            throw new SystemException(e);
756                    }
757            }
758    
759            @BeanReference(type = MDRActionLocalService.class)
760            protected MDRActionLocalService mdrActionLocalService;
761            @BeanReference(type = MDRActionService.class)
762            protected MDRActionService mdrActionService;
763            @BeanReference(type = MDRActionPersistence.class)
764            protected MDRActionPersistence mdrActionPersistence;
765            @BeanReference(type = MDRRuleLocalService.class)
766            protected MDRRuleLocalService mdrRuleLocalService;
767            @BeanReference(type = MDRRuleService.class)
768            protected MDRRuleService mdrRuleService;
769            @BeanReference(type = MDRRulePersistence.class)
770            protected MDRRulePersistence mdrRulePersistence;
771            @BeanReference(type = MDRRuleGroupLocalService.class)
772            protected MDRRuleGroupLocalService mdrRuleGroupLocalService;
773            @BeanReference(type = MDRRuleGroupService.class)
774            protected MDRRuleGroupService mdrRuleGroupService;
775            @BeanReference(type = MDRRuleGroupPersistence.class)
776            protected MDRRuleGroupPersistence mdrRuleGroupPersistence;
777            @BeanReference(type = MDRRuleGroupFinder.class)
778            protected MDRRuleGroupFinder mdrRuleGroupFinder;
779            @BeanReference(type = MDRRuleGroupInstanceLocalService.class)
780            protected MDRRuleGroupInstanceLocalService mdrRuleGroupInstanceLocalService;
781            @BeanReference(type = MDRRuleGroupInstanceService.class)
782            protected MDRRuleGroupInstanceService mdrRuleGroupInstanceService;
783            @BeanReference(type = MDRRuleGroupInstancePersistence.class)
784            protected MDRRuleGroupInstancePersistence mdrRuleGroupInstancePersistence;
785            @BeanReference(type = CounterLocalService.class)
786            protected CounterLocalService counterLocalService;
787            @BeanReference(type = ResourceLocalService.class)
788            protected ResourceLocalService resourceLocalService;
789            @BeanReference(type = ResourceService.class)
790            protected ResourceService resourceService;
791            @BeanReference(type = ResourcePersistence.class)
792            protected ResourcePersistence resourcePersistence;
793            @BeanReference(type = ResourceFinder.class)
794            protected ResourceFinder resourceFinder;
795            @BeanReference(type = UserLocalService.class)
796            protected UserLocalService userLocalService;
797            @BeanReference(type = UserService.class)
798            protected UserService userService;
799            @BeanReference(type = UserPersistence.class)
800            protected UserPersistence userPersistence;
801            @BeanReference(type = UserFinder.class)
802            protected UserFinder userFinder;
803            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
804            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
805            private String _beanIdentifier;
806    }