001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.shopping.service;
016    
017    import com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * Provides a wrapper for {@link ShoppingOrderLocalService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see ShoppingOrderLocalService
024     * @generated
025     */
026    public class ShoppingOrderLocalServiceWrapper
027            implements ShoppingOrderLocalService,
028                    ServiceWrapper<ShoppingOrderLocalService> {
029            public ShoppingOrderLocalServiceWrapper(
030                    ShoppingOrderLocalService shoppingOrderLocalService) {
031                    _shoppingOrderLocalService = shoppingOrderLocalService;
032            }
033    
034            /**
035            * Adds the shopping order to the database. Also notifies the appropriate model listeners.
036            *
037            * @param shoppingOrder the shopping order
038            * @return the shopping order that was added
039            * @throws SystemException if a system exception occurred
040            */
041            @Override
042            public com.liferay.portlet.shopping.model.ShoppingOrder addShoppingOrder(
043                    com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder)
044                    throws com.liferay.portal.kernel.exception.SystemException {
045                    return _shoppingOrderLocalService.addShoppingOrder(shoppingOrder);
046            }
047    
048            /**
049            * Creates a new shopping order with the primary key. Does not add the shopping order to the database.
050            *
051            * @param orderId the primary key for the new shopping order
052            * @return the new shopping order
053            */
054            @Override
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            @Override
069            public com.liferay.portlet.shopping.model.ShoppingOrder deleteShoppingOrder(
070                    long orderId)
071                    throws com.liferay.portal.kernel.exception.PortalException,
072                            com.liferay.portal.kernel.exception.SystemException {
073                    return _shoppingOrderLocalService.deleteShoppingOrder(orderId);
074            }
075    
076            /**
077            * Deletes the shopping order from the database. Also notifies the appropriate model listeners.
078            *
079            * @param shoppingOrder the shopping order
080            * @return the shopping order that was removed
081            * @throws SystemException if a system exception occurred
082            */
083            @Override
084            public com.liferay.portlet.shopping.model.ShoppingOrder deleteShoppingOrder(
085                    com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder)
086                    throws com.liferay.portal.kernel.exception.SystemException {
087                    return _shoppingOrderLocalService.deleteShoppingOrder(shoppingOrder);
088            }
089    
090            @Override
091            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
092                    return _shoppingOrderLocalService.dynamicQuery();
093            }
094    
095            /**
096            * Performs a dynamic query on the database and returns the matching rows.
097            *
098            * @param dynamicQuery the dynamic query
099            * @return the matching rows
100            * @throws SystemException if a system exception occurred
101            */
102            @Override
103            @SuppressWarnings("rawtypes")
104            public java.util.List dynamicQuery(
105                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
106                    throws com.liferay.portal.kernel.exception.SystemException {
107                    return _shoppingOrderLocalService.dynamicQuery(dynamicQuery);
108            }
109    
110            /**
111            * Performs a dynamic query on the database and returns a range of the matching rows.
112            *
113            * <p>
114            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.shopping.model.impl.ShoppingOrderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
115            * </p>
116            *
117            * @param dynamicQuery the dynamic query
118            * @param start the lower bound of the range of model instances
119            * @param end the upper bound of the range of model instances (not inclusive)
120            * @return the range of matching rows
121            * @throws SystemException if a system exception occurred
122            */
123            @Override
124            @SuppressWarnings("rawtypes")
125            public java.util.List dynamicQuery(
126                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
127                    int end) throws com.liferay.portal.kernel.exception.SystemException {
128                    return _shoppingOrderLocalService.dynamicQuery(dynamicQuery, start, end);
129            }
130    
131            /**
132            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
133            *
134            * <p>
135            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.shopping.model.impl.ShoppingOrderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
136            * </p>
137            *
138            * @param dynamicQuery the dynamic query
139            * @param start the lower bound of the range of model instances
140            * @param end the upper bound of the range of model instances (not inclusive)
141            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
142            * @return the ordered range of matching rows
143            * @throws SystemException if a system exception occurred
144            */
145            @Override
146            @SuppressWarnings("rawtypes")
147            public java.util.List dynamicQuery(
148                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
149                    int end,
150                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151                    throws com.liferay.portal.kernel.exception.SystemException {
152                    return _shoppingOrderLocalService.dynamicQuery(dynamicQuery, start,
153                            end, orderByComparator);
154            }
155    
156            /**
157            * Returns the number of rows that match the dynamic query.
158            *
159            * @param dynamicQuery the dynamic query
160            * @return the number of rows that match the dynamic query
161            * @throws SystemException if a system exception occurred
162            */
163            @Override
164            public long dynamicQueryCount(
165                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
166                    throws com.liferay.portal.kernel.exception.SystemException {
167                    return _shoppingOrderLocalService.dynamicQueryCount(dynamicQuery);
168            }
169    
170            /**
171            * Returns the number of rows that match the dynamic query.
172            *
173            * @param dynamicQuery the dynamic query
174            * @param projection the projection to apply to the query
175            * @return the number of rows that match the dynamic query
176            * @throws SystemException if a system exception occurred
177            */
178            @Override
179            public long dynamicQueryCount(
180                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
181                    com.liferay.portal.kernel.dao.orm.Projection projection)
182                    throws com.liferay.portal.kernel.exception.SystemException {
183                    return _shoppingOrderLocalService.dynamicQueryCount(dynamicQuery,
184                            projection);
185            }
186    
187            @Override
188            public com.liferay.portlet.shopping.model.ShoppingOrder fetchShoppingOrder(
189                    long orderId)
190                    throws com.liferay.portal.kernel.exception.SystemException {
191                    return _shoppingOrderLocalService.fetchShoppingOrder(orderId);
192            }
193    
194            /**
195            * Returns the shopping order with the primary key.
196            *
197            * @param orderId the primary key of the shopping order
198            * @return the shopping order
199            * @throws PortalException if a shopping order with the primary key could not be found
200            * @throws SystemException if a system exception occurred
201            */
202            @Override
203            public com.liferay.portlet.shopping.model.ShoppingOrder getShoppingOrder(
204                    long orderId)
205                    throws com.liferay.portal.kernel.exception.PortalException,
206                            com.liferay.portal.kernel.exception.SystemException {
207                    return _shoppingOrderLocalService.getShoppingOrder(orderId);
208            }
209    
210            @Override
211            public com.liferay.portal.model.PersistedModel getPersistedModel(
212                    java.io.Serializable primaryKeyObj)
213                    throws com.liferay.portal.kernel.exception.PortalException,
214                            com.liferay.portal.kernel.exception.SystemException {
215                    return _shoppingOrderLocalService.getPersistedModel(primaryKeyObj);
216            }
217    
218            /**
219            * Returns a range of all the shopping orders.
220            *
221            * <p>
222            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.shopping.model.impl.ShoppingOrderModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
223            * </p>
224            *
225            * @param start the lower bound of the range of shopping orders
226            * @param end the upper bound of the range of shopping orders (not inclusive)
227            * @return the range of shopping orders
228            * @throws SystemException if a system exception occurred
229            */
230            @Override
231            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> getShoppingOrders(
232                    int start, int end)
233                    throws com.liferay.portal.kernel.exception.SystemException {
234                    return _shoppingOrderLocalService.getShoppingOrders(start, end);
235            }
236    
237            /**
238            * Returns the number of shopping orders.
239            *
240            * @return the number of shopping orders
241            * @throws SystemException if a system exception occurred
242            */
243            @Override
244            public int getShoppingOrdersCount()
245                    throws com.liferay.portal.kernel.exception.SystemException {
246                    return _shoppingOrderLocalService.getShoppingOrdersCount();
247            }
248    
249            /**
250            * Updates the shopping order in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
251            *
252            * @param shoppingOrder the shopping order
253            * @return the shopping order that was updated
254            * @throws SystemException if a system exception occurred
255            */
256            @Override
257            public com.liferay.portlet.shopping.model.ShoppingOrder updateShoppingOrder(
258                    com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder)
259                    throws com.liferay.portal.kernel.exception.SystemException {
260                    return _shoppingOrderLocalService.updateShoppingOrder(shoppingOrder);
261            }
262    
263            /**
264            * Returns the Spring bean ID for this bean.
265            *
266            * @return the Spring bean ID for this bean
267            */
268            @Override
269            public java.lang.String getBeanIdentifier() {
270                    return _shoppingOrderLocalService.getBeanIdentifier();
271            }
272    
273            /**
274            * Sets the Spring bean ID for this bean.
275            *
276            * @param beanIdentifier the Spring bean ID for this bean
277            */
278            @Override
279            public void setBeanIdentifier(java.lang.String beanIdentifier) {
280                    _shoppingOrderLocalService.setBeanIdentifier(beanIdentifier);
281            }
282    
283            @Override
284            public com.liferay.portlet.shopping.model.ShoppingOrder addLatestOrder(
285                    long userId, long groupId)
286                    throws com.liferay.portal.kernel.exception.PortalException,
287                            com.liferay.portal.kernel.exception.SystemException {
288                    return _shoppingOrderLocalService.addLatestOrder(userId, groupId);
289            }
290    
291            @Override
292            public void completeOrder(java.lang.String number,
293                    java.lang.String ppTxnId, java.lang.String ppPaymentStatus,
294                    double ppPaymentGross, java.lang.String ppReceiverEmail,
295                    java.lang.String ppPayerEmail, boolean updateInventory,
296                    com.liferay.portal.service.ServiceContext serviceContext)
297                    throws com.liferay.portal.kernel.exception.PortalException,
298                            com.liferay.portal.kernel.exception.SystemException {
299                    _shoppingOrderLocalService.completeOrder(number, ppTxnId,
300                            ppPaymentStatus, ppPaymentGross, ppReceiverEmail, ppPayerEmail,
301                            updateInventory, serviceContext);
302            }
303    
304            @Override
305            public void deleteOrder(long orderId)
306                    throws com.liferay.portal.kernel.exception.PortalException,
307                            com.liferay.portal.kernel.exception.SystemException {
308                    _shoppingOrderLocalService.deleteOrder(orderId);
309            }
310    
311            @Override
312            public void deleteOrder(
313                    com.liferay.portlet.shopping.model.ShoppingOrder order)
314                    throws com.liferay.portal.kernel.exception.PortalException,
315                            com.liferay.portal.kernel.exception.SystemException {
316                    _shoppingOrderLocalService.deleteOrder(order);
317            }
318    
319            @Override
320            public void deleteOrders(long groupId)
321                    throws com.liferay.portal.kernel.exception.PortalException,
322                            com.liferay.portal.kernel.exception.SystemException {
323                    _shoppingOrderLocalService.deleteOrders(groupId);
324            }
325    
326            @Override
327            public com.liferay.portlet.shopping.model.ShoppingOrder getLatestOrder(
328                    long userId, long groupId)
329                    throws com.liferay.portal.kernel.exception.PortalException,
330                            com.liferay.portal.kernel.exception.SystemException {
331                    return _shoppingOrderLocalService.getLatestOrder(userId, groupId);
332            }
333    
334            @Override
335            public com.liferay.portlet.shopping.model.ShoppingOrder getOrder(
336                    long orderId)
337                    throws com.liferay.portal.kernel.exception.PortalException,
338                            com.liferay.portal.kernel.exception.SystemException {
339                    return _shoppingOrderLocalService.getOrder(orderId);
340            }
341    
342            @Override
343            public com.liferay.portlet.shopping.model.ShoppingOrder getOrder(
344                    java.lang.String number)
345                    throws com.liferay.portal.kernel.exception.PortalException,
346                            com.liferay.portal.kernel.exception.SystemException {
347                    return _shoppingOrderLocalService.getOrder(number);
348            }
349    
350            @Override
351            public com.liferay.portlet.shopping.model.ShoppingOrder getPayPalTxnIdOrder(
352                    java.lang.String ppTxnId)
353                    throws com.liferay.portal.kernel.exception.PortalException,
354                            com.liferay.portal.kernel.exception.SystemException {
355                    return _shoppingOrderLocalService.getPayPalTxnIdOrder(ppTxnId);
356            }
357    
358            @Override
359            public com.liferay.portlet.shopping.model.ShoppingOrder saveLatestOrder(
360                    com.liferay.portlet.shopping.model.ShoppingCart cart)
361                    throws com.liferay.portal.kernel.exception.PortalException,
362                            com.liferay.portal.kernel.exception.SystemException {
363                    return _shoppingOrderLocalService.saveLatestOrder(cart);
364            }
365    
366            @Override
367            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> search(
368                    long groupId, long companyId, long userId, java.lang.String number,
369                    java.lang.String billingFirstName, java.lang.String billingLastName,
370                    java.lang.String billingEmailAddress,
371                    java.lang.String shippingFirstName, java.lang.String shippingLastName,
372                    java.lang.String shippingEmailAddress,
373                    java.lang.String ppPaymentStatus, boolean andOperator, int start,
374                    int end) throws com.liferay.portal.kernel.exception.SystemException {
375                    return _shoppingOrderLocalService.search(groupId, companyId, userId,
376                            number, billingFirstName, billingLastName, billingEmailAddress,
377                            shippingFirstName, shippingLastName, shippingEmailAddress,
378                            ppPaymentStatus, andOperator, start, end);
379            }
380    
381            @Override
382            public int searchCount(long groupId, long companyId, long userId,
383                    java.lang.String number, java.lang.String billingFirstName,
384                    java.lang.String billingLastName, java.lang.String billingEmailAddress,
385                    java.lang.String shippingFirstName, java.lang.String shippingLastName,
386                    java.lang.String shippingEmailAddress,
387                    java.lang.String ppPaymentStatus, boolean andOperator)
388                    throws com.liferay.portal.kernel.exception.SystemException {
389                    return _shoppingOrderLocalService.searchCount(groupId, companyId,
390                            userId, number, billingFirstName, billingLastName,
391                            billingEmailAddress, shippingFirstName, shippingLastName,
392                            shippingEmailAddress, ppPaymentStatus, andOperator);
393            }
394    
395            @Override
396            public void sendEmail(long orderId, java.lang.String emailType,
397                    com.liferay.portal.service.ServiceContext serviceContext)
398                    throws com.liferay.portal.kernel.exception.PortalException,
399                            com.liferay.portal.kernel.exception.SystemException {
400                    _shoppingOrderLocalService.sendEmail(orderId, emailType, serviceContext);
401            }
402    
403            @Override
404            public void sendEmail(
405                    com.liferay.portlet.shopping.model.ShoppingOrder order,
406                    java.lang.String emailType,
407                    com.liferay.portal.service.ServiceContext serviceContext)
408                    throws com.liferay.portal.kernel.exception.PortalException,
409                            com.liferay.portal.kernel.exception.SystemException {
410                    _shoppingOrderLocalService.sendEmail(order, emailType, serviceContext);
411            }
412    
413            @Override
414            public com.liferay.portlet.shopping.model.ShoppingOrder updateLatestOrder(
415                    long userId, long groupId, java.lang.String billingFirstName,
416                    java.lang.String billingLastName, java.lang.String billingEmailAddress,
417                    java.lang.String billingCompany, java.lang.String billingStreet,
418                    java.lang.String billingCity, java.lang.String billingState,
419                    java.lang.String billingZip, java.lang.String billingCountry,
420                    java.lang.String billingPhone, boolean shipToBilling,
421                    java.lang.String shippingFirstName, java.lang.String shippingLastName,
422                    java.lang.String shippingEmailAddress,
423                    java.lang.String shippingCompany, java.lang.String shippingStreet,
424                    java.lang.String shippingCity, java.lang.String shippingState,
425                    java.lang.String shippingZip, java.lang.String shippingCountry,
426                    java.lang.String shippingPhone, java.lang.String ccName,
427                    java.lang.String ccType, java.lang.String ccNumber, int ccExpMonth,
428                    int ccExpYear, java.lang.String ccVerNumber, java.lang.String comments)
429                    throws com.liferay.portal.kernel.exception.PortalException,
430                            com.liferay.portal.kernel.exception.SystemException {
431                    return _shoppingOrderLocalService.updateLatestOrder(userId, groupId,
432                            billingFirstName, billingLastName, billingEmailAddress,
433                            billingCompany, billingStreet, billingCity, billingState,
434                            billingZip, billingCountry, billingPhone, shipToBilling,
435                            shippingFirstName, shippingLastName, shippingEmailAddress,
436                            shippingCompany, shippingStreet, shippingCity, shippingState,
437                            shippingZip, shippingCountry, shippingPhone, ccName, ccType,
438                            ccNumber, ccExpMonth, ccExpYear, ccVerNumber, comments);
439            }
440    
441            @Override
442            public com.liferay.portlet.shopping.model.ShoppingOrder updateOrder(
443                    long orderId, java.lang.String ppTxnId,
444                    java.lang.String ppPaymentStatus, double ppPaymentGross,
445                    java.lang.String ppReceiverEmail, java.lang.String ppPayerEmail)
446                    throws com.liferay.portal.kernel.exception.PortalException,
447                            com.liferay.portal.kernel.exception.SystemException {
448                    return _shoppingOrderLocalService.updateOrder(orderId, ppTxnId,
449                            ppPaymentStatus, ppPaymentGross, ppReceiverEmail, ppPayerEmail);
450            }
451    
452            @Override
453            public com.liferay.portlet.shopping.model.ShoppingOrder updateOrder(
454                    long orderId, java.lang.String billingFirstName,
455                    java.lang.String billingLastName, java.lang.String billingEmailAddress,
456                    java.lang.String billingCompany, java.lang.String billingStreet,
457                    java.lang.String billingCity, java.lang.String billingState,
458                    java.lang.String billingZip, java.lang.String billingCountry,
459                    java.lang.String billingPhone, boolean shipToBilling,
460                    java.lang.String shippingFirstName, java.lang.String shippingLastName,
461                    java.lang.String shippingEmailAddress,
462                    java.lang.String shippingCompany, java.lang.String shippingStreet,
463                    java.lang.String shippingCity, java.lang.String shippingState,
464                    java.lang.String shippingZip, java.lang.String shippingCountry,
465                    java.lang.String shippingPhone, java.lang.String ccName,
466                    java.lang.String ccType, java.lang.String ccNumber, int ccExpMonth,
467                    int ccExpYear, java.lang.String ccVerNumber, java.lang.String comments)
468                    throws com.liferay.portal.kernel.exception.PortalException,
469                            com.liferay.portal.kernel.exception.SystemException {
470                    return _shoppingOrderLocalService.updateOrder(orderId,
471                            billingFirstName, billingLastName, billingEmailAddress,
472                            billingCompany, billingStreet, billingCity, billingState,
473                            billingZip, billingCountry, billingPhone, shipToBilling,
474                            shippingFirstName, shippingLastName, shippingEmailAddress,
475                            shippingCompany, shippingStreet, shippingCity, shippingState,
476                            shippingZip, shippingCountry, shippingPhone, ccName, ccType,
477                            ccNumber, ccExpMonth, ccExpYear, ccVerNumber, comments);
478            }
479    
480            /**
481             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
482             */
483            public ShoppingOrderLocalService getWrappedShoppingOrderLocalService() {
484                    return _shoppingOrderLocalService;
485            }
486    
487            /**
488             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
489             */
490            public void setWrappedShoppingOrderLocalService(
491                    ShoppingOrderLocalService shoppingOrderLocalService) {
492                    _shoppingOrderLocalService = shoppingOrderLocalService;
493            }
494    
495            @Override
496            public ShoppingOrderLocalService getWrappedService() {
497                    return _shoppingOrderLocalService;
498            }
499    
500            @Override
501            public void setWrappedService(
502                    ShoppingOrderLocalService shoppingOrderLocalService) {
503                    _shoppingOrderLocalService = shoppingOrderLocalService;
504            }
505    
506            private ShoppingOrderLocalService _shoppingOrderLocalService;
507    }