001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.shopping.service;
016    
017    import com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link 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            * Updates the shopping order in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
235            *
236            * @param shoppingOrder the shopping order
237            * @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.
238            * @return the shopping order that was updated
239            * @throws SystemException if a system exception occurred
240            */
241            public com.liferay.portlet.shopping.model.ShoppingOrder updateShoppingOrder(
242                    com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder,
243                    boolean merge)
244                    throws com.liferay.portal.kernel.exception.SystemException {
245                    return _shoppingOrderLocalService.updateShoppingOrder(shoppingOrder,
246                            merge);
247            }
248    
249            /**
250            * Returns the Spring bean ID for this bean.
251            *
252            * @return the Spring bean ID for this bean
253            */
254            public java.lang.String getBeanIdentifier() {
255                    return _shoppingOrderLocalService.getBeanIdentifier();
256            }
257    
258            /**
259            * Sets the Spring bean ID for this bean.
260            *
261            * @param beanIdentifier the Spring bean ID for this bean
262            */
263            public void setBeanIdentifier(java.lang.String beanIdentifier) {
264                    _shoppingOrderLocalService.setBeanIdentifier(beanIdentifier);
265            }
266    
267            public com.liferay.portlet.shopping.model.ShoppingOrder addLatestOrder(
268                    long userId, long groupId)
269                    throws com.liferay.portal.kernel.exception.PortalException,
270                            com.liferay.portal.kernel.exception.SystemException {
271                    return _shoppingOrderLocalService.addLatestOrder(userId, groupId);
272            }
273    
274            public void completeOrder(java.lang.String number,
275                    java.lang.String ppTxnId, java.lang.String ppPaymentStatus,
276                    double ppPaymentGross, java.lang.String ppReceiverEmail,
277                    java.lang.String ppPayerEmail, boolean updateInventory,
278                    com.liferay.portal.service.ServiceContext serviceContext)
279                    throws com.liferay.portal.kernel.exception.PortalException,
280                            com.liferay.portal.kernel.exception.SystemException {
281                    _shoppingOrderLocalService.completeOrder(number, ppTxnId,
282                            ppPaymentStatus, ppPaymentGross, ppReceiverEmail, ppPayerEmail,
283                            updateInventory, serviceContext);
284            }
285    
286            public void deleteOrder(long orderId)
287                    throws com.liferay.portal.kernel.exception.PortalException,
288                            com.liferay.portal.kernel.exception.SystemException {
289                    _shoppingOrderLocalService.deleteOrder(orderId);
290            }
291    
292            public void deleteOrder(
293                    com.liferay.portlet.shopping.model.ShoppingOrder order)
294                    throws com.liferay.portal.kernel.exception.PortalException,
295                            com.liferay.portal.kernel.exception.SystemException {
296                    _shoppingOrderLocalService.deleteOrder(order);
297            }
298    
299            public void deleteOrders(long groupId)
300                    throws com.liferay.portal.kernel.exception.PortalException,
301                            com.liferay.portal.kernel.exception.SystemException {
302                    _shoppingOrderLocalService.deleteOrders(groupId);
303            }
304    
305            public com.liferay.portlet.shopping.model.ShoppingOrder getLatestOrder(
306                    long userId, long groupId)
307                    throws com.liferay.portal.kernel.exception.PortalException,
308                            com.liferay.portal.kernel.exception.SystemException {
309                    return _shoppingOrderLocalService.getLatestOrder(userId, groupId);
310            }
311    
312            public com.liferay.portlet.shopping.model.ShoppingOrder getOrder(
313                    long orderId)
314                    throws com.liferay.portal.kernel.exception.PortalException,
315                            com.liferay.portal.kernel.exception.SystemException {
316                    return _shoppingOrderLocalService.getOrder(orderId);
317            }
318    
319            public com.liferay.portlet.shopping.model.ShoppingOrder getOrder(
320                    java.lang.String number)
321                    throws com.liferay.portal.kernel.exception.PortalException,
322                            com.liferay.portal.kernel.exception.SystemException {
323                    return _shoppingOrderLocalService.getOrder(number);
324            }
325    
326            public com.liferay.portlet.shopping.model.ShoppingOrder getPayPalTxnIdOrder(
327                    java.lang.String ppTxnId)
328                    throws com.liferay.portal.kernel.exception.PortalException,
329                            com.liferay.portal.kernel.exception.SystemException {
330                    return _shoppingOrderLocalService.getPayPalTxnIdOrder(ppTxnId);
331            }
332    
333            public com.liferay.portlet.shopping.model.ShoppingOrder saveLatestOrder(
334                    com.liferay.portlet.shopping.model.ShoppingCart cart)
335                    throws com.liferay.portal.kernel.exception.PortalException,
336                            com.liferay.portal.kernel.exception.SystemException {
337                    return _shoppingOrderLocalService.saveLatestOrder(cart);
338            }
339    
340            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> search(
341                    long groupId, long companyId, long userId, java.lang.String number,
342                    java.lang.String billingFirstName, java.lang.String billingLastName,
343                    java.lang.String billingEmailAddress,
344                    java.lang.String shippingFirstName, java.lang.String shippingLastName,
345                    java.lang.String shippingEmailAddress,
346                    java.lang.String ppPaymentStatus, boolean andOperator, int start,
347                    int end) throws com.liferay.portal.kernel.exception.SystemException {
348                    return _shoppingOrderLocalService.search(groupId, companyId, userId,
349                            number, billingFirstName, billingLastName, billingEmailAddress,
350                            shippingFirstName, shippingLastName, shippingEmailAddress,
351                            ppPaymentStatus, andOperator, start, end);
352            }
353    
354            public int searchCount(long groupId, long companyId, long userId,
355                    java.lang.String number, java.lang.String billingFirstName,
356                    java.lang.String billingLastName, java.lang.String billingEmailAddress,
357                    java.lang.String shippingFirstName, java.lang.String shippingLastName,
358                    java.lang.String shippingEmailAddress,
359                    java.lang.String ppPaymentStatus, boolean andOperator)
360                    throws com.liferay.portal.kernel.exception.SystemException {
361                    return _shoppingOrderLocalService.searchCount(groupId, companyId,
362                            userId, number, billingFirstName, billingLastName,
363                            billingEmailAddress, shippingFirstName, shippingLastName,
364                            shippingEmailAddress, ppPaymentStatus, andOperator);
365            }
366    
367            public void sendEmail(long orderId, java.lang.String emailType,
368                    com.liferay.portal.service.ServiceContext serviceContext)
369                    throws com.liferay.portal.kernel.exception.PortalException,
370                            com.liferay.portal.kernel.exception.SystemException {
371                    _shoppingOrderLocalService.sendEmail(orderId, emailType, serviceContext);
372            }
373    
374            public void sendEmail(
375                    com.liferay.portlet.shopping.model.ShoppingOrder order,
376                    java.lang.String emailType,
377                    com.liferay.portal.service.ServiceContext serviceContext)
378                    throws com.liferay.portal.kernel.exception.PortalException,
379                            com.liferay.portal.kernel.exception.SystemException {
380                    _shoppingOrderLocalService.sendEmail(order, emailType, serviceContext);
381            }
382    
383            public com.liferay.portlet.shopping.model.ShoppingOrder updateLatestOrder(
384                    long userId, long groupId, java.lang.String billingFirstName,
385                    java.lang.String billingLastName, java.lang.String billingEmailAddress,
386                    java.lang.String billingCompany, java.lang.String billingStreet,
387                    java.lang.String billingCity, java.lang.String billingState,
388                    java.lang.String billingZip, java.lang.String billingCountry,
389                    java.lang.String billingPhone, boolean shipToBilling,
390                    java.lang.String shippingFirstName, java.lang.String shippingLastName,
391                    java.lang.String shippingEmailAddress,
392                    java.lang.String shippingCompany, java.lang.String shippingStreet,
393                    java.lang.String shippingCity, java.lang.String shippingState,
394                    java.lang.String shippingZip, java.lang.String shippingCountry,
395                    java.lang.String shippingPhone, java.lang.String ccName,
396                    java.lang.String ccType, java.lang.String ccNumber, int ccExpMonth,
397                    int ccExpYear, java.lang.String ccVerNumber, java.lang.String comments)
398                    throws com.liferay.portal.kernel.exception.PortalException,
399                            com.liferay.portal.kernel.exception.SystemException {
400                    return _shoppingOrderLocalService.updateLatestOrder(userId, groupId,
401                            billingFirstName, billingLastName, billingEmailAddress,
402                            billingCompany, billingStreet, billingCity, billingState,
403                            billingZip, billingCountry, billingPhone, shipToBilling,
404                            shippingFirstName, shippingLastName, shippingEmailAddress,
405                            shippingCompany, shippingStreet, shippingCity, shippingState,
406                            shippingZip, shippingCountry, shippingPhone, ccName, ccType,
407                            ccNumber, ccExpMonth, ccExpYear, ccVerNumber, comments);
408            }
409    
410            public com.liferay.portlet.shopping.model.ShoppingOrder updateOrder(
411                    long orderId, java.lang.String ppTxnId,
412                    java.lang.String ppPaymentStatus, double ppPaymentGross,
413                    java.lang.String ppReceiverEmail, java.lang.String ppPayerEmail)
414                    throws com.liferay.portal.kernel.exception.PortalException,
415                            com.liferay.portal.kernel.exception.SystemException {
416                    return _shoppingOrderLocalService.updateOrder(orderId, ppTxnId,
417                            ppPaymentStatus, ppPaymentGross, ppReceiverEmail, ppPayerEmail);
418            }
419    
420            public com.liferay.portlet.shopping.model.ShoppingOrder updateOrder(
421                    long orderId, java.lang.String billingFirstName,
422                    java.lang.String billingLastName, java.lang.String billingEmailAddress,
423                    java.lang.String billingCompany, java.lang.String billingStreet,
424                    java.lang.String billingCity, java.lang.String billingState,
425                    java.lang.String billingZip, java.lang.String billingCountry,
426                    java.lang.String billingPhone, boolean shipToBilling,
427                    java.lang.String shippingFirstName, java.lang.String shippingLastName,
428                    java.lang.String shippingEmailAddress,
429                    java.lang.String shippingCompany, java.lang.String shippingStreet,
430                    java.lang.String shippingCity, java.lang.String shippingState,
431                    java.lang.String shippingZip, java.lang.String shippingCountry,
432                    java.lang.String shippingPhone, java.lang.String ccName,
433                    java.lang.String ccType, java.lang.String ccNumber, int ccExpMonth,
434                    int ccExpYear, java.lang.String ccVerNumber, java.lang.String comments)
435                    throws com.liferay.portal.kernel.exception.PortalException,
436                            com.liferay.portal.kernel.exception.SystemException {
437                    return _shoppingOrderLocalService.updateOrder(orderId,
438                            billingFirstName, billingLastName, billingEmailAddress,
439                            billingCompany, billingStreet, billingCity, billingState,
440                            billingZip, billingCountry, billingPhone, shipToBilling,
441                            shippingFirstName, shippingLastName, shippingEmailAddress,
442                            shippingCompany, shippingStreet, shippingCity, shippingState,
443                            shippingZip, shippingCountry, shippingPhone, ccName, ccType,
444                            ccNumber, ccExpMonth, ccExpYear, ccVerNumber, comments);
445            }
446    
447            /**
448             * @deprecated Renamed to {@link #getWrappedService}
449             */
450            public ShoppingOrderLocalService getWrappedShoppingOrderLocalService() {
451                    return _shoppingOrderLocalService;
452            }
453    
454            /**
455             * @deprecated Renamed to {@link #setWrappedService}
456             */
457            public void setWrappedShoppingOrderLocalService(
458                    ShoppingOrderLocalService shoppingOrderLocalService) {
459                    _shoppingOrderLocalService = shoppingOrderLocalService;
460            }
461    
462            public ShoppingOrderLocalService getWrappedService() {
463                    return _shoppingOrderLocalService;
464            }
465    
466            public void setWrappedService(
467                    ShoppingOrderLocalService shoppingOrderLocalService) {
468                    _shoppingOrderLocalService = shoppingOrderLocalService;
469            }
470    
471            private ShoppingOrderLocalService _shoppingOrderLocalService;
472    }