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