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            * @throws PortalException if a shopping order with the primary key could not be found
065            * @throws SystemException if a system exception occurred
066            */
067            public void deleteShoppingOrder(long orderId)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException {
070                    _shoppingOrderLocalService.deleteShoppingOrder(orderId);
071            }
072    
073            /**
074            * Deletes the shopping order from the database. Also notifies the appropriate model listeners.
075            *
076            * @param shoppingOrder the shopping order
077            * @throws SystemException if a system exception occurred
078            */
079            public void deleteShoppingOrder(
080                    com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder)
081                    throws com.liferay.portal.kernel.exception.SystemException {
082                    _shoppingOrderLocalService.deleteShoppingOrder(shoppingOrder);
083            }
084    
085            /**
086            * Performs a dynamic query on the database and returns the matching rows.
087            *
088            * @param dynamicQuery the dynamic query
089            * @return the matching rows
090            * @throws SystemException if a system exception occurred
091            */
092            @SuppressWarnings("rawtypes")
093            public java.util.List dynamicQuery(
094                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
095                    throws com.liferay.portal.kernel.exception.SystemException {
096                    return _shoppingOrderLocalService.dynamicQuery(dynamicQuery);
097            }
098    
099            /**
100            * Performs a dynamic query on the database and returns a range of the matching rows.
101            *
102            * <p>
103            * 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.
104            * </p>
105            *
106            * @param dynamicQuery the dynamic query
107            * @param start the lower bound of the range of model instances
108            * @param end the upper bound of the range of model instances (not inclusive)
109            * @return the range of matching rows
110            * @throws SystemException if a system exception occurred
111            */
112            @SuppressWarnings("rawtypes")
113            public java.util.List dynamicQuery(
114                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
115                    int end) throws com.liferay.portal.kernel.exception.SystemException {
116                    return _shoppingOrderLocalService.dynamicQuery(dynamicQuery, start, end);
117            }
118    
119            /**
120            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
121            *
122            * <p>
123            * 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.
124            * </p>
125            *
126            * @param dynamicQuery the dynamic query
127            * @param start the lower bound of the range of model instances
128            * @param end the upper bound of the range of model instances (not inclusive)
129            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
130            * @return the ordered range of matching rows
131            * @throws SystemException if a system exception occurred
132            */
133            @SuppressWarnings("rawtypes")
134            public java.util.List dynamicQuery(
135                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
136                    int end,
137                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
138                    throws com.liferay.portal.kernel.exception.SystemException {
139                    return _shoppingOrderLocalService.dynamicQuery(dynamicQuery, start,
140                            end, orderByComparator);
141            }
142    
143            /**
144            * Returns the number of rows that match the dynamic query.
145            *
146            * @param dynamicQuery the dynamic query
147            * @return the number of rows that match the dynamic query
148            * @throws SystemException if a system exception occurred
149            */
150            public long dynamicQueryCount(
151                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
152                    throws com.liferay.portal.kernel.exception.SystemException {
153                    return _shoppingOrderLocalService.dynamicQueryCount(dynamicQuery);
154            }
155    
156            public com.liferay.portlet.shopping.model.ShoppingOrder fetchShoppingOrder(
157                    long orderId)
158                    throws com.liferay.portal.kernel.exception.SystemException {
159                    return _shoppingOrderLocalService.fetchShoppingOrder(orderId);
160            }
161    
162            /**
163            * Returns the shopping order with the primary key.
164            *
165            * @param orderId the primary key of the shopping order
166            * @return the shopping order
167            * @throws PortalException if a shopping order with the primary key could not be found
168            * @throws SystemException if a system exception occurred
169            */
170            public com.liferay.portlet.shopping.model.ShoppingOrder getShoppingOrder(
171                    long orderId)
172                    throws com.liferay.portal.kernel.exception.PortalException,
173                            com.liferay.portal.kernel.exception.SystemException {
174                    return _shoppingOrderLocalService.getShoppingOrder(orderId);
175            }
176    
177            public com.liferay.portal.model.PersistedModel getPersistedModel(
178                    java.io.Serializable primaryKeyObj)
179                    throws com.liferay.portal.kernel.exception.PortalException,
180                            com.liferay.portal.kernel.exception.SystemException {
181                    return _shoppingOrderLocalService.getPersistedModel(primaryKeyObj);
182            }
183    
184            /**
185            * Returns a range of all the shopping orders.
186            *
187            * <p>
188            * 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.
189            * </p>
190            *
191            * @param start the lower bound of the range of shopping orders
192            * @param end the upper bound of the range of shopping orders (not inclusive)
193            * @return the range of shopping orders
194            * @throws SystemException if a system exception occurred
195            */
196            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> getShoppingOrders(
197                    int start, int end)
198                    throws com.liferay.portal.kernel.exception.SystemException {
199                    return _shoppingOrderLocalService.getShoppingOrders(start, end);
200            }
201    
202            /**
203            * Returns the number of shopping orders.
204            *
205            * @return the number of shopping orders
206            * @throws SystemException if a system exception occurred
207            */
208            public int getShoppingOrdersCount()
209                    throws com.liferay.portal.kernel.exception.SystemException {
210                    return _shoppingOrderLocalService.getShoppingOrdersCount();
211            }
212    
213            /**
214            * Updates the shopping order in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
215            *
216            * @param shoppingOrder the shopping order
217            * @return the shopping order that was updated
218            * @throws SystemException if a system exception occurred
219            */
220            public com.liferay.portlet.shopping.model.ShoppingOrder updateShoppingOrder(
221                    com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder)
222                    throws com.liferay.portal.kernel.exception.SystemException {
223                    return _shoppingOrderLocalService.updateShoppingOrder(shoppingOrder);
224            }
225    
226            /**
227            * Updates the shopping order in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
228            *
229            * @param shoppingOrder the shopping order
230            * @param merge whether to merge the shopping order 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.
231            * @return the shopping order that was updated
232            * @throws SystemException if a system exception occurred
233            */
234            public com.liferay.portlet.shopping.model.ShoppingOrder updateShoppingOrder(
235                    com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder,
236                    boolean merge)
237                    throws com.liferay.portal.kernel.exception.SystemException {
238                    return _shoppingOrderLocalService.updateShoppingOrder(shoppingOrder,
239                            merge);
240            }
241    
242            /**
243            * Returns the Spring bean ID for this bean.
244            *
245            * @return the Spring bean ID for this bean
246            */
247            public java.lang.String getBeanIdentifier() {
248                    return _shoppingOrderLocalService.getBeanIdentifier();
249            }
250    
251            /**
252            * Sets the Spring bean ID for this bean.
253            *
254            * @param beanIdentifier the Spring bean ID for this bean
255            */
256            public void setBeanIdentifier(java.lang.String beanIdentifier) {
257                    _shoppingOrderLocalService.setBeanIdentifier(beanIdentifier);
258            }
259    
260            public com.liferay.portlet.shopping.model.ShoppingOrder addLatestOrder(
261                    long userId, long groupId)
262                    throws com.liferay.portal.kernel.exception.PortalException,
263                            com.liferay.portal.kernel.exception.SystemException {
264                    return _shoppingOrderLocalService.addLatestOrder(userId, groupId);
265            }
266    
267            public void completeOrder(java.lang.String number,
268                    java.lang.String ppTxnId, java.lang.String ppPaymentStatus,
269                    double ppPaymentGross, java.lang.String ppReceiverEmail,
270                    java.lang.String ppPayerEmail, boolean updateInventory,
271                    com.liferay.portal.service.ServiceContext serviceContext)
272                    throws com.liferay.portal.kernel.exception.PortalException,
273                            com.liferay.portal.kernel.exception.SystemException {
274                    _shoppingOrderLocalService.completeOrder(number, ppTxnId,
275                            ppPaymentStatus, ppPaymentGross, ppReceiverEmail, ppPayerEmail,
276                            updateInventory, serviceContext);
277            }
278    
279            public void deleteOrder(long orderId)
280                    throws com.liferay.portal.kernel.exception.PortalException,
281                            com.liferay.portal.kernel.exception.SystemException {
282                    _shoppingOrderLocalService.deleteOrder(orderId);
283            }
284    
285            public void deleteOrder(
286                    com.liferay.portlet.shopping.model.ShoppingOrder order)
287                    throws com.liferay.portal.kernel.exception.PortalException,
288                            com.liferay.portal.kernel.exception.SystemException {
289                    _shoppingOrderLocalService.deleteOrder(order);
290            }
291    
292            public void deleteOrders(long groupId)
293                    throws com.liferay.portal.kernel.exception.PortalException,
294                            com.liferay.portal.kernel.exception.SystemException {
295                    _shoppingOrderLocalService.deleteOrders(groupId);
296            }
297    
298            public com.liferay.portlet.shopping.model.ShoppingOrder getLatestOrder(
299                    long userId, long groupId)
300                    throws com.liferay.portal.kernel.exception.PortalException,
301                            com.liferay.portal.kernel.exception.SystemException {
302                    return _shoppingOrderLocalService.getLatestOrder(userId, groupId);
303            }
304    
305            public com.liferay.portlet.shopping.model.ShoppingOrder getOrder(
306                    long orderId)
307                    throws com.liferay.portal.kernel.exception.PortalException,
308                            com.liferay.portal.kernel.exception.SystemException {
309                    return _shoppingOrderLocalService.getOrder(orderId);
310            }
311    
312            public com.liferay.portlet.shopping.model.ShoppingOrder getOrder(
313                    java.lang.String number)
314                    throws com.liferay.portal.kernel.exception.PortalException,
315                            com.liferay.portal.kernel.exception.SystemException {
316                    return _shoppingOrderLocalService.getOrder(number);
317            }
318    
319            public com.liferay.portlet.shopping.model.ShoppingOrder getPayPalTxnIdOrder(
320                    java.lang.String ppTxnId)
321                    throws com.liferay.portal.kernel.exception.PortalException,
322                            com.liferay.portal.kernel.exception.SystemException {
323                    return _shoppingOrderLocalService.getPayPalTxnIdOrder(ppTxnId);
324            }
325    
326            public com.liferay.portlet.shopping.model.ShoppingOrder saveLatestOrder(
327                    com.liferay.portlet.shopping.model.ShoppingCart cart)
328                    throws com.liferay.portal.kernel.exception.PortalException,
329                            com.liferay.portal.kernel.exception.SystemException {
330                    return _shoppingOrderLocalService.saveLatestOrder(cart);
331            }
332    
333            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> search(
334                    long groupId, long companyId, long userId, java.lang.String number,
335                    java.lang.String billingFirstName, java.lang.String billingLastName,
336                    java.lang.String billingEmailAddress,
337                    java.lang.String shippingFirstName, java.lang.String shippingLastName,
338                    java.lang.String shippingEmailAddress,
339                    java.lang.String ppPaymentStatus, boolean andOperator, int start,
340                    int end) throws com.liferay.portal.kernel.exception.SystemException {
341                    return _shoppingOrderLocalService.search(groupId, companyId, userId,
342                            number, billingFirstName, billingLastName, billingEmailAddress,
343                            shippingFirstName, shippingLastName, shippingEmailAddress,
344                            ppPaymentStatus, andOperator, start, end);
345            }
346    
347            public int searchCount(long groupId, long companyId, long userId,
348                    java.lang.String number, java.lang.String billingFirstName,
349                    java.lang.String billingLastName, java.lang.String billingEmailAddress,
350                    java.lang.String shippingFirstName, java.lang.String shippingLastName,
351                    java.lang.String shippingEmailAddress,
352                    java.lang.String ppPaymentStatus, boolean andOperator)
353                    throws com.liferay.portal.kernel.exception.SystemException {
354                    return _shoppingOrderLocalService.searchCount(groupId, companyId,
355                            userId, number, billingFirstName, billingLastName,
356                            billingEmailAddress, shippingFirstName, shippingLastName,
357                            shippingEmailAddress, ppPaymentStatus, andOperator);
358            }
359    
360            public void sendEmail(long orderId, 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(orderId, emailType, serviceContext);
365            }
366    
367            public void sendEmail(
368                    com.liferay.portlet.shopping.model.ShoppingOrder order,
369                    java.lang.String emailType,
370                    com.liferay.portal.service.ServiceContext serviceContext)
371                    throws com.liferay.portal.kernel.exception.PortalException,
372                            com.liferay.portal.kernel.exception.SystemException {
373                    _shoppingOrderLocalService.sendEmail(order, emailType, serviceContext);
374            }
375    
376            public com.liferay.portlet.shopping.model.ShoppingOrder updateLatestOrder(
377                    long userId, long groupId, java.lang.String billingFirstName,
378                    java.lang.String billingLastName, java.lang.String billingEmailAddress,
379                    java.lang.String billingCompany, java.lang.String billingStreet,
380                    java.lang.String billingCity, java.lang.String billingState,
381                    java.lang.String billingZip, java.lang.String billingCountry,
382                    java.lang.String billingPhone, boolean shipToBilling,
383                    java.lang.String shippingFirstName, java.lang.String shippingLastName,
384                    java.lang.String shippingEmailAddress,
385                    java.lang.String shippingCompany, java.lang.String shippingStreet,
386                    java.lang.String shippingCity, java.lang.String shippingState,
387                    java.lang.String shippingZip, java.lang.String shippingCountry,
388                    java.lang.String shippingPhone, java.lang.String ccName,
389                    java.lang.String ccType, java.lang.String ccNumber, int ccExpMonth,
390                    int ccExpYear, java.lang.String ccVerNumber, java.lang.String comments)
391                    throws com.liferay.portal.kernel.exception.PortalException,
392                            com.liferay.portal.kernel.exception.SystemException {
393                    return _shoppingOrderLocalService.updateLatestOrder(userId, groupId,
394                            billingFirstName, billingLastName, billingEmailAddress,
395                            billingCompany, billingStreet, billingCity, billingState,
396                            billingZip, billingCountry, billingPhone, shipToBilling,
397                            shippingFirstName, shippingLastName, shippingEmailAddress,
398                            shippingCompany, shippingStreet, shippingCity, shippingState,
399                            shippingZip, shippingCountry, shippingPhone, ccName, ccType,
400                            ccNumber, ccExpMonth, ccExpYear, ccVerNumber, comments);
401            }
402    
403            public com.liferay.portlet.shopping.model.ShoppingOrder updateOrder(
404                    long orderId, java.lang.String ppTxnId,
405                    java.lang.String ppPaymentStatus, double ppPaymentGross,
406                    java.lang.String ppReceiverEmail, java.lang.String ppPayerEmail)
407                    throws com.liferay.portal.kernel.exception.PortalException,
408                            com.liferay.portal.kernel.exception.SystemException {
409                    return _shoppingOrderLocalService.updateOrder(orderId, ppTxnId,
410                            ppPaymentStatus, ppPaymentGross, ppReceiverEmail, ppPayerEmail);
411            }
412    
413            public com.liferay.portlet.shopping.model.ShoppingOrder updateOrder(
414                    long orderId, java.lang.String billingFirstName,
415                    java.lang.String billingLastName, java.lang.String billingEmailAddress,
416                    java.lang.String billingCompany, java.lang.String billingStreet,
417                    java.lang.String billingCity, java.lang.String billingState,
418                    java.lang.String billingZip, java.lang.String billingCountry,
419                    java.lang.String billingPhone, boolean shipToBilling,
420                    java.lang.String shippingFirstName, java.lang.String shippingLastName,
421                    java.lang.String shippingEmailAddress,
422                    java.lang.String shippingCompany, java.lang.String shippingStreet,
423                    java.lang.String shippingCity, java.lang.String shippingState,
424                    java.lang.String shippingZip, java.lang.String shippingCountry,
425                    java.lang.String shippingPhone, java.lang.String ccName,
426                    java.lang.String ccType, java.lang.String ccNumber, int ccExpMonth,
427                    int ccExpYear, java.lang.String ccVerNumber, java.lang.String comments)
428                    throws com.liferay.portal.kernel.exception.PortalException,
429                            com.liferay.portal.kernel.exception.SystemException {
430                    return _shoppingOrderLocalService.updateOrder(orderId,
431                            billingFirstName, billingLastName, billingEmailAddress,
432                            billingCompany, billingStreet, billingCity, billingState,
433                            billingZip, billingCountry, billingPhone, shipToBilling,
434                            shippingFirstName, shippingLastName, shippingEmailAddress,
435                            shippingCompany, shippingStreet, shippingCity, shippingState,
436                            shippingZip, shippingCountry, shippingPhone, ccName, ccType,
437                            ccNumber, ccExpMonth, ccExpYear, ccVerNumber, comments);
438            }
439    
440            /**
441             * @deprecated Renamed to {@link #getWrappedService}
442             */
443            public ShoppingOrderLocalService getWrappedShoppingOrderLocalService() {
444                    return _shoppingOrderLocalService;
445            }
446    
447            /**
448             * @deprecated Renamed to {@link #setWrappedService}
449             */
450            public void setWrappedShoppingOrderLocalService(
451                    ShoppingOrderLocalService shoppingOrderLocalService) {
452                    _shoppingOrderLocalService = shoppingOrderLocalService;
453            }
454    
455            public ShoppingOrderLocalService getWrappedService() {
456                    return _shoppingOrderLocalService;
457            }
458    
459            public void setWrappedService(
460                    ShoppingOrderLocalService shoppingOrderLocalService) {
461                    _shoppingOrderLocalService = shoppingOrderLocalService;
462            }
463    
464            private ShoppingOrderLocalService _shoppingOrderLocalService;
465    }