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