001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portlet.shopping.service;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link ShoppingCouponLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       ShoppingCouponLocalService
024     * @generated
025     */
026    public class ShoppingCouponLocalServiceWrapper
027            implements ShoppingCouponLocalService {
028            public ShoppingCouponLocalServiceWrapper(
029                    ShoppingCouponLocalService shoppingCouponLocalService) {
030                    _shoppingCouponLocalService = shoppingCouponLocalService;
031            }
032    
033            /**
034            * Adds the shopping coupon to the database. Also notifies the appropriate model listeners.
035            *
036            * @param shoppingCoupon the shopping coupon to add
037            * @return the shopping coupon that was added
038            * @throws SystemException if a system exception occurred
039            */
040            public com.liferay.portlet.shopping.model.ShoppingCoupon addShoppingCoupon(
041                    com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon)
042                    throws com.liferay.portal.kernel.exception.SystemException {
043                    return _shoppingCouponLocalService.addShoppingCoupon(shoppingCoupon);
044            }
045    
046            /**
047            * Creates a new shopping coupon with the primary key. Does not add the shopping coupon to the database.
048            *
049            * @param couponId the primary key for the new shopping coupon
050            * @return the new shopping coupon
051            */
052            public com.liferay.portlet.shopping.model.ShoppingCoupon createShoppingCoupon(
053                    long couponId) {
054                    return _shoppingCouponLocalService.createShoppingCoupon(couponId);
055            }
056    
057            /**
058            * Deletes the shopping coupon with the primary key from the database. Also notifies the appropriate model listeners.
059            *
060            * @param couponId the primary key of the shopping coupon to delete
061            * @throws PortalException if a shopping coupon with the primary key could not be found
062            * @throws SystemException if a system exception occurred
063            */
064            public void deleteShoppingCoupon(long couponId)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException {
067                    _shoppingCouponLocalService.deleteShoppingCoupon(couponId);
068            }
069    
070            /**
071            * Deletes the shopping coupon from the database. Also notifies the appropriate model listeners.
072            *
073            * @param shoppingCoupon the shopping coupon to delete
074            * @throws SystemException if a system exception occurred
075            */
076            public void deleteShoppingCoupon(
077                    com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon)
078                    throws com.liferay.portal.kernel.exception.SystemException {
079                    _shoppingCouponLocalService.deleteShoppingCoupon(shoppingCoupon);
080            }
081    
082            /**
083            * Performs a dynamic query on the database and returns the matching rows.
084            *
085            * @param dynamicQuery the dynamic query to search with
086            * @return the matching rows
087            * @throws SystemException if a system exception occurred
088            */
089            @SuppressWarnings("rawtypes")
090            public java.util.List dynamicQuery(
091                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
092                    throws com.liferay.portal.kernel.exception.SystemException {
093                    return _shoppingCouponLocalService.dynamicQuery(dynamicQuery);
094            }
095    
096            /**
097            * Performs a dynamic query on the database and returns a range of the matching rows.
098            *
099            * <p>
100            * 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.
101            * </p>
102            *
103            * @param dynamicQuery the dynamic query to search with
104            * @param start the lower bound of the range of model instances to return
105            * @param end the upper bound of the range of model instances to return (not inclusive)
106            * @return the range of matching rows
107            * @throws SystemException if a system exception occurred
108            */
109            @SuppressWarnings("rawtypes")
110            public java.util.List dynamicQuery(
111                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
112                    int end) throws com.liferay.portal.kernel.exception.SystemException {
113                    return _shoppingCouponLocalService.dynamicQuery(dynamicQuery, start, end);
114            }
115    
116            /**
117            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
118            *
119            * <p>
120            * 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.
121            * </p>
122            *
123            * @param dynamicQuery the dynamic query to search with
124            * @param start the lower bound of the range of model instances to return
125            * @param end the upper bound of the range of model instances to return (not inclusive)
126            * @param orderByComparator the comparator to order the results by
127            * @return the ordered range of matching rows
128            * @throws SystemException if a system exception occurred
129            */
130            @SuppressWarnings("rawtypes")
131            public java.util.List dynamicQuery(
132                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
133                    int end,
134                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135                    throws com.liferay.portal.kernel.exception.SystemException {
136                    return _shoppingCouponLocalService.dynamicQuery(dynamicQuery, start,
137                            end, orderByComparator);
138            }
139    
140            /**
141            * Counts the number of rows that match the dynamic query.
142            *
143            * @param dynamicQuery the dynamic query to search with
144            * @return the number of rows that match the dynamic query
145            * @throws SystemException if a system exception occurred
146            */
147            public long dynamicQueryCount(
148                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
149                    throws com.liferay.portal.kernel.exception.SystemException {
150                    return _shoppingCouponLocalService.dynamicQueryCount(dynamicQuery);
151            }
152    
153            /**
154            * Gets the shopping coupon with the primary key.
155            *
156            * @param couponId the primary key of the shopping coupon to get
157            * @return the shopping coupon
158            * @throws PortalException if a shopping coupon with the primary key could not be found
159            * @throws SystemException if a system exception occurred
160            */
161            public com.liferay.portlet.shopping.model.ShoppingCoupon getShoppingCoupon(
162                    long couponId)
163                    throws com.liferay.portal.kernel.exception.PortalException,
164                            com.liferay.portal.kernel.exception.SystemException {
165                    return _shoppingCouponLocalService.getShoppingCoupon(couponId);
166            }
167    
168            /**
169            * Gets a range of all the shopping coupons.
170            *
171            * <p>
172            * 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.
173            * </p>
174            *
175            * @param start the lower bound of the range of shopping coupons to return
176            * @param end the upper bound of the range of shopping coupons to return (not inclusive)
177            * @return the range of shopping coupons
178            * @throws SystemException if a system exception occurred
179            */
180            public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> getShoppingCoupons(
181                    int start, int end)
182                    throws com.liferay.portal.kernel.exception.SystemException {
183                    return _shoppingCouponLocalService.getShoppingCoupons(start, end);
184            }
185    
186            /**
187            * Gets the number of shopping coupons.
188            *
189            * @return the number of shopping coupons
190            * @throws SystemException if a system exception occurred
191            */
192            public int getShoppingCouponsCount()
193                    throws com.liferay.portal.kernel.exception.SystemException {
194                    return _shoppingCouponLocalService.getShoppingCouponsCount();
195            }
196    
197            /**
198            * Updates the shopping coupon in the database. Also notifies the appropriate model listeners.
199            *
200            * @param shoppingCoupon the shopping coupon to update
201            * @return the shopping coupon that was updated
202            * @throws SystemException if a system exception occurred
203            */
204            public com.liferay.portlet.shopping.model.ShoppingCoupon updateShoppingCoupon(
205                    com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon)
206                    throws com.liferay.portal.kernel.exception.SystemException {
207                    return _shoppingCouponLocalService.updateShoppingCoupon(shoppingCoupon);
208            }
209    
210            /**
211            * Updates the shopping coupon in the database. Also notifies the appropriate model listeners.
212            *
213            * @param shoppingCoupon the shopping coupon to update
214            * @param merge whether to merge the shopping coupon 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.
215            * @return the shopping coupon that was updated
216            * @throws SystemException if a system exception occurred
217            */
218            public com.liferay.portlet.shopping.model.ShoppingCoupon updateShoppingCoupon(
219                    com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon,
220                    boolean merge)
221                    throws com.liferay.portal.kernel.exception.SystemException {
222                    return _shoppingCouponLocalService.updateShoppingCoupon(shoppingCoupon,
223                            merge);
224            }
225    
226            public com.liferay.portlet.shopping.model.ShoppingCoupon addCoupon(
227                    long userId, java.lang.String code, boolean autoCode,
228                    java.lang.String name, java.lang.String description,
229                    int startDateMonth, int startDateDay, int startDateYear,
230                    int startDateHour, int startDateMinute, int endDateMonth,
231                    int endDateDay, int endDateYear, int endDateHour, int endDateMinute,
232                    boolean neverExpire, boolean active, java.lang.String limitCategories,
233                    java.lang.String limitSkus, double minOrder, double discount,
234                    java.lang.String discountType,
235                    com.liferay.portal.service.ServiceContext serviceContext)
236                    throws com.liferay.portal.kernel.exception.PortalException,
237                            com.liferay.portal.kernel.exception.SystemException {
238                    return _shoppingCouponLocalService.addCoupon(userId, code, autoCode,
239                            name, description, startDateMonth, startDateDay, startDateYear,
240                            startDateHour, startDateMinute, endDateMonth, endDateDay,
241                            endDateYear, endDateHour, endDateMinute, neverExpire, active,
242                            limitCategories, limitSkus, minOrder, discount, discountType,
243                            serviceContext);
244            }
245    
246            public void deleteCoupon(long couponId)
247                    throws com.liferay.portal.kernel.exception.PortalException,
248                            com.liferay.portal.kernel.exception.SystemException {
249                    _shoppingCouponLocalService.deleteCoupon(couponId);
250            }
251    
252            public void deleteCoupons(long groupId)
253                    throws com.liferay.portal.kernel.exception.SystemException {
254                    _shoppingCouponLocalService.deleteCoupons(groupId);
255            }
256    
257            public com.liferay.portlet.shopping.model.ShoppingCoupon getCoupon(
258                    long couponId)
259                    throws com.liferay.portal.kernel.exception.PortalException,
260                            com.liferay.portal.kernel.exception.SystemException {
261                    return _shoppingCouponLocalService.getCoupon(couponId);
262            }
263    
264            public com.liferay.portlet.shopping.model.ShoppingCoupon getCoupon(
265                    java.lang.String code)
266                    throws com.liferay.portal.kernel.exception.PortalException,
267                            com.liferay.portal.kernel.exception.SystemException {
268                    return _shoppingCouponLocalService.getCoupon(code);
269            }
270    
271            public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> search(
272                    long groupId, long companyId, java.lang.String code, boolean active,
273                    java.lang.String discountType, boolean andOperator, int start, int end)
274                    throws com.liferay.portal.kernel.exception.SystemException {
275                    return _shoppingCouponLocalService.search(groupId, companyId, code,
276                            active, discountType, andOperator, start, end);
277            }
278    
279            public int searchCount(long groupId, long companyId, java.lang.String code,
280                    boolean active, java.lang.String discountType, boolean andOperator)
281                    throws com.liferay.portal.kernel.exception.SystemException {
282                    return _shoppingCouponLocalService.searchCount(groupId, companyId,
283                            code, active, discountType, andOperator);
284            }
285    
286            public com.liferay.portlet.shopping.model.ShoppingCoupon updateCoupon(
287                    long userId, long couponId, java.lang.String name,
288                    java.lang.String description, int startDateMonth, int startDateDay,
289                    int startDateYear, int startDateHour, int startDateMinute,
290                    int endDateMonth, int endDateDay, int endDateYear, int endDateHour,
291                    int endDateMinute, boolean neverExpire, boolean active,
292                    java.lang.String limitCategories, java.lang.String limitSkus,
293                    double minOrder, double discount, java.lang.String discountType,
294                    com.liferay.portal.service.ServiceContext serviceContext)
295                    throws com.liferay.portal.kernel.exception.PortalException,
296                            com.liferay.portal.kernel.exception.SystemException {
297                    return _shoppingCouponLocalService.updateCoupon(userId, couponId, name,
298                            description, startDateMonth, startDateDay, startDateYear,
299                            startDateHour, startDateMinute, endDateMonth, endDateDay,
300                            endDateYear, endDateHour, endDateMinute, neverExpire, active,
301                            limitCategories, limitSkus, minOrder, discount, discountType,
302                            serviceContext);
303            }
304    
305            public ShoppingCouponLocalService getWrappedShoppingCouponLocalService() {
306                    return _shoppingCouponLocalService;
307            }
308    
309            private ShoppingCouponLocalService _shoppingCouponLocalService;
310    }