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