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