001    /**
002     * Copyright (c) 2000-2012 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 ShoppingOrderLocalService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       ShoppingOrderLocalService
026     * @generated
027     */
028    public class ShoppingOrderLocalServiceWrapper
029            implements ShoppingOrderLocalService,
030                    ServiceWrapper<ShoppingOrderLocalService> {
031            public ShoppingOrderLocalServiceWrapper(
032                    ShoppingOrderLocalService shoppingOrderLocalService) {
033                    _shoppingOrderLocalService = shoppingOrderLocalService;
034            }
035    
036            /**
037            * Adds the shopping order to the database. Also notifies the appropriate model listeners.
038            *
039            * @param shoppingOrder the shopping order
040            * @return the shopping order that was added
041            * @throws SystemException if a system exception occurred
042            */
043            public com.liferay.portlet.shopping.model.ShoppingOrder addShoppingOrder(
044                    com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder)
045                    throws com.liferay.portal.kernel.exception.SystemException {
046                    return _shoppingOrderLocalService.addShoppingOrder(shoppingOrder);
047            }
048    
049            /**
050            * Creates a new shopping order with the primary key. Does not add the shopping order to the database.
051            *
052            * @param orderId the primary key for the new shopping order
053            * @return the new shopping order
054            */
055            public com.liferay.portlet.shopping.model.ShoppingOrder createShoppingOrder(
056                    long orderId) {
057                    return _shoppingOrderLocalService.createShoppingOrder(orderId);
058            }
059    
060            /**
061            * Deletes the shopping order with the primary key from the database. Also notifies the appropriate model listeners.
062            *
063            * @param orderId the primary key of the shopping order
064            * @return the shopping order that was removed
065            * @throws PortalException if a shopping order with the primary key could not be found
066            * @throws SystemException if a system exception occurred
067            */
068            public com.liferay.portlet.shopping.model.ShoppingOrder deleteShoppingOrder(
069                    long orderId)
070                    throws com.liferay.portal.kernel.exception.PortalException,
071                            com.liferay.portal.kernel.exception.SystemException {
072                    return _shoppingOrderLocalService.deleteShoppingOrder(orderId);
073            }
074    
075            /**
076            * Deletes the shopping order from the database. Also notifies the appropriate model listeners.
077            *
078            * @param shoppingOrder the shopping order
079            * @return the shopping order that was removed
080            * @throws SystemException if a system exception occurred
081            */
082            public com.liferay.portlet.shopping.model.ShoppingOrder deleteShoppingOrder(
083                    com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder)
084                    throws com.liferay.portal.kernel.exception.SystemException {
085                    return _shoppingOrderLocalService.deleteShoppingOrder(shoppingOrder);
086            }
087    
088            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
089                    return _shoppingOrderLocalService.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 _shoppingOrderLocalService.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 _shoppingOrderLocalService.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.
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 _shoppingOrderLocalService.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 _shoppingOrderLocalService.dynamicQueryCount(dynamicQuery);
161            }
162    
163            public com.liferay.portlet.shopping.model.ShoppingOrder fetchShoppingOrder(
164                    long orderId)
165                    throws com.liferay.portal.kernel.exception.SystemException {
166                    return _shoppingOrderLocalService.fetchShoppingOrder(orderId);
167            }
168    
169            /**
170            * Returns the shopping order with the primary key.
171            *
172            * @param orderId the primary key of the shopping order
173            * @return the shopping order
174            * @throws PortalException if a shopping order with the primary key could not be found
175            * @throws SystemException if a system exception occurred
176            */
177            public com.liferay.portlet.shopping.model.ShoppingOrder getShoppingOrder(
178                    long orderId)
179                    throws com.liferay.portal.kernel.exception.PortalException,
180                            com.liferay.portal.kernel.exception.SystemException {
181                    return _shoppingOrderLocalService.getShoppingOrder(orderId);
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 _shoppingOrderLocalService.getPersistedModel(primaryKeyObj);
189            }
190    
191            /**
192            * Returns a range of all the shopping orders.
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.
196            * </p>
197            *
198            * @param start the lower bound of the range of shopping orders
199            * @param end the upper bound of the range of shopping orders (not inclusive)
200            * @return the range of shopping orders
201            * @throws SystemException if a system exception occurred
202            */
203            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> getShoppingOrders(
204                    int start, int end)
205                    throws com.liferay.portal.kernel.exception.SystemException {
206                    return _shoppingOrderLocalService.getShoppingOrders(start, end);
207            }
208    
209            /**
210            * Returns the number of shopping orders.
211            *
212            * @return the number of shopping orders
213            * @throws SystemException if a system exception occurred
214            */
215            public int getShoppingOrdersCount()
216                    throws com.liferay.portal.kernel.exception.SystemException {
217                    return _shoppingOrderLocalService.getShoppingOrdersCount();
218            }
219    
220            /**
221            * Updates the shopping order in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
222            *
223            * @param shoppingOrder the shopping order
224            * @return the shopping order that was updated
225            * @throws SystemException if a system exception occurred
226            */
227            public com.liferay.portlet.shopping.model.ShoppingOrder updateShoppingOrder(
228                    com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder)
229                    throws com.liferay.portal.kernel.exception.SystemException {
230                    return _shoppingOrderLocalService.updateShoppingOrder(shoppingOrder);
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 _shoppingOrderLocalService.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                    _shoppingOrderLocalService.setBeanIdentifier(beanIdentifier);
249            }
250    
251            public com.liferay.portlet.shopping.model.ShoppingOrder addLatestOrder(
252                    long userId, long groupId)
253                    throws com.liferay.portal.kernel.exception.PortalException,
254                            com.liferay.portal.kernel.exception.SystemException {
255                    return _shoppingOrderLocalService.addLatestOrder(userId, groupId);
256            }
257    
258            public void completeOrder(java.lang.String number,
259                    java.lang.String ppTxnId, java.lang.String ppPaymentStatus,
260                    double ppPaymentGross, java.lang.String ppReceiverEmail,
261                    java.lang.String ppPayerEmail, boolean updateInventory,
262                    com.liferay.portal.service.ServiceContext serviceContext)
263                    throws com.liferay.portal.kernel.exception.PortalException,
264                            com.liferay.portal.kernel.exception.SystemException {
265                    _shoppingOrderLocalService.completeOrder(number, ppTxnId,
266                            ppPaymentStatus, ppPaymentGross, ppReceiverEmail, ppPayerEmail,
267                            updateInventory, serviceContext);
268            }
269    
270            public void deleteOrder(long orderId)
271                    throws com.liferay.portal.kernel.exception.PortalException,
272                            com.liferay.portal.kernel.exception.SystemException {
273                    _shoppingOrderLocalService.deleteOrder(orderId);
274            }
275    
276            public void deleteOrder(
277                    com.liferay.portlet.shopping.model.ShoppingOrder order)
278                    throws com.liferay.portal.kernel.exception.PortalException,
279                            com.liferay.portal.kernel.exception.SystemException {
280                    _shoppingOrderLocalService.deleteOrder(order);
281            }
282    
283            public void deleteOrders(long groupId)
284                    throws com.liferay.portal.kernel.exception.PortalException,
285                            com.liferay.portal.kernel.exception.SystemException {
286                    _shoppingOrderLocalService.deleteOrders(groupId);
287            }
288    
289            public com.liferay.portlet.shopping.model.ShoppingOrder getLatestOrder(
290                    long userId, long groupId)
291                    throws com.liferay.portal.kernel.exception.PortalException,
292                            com.liferay.portal.kernel.exception.SystemException {
293                    return _shoppingOrderLocalService.getLatestOrder(userId, groupId);
294            }
295    
296            public com.liferay.portlet.shopping.model.ShoppingOrder getOrder(
297                    long orderId)
298                    throws com.liferay.portal.kernel.exception.PortalException,
299                            com.liferay.portal.kernel.exception.SystemException {
300                    return _shoppingOrderLocalService.getOrder(orderId);
301            }
302    
303            public com.liferay.portlet.shopping.model.ShoppingOrder getOrder(
304                    java.lang.String number)
305                    throws com.liferay.portal.kernel.exception.PortalException,
306                            com.liferay.portal.kernel.exception.SystemException {
307                    return _shoppingOrderLocalService.getOrder(number);
308            }
309    
310            public com.liferay.portlet.shopping.model.ShoppingOrder getPayPalTxnIdOrder(
311                    java.lang.String ppTxnId)
312                    throws com.liferay.portal.kernel.exception.PortalException,
313                            com.liferay.portal.kernel.exception.SystemException {
314                    return _shoppingOrderLocalService.getPayPalTxnIdOrder(ppTxnId);
315            }
316    
317            public com.liferay.portlet.shopping.model.ShoppingOrder saveLatestOrder(
318                    com.liferay.portlet.shopping.model.ShoppingCart cart)
319                    throws com.liferay.portal.kernel.exception.PortalException,
320                            com.liferay.portal.kernel.exception.SystemException {
321                    return _shoppingOrderLocalService.saveLatestOrder(cart);
322            }
323    
324            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> search(
325                    long groupId, long companyId, long userId, java.lang.String number,
326                    java.lang.String billingFirstName, java.lang.String billingLastName,
327                    java.lang.String billingEmailAddress,
328                    java.lang.String shippingFirstName, java.lang.String shippingLastName,
329                    java.lang.String shippingEmailAddress,
330                    java.lang.String ppPaymentStatus, boolean andOperator, int start,
331                    int end) throws com.liferay.portal.kernel.exception.SystemException {
332                    return _shoppingOrderLocalService.search(groupId, companyId, userId,
333                            number, billingFirstName, billingLastName, billingEmailAddress,
334                            shippingFirstName, shippingLastName, shippingEmailAddress,
335                            ppPaymentStatus, andOperator, start, end);
336            }
337    
338            public int searchCount(long groupId, long companyId, long userId,
339                    java.lang.String number, java.lang.String billingFirstName,
340                    java.lang.String billingLastName, java.lang.String billingEmailAddress,
341                    java.lang.String shippingFirstName, java.lang.String shippingLastName,
342                    java.lang.String shippingEmailAddress,
343                    java.lang.String ppPaymentStatus, boolean andOperator)
344                    throws com.liferay.portal.kernel.exception.SystemException {
345                    return _shoppingOrderLocalService.searchCount(groupId, companyId,
346                            userId, number, billingFirstName, billingLastName,
347                            billingEmailAddress, shippingFirstName, shippingLastName,
348                            shippingEmailAddress, ppPaymentStatus, andOperator);
349            }
350    
351            public void sendEmail(long orderId, java.lang.String emailType,
352                    com.liferay.portal.service.ServiceContext serviceContext)
353                    throws com.liferay.portal.kernel.exception.PortalException,
354                            com.liferay.portal.kernel.exception.SystemException {
355                    _shoppingOrderLocalService.sendEmail(orderId, emailType, serviceContext);
356            }
357    
358            public void sendEmail(
359                    com.liferay.portlet.shopping.model.ShoppingOrder order,
360                    java.lang.String emailType,
361                    com.liferay.portal.service.ServiceContext serviceContext)
362                    throws com.liferay.portal.kernel.exception.PortalException,
363                            com.liferay.portal.kernel.exception.SystemException {
364                    _shoppingOrderLocalService.sendEmail(order, emailType, serviceContext);
365            }
366    
367            public com.liferay.portlet.shopping.model.ShoppingOrder updateLatestOrder(
368                    long userId, long groupId, java.lang.String billingFirstName,
369                    java.lang.String billingLastName, java.lang.String billingEmailAddress,
370                    java.lang.String billingCompany, java.lang.String billingStreet,
371                    java.lang.String billingCity, java.lang.String billingState,
372                    java.lang.String billingZip, java.lang.String billingCountry,
373                    java.lang.String billingPhone, boolean shipToBilling,
374                    java.lang.String shippingFirstName, java.lang.String shippingLastName,
375                    java.lang.String shippingEmailAddress,
376                    java.lang.String shippingCompany, java.lang.String shippingStreet,
377                    java.lang.String shippingCity, java.lang.String shippingState,
378                    java.lang.String shippingZip, java.lang.String shippingCountry,
379                    java.lang.String shippingPhone, java.lang.String ccName,
380                    java.lang.String ccType, java.lang.String ccNumber, int ccExpMonth,
381                    int ccExpYear, java.lang.String ccVerNumber, java.lang.String comments)
382                    throws com.liferay.portal.kernel.exception.PortalException,
383                            com.liferay.portal.kernel.exception.SystemException {
384                    return _shoppingOrderLocalService.updateLatestOrder(userId, groupId,
385                            billingFirstName, billingLastName, billingEmailAddress,
386                            billingCompany, billingStreet, billingCity, billingState,
387                            billingZip, billingCountry, billingPhone, shipToBilling,
388                            shippingFirstName, shippingLastName, shippingEmailAddress,
389                            shippingCompany, shippingStreet, shippingCity, shippingState,
390                            shippingZip, shippingCountry, shippingPhone, ccName, ccType,
391                            ccNumber, ccExpMonth, ccExpYear, ccVerNumber, comments);
392            }
393    
394            public com.liferay.portlet.shopping.model.ShoppingOrder updateOrder(
395                    long orderId, java.lang.String ppTxnId,
396                    java.lang.String ppPaymentStatus, double ppPaymentGross,
397                    java.lang.String ppReceiverEmail, java.lang.String ppPayerEmail)
398                    throws com.liferay.portal.kernel.exception.PortalException,
399                            com.liferay.portal.kernel.exception.SystemException {
400                    return _shoppingOrderLocalService.updateOrder(orderId, ppTxnId,
401                            ppPaymentStatus, ppPaymentGross, ppReceiverEmail, ppPayerEmail);
402            }
403    
404            public com.liferay.portlet.shopping.model.ShoppingOrder updateOrder(
405                    long orderId, java.lang.String billingFirstName,
406                    java.lang.String billingLastName, java.lang.String billingEmailAddress,
407                    java.lang.String billingCompany, java.lang.String billingStreet,
408                    java.lang.String billingCity, java.lang.String billingState,
409                    java.lang.String billingZip, java.lang.String billingCountry,
410                    java.lang.String billingPhone, boolean shipToBilling,
411                    java.lang.String shippingFirstName, java.lang.String shippingLastName,
412                    java.lang.String shippingEmailAddress,
413                    java.lang.String shippingCompany, java.lang.String shippingStreet,
414                    java.lang.String shippingCity, java.lang.String shippingState,
415                    java.lang.String shippingZip, java.lang.String shippingCountry,
416                    java.lang.String shippingPhone, java.lang.String ccName,
417                    java.lang.String ccType, java.lang.String ccNumber, int ccExpMonth,
418                    int ccExpYear, java.lang.String ccVerNumber, java.lang.String comments)
419                    throws com.liferay.portal.kernel.exception.PortalException,
420                            com.liferay.portal.kernel.exception.SystemException {
421                    return _shoppingOrderLocalService.updateOrder(orderId,
422                            billingFirstName, billingLastName, billingEmailAddress,
423                            billingCompany, billingStreet, billingCity, billingState,
424                            billingZip, billingCountry, billingPhone, shipToBilling,
425                            shippingFirstName, shippingLastName, shippingEmailAddress,
426                            shippingCompany, shippingStreet, shippingCity, shippingState,
427                            shippingZip, shippingCountry, shippingPhone, ccName, ccType,
428                            ccNumber, ccExpMonth, ccExpYear, ccVerNumber, comments);
429            }
430    
431            /**
432             * @deprecated Renamed to {@link #getWrappedService}
433             */
434            public ShoppingOrderLocalService getWrappedShoppingOrderLocalService() {
435                    return _shoppingOrderLocalService;
436            }
437    
438            /**
439             * @deprecated Renamed to {@link #setWrappedService}
440             */
441            public void setWrappedShoppingOrderLocalService(
442                    ShoppingOrderLocalService shoppingOrderLocalService) {
443                    _shoppingOrderLocalService = shoppingOrderLocalService;
444            }
445    
446            public ShoppingOrderLocalService getWrappedService() {
447                    return _shoppingOrderLocalService;
448            }
449    
450            public void setWrappedService(
451                    ShoppingOrderLocalService shoppingOrderLocalService) {
452                    _shoppingOrderLocalService = shoppingOrderLocalService;
453            }
454    
455            private ShoppingOrderLocalService _shoppingOrderLocalService;
456    }