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