001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.mobiledevicerules.service.base;
016    
017    import com.liferay.portal.kernel.bean.BeanReference;
018    import com.liferay.portal.kernel.bean.IdentifiableBean;
019    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
020    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
021    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
022    import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
023    import com.liferay.portal.kernel.dao.orm.Projection;
024    import com.liferay.portal.kernel.exception.PortalException;
025    import com.liferay.portal.kernel.exception.SystemException;
026    import com.liferay.portal.kernel.search.Indexable;
027    import com.liferay.portal.kernel.search.IndexableType;
028    import com.liferay.portal.kernel.util.OrderByComparator;
029    import com.liferay.portal.model.PersistedModel;
030    import com.liferay.portal.service.BaseLocalServiceImpl;
031    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
032    import com.liferay.portal.service.persistence.LayoutFinder;
033    import com.liferay.portal.service.persistence.LayoutPersistence;
034    import com.liferay.portal.service.persistence.LayoutSetPersistence;
035    import com.liferay.portal.service.persistence.SystemEventPersistence;
036    import com.liferay.portal.service.persistence.UserFinder;
037    import com.liferay.portal.service.persistence.UserPersistence;
038    
039    import com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance;
040    import com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupInstanceLocalService;
041    import com.liferay.portlet.mobiledevicerules.service.persistence.MDRActionPersistence;
042    import com.liferay.portlet.mobiledevicerules.service.persistence.MDRRuleGroupFinder;
043    import com.liferay.portlet.mobiledevicerules.service.persistence.MDRRuleGroupInstancePersistence;
044    import com.liferay.portlet.mobiledevicerules.service.persistence.MDRRuleGroupPersistence;
045    import com.liferay.portlet.mobiledevicerules.service.persistence.MDRRulePersistence;
046    
047    import java.io.Serializable;
048    
049    import java.util.List;
050    
051    import javax.sql.DataSource;
052    
053    /**
054     * Provides the base implementation for the m d r rule group instance local service.
055     *
056     * <p>
057     * 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.MDRRuleGroupInstanceLocalServiceImpl}.
058     * </p>
059     *
060     * @author Edward C. Han
061     * @see com.liferay.portlet.mobiledevicerules.service.impl.MDRRuleGroupInstanceLocalServiceImpl
062     * @see com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupInstanceLocalServiceUtil
063     * @generated
064     */
065    public abstract class MDRRuleGroupInstanceLocalServiceBaseImpl
066            extends BaseLocalServiceImpl implements MDRRuleGroupInstanceLocalService,
067                    IdentifiableBean {
068            /*
069             * NOTE FOR DEVELOPERS:
070             *
071             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupInstanceLocalServiceUtil} to access the m d r rule group instance local service.
072             */
073    
074            /**
075             * Adds the m d r rule group instance to the database. Also notifies the appropriate model listeners.
076             *
077             * @param mdrRuleGroupInstance the m d r rule group instance
078             * @return the m d r rule group instance that was added
079             * @throws SystemException if a system exception occurred
080             */
081            @Indexable(type = IndexableType.REINDEX)
082            @Override
083            public MDRRuleGroupInstance addMDRRuleGroupInstance(
084                    MDRRuleGroupInstance mdrRuleGroupInstance) throws SystemException {
085                    mdrRuleGroupInstance.setNew(true);
086    
087                    return mdrRuleGroupInstancePersistence.update(mdrRuleGroupInstance);
088            }
089    
090            /**
091             * Creates a new m d r rule group instance with the primary key. Does not add the m d r rule group instance to the database.
092             *
093             * @param ruleGroupInstanceId the primary key for the new m d r rule group instance
094             * @return the new m d r rule group instance
095             */
096            @Override
097            public MDRRuleGroupInstance createMDRRuleGroupInstance(
098                    long ruleGroupInstanceId) {
099                    return mdrRuleGroupInstancePersistence.create(ruleGroupInstanceId);
100            }
101    
102            /**
103             * Deletes the m d r rule group instance with the primary key from the database. Also notifies the appropriate model listeners.
104             *
105             * @param ruleGroupInstanceId the primary key of the m d r rule group instance
106             * @return the m d r rule group instance that was removed
107             * @throws PortalException if a m d r rule group instance with the primary key could not be found
108             * @throws SystemException if a system exception occurred
109             */
110            @Indexable(type = IndexableType.DELETE)
111            @Override
112            public MDRRuleGroupInstance deleteMDRRuleGroupInstance(
113                    long ruleGroupInstanceId) throws PortalException, SystemException {
114                    return mdrRuleGroupInstancePersistence.remove(ruleGroupInstanceId);
115            }
116    
117            /**
118             * Deletes the m d r rule group instance from the database. Also notifies the appropriate model listeners.
119             *
120             * @param mdrRuleGroupInstance the m d r rule group instance
121             * @return the m d r rule group instance that was removed
122             * @throws SystemException if a system exception occurred
123             */
124            @Indexable(type = IndexableType.DELETE)
125            @Override
126            public MDRRuleGroupInstance deleteMDRRuleGroupInstance(
127                    MDRRuleGroupInstance mdrRuleGroupInstance) throws SystemException {
128                    return mdrRuleGroupInstancePersistence.remove(mdrRuleGroupInstance);
129            }
130    
131            @Override
132            public DynamicQuery dynamicQuery() {
133                    Class<?> clazz = getClass();
134    
135                    return DynamicQueryFactoryUtil.forClass(MDRRuleGroupInstance.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            @Override
147            @SuppressWarnings("rawtypes")
148            public List dynamicQuery(DynamicQuery dynamicQuery)
149                    throws SystemException {
150                    return mdrRuleGroupInstancePersistence.findWithDynamicQuery(dynamicQuery);
151            }
152    
153            /**
154             * Performs a dynamic query on the database and returns a range of the matching rows.
155             *
156             * <p>
157             * 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.MDRRuleGroupInstanceModelImpl}. 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.
158             * </p>
159             *
160             * @param dynamicQuery the dynamic query
161             * @param start the lower bound of the range of model instances
162             * @param end the upper bound of the range of model instances (not inclusive)
163             * @return the range of matching rows
164             * @throws SystemException if a system exception occurred
165             */
166            @Override
167            @SuppressWarnings("rawtypes")
168            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
169                    throws SystemException {
170                    return mdrRuleGroupInstancePersistence.findWithDynamicQuery(dynamicQuery,
171                            start, end);
172            }
173    
174            /**
175             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
176             *
177             * <p>
178             * 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.MDRRuleGroupInstanceModelImpl}. 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.
179             * </p>
180             *
181             * @param dynamicQuery the dynamic query
182             * @param start the lower bound of the range of model instances
183             * @param end the upper bound of the range of model instances (not inclusive)
184             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
185             * @return the ordered range of matching rows
186             * @throws SystemException if a system exception occurred
187             */
188            @Override
189            @SuppressWarnings("rawtypes")
190            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
191                    OrderByComparator orderByComparator) throws SystemException {
192                    return mdrRuleGroupInstancePersistence.findWithDynamicQuery(dynamicQuery,
193                            start, 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            @Override
204            public long dynamicQueryCount(DynamicQuery dynamicQuery)
205                    throws SystemException {
206                    return mdrRuleGroupInstancePersistence.countWithDynamicQuery(dynamicQuery);
207            }
208    
209            /**
210             * Returns the number of rows that match the dynamic query.
211             *
212             * @param dynamicQuery the dynamic query
213             * @param projection the projection to apply to the query
214             * @return the number of rows that match the dynamic query
215             * @throws SystemException if a system exception occurred
216             */
217            @Override
218            public long dynamicQueryCount(DynamicQuery dynamicQuery,
219                    Projection projection) throws SystemException {
220                    return mdrRuleGroupInstancePersistence.countWithDynamicQuery(dynamicQuery,
221                            projection);
222            }
223    
224            @Override
225            public MDRRuleGroupInstance fetchMDRRuleGroupInstance(
226                    long ruleGroupInstanceId) throws SystemException {
227                    return mdrRuleGroupInstancePersistence.fetchByPrimaryKey(ruleGroupInstanceId);
228            }
229    
230            /**
231             * Returns the m d r rule group instance with the matching UUID and company.
232             *
233             * @param uuid the m d r rule group instance's UUID
234             * @param  companyId the primary key of the company
235             * @return the matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found
236             * @throws SystemException if a system exception occurred
237             */
238            @Override
239            public MDRRuleGroupInstance fetchMDRRuleGroupInstanceByUuidAndCompanyId(
240                    String uuid, long companyId) throws SystemException {
241                    return mdrRuleGroupInstancePersistence.fetchByUuid_C_First(uuid,
242                            companyId, null);
243            }
244    
245            /**
246             * Returns the m d r rule group instance matching the UUID and group.
247             *
248             * @param uuid the m d r rule group instance's UUID
249             * @param groupId the primary key of the group
250             * @return the matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found
251             * @throws SystemException if a system exception occurred
252             */
253            @Override
254            public MDRRuleGroupInstance fetchMDRRuleGroupInstanceByUuidAndGroupId(
255                    String uuid, long groupId) throws SystemException {
256                    return mdrRuleGroupInstancePersistence.fetchByUUID_G(uuid, groupId);
257            }
258    
259            /**
260             * Returns the m d r rule group instance with the primary key.
261             *
262             * @param ruleGroupInstanceId the primary key of the m d r rule group instance
263             * @return the m d r rule group instance
264             * @throws PortalException if a m d r rule group instance with the primary key could not be found
265             * @throws SystemException if a system exception occurred
266             */
267            @Override
268            public MDRRuleGroupInstance getMDRRuleGroupInstance(
269                    long ruleGroupInstanceId) throws PortalException, SystemException {
270                    return mdrRuleGroupInstancePersistence.findByPrimaryKey(ruleGroupInstanceId);
271            }
272    
273            @Override
274            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
275                    throws PortalException, SystemException {
276                    return mdrRuleGroupInstancePersistence.findByPrimaryKey(primaryKeyObj);
277            }
278    
279            /**
280             * Returns the m d r rule group instance with the matching UUID and company.
281             *
282             * @param uuid the m d r rule group instance's UUID
283             * @param  companyId the primary key of the company
284             * @return the matching m d r rule group instance
285             * @throws PortalException if a matching m d r rule group instance could not be found
286             * @throws SystemException if a system exception occurred
287             */
288            @Override
289            public MDRRuleGroupInstance getMDRRuleGroupInstanceByUuidAndCompanyId(
290                    String uuid, long companyId) throws PortalException, SystemException {
291                    return mdrRuleGroupInstancePersistence.findByUuid_C_First(uuid,
292                            companyId, null);
293            }
294    
295            /**
296             * Returns the m d r rule group instance matching the UUID and group.
297             *
298             * @param uuid the m d r rule group instance's UUID
299             * @param groupId the primary key of the group
300             * @return the matching m d r rule group instance
301             * @throws PortalException if a matching m d r rule group instance could not be found
302             * @throws SystemException if a system exception occurred
303             */
304            @Override
305            public MDRRuleGroupInstance getMDRRuleGroupInstanceByUuidAndGroupId(
306                    String uuid, long groupId) throws PortalException, SystemException {
307                    return mdrRuleGroupInstancePersistence.findByUUID_G(uuid, groupId);
308            }
309    
310            /**
311             * Returns a range of all the m d r rule group instances.
312             *
313             * <p>
314             * 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.MDRRuleGroupInstanceModelImpl}. 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.
315             * </p>
316             *
317             * @param start the lower bound of the range of m d r rule group instances
318             * @param end the upper bound of the range of m d r rule group instances (not inclusive)
319             * @return the range of m d r rule group instances
320             * @throws SystemException if a system exception occurred
321             */
322            @Override
323            public List<MDRRuleGroupInstance> getMDRRuleGroupInstances(int start,
324                    int end) throws SystemException {
325                    return mdrRuleGroupInstancePersistence.findAll(start, end);
326            }
327    
328            /**
329             * Returns the number of m d r rule group instances.
330             *
331             * @return the number of m d r rule group instances
332             * @throws SystemException if a system exception occurred
333             */
334            @Override
335            public int getMDRRuleGroupInstancesCount() throws SystemException {
336                    return mdrRuleGroupInstancePersistence.countAll();
337            }
338    
339            /**
340             * Updates the m d r rule group instance in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
341             *
342             * @param mdrRuleGroupInstance the m d r rule group instance
343             * @return the m d r rule group instance that was updated
344             * @throws SystemException if a system exception occurred
345             */
346            @Indexable(type = IndexableType.REINDEX)
347            @Override
348            public MDRRuleGroupInstance updateMDRRuleGroupInstance(
349                    MDRRuleGroupInstance mdrRuleGroupInstance) throws SystemException {
350                    return mdrRuleGroupInstancePersistence.update(mdrRuleGroupInstance);
351            }
352    
353            /**
354             * Returns the m d r action local service.
355             *
356             * @return the m d r action local service
357             */
358            public com.liferay.portlet.mobiledevicerules.service.MDRActionLocalService getMDRActionLocalService() {
359                    return mdrActionLocalService;
360            }
361    
362            /**
363             * Sets the m d r action local service.
364             *
365             * @param mdrActionLocalService the m d r action local service
366             */
367            public void setMDRActionLocalService(
368                    com.liferay.portlet.mobiledevicerules.service.MDRActionLocalService mdrActionLocalService) {
369                    this.mdrActionLocalService = mdrActionLocalService;
370            }
371    
372            /**
373             * Returns the m d r action remote service.
374             *
375             * @return the m d r action remote service
376             */
377            public com.liferay.portlet.mobiledevicerules.service.MDRActionService getMDRActionService() {
378                    return mdrActionService;
379            }
380    
381            /**
382             * Sets the m d r action remote service.
383             *
384             * @param mdrActionService the m d r action remote service
385             */
386            public void setMDRActionService(
387                    com.liferay.portlet.mobiledevicerules.service.MDRActionService mdrActionService) {
388                    this.mdrActionService = mdrActionService;
389            }
390    
391            /**
392             * Returns the m d r action persistence.
393             *
394             * @return the m d r action persistence
395             */
396            public MDRActionPersistence getMDRActionPersistence() {
397                    return mdrActionPersistence;
398            }
399    
400            /**
401             * Sets the m d r action persistence.
402             *
403             * @param mdrActionPersistence the m d r action persistence
404             */
405            public void setMDRActionPersistence(
406                    MDRActionPersistence mdrActionPersistence) {
407                    this.mdrActionPersistence = mdrActionPersistence;
408            }
409    
410            /**
411             * Returns the m d r rule local service.
412             *
413             * @return the m d r rule local service
414             */
415            public com.liferay.portlet.mobiledevicerules.service.MDRRuleLocalService getMDRRuleLocalService() {
416                    return mdrRuleLocalService;
417            }
418    
419            /**
420             * Sets the m d r rule local service.
421             *
422             * @param mdrRuleLocalService the m d r rule local service
423             */
424            public void setMDRRuleLocalService(
425                    com.liferay.portlet.mobiledevicerules.service.MDRRuleLocalService mdrRuleLocalService) {
426                    this.mdrRuleLocalService = mdrRuleLocalService;
427            }
428    
429            /**
430             * Returns the m d r rule remote service.
431             *
432             * @return the m d r rule remote service
433             */
434            public com.liferay.portlet.mobiledevicerules.service.MDRRuleService getMDRRuleService() {
435                    return mdrRuleService;
436            }
437    
438            /**
439             * Sets the m d r rule remote service.
440             *
441             * @param mdrRuleService the m d r rule remote service
442             */
443            public void setMDRRuleService(
444                    com.liferay.portlet.mobiledevicerules.service.MDRRuleService mdrRuleService) {
445                    this.mdrRuleService = mdrRuleService;
446            }
447    
448            /**
449             * Returns the m d r rule persistence.
450             *
451             * @return the m d r rule persistence
452             */
453            public MDRRulePersistence getMDRRulePersistence() {
454                    return mdrRulePersistence;
455            }
456    
457            /**
458             * Sets the m d r rule persistence.
459             *
460             * @param mdrRulePersistence the m d r rule persistence
461             */
462            public void setMDRRulePersistence(MDRRulePersistence mdrRulePersistence) {
463                    this.mdrRulePersistence = mdrRulePersistence;
464            }
465    
466            /**
467             * Returns the m d r rule group local service.
468             *
469             * @return the m d r rule group local service
470             */
471            public com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupLocalService getMDRRuleGroupLocalService() {
472                    return mdrRuleGroupLocalService;
473            }
474    
475            /**
476             * Sets the m d r rule group local service.
477             *
478             * @param mdrRuleGroupLocalService the m d r rule group local service
479             */
480            public void setMDRRuleGroupLocalService(
481                    com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupLocalService mdrRuleGroupLocalService) {
482                    this.mdrRuleGroupLocalService = mdrRuleGroupLocalService;
483            }
484    
485            /**
486             * Returns the m d r rule group remote service.
487             *
488             * @return the m d r rule group remote service
489             */
490            public com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupService getMDRRuleGroupService() {
491                    return mdrRuleGroupService;
492            }
493    
494            /**
495             * Sets the m d r rule group remote service.
496             *
497             * @param mdrRuleGroupService the m d r rule group remote service
498             */
499            public void setMDRRuleGroupService(
500                    com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupService mdrRuleGroupService) {
501                    this.mdrRuleGroupService = mdrRuleGroupService;
502            }
503    
504            /**
505             * Returns the m d r rule group persistence.
506             *
507             * @return the m d r rule group persistence
508             */
509            public MDRRuleGroupPersistence getMDRRuleGroupPersistence() {
510                    return mdrRuleGroupPersistence;
511            }
512    
513            /**
514             * Sets the m d r rule group persistence.
515             *
516             * @param mdrRuleGroupPersistence the m d r rule group persistence
517             */
518            public void setMDRRuleGroupPersistence(
519                    MDRRuleGroupPersistence mdrRuleGroupPersistence) {
520                    this.mdrRuleGroupPersistence = mdrRuleGroupPersistence;
521            }
522    
523            /**
524             * Returns the m d r rule group finder.
525             *
526             * @return the m d r rule group finder
527             */
528            public MDRRuleGroupFinder getMDRRuleGroupFinder() {
529                    return mdrRuleGroupFinder;
530            }
531    
532            /**
533             * Sets the m d r rule group finder.
534             *
535             * @param mdrRuleGroupFinder the m d r rule group finder
536             */
537            public void setMDRRuleGroupFinder(MDRRuleGroupFinder mdrRuleGroupFinder) {
538                    this.mdrRuleGroupFinder = mdrRuleGroupFinder;
539            }
540    
541            /**
542             * Returns the m d r rule group instance local service.
543             *
544             * @return the m d r rule group instance local service
545             */
546            public com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupInstanceLocalService getMDRRuleGroupInstanceLocalService() {
547                    return mdrRuleGroupInstanceLocalService;
548            }
549    
550            /**
551             * Sets the m d r rule group instance local service.
552             *
553             * @param mdrRuleGroupInstanceLocalService the m d r rule group instance local service
554             */
555            public void setMDRRuleGroupInstanceLocalService(
556                    com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupInstanceLocalService mdrRuleGroupInstanceLocalService) {
557                    this.mdrRuleGroupInstanceLocalService = mdrRuleGroupInstanceLocalService;
558            }
559    
560            /**
561             * Returns the m d r rule group instance remote service.
562             *
563             * @return the m d r rule group instance remote service
564             */
565            public com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupInstanceService getMDRRuleGroupInstanceService() {
566                    return mdrRuleGroupInstanceService;
567            }
568    
569            /**
570             * Sets the m d r rule group instance remote service.
571             *
572             * @param mdrRuleGroupInstanceService the m d r rule group instance remote service
573             */
574            public void setMDRRuleGroupInstanceService(
575                    com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupInstanceService mdrRuleGroupInstanceService) {
576                    this.mdrRuleGroupInstanceService = mdrRuleGroupInstanceService;
577            }
578    
579            /**
580             * Returns the m d r rule group instance persistence.
581             *
582             * @return the m d r rule group instance persistence
583             */
584            public MDRRuleGroupInstancePersistence getMDRRuleGroupInstancePersistence() {
585                    return mdrRuleGroupInstancePersistence;
586            }
587    
588            /**
589             * Sets the m d r rule group instance persistence.
590             *
591             * @param mdrRuleGroupInstancePersistence the m d r rule group instance persistence
592             */
593            public void setMDRRuleGroupInstancePersistence(
594                    MDRRuleGroupInstancePersistence mdrRuleGroupInstancePersistence) {
595                    this.mdrRuleGroupInstancePersistence = mdrRuleGroupInstancePersistence;
596            }
597    
598            /**
599             * Returns the counter local service.
600             *
601             * @return the counter local service
602             */
603            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
604                    return counterLocalService;
605            }
606    
607            /**
608             * Sets the counter local service.
609             *
610             * @param counterLocalService the counter local service
611             */
612            public void setCounterLocalService(
613                    com.liferay.counter.service.CounterLocalService counterLocalService) {
614                    this.counterLocalService = counterLocalService;
615            }
616    
617            /**
618             * Returns the layout local service.
619             *
620             * @return the layout local service
621             */
622            public com.liferay.portal.service.LayoutLocalService getLayoutLocalService() {
623                    return layoutLocalService;
624            }
625    
626            /**
627             * Sets the layout local service.
628             *
629             * @param layoutLocalService the layout local service
630             */
631            public void setLayoutLocalService(
632                    com.liferay.portal.service.LayoutLocalService layoutLocalService) {
633                    this.layoutLocalService = layoutLocalService;
634            }
635    
636            /**
637             * Returns the layout remote service.
638             *
639             * @return the layout remote service
640             */
641            public com.liferay.portal.service.LayoutService getLayoutService() {
642                    return layoutService;
643            }
644    
645            /**
646             * Sets the layout remote service.
647             *
648             * @param layoutService the layout remote service
649             */
650            public void setLayoutService(
651                    com.liferay.portal.service.LayoutService layoutService) {
652                    this.layoutService = layoutService;
653            }
654    
655            /**
656             * Returns the layout persistence.
657             *
658             * @return the layout persistence
659             */
660            public LayoutPersistence getLayoutPersistence() {
661                    return layoutPersistence;
662            }
663    
664            /**
665             * Sets the layout persistence.
666             *
667             * @param layoutPersistence the layout persistence
668             */
669            public void setLayoutPersistence(LayoutPersistence layoutPersistence) {
670                    this.layoutPersistence = layoutPersistence;
671            }
672    
673            /**
674             * Returns the layout finder.
675             *
676             * @return the layout finder
677             */
678            public LayoutFinder getLayoutFinder() {
679                    return layoutFinder;
680            }
681    
682            /**
683             * Sets the layout finder.
684             *
685             * @param layoutFinder the layout finder
686             */
687            public void setLayoutFinder(LayoutFinder layoutFinder) {
688                    this.layoutFinder = layoutFinder;
689            }
690    
691            /**
692             * Returns the layout set local service.
693             *
694             * @return the layout set local service
695             */
696            public com.liferay.portal.service.LayoutSetLocalService getLayoutSetLocalService() {
697                    return layoutSetLocalService;
698            }
699    
700            /**
701             * Sets the layout set local service.
702             *
703             * @param layoutSetLocalService the layout set local service
704             */
705            public void setLayoutSetLocalService(
706                    com.liferay.portal.service.LayoutSetLocalService layoutSetLocalService) {
707                    this.layoutSetLocalService = layoutSetLocalService;
708            }
709    
710            /**
711             * Returns the layout set remote service.
712             *
713             * @return the layout set remote service
714             */
715            public com.liferay.portal.service.LayoutSetService getLayoutSetService() {
716                    return layoutSetService;
717            }
718    
719            /**
720             * Sets the layout set remote service.
721             *
722             * @param layoutSetService the layout set remote service
723             */
724            public void setLayoutSetService(
725                    com.liferay.portal.service.LayoutSetService layoutSetService) {
726                    this.layoutSetService = layoutSetService;
727            }
728    
729            /**
730             * Returns the layout set persistence.
731             *
732             * @return the layout set persistence
733             */
734            public LayoutSetPersistence getLayoutSetPersistence() {
735                    return layoutSetPersistence;
736            }
737    
738            /**
739             * Sets the layout set persistence.
740             *
741             * @param layoutSetPersistence the layout set persistence
742             */
743            public void setLayoutSetPersistence(
744                    LayoutSetPersistence layoutSetPersistence) {
745                    this.layoutSetPersistence = layoutSetPersistence;
746            }
747    
748            /**
749             * Returns the resource local service.
750             *
751             * @return the resource local service
752             */
753            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
754                    return resourceLocalService;
755            }
756    
757            /**
758             * Sets the resource local service.
759             *
760             * @param resourceLocalService the resource local service
761             */
762            public void setResourceLocalService(
763                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
764                    this.resourceLocalService = resourceLocalService;
765            }
766    
767            /**
768             * Returns the system event local service.
769             *
770             * @return the system event local service
771             */
772            public com.liferay.portal.service.SystemEventLocalService getSystemEventLocalService() {
773                    return systemEventLocalService;
774            }
775    
776            /**
777             * Sets the system event local service.
778             *
779             * @param systemEventLocalService the system event local service
780             */
781            public void setSystemEventLocalService(
782                    com.liferay.portal.service.SystemEventLocalService systemEventLocalService) {
783                    this.systemEventLocalService = systemEventLocalService;
784            }
785    
786            /**
787             * Returns the system event persistence.
788             *
789             * @return the system event persistence
790             */
791            public SystemEventPersistence getSystemEventPersistence() {
792                    return systemEventPersistence;
793            }
794    
795            /**
796             * Sets the system event persistence.
797             *
798             * @param systemEventPersistence the system event persistence
799             */
800            public void setSystemEventPersistence(
801                    SystemEventPersistence systemEventPersistence) {
802                    this.systemEventPersistence = systemEventPersistence;
803            }
804    
805            /**
806             * Returns the user local service.
807             *
808             * @return the user local service
809             */
810            public com.liferay.portal.service.UserLocalService getUserLocalService() {
811                    return userLocalService;
812            }
813    
814            /**
815             * Sets the user local service.
816             *
817             * @param userLocalService the user local service
818             */
819            public void setUserLocalService(
820                    com.liferay.portal.service.UserLocalService userLocalService) {
821                    this.userLocalService = userLocalService;
822            }
823    
824            /**
825             * Returns the user remote service.
826             *
827             * @return the user remote service
828             */
829            public com.liferay.portal.service.UserService getUserService() {
830                    return userService;
831            }
832    
833            /**
834             * Sets the user remote service.
835             *
836             * @param userService the user remote service
837             */
838            public void setUserService(
839                    com.liferay.portal.service.UserService userService) {
840                    this.userService = userService;
841            }
842    
843            /**
844             * Returns the user persistence.
845             *
846             * @return the user persistence
847             */
848            public UserPersistence getUserPersistence() {
849                    return userPersistence;
850            }
851    
852            /**
853             * Sets the user persistence.
854             *
855             * @param userPersistence the user persistence
856             */
857            public void setUserPersistence(UserPersistence userPersistence) {
858                    this.userPersistence = userPersistence;
859            }
860    
861            /**
862             * Returns the user finder.
863             *
864             * @return the user finder
865             */
866            public UserFinder getUserFinder() {
867                    return userFinder;
868            }
869    
870            /**
871             * Sets the user finder.
872             *
873             * @param userFinder the user finder
874             */
875            public void setUserFinder(UserFinder userFinder) {
876                    this.userFinder = userFinder;
877            }
878    
879            public void afterPropertiesSet() {
880                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance",
881                            mdrRuleGroupInstanceLocalService);
882            }
883    
884            public void destroy() {
885                    persistedModelLocalServiceRegistry.unregister(
886                            "com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance");
887            }
888    
889            /**
890             * Returns the Spring bean ID for this bean.
891             *
892             * @return the Spring bean ID for this bean
893             */
894            @Override
895            public String getBeanIdentifier() {
896                    return _beanIdentifier;
897            }
898    
899            /**
900             * Sets the Spring bean ID for this bean.
901             *
902             * @param beanIdentifier the Spring bean ID for this bean
903             */
904            @Override
905            public void setBeanIdentifier(String beanIdentifier) {
906                    _beanIdentifier = beanIdentifier;
907            }
908    
909            protected Class<?> getModelClass() {
910                    return MDRRuleGroupInstance.class;
911            }
912    
913            protected String getModelClassName() {
914                    return MDRRuleGroupInstance.class.getName();
915            }
916    
917            /**
918             * Performs an SQL query.
919             *
920             * @param sql the sql query
921             */
922            protected void runSQL(String sql) throws SystemException {
923                    try {
924                            DataSource dataSource = mdrRuleGroupInstancePersistence.getDataSource();
925    
926                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
927                                            sql, new int[0]);
928    
929                            sqlUpdate.update();
930                    }
931                    catch (Exception e) {
932                            throw new SystemException(e);
933                    }
934            }
935    
936            @BeanReference(type = com.liferay.portlet.mobiledevicerules.service.MDRActionLocalService.class)
937            protected com.liferay.portlet.mobiledevicerules.service.MDRActionLocalService mdrActionLocalService;
938            @BeanReference(type = com.liferay.portlet.mobiledevicerules.service.MDRActionService.class)
939            protected com.liferay.portlet.mobiledevicerules.service.MDRActionService mdrActionService;
940            @BeanReference(type = MDRActionPersistence.class)
941            protected MDRActionPersistence mdrActionPersistence;
942            @BeanReference(type = com.liferay.portlet.mobiledevicerules.service.MDRRuleLocalService.class)
943            protected com.liferay.portlet.mobiledevicerules.service.MDRRuleLocalService mdrRuleLocalService;
944            @BeanReference(type = com.liferay.portlet.mobiledevicerules.service.MDRRuleService.class)
945            protected com.liferay.portlet.mobiledevicerules.service.MDRRuleService mdrRuleService;
946            @BeanReference(type = MDRRulePersistence.class)
947            protected MDRRulePersistence mdrRulePersistence;
948            @BeanReference(type = com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupLocalService.class)
949            protected com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupLocalService mdrRuleGroupLocalService;
950            @BeanReference(type = com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupService.class)
951            protected com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupService mdrRuleGroupService;
952            @BeanReference(type = MDRRuleGroupPersistence.class)
953            protected MDRRuleGroupPersistence mdrRuleGroupPersistence;
954            @BeanReference(type = MDRRuleGroupFinder.class)
955            protected MDRRuleGroupFinder mdrRuleGroupFinder;
956            @BeanReference(type = com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupInstanceLocalService.class)
957            protected com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupInstanceLocalService mdrRuleGroupInstanceLocalService;
958            @BeanReference(type = com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupInstanceService.class)
959            protected com.liferay.portlet.mobiledevicerules.service.MDRRuleGroupInstanceService mdrRuleGroupInstanceService;
960            @BeanReference(type = MDRRuleGroupInstancePersistence.class)
961            protected MDRRuleGroupInstancePersistence mdrRuleGroupInstancePersistence;
962            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
963            protected com.liferay.counter.service.CounterLocalService counterLocalService;
964            @BeanReference(type = com.liferay.portal.service.LayoutLocalService.class)
965            protected com.liferay.portal.service.LayoutLocalService layoutLocalService;
966            @BeanReference(type = com.liferay.portal.service.LayoutService.class)
967            protected com.liferay.portal.service.LayoutService layoutService;
968            @BeanReference(type = LayoutPersistence.class)
969            protected LayoutPersistence layoutPersistence;
970            @BeanReference(type = LayoutFinder.class)
971            protected LayoutFinder layoutFinder;
972            @BeanReference(type = com.liferay.portal.service.LayoutSetLocalService.class)
973            protected com.liferay.portal.service.LayoutSetLocalService layoutSetLocalService;
974            @BeanReference(type = com.liferay.portal.service.LayoutSetService.class)
975            protected com.liferay.portal.service.LayoutSetService layoutSetService;
976            @BeanReference(type = LayoutSetPersistence.class)
977            protected LayoutSetPersistence layoutSetPersistence;
978            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
979            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
980            @BeanReference(type = com.liferay.portal.service.SystemEventLocalService.class)
981            protected com.liferay.portal.service.SystemEventLocalService systemEventLocalService;
982            @BeanReference(type = SystemEventPersistence.class)
983            protected SystemEventPersistence systemEventPersistence;
984            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
985            protected com.liferay.portal.service.UserLocalService userLocalService;
986            @BeanReference(type = com.liferay.portal.service.UserService.class)
987            protected com.liferay.portal.service.UserService userService;
988            @BeanReference(type = UserPersistence.class)
989            protected UserPersistence userPersistence;
990            @BeanReference(type = UserFinder.class)
991            protected UserFinder userFinder;
992            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
993            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
994            private String _beanIdentifier;
995    }