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;
016    
017    import com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link MDRRuleGroupInstanceLocalService}.
022     * </p>
023     *
024     * @author    Edward C. Han
025     * @see       MDRRuleGroupInstanceLocalService
026     * @generated
027     */
028    public class MDRRuleGroupInstanceLocalServiceWrapper
029            implements MDRRuleGroupInstanceLocalService,
030                    ServiceWrapper<MDRRuleGroupInstanceLocalService> {
031            public MDRRuleGroupInstanceLocalServiceWrapper(
032                    MDRRuleGroupInstanceLocalService mdrRuleGroupInstanceLocalService) {
033                    _mdrRuleGroupInstanceLocalService = mdrRuleGroupInstanceLocalService;
034            }
035    
036            /**
037            * Adds the m d r rule group instance to the database. Also notifies the appropriate model listeners.
038            *
039            * @param mdrRuleGroupInstance the m d r rule group instance
040            * @return the m d r rule group instance that was added
041            * @throws SystemException if a system exception occurred
042            */
043            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance addMDRRuleGroupInstance(
044                    com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance mdrRuleGroupInstance)
045                    throws com.liferay.portal.kernel.exception.SystemException {
046                    return _mdrRuleGroupInstanceLocalService.addMDRRuleGroupInstance(mdrRuleGroupInstance);
047            }
048    
049            /**
050            * 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.
051            *
052            * @param ruleGroupInstanceId the primary key for the new m d r rule group instance
053            * @return the new m d r rule group instance
054            */
055            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance createMDRRuleGroupInstance(
056                    long ruleGroupInstanceId) {
057                    return _mdrRuleGroupInstanceLocalService.createMDRRuleGroupInstance(ruleGroupInstanceId);
058            }
059    
060            /**
061            * Deletes the m d r rule group instance with the primary key from the database. Also notifies the appropriate model listeners.
062            *
063            * @param ruleGroupInstanceId the primary key of the m d r rule group instance
064            * @return the m d r rule group instance that was removed
065            * @throws PortalException if a m d r rule group instance with the primary key could not be found
066            * @throws SystemException if a system exception occurred
067            */
068            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance deleteMDRRuleGroupInstance(
069                    long ruleGroupInstanceId)
070                    throws com.liferay.portal.kernel.exception.PortalException,
071                            com.liferay.portal.kernel.exception.SystemException {
072                    return _mdrRuleGroupInstanceLocalService.deleteMDRRuleGroupInstance(ruleGroupInstanceId);
073            }
074    
075            /**
076            * Deletes the m d r rule group instance from the database. Also notifies the appropriate model listeners.
077            *
078            * @param mdrRuleGroupInstance the m d r rule group instance
079            * @return the m d r rule group instance that was removed
080            * @throws SystemException if a system exception occurred
081            */
082            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance deleteMDRRuleGroupInstance(
083                    com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance mdrRuleGroupInstance)
084                    throws com.liferay.portal.kernel.exception.SystemException {
085                    return _mdrRuleGroupInstanceLocalService.deleteMDRRuleGroupInstance(mdrRuleGroupInstance);
086            }
087    
088            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
089                    return _mdrRuleGroupInstanceLocalService.dynamicQuery();
090            }
091    
092            /**
093            * Performs a dynamic query on the database and returns the matching rows.
094            *
095            * @param dynamicQuery the dynamic query
096            * @return the matching rows
097            * @throws SystemException if a system exception occurred
098            */
099            @SuppressWarnings("rawtypes")
100            public java.util.List dynamicQuery(
101                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
102                    throws com.liferay.portal.kernel.exception.SystemException {
103                    return _mdrRuleGroupInstanceLocalService.dynamicQuery(dynamicQuery);
104            }
105    
106            /**
107            * Performs a dynamic query on the database and returns a range of the matching rows.
108            *
109            * <p>
110            * 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.
111            * </p>
112            *
113            * @param dynamicQuery the dynamic query
114            * @param start the lower bound of the range of model instances
115            * @param end the upper bound of the range of model instances (not inclusive)
116            * @return the range of matching rows
117            * @throws SystemException if a system exception occurred
118            */
119            @SuppressWarnings("rawtypes")
120            public java.util.List dynamicQuery(
121                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
122                    int end) throws com.liferay.portal.kernel.exception.SystemException {
123                    return _mdrRuleGroupInstanceLocalService.dynamicQuery(dynamicQuery,
124                            start, end);
125            }
126    
127            /**
128            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
129            *
130            * <p>
131            * 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.
132            * </p>
133            *
134            * @param dynamicQuery the dynamic query
135            * @param start the lower bound of the range of model instances
136            * @param end the upper bound of the range of model instances (not inclusive)
137            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
138            * @return the ordered range of matching rows
139            * @throws SystemException if a system exception occurred
140            */
141            @SuppressWarnings("rawtypes")
142            public java.util.List dynamicQuery(
143                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
144                    int end,
145                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
146                    throws com.liferay.portal.kernel.exception.SystemException {
147                    return _mdrRuleGroupInstanceLocalService.dynamicQuery(dynamicQuery,
148                            start, end, orderByComparator);
149            }
150    
151            /**
152            * Returns the number of rows that match the dynamic query.
153            *
154            * @param dynamicQuery the dynamic query
155            * @return the number of rows that match the dynamic query
156            * @throws SystemException if a system exception occurred
157            */
158            public long dynamicQueryCount(
159                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
160                    throws com.liferay.portal.kernel.exception.SystemException {
161                    return _mdrRuleGroupInstanceLocalService.dynamicQueryCount(dynamicQuery);
162            }
163    
164            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchMDRRuleGroupInstance(
165                    long ruleGroupInstanceId)
166                    throws com.liferay.portal.kernel.exception.SystemException {
167                    return _mdrRuleGroupInstanceLocalService.fetchMDRRuleGroupInstance(ruleGroupInstanceId);
168            }
169    
170            /**
171            * Returns the m d r rule group instance with the primary key.
172            *
173            * @param ruleGroupInstanceId the primary key of the m d r rule group instance
174            * @return the m d r rule group instance
175            * @throws PortalException if a m d r rule group instance with the primary key could not be found
176            * @throws SystemException if a system exception occurred
177            */
178            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance getMDRRuleGroupInstance(
179                    long ruleGroupInstanceId)
180                    throws com.liferay.portal.kernel.exception.PortalException,
181                            com.liferay.portal.kernel.exception.SystemException {
182                    return _mdrRuleGroupInstanceLocalService.getMDRRuleGroupInstance(ruleGroupInstanceId);
183            }
184    
185            public com.liferay.portal.model.PersistedModel getPersistedModel(
186                    java.io.Serializable primaryKeyObj)
187                    throws com.liferay.portal.kernel.exception.PortalException,
188                            com.liferay.portal.kernel.exception.SystemException {
189                    return _mdrRuleGroupInstanceLocalService.getPersistedModel(primaryKeyObj);
190            }
191    
192            /**
193            * Returns the m d r rule group instance with the UUID in the group.
194            *
195            * @param uuid the UUID of m d r rule group instance
196            * @param groupId the group id of the m d r rule group instance
197            * @return the m d r rule group instance
198            * @throws PortalException if a m d r rule group instance with the UUID in the group could not be found
199            * @throws SystemException if a system exception occurred
200            */
201            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance getMDRRuleGroupInstanceByUuidAndGroupId(
202                    java.lang.String uuid, long groupId)
203                    throws com.liferay.portal.kernel.exception.PortalException,
204                            com.liferay.portal.kernel.exception.SystemException {
205                    return _mdrRuleGroupInstanceLocalService.getMDRRuleGroupInstanceByUuidAndGroupId(uuid,
206                            groupId);
207            }
208    
209            /**
210            * Returns a range of all the m d r rule group instances.
211            *
212            * <p>
213            * 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.
214            * </p>
215            *
216            * @param start the lower bound of the range of m d r rule group instances
217            * @param end the upper bound of the range of m d r rule group instances (not inclusive)
218            * @return the range of m d r rule group instances
219            * @throws SystemException if a system exception occurred
220            */
221            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> getMDRRuleGroupInstances(
222                    int start, int end)
223                    throws com.liferay.portal.kernel.exception.SystemException {
224                    return _mdrRuleGroupInstanceLocalService.getMDRRuleGroupInstances(start,
225                            end);
226            }
227    
228            /**
229            * Returns the number of m d r rule group instances.
230            *
231            * @return the number of m d r rule group instances
232            * @throws SystemException if a system exception occurred
233            */
234            public int getMDRRuleGroupInstancesCount()
235                    throws com.liferay.portal.kernel.exception.SystemException {
236                    return _mdrRuleGroupInstanceLocalService.getMDRRuleGroupInstancesCount();
237            }
238    
239            /**
240            * 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.
241            *
242            * @param mdrRuleGroupInstance the m d r rule group instance
243            * @return the m d r rule group instance that was updated
244            * @throws SystemException if a system exception occurred
245            */
246            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance updateMDRRuleGroupInstance(
247                    com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance mdrRuleGroupInstance)
248                    throws com.liferay.portal.kernel.exception.SystemException {
249                    return _mdrRuleGroupInstanceLocalService.updateMDRRuleGroupInstance(mdrRuleGroupInstance);
250            }
251    
252            /**
253            * Returns the Spring bean ID for this bean.
254            *
255            * @return the Spring bean ID for this bean
256            */
257            public java.lang.String getBeanIdentifier() {
258                    return _mdrRuleGroupInstanceLocalService.getBeanIdentifier();
259            }
260    
261            /**
262            * Sets the Spring bean ID for this bean.
263            *
264            * @param beanIdentifier the Spring bean ID for this bean
265            */
266            public void setBeanIdentifier(java.lang.String beanIdentifier) {
267                    _mdrRuleGroupInstanceLocalService.setBeanIdentifier(beanIdentifier);
268            }
269    
270            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance addRuleGroupInstance(
271                    long groupId, java.lang.String className, long classPK,
272                    long ruleGroupId, int priority,
273                    com.liferay.portal.service.ServiceContext serviceContext)
274                    throws com.liferay.portal.kernel.exception.PortalException,
275                            com.liferay.portal.kernel.exception.SystemException {
276                    return _mdrRuleGroupInstanceLocalService.addRuleGroupInstance(groupId,
277                            className, classPK, ruleGroupId, priority, serviceContext);
278            }
279    
280            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance addRuleGroupInstance(
281                    long groupId, java.lang.String className, long classPK,
282                    long ruleGroupId,
283                    com.liferay.portal.service.ServiceContext serviceContext)
284                    throws com.liferay.portal.kernel.exception.PortalException,
285                            com.liferay.portal.kernel.exception.SystemException {
286                    return _mdrRuleGroupInstanceLocalService.addRuleGroupInstance(groupId,
287                            className, classPK, ruleGroupId, serviceContext);
288            }
289    
290            public void deleteGroupRuleGroupInstances(long groupId)
291                    throws com.liferay.portal.kernel.exception.SystemException {
292                    _mdrRuleGroupInstanceLocalService.deleteGroupRuleGroupInstances(groupId);
293            }
294    
295            public void deleteRuleGroupInstance(long ruleGroupInstanceId)
296                    throws com.liferay.portal.kernel.exception.SystemException {
297                    _mdrRuleGroupInstanceLocalService.deleteRuleGroupInstance(ruleGroupInstanceId);
298            }
299    
300            public void deleteRuleGroupInstance(
301                    com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance ruleGroupInstance)
302                    throws com.liferay.portal.kernel.exception.SystemException {
303                    _mdrRuleGroupInstanceLocalService.deleteRuleGroupInstance(ruleGroupInstance);
304            }
305    
306            public void deleteRuleGroupInstances(long ruleGroupId)
307                    throws com.liferay.portal.kernel.exception.SystemException {
308                    _mdrRuleGroupInstanceLocalService.deleteRuleGroupInstances(ruleGroupId);
309            }
310    
311            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchRuleGroupInstance(
312                    long ruleGroupInstanceId)
313                    throws com.liferay.portal.kernel.exception.SystemException {
314                    return _mdrRuleGroupInstanceLocalService.fetchRuleGroupInstance(ruleGroupInstanceId);
315            }
316    
317            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchRuleGroupInstance(
318                    java.lang.String className, long classPK, long ruleGroupId)
319                    throws com.liferay.portal.kernel.exception.SystemException {
320                    return _mdrRuleGroupInstanceLocalService.fetchRuleGroupInstance(className,
321                            classPK, ruleGroupId);
322            }
323    
324            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance getRuleGroupInstance(
325                    long ruleGroupInstanceId)
326                    throws com.liferay.portal.kernel.exception.PortalException,
327                            com.liferay.portal.kernel.exception.SystemException {
328                    return _mdrRuleGroupInstanceLocalService.getRuleGroupInstance(ruleGroupInstanceId);
329            }
330    
331            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance getRuleGroupInstance(
332                    java.lang.String className, long classPK, long ruleGroupId)
333                    throws com.liferay.portal.kernel.exception.PortalException,
334                            com.liferay.portal.kernel.exception.SystemException {
335                    return _mdrRuleGroupInstanceLocalService.getRuleGroupInstance(className,
336                            classPK, ruleGroupId);
337            }
338    
339            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> getRuleGroupInstances(
340                    long ruleGroupId)
341                    throws com.liferay.portal.kernel.exception.SystemException {
342                    return _mdrRuleGroupInstanceLocalService.getRuleGroupInstances(ruleGroupId);
343            }
344    
345            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> getRuleGroupInstances(
346                    long ruleGroupId, int start, int end)
347                    throws com.liferay.portal.kernel.exception.SystemException {
348                    return _mdrRuleGroupInstanceLocalService.getRuleGroupInstances(ruleGroupId,
349                            start, end);
350            }
351    
352            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> getRuleGroupInstances(
353                    java.lang.String className, long classPK)
354                    throws com.liferay.portal.kernel.exception.SystemException {
355                    return _mdrRuleGroupInstanceLocalService.getRuleGroupInstances(className,
356                            classPK);
357            }
358    
359            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> getRuleGroupInstances(
360                    java.lang.String className, long classPK, int start, int end,
361                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
362                    throws com.liferay.portal.kernel.exception.SystemException {
363                    return _mdrRuleGroupInstanceLocalService.getRuleGroupInstances(className,
364                            classPK, start, end, orderByComparator);
365            }
366    
367            public int getRuleGroupInstancesCount(long ruleGroupId)
368                    throws com.liferay.portal.kernel.exception.SystemException {
369                    return _mdrRuleGroupInstanceLocalService.getRuleGroupInstancesCount(ruleGroupId);
370            }
371    
372            public int getRuleGroupInstancesCount(java.lang.String className,
373                    long classPK)
374                    throws com.liferay.portal.kernel.exception.SystemException {
375                    return _mdrRuleGroupInstanceLocalService.getRuleGroupInstancesCount(className,
376                            classPK);
377            }
378    
379            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance updateRuleGroupInstance(
380                    long ruleGroupInstanceId, int priority)
381                    throws com.liferay.portal.kernel.exception.PortalException,
382                            com.liferay.portal.kernel.exception.SystemException {
383                    return _mdrRuleGroupInstanceLocalService.updateRuleGroupInstance(ruleGroupInstanceId,
384                            priority);
385            }
386    
387            /**
388             * @deprecated Renamed to {@link #getWrappedService}
389             */
390            public MDRRuleGroupInstanceLocalService getWrappedMDRRuleGroupInstanceLocalService() {
391                    return _mdrRuleGroupInstanceLocalService;
392            }
393    
394            /**
395             * @deprecated Renamed to {@link #setWrappedService}
396             */
397            public void setWrappedMDRRuleGroupInstanceLocalService(
398                    MDRRuleGroupInstanceLocalService mdrRuleGroupInstanceLocalService) {
399                    _mdrRuleGroupInstanceLocalService = mdrRuleGroupInstanceLocalService;
400            }
401    
402            public MDRRuleGroupInstanceLocalService getWrappedService() {
403                    return _mdrRuleGroupInstanceLocalService;
404            }
405    
406            public void setWrappedService(
407                    MDRRuleGroupInstanceLocalService mdrRuleGroupInstanceLocalService) {
408                    _mdrRuleGroupInstanceLocalService = mdrRuleGroupInstanceLocalService;
409            }
410    
411            private MDRRuleGroupInstanceLocalService _mdrRuleGroupInstanceLocalService;
412    }