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