001    /**
002     * Copyright (c) 2000-2013 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            * 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.
254            *
255            * @param mdrRuleGroupInstance the m d r rule group instance
256            * @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.
257            * @return the m d r rule group instance that was updated
258            * @throws SystemException if a system exception occurred
259            */
260            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance updateMDRRuleGroupInstance(
261                    com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance mdrRuleGroupInstance,
262                    boolean merge)
263                    throws com.liferay.portal.kernel.exception.SystemException {
264                    return _mdrRuleGroupInstanceLocalService.updateMDRRuleGroupInstance(mdrRuleGroupInstance,
265                            merge);
266            }
267    
268            /**
269            * Returns the Spring bean ID for this bean.
270            *
271            * @return the Spring bean ID for this bean
272            */
273            public java.lang.String getBeanIdentifier() {
274                    return _mdrRuleGroupInstanceLocalService.getBeanIdentifier();
275            }
276    
277            /**
278            * Sets the Spring bean ID for this bean.
279            *
280            * @param beanIdentifier the Spring bean ID for this bean
281            */
282            public void setBeanIdentifier(java.lang.String beanIdentifier) {
283                    _mdrRuleGroupInstanceLocalService.setBeanIdentifier(beanIdentifier);
284            }
285    
286            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance addRuleGroupInstance(
287                    long groupId, java.lang.String className, long classPK,
288                    long ruleGroupId, int priority,
289                    com.liferay.portal.service.ServiceContext serviceContext)
290                    throws com.liferay.portal.kernel.exception.PortalException,
291                            com.liferay.portal.kernel.exception.SystemException {
292                    return _mdrRuleGroupInstanceLocalService.addRuleGroupInstance(groupId,
293                            className, classPK, ruleGroupId, priority, serviceContext);
294            }
295    
296            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance addRuleGroupInstance(
297                    long groupId, java.lang.String className, long classPK,
298                    long ruleGroupId,
299                    com.liferay.portal.service.ServiceContext serviceContext)
300                    throws com.liferay.portal.kernel.exception.PortalException,
301                            com.liferay.portal.kernel.exception.SystemException {
302                    return _mdrRuleGroupInstanceLocalService.addRuleGroupInstance(groupId,
303                            className, classPK, ruleGroupId, serviceContext);
304            }
305    
306            public void deleteGroupRuleGroupInstances(long groupId)
307                    throws com.liferay.portal.kernel.exception.SystemException {
308                    _mdrRuleGroupInstanceLocalService.deleteGroupRuleGroupInstances(groupId);
309            }
310    
311            public void deleteRuleGroupInstance(long ruleGroupInstanceId)
312                    throws com.liferay.portal.kernel.exception.SystemException {
313                    _mdrRuleGroupInstanceLocalService.deleteRuleGroupInstance(ruleGroupInstanceId);
314            }
315    
316            public void deleteRuleGroupInstance(
317                    com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance ruleGroupInstance)
318                    throws com.liferay.portal.kernel.exception.SystemException {
319                    _mdrRuleGroupInstanceLocalService.deleteRuleGroupInstance(ruleGroupInstance);
320            }
321    
322            public void deleteRuleGroupInstances(long ruleGroupId)
323                    throws com.liferay.portal.kernel.exception.SystemException {
324                    _mdrRuleGroupInstanceLocalService.deleteRuleGroupInstances(ruleGroupId);
325            }
326    
327            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchRuleGroupInstance(
328                    long ruleGroupInstanceId)
329                    throws com.liferay.portal.kernel.exception.SystemException {
330                    return _mdrRuleGroupInstanceLocalService.fetchRuleGroupInstance(ruleGroupInstanceId);
331            }
332    
333            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchRuleGroupInstance(
334                    java.lang.String className, long classPK, long ruleGroupId)
335                    throws com.liferay.portal.kernel.exception.SystemException {
336                    return _mdrRuleGroupInstanceLocalService.fetchRuleGroupInstance(className,
337                            classPK, ruleGroupId);
338            }
339    
340            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance getRuleGroupInstance(
341                    long ruleGroupInstanceId)
342                    throws com.liferay.portal.kernel.exception.PortalException,
343                            com.liferay.portal.kernel.exception.SystemException {
344                    return _mdrRuleGroupInstanceLocalService.getRuleGroupInstance(ruleGroupInstanceId);
345            }
346    
347            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance getRuleGroupInstance(
348                    java.lang.String className, long classPK, long ruleGroupId)
349                    throws com.liferay.portal.kernel.exception.PortalException,
350                            com.liferay.portal.kernel.exception.SystemException {
351                    return _mdrRuleGroupInstanceLocalService.getRuleGroupInstance(className,
352                            classPK, ruleGroupId);
353            }
354    
355            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> getRuleGroupInstances(
356                    long ruleGroupId)
357                    throws com.liferay.portal.kernel.exception.SystemException {
358                    return _mdrRuleGroupInstanceLocalService.getRuleGroupInstances(ruleGroupId);
359            }
360    
361            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> getRuleGroupInstances(
362                    long ruleGroupId, int start, int end)
363                    throws com.liferay.portal.kernel.exception.SystemException {
364                    return _mdrRuleGroupInstanceLocalService.getRuleGroupInstances(ruleGroupId,
365                            start, end);
366            }
367    
368            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> getRuleGroupInstances(
369                    java.lang.String className, long classPK)
370                    throws com.liferay.portal.kernel.exception.SystemException {
371                    return _mdrRuleGroupInstanceLocalService.getRuleGroupInstances(className,
372                            classPK);
373            }
374    
375            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> getRuleGroupInstances(
376                    java.lang.String className, long classPK, int start, int end,
377                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
378                    throws com.liferay.portal.kernel.exception.SystemException {
379                    return _mdrRuleGroupInstanceLocalService.getRuleGroupInstances(className,
380                            classPK, start, end, orderByComparator);
381            }
382    
383            public int getRuleGroupInstancesCount(long ruleGroupId)
384                    throws com.liferay.portal.kernel.exception.SystemException {
385                    return _mdrRuleGroupInstanceLocalService.getRuleGroupInstancesCount(ruleGroupId);
386            }
387    
388            public int getRuleGroupInstancesCount(java.lang.String className,
389                    long classPK)
390                    throws com.liferay.portal.kernel.exception.SystemException {
391                    return _mdrRuleGroupInstanceLocalService.getRuleGroupInstancesCount(className,
392                            classPK);
393            }
394    
395            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance updateRuleGroupInstance(
396                    long ruleGroupInstanceId, int priority)
397                    throws com.liferay.portal.kernel.exception.PortalException,
398                            com.liferay.portal.kernel.exception.SystemException {
399                    return _mdrRuleGroupInstanceLocalService.updateRuleGroupInstance(ruleGroupInstanceId,
400                            priority);
401            }
402    
403            /**
404             * @deprecated Renamed to {@link #getWrappedService}
405             */
406            public MDRRuleGroupInstanceLocalService getWrappedMDRRuleGroupInstanceLocalService() {
407                    return _mdrRuleGroupInstanceLocalService;
408            }
409    
410            /**
411             * @deprecated Renamed to {@link #setWrappedService}
412             */
413            public void setWrappedMDRRuleGroupInstanceLocalService(
414                    MDRRuleGroupInstanceLocalService mdrRuleGroupInstanceLocalService) {
415                    _mdrRuleGroupInstanceLocalService = mdrRuleGroupInstanceLocalService;
416            }
417    
418            public MDRRuleGroupInstanceLocalService getWrappedService() {
419                    return _mdrRuleGroupInstanceLocalService;
420            }
421    
422            public void setWrappedService(
423                    MDRRuleGroupInstanceLocalService mdrRuleGroupInstanceLocalService) {
424                    _mdrRuleGroupInstanceLocalService = mdrRuleGroupInstanceLocalService;
425            }
426    
427            private MDRRuleGroupInstanceLocalService _mdrRuleGroupInstanceLocalService;
428    }