001    /**
002     * Copyright (c) 2000-present 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;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.ServiceWrapper;
020    
021    /**
022     * Provides a wrapper for {@link MDRRuleGroupInstanceLocalService}.
023     *
024     * @author Edward C. Han
025     * @see MDRRuleGroupInstanceLocalService
026     * @generated
027     */
028    @ProviderType
029    public class MDRRuleGroupInstanceLocalServiceWrapper
030            implements MDRRuleGroupInstanceLocalService,
031                    ServiceWrapper<MDRRuleGroupInstanceLocalService> {
032            public MDRRuleGroupInstanceLocalServiceWrapper(
033                    MDRRuleGroupInstanceLocalService mdrRuleGroupInstanceLocalService) {
034                    _mdrRuleGroupInstanceLocalService = mdrRuleGroupInstanceLocalService;
035            }
036    
037            /**
038            * Adds the m d r rule group instance to the database. Also notifies the appropriate model listeners.
039            *
040            * @param mdrRuleGroupInstance the m d r rule group instance
041            * @return the m d r rule group instance that was added
042            */
043            @Override
044            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance addMDRRuleGroupInstance(
045                    com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance mdrRuleGroupInstance) {
046                    return _mdrRuleGroupInstanceLocalService.addMDRRuleGroupInstance(mdrRuleGroupInstance);
047            }
048    
049            @Override
050            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance addRuleGroupInstance(
051                    long groupId, java.lang.String className, long classPK,
052                    long ruleGroupId, int priority,
053                    com.liferay.portal.service.ServiceContext serviceContext)
054                    throws com.liferay.portal.kernel.exception.PortalException {
055                    return _mdrRuleGroupInstanceLocalService.addRuleGroupInstance(groupId,
056                            className, classPK, ruleGroupId, priority, serviceContext);
057            }
058    
059            @Override
060            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance addRuleGroupInstance(
061                    long groupId, java.lang.String className, long classPK,
062                    long ruleGroupId,
063                    com.liferay.portal.service.ServiceContext serviceContext)
064                    throws com.liferay.portal.kernel.exception.PortalException {
065                    return _mdrRuleGroupInstanceLocalService.addRuleGroupInstance(groupId,
066                            className, classPK, ruleGroupId, serviceContext);
067            }
068    
069            /**
070            * 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.
071            *
072            * @param ruleGroupInstanceId the primary key for the new m d r rule group instance
073            * @return the new m d r rule group instance
074            */
075            @Override
076            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance createMDRRuleGroupInstance(
077                    long ruleGroupInstanceId) {
078                    return _mdrRuleGroupInstanceLocalService.createMDRRuleGroupInstance(ruleGroupInstanceId);
079            }
080    
081            @Override
082            public void deleteGroupRuleGroupInstances(long groupId) {
083                    _mdrRuleGroupInstanceLocalService.deleteGroupRuleGroupInstances(groupId);
084            }
085    
086            /**
087            * Deletes the m d r rule group instance from the database. Also notifies the appropriate model listeners.
088            *
089            * @param mdrRuleGroupInstance the m d r rule group instance
090            * @return the m d r rule group instance that was removed
091            */
092            @Override
093            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance deleteMDRRuleGroupInstance(
094                    com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance mdrRuleGroupInstance) {
095                    return _mdrRuleGroupInstanceLocalService.deleteMDRRuleGroupInstance(mdrRuleGroupInstance);
096            }
097    
098            /**
099            * Deletes the m d r rule group instance with the primary key from the database. Also notifies the appropriate model listeners.
100            *
101            * @param ruleGroupInstanceId the primary key of the m d r rule group instance
102            * @return the m d r rule group instance that was removed
103            * @throws PortalException if a m d r rule group instance with the primary key could not be found
104            */
105            @Override
106            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance deleteMDRRuleGroupInstance(
107                    long ruleGroupInstanceId)
108                    throws com.liferay.portal.kernel.exception.PortalException {
109                    return _mdrRuleGroupInstanceLocalService.deleteMDRRuleGroupInstance(ruleGroupInstanceId);
110            }
111    
112            /**
113            * @throws PortalException
114            */
115            @Override
116            public com.liferay.portal.model.PersistedModel deletePersistedModel(
117                    com.liferay.portal.model.PersistedModel persistedModel)
118                    throws com.liferay.portal.kernel.exception.PortalException {
119                    return _mdrRuleGroupInstanceLocalService.deletePersistedModel(persistedModel);
120            }
121    
122            @Override
123            public void deleteRuleGroupInstance(
124                    com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance ruleGroupInstance) {
125                    _mdrRuleGroupInstanceLocalService.deleteRuleGroupInstance(ruleGroupInstance);
126            }
127    
128            @Override
129            public void deleteRuleGroupInstance(long ruleGroupInstanceId) {
130                    _mdrRuleGroupInstanceLocalService.deleteRuleGroupInstance(ruleGroupInstanceId);
131            }
132    
133            @Override
134            public void deleteRuleGroupInstances(long ruleGroupId) {
135                    _mdrRuleGroupInstanceLocalService.deleteRuleGroupInstances(ruleGroupId);
136            }
137    
138            @Override
139            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
140                    return _mdrRuleGroupInstanceLocalService.dynamicQuery();
141            }
142    
143            /**
144            * Performs a dynamic query on the database and returns the matching rows.
145            *
146            * @param dynamicQuery the dynamic query
147            * @return the matching rows
148            */
149            @Override
150            public <T> java.util.List<T> dynamicQuery(
151                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
152                    return _mdrRuleGroupInstanceLocalService.dynamicQuery(dynamicQuery);
153            }
154    
155            /**
156            * Performs a dynamic query on the database and returns a range of the matching rows.
157            *
158            * <p>
159            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.mobiledevicerules.model.impl.MDRRuleGroupInstanceModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
160            * </p>
161            *
162            * @param dynamicQuery the dynamic query
163            * @param start the lower bound of the range of model instances
164            * @param end the upper bound of the range of model instances (not inclusive)
165            * @return the range of matching rows
166            */
167            @Override
168            public <T> java.util.List<T> dynamicQuery(
169                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
170                    int end) {
171                    return _mdrRuleGroupInstanceLocalService.dynamicQuery(dynamicQuery,
172                            start, end);
173            }
174    
175            /**
176            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
177            *
178            * <p>
179            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.mobiledevicerules.model.impl.MDRRuleGroupInstanceModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
180            * </p>
181            *
182            * @param dynamicQuery the dynamic query
183            * @param start the lower bound of the range of model instances
184            * @param end the upper bound of the range of model instances (not inclusive)
185            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
186            * @return the ordered range of matching rows
187            */
188            @Override
189            public <T> java.util.List<T> dynamicQuery(
190                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
191                    int end,
192                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
193                    return _mdrRuleGroupInstanceLocalService.dynamicQuery(dynamicQuery,
194                            start, end, orderByComparator);
195            }
196    
197            /**
198            * Returns the number of rows matching the dynamic query.
199            *
200            * @param dynamicQuery the dynamic query
201            * @return the number of rows matching the dynamic query
202            */
203            @Override
204            public long dynamicQueryCount(
205                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
206                    return _mdrRuleGroupInstanceLocalService.dynamicQueryCount(dynamicQuery);
207            }
208    
209            /**
210            * Returns the number of rows matching the dynamic query.
211            *
212            * @param dynamicQuery the dynamic query
213            * @param projection the projection to apply to the query
214            * @return the number of rows matching the dynamic query
215            */
216            @Override
217            public long dynamicQueryCount(
218                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
219                    com.liferay.portal.kernel.dao.orm.Projection projection) {
220                    return _mdrRuleGroupInstanceLocalService.dynamicQueryCount(dynamicQuery,
221                            projection);
222            }
223    
224            @Override
225            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchMDRRuleGroupInstance(
226                    long ruleGroupInstanceId) {
227                    return _mdrRuleGroupInstanceLocalService.fetchMDRRuleGroupInstance(ruleGroupInstanceId);
228            }
229    
230            /**
231            * Returns the m d r rule group instance matching the UUID and group.
232            *
233            * @param uuid the m d r rule group instance's UUID
234            * @param groupId the primary key of the group
235            * @return the matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found
236            */
237            @Override
238            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchMDRRuleGroupInstanceByUuidAndGroupId(
239                    java.lang.String uuid, long groupId) {
240                    return _mdrRuleGroupInstanceLocalService.fetchMDRRuleGroupInstanceByUuidAndGroupId(uuid,
241                            groupId);
242            }
243    
244            @Override
245            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchRuleGroupInstance(
246                    java.lang.String className, long classPK, long ruleGroupId) {
247                    return _mdrRuleGroupInstanceLocalService.fetchRuleGroupInstance(className,
248                            classPK, ruleGroupId);
249            }
250    
251            @Override
252            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchRuleGroupInstance(
253                    long ruleGroupInstanceId) {
254                    return _mdrRuleGroupInstanceLocalService.fetchRuleGroupInstance(ruleGroupInstanceId);
255            }
256    
257            @Override
258            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
259                    return _mdrRuleGroupInstanceLocalService.getActionableDynamicQuery();
260            }
261    
262            /**
263            * Returns the Spring bean ID for this bean.
264            *
265            * @return the Spring bean ID for this bean
266            */
267            @Override
268            public java.lang.String getBeanIdentifier() {
269                    return _mdrRuleGroupInstanceLocalService.getBeanIdentifier();
270            }
271    
272            @Override
273            public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
274                    com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext) {
275                    return _mdrRuleGroupInstanceLocalService.getExportActionableDynamicQuery(portletDataContext);
276            }
277    
278            /**
279            * Returns the m d r rule group instance with the primary key.
280            *
281            * @param ruleGroupInstanceId the primary key of the m d r rule group instance
282            * @return the m d r rule group instance
283            * @throws PortalException if a m d r rule group instance with the primary key could not be found
284            */
285            @Override
286            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance getMDRRuleGroupInstance(
287                    long ruleGroupInstanceId)
288                    throws com.liferay.portal.kernel.exception.PortalException {
289                    return _mdrRuleGroupInstanceLocalService.getMDRRuleGroupInstance(ruleGroupInstanceId);
290            }
291    
292            /**
293            * Returns the m d r rule group instance matching the UUID and group.
294            *
295            * @param uuid the m d r rule group instance's UUID
296            * @param groupId the primary key of the group
297            * @return the matching m d r rule group instance
298            * @throws PortalException if a matching m d r rule group instance could not be found
299            */
300            @Override
301            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance getMDRRuleGroupInstanceByUuidAndGroupId(
302                    java.lang.String uuid, long groupId)
303                    throws com.liferay.portal.kernel.exception.PortalException {
304                    return _mdrRuleGroupInstanceLocalService.getMDRRuleGroupInstanceByUuidAndGroupId(uuid,
305                            groupId);
306            }
307    
308            /**
309            * Returns a range of all the m d r rule group instances.
310            *
311            * <p>
312            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.mobiledevicerules.model.impl.MDRRuleGroupInstanceModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
313            * </p>
314            *
315            * @param start the lower bound of the range of m d r rule group instances
316            * @param end the upper bound of the range of m d r rule group instances (not inclusive)
317            * @return the range of m d r rule group instances
318            */
319            @Override
320            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> getMDRRuleGroupInstances(
321                    int start, int end) {
322                    return _mdrRuleGroupInstanceLocalService.getMDRRuleGroupInstances(start,
323                            end);
324            }
325    
326            /**
327            * Returns all the m d r rule group instances matching the UUID and company.
328            *
329            * @param uuid the UUID of the m d r rule group instances
330            * @param companyId the primary key of the company
331            * @return the matching m d r rule group instances, or an empty list if no matches were found
332            */
333            @Override
334            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> getMDRRuleGroupInstancesByUuidAndCompanyId(
335                    java.lang.String uuid, long companyId) {
336                    return _mdrRuleGroupInstanceLocalService.getMDRRuleGroupInstancesByUuidAndCompanyId(uuid,
337                            companyId);
338            }
339    
340            /**
341            * Returns a range of m d r rule group instances matching the UUID and company.
342            *
343            * @param uuid the UUID of the m d r rule group instances
344            * @param companyId the primary key of the company
345            * @param start the lower bound of the range of m d r rule group instances
346            * @param end the upper bound of the range of m d r rule group instances (not inclusive)
347            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
348            * @return the range of matching m d r rule group instances, or an empty list if no matches were found
349            */
350            @Override
351            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> getMDRRuleGroupInstancesByUuidAndCompanyId(
352                    java.lang.String uuid, long companyId, int start, int end,
353                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator) {
354                    return _mdrRuleGroupInstanceLocalService.getMDRRuleGroupInstancesByUuidAndCompanyId(uuid,
355                            companyId, start, end, orderByComparator);
356            }
357    
358            /**
359            * Returns the number of m d r rule group instances.
360            *
361            * @return the number of m d r rule group instances
362            */
363            @Override
364            public int getMDRRuleGroupInstancesCount() {
365                    return _mdrRuleGroupInstanceLocalService.getMDRRuleGroupInstancesCount();
366            }
367    
368            @Override
369            public com.liferay.portal.model.PersistedModel getPersistedModel(
370                    java.io.Serializable primaryKeyObj)
371                    throws com.liferay.portal.kernel.exception.PortalException {
372                    return _mdrRuleGroupInstanceLocalService.getPersistedModel(primaryKeyObj);
373            }
374    
375            @Override
376            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance getRuleGroupInstance(
377                    java.lang.String className, long classPK, long ruleGroupId)
378                    throws com.liferay.portal.kernel.exception.PortalException {
379                    return _mdrRuleGroupInstanceLocalService.getRuleGroupInstance(className,
380                            classPK, ruleGroupId);
381            }
382    
383            @Override
384            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance getRuleGroupInstance(
385                    long ruleGroupInstanceId)
386                    throws com.liferay.portal.kernel.exception.PortalException {
387                    return _mdrRuleGroupInstanceLocalService.getRuleGroupInstance(ruleGroupInstanceId);
388            }
389    
390            @Override
391            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> getRuleGroupInstances(
392                    java.lang.String className, long classPK) {
393                    return _mdrRuleGroupInstanceLocalService.getRuleGroupInstances(className,
394                            classPK);
395            }
396    
397            @Override
398            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> getRuleGroupInstances(
399                    java.lang.String className, long classPK, int start, int end,
400                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> orderByComparator) {
401                    return _mdrRuleGroupInstanceLocalService.getRuleGroupInstances(className,
402                            classPK, start, end, orderByComparator);
403            }
404    
405            @Override
406            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> getRuleGroupInstances(
407                    long ruleGroupId) {
408                    return _mdrRuleGroupInstanceLocalService.getRuleGroupInstances(ruleGroupId);
409            }
410    
411            @Override
412            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> getRuleGroupInstances(
413                    long ruleGroupId, int start, int end) {
414                    return _mdrRuleGroupInstanceLocalService.getRuleGroupInstances(ruleGroupId,
415                            start, end);
416            }
417    
418            @Override
419            public int getRuleGroupInstancesCount(java.lang.String className,
420                    long classPK) {
421                    return _mdrRuleGroupInstanceLocalService.getRuleGroupInstancesCount(className,
422                            classPK);
423            }
424    
425            @Override
426            public int getRuleGroupInstancesCount(long ruleGroupId) {
427                    return _mdrRuleGroupInstanceLocalService.getRuleGroupInstancesCount(ruleGroupId);
428            }
429    
430            /**
431            * Sets the Spring bean ID for this bean.
432            *
433            * @param beanIdentifier the Spring bean ID for this bean
434            */
435            @Override
436            public void setBeanIdentifier(java.lang.String beanIdentifier) {
437                    _mdrRuleGroupInstanceLocalService.setBeanIdentifier(beanIdentifier);
438            }
439    
440            /**
441            * 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.
442            *
443            * @param mdrRuleGroupInstance the m d r rule group instance
444            * @return the m d r rule group instance that was updated
445            */
446            @Override
447            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance updateMDRRuleGroupInstance(
448                    com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance mdrRuleGroupInstance) {
449                    return _mdrRuleGroupInstanceLocalService.updateMDRRuleGroupInstance(mdrRuleGroupInstance);
450            }
451    
452            @Override
453            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance updateRuleGroupInstance(
454                    long ruleGroupInstanceId, int priority)
455                    throws com.liferay.portal.kernel.exception.PortalException {
456                    return _mdrRuleGroupInstanceLocalService.updateRuleGroupInstance(ruleGroupInstanceId,
457                            priority);
458            }
459    
460            /**
461             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
462             */
463            @Deprecated
464            public MDRRuleGroupInstanceLocalService getWrappedMDRRuleGroupInstanceLocalService() {
465                    return _mdrRuleGroupInstanceLocalService;
466            }
467    
468            /**
469             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
470             */
471            @Deprecated
472            public void setWrappedMDRRuleGroupInstanceLocalService(
473                    MDRRuleGroupInstanceLocalService mdrRuleGroupInstanceLocalService) {
474                    _mdrRuleGroupInstanceLocalService = mdrRuleGroupInstanceLocalService;
475            }
476    
477            @Override
478            public MDRRuleGroupInstanceLocalService getWrappedService() {
479                    return _mdrRuleGroupInstanceLocalService;
480            }
481    
482            @Override
483            public void setWrappedService(
484                    MDRRuleGroupInstanceLocalService mdrRuleGroupInstanceLocalService) {
485                    _mdrRuleGroupInstanceLocalService = mdrRuleGroupInstanceLocalService;
486            }
487    
488            private MDRRuleGroupInstanceLocalService _mdrRuleGroupInstanceLocalService;
489    }