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