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