001    /**
002     * Copyright (c) 2000-2010 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    /**
018     * <p>
019     * This class is a wrapper for {@link ShoppingOrderLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       ShoppingOrderLocalService
024     * @generated
025     */
026    public class ShoppingOrderLocalServiceWrapper
027            implements ShoppingOrderLocalService {
028            public ShoppingOrderLocalServiceWrapper(
029                    ShoppingOrderLocalService shoppingOrderLocalService) {
030                    _shoppingOrderLocalService = shoppingOrderLocalService;
031            }
032    
033            /**
034            * Adds the shopping order to the database. Also notifies the appropriate model listeners.
035            *
036            * @param shoppingOrder the shopping order to add
037            * @return the shopping order that was added
038            * @throws SystemException if a system exception occurred
039            */
040            public com.liferay.portlet.shopping.model.ShoppingOrder addShoppingOrder(
041                    com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder)
042                    throws com.liferay.portal.kernel.exception.SystemException {
043                    return _shoppingOrderLocalService.addShoppingOrder(shoppingOrder);
044            }
045    
046            /**
047            * Creates a new shopping order with the primary key. Does not add the shopping order to the database.
048            *
049            * @param orderId the primary key for the new shopping order
050            * @return the new shopping order
051            */
052            public com.liferay.portlet.shopping.model.ShoppingOrder createShoppingOrder(
053                    long orderId) {
054                    return _shoppingOrderLocalService.createShoppingOrder(orderId);
055            }
056    
057            /**
058            * Deletes the shopping order with the primary key from the database. Also notifies the appropriate model listeners.
059            *
060            * @param orderId the primary key of the shopping order to delete
061            * @throws PortalException if a shopping order with the primary key could not be found
062            * @throws SystemException if a system exception occurred
063            */
064            public void deleteShoppingOrder(long orderId)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException {
067                    _shoppingOrderLocalService.deleteShoppingOrder(orderId);
068            }
069    
070            /**
071            * Deletes the shopping order from the database. Also notifies the appropriate model listeners.
072            *
073            * @param shoppingOrder the shopping order to delete
074            * @throws SystemException if a system exception occurred
075            */
076            public void deleteShoppingOrder(
077                    com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder)
078                    throws com.liferay.portal.kernel.exception.SystemException {
079                    _shoppingOrderLocalService.deleteShoppingOrder(shoppingOrder);
080            }
081    
082            /**
083            * Performs a dynamic query on the database and returns the matching rows.
084            *
085            * @param dynamicQuery the dynamic query to search with
086            * @return the matching rows
087            * @throws SystemException if a system exception occurred
088            */
089            @SuppressWarnings("rawtypes")
090            public java.util.List dynamicQuery(
091                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
092                    throws com.liferay.portal.kernel.exception.SystemException {
093                    return _shoppingOrderLocalService.dynamicQuery(dynamicQuery);
094            }
095    
096            /**
097            * Performs a dynamic query on the database and returns a range of the matching rows.
098            *
099            * <p>
100            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
101            * </p>
102            *
103            * @param dynamicQuery the dynamic query to search with
104            * @param start the lower bound of the range of model instances to return
105            * @param end the upper bound of the range of model instances to return (not inclusive)
106            * @return the range of matching rows
107            * @throws SystemException if a system exception occurred
108            */
109            @SuppressWarnings("rawtypes")
110            public java.util.List dynamicQuery(
111                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
112                    int end) throws com.liferay.portal.kernel.exception.SystemException {
113                    return _shoppingOrderLocalService.dynamicQuery(dynamicQuery, start, end);
114            }
115    
116            /**
117            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
118            *
119            * <p>
120            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
121            * </p>
122            *
123            * @param dynamicQuery the dynamic query to search with
124            * @param start the lower bound of the range of model instances to return
125            * @param end the upper bound of the range of model instances to return (not inclusive)
126            * @param orderByComparator the comparator to order the results by
127            * @return the ordered range of matching rows
128            * @throws SystemException if a system exception occurred
129            */
130            @SuppressWarnings("rawtypes")
131            public java.util.List dynamicQuery(
132                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
133                    int end,
134                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135                    throws com.liferay.portal.kernel.exception.SystemException {
136                    return _shoppingOrderLocalService.dynamicQuery(dynamicQuery, start,
137                            end, orderByComparator);
138            }
139    
140            /**
141            * Counts the number of rows that match the dynamic query.
142            *
143            * @param dynamicQuery the dynamic query to search with
144            * @return the number of rows that match the dynamic query
145            * @throws SystemException if a system exception occurred
146            */
147            public long dynamicQueryCount(
148                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
149                    throws com.liferay.portal.kernel.exception.SystemException {
150                    return _shoppingOrderLocalService.dynamicQueryCount(dynamicQuery);
151            }
152    
153            /**
154            * Gets the shopping order with the primary key.
155            *
156            * @param orderId the primary key of the shopping order to get
157            * @return the shopping order
158            * @throws PortalException if a shopping order with the primary key could not be found
159            * @throws SystemException if a system exception occurred
160            */
161            public com.liferay.portlet.shopping.model.ShoppingOrder getShoppingOrder(
162                    long orderId)
163                    throws com.liferay.portal.kernel.exception.PortalException,
164                            com.liferay.portal.kernel.exception.SystemException {
165                    return _shoppingOrderLocalService.getShoppingOrder(orderId);
166            }
167    
168            /**
169            * Gets a range of all the shopping orders.
170            *
171            * <p>
172            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
173            * </p>
174            *
175            * @param start the lower bound of the range of shopping orders to return
176            * @param end the upper bound of the range of shopping orders to return (not inclusive)
177            * @return the range of shopping orders
178            * @throws SystemException if a system exception occurred
179            */
180            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> getShoppingOrders(
181                    int start, int end)
182                    throws com.liferay.portal.kernel.exception.SystemException {
183                    return _shoppingOrderLocalService.getShoppingOrders(start, end);
184            }
185    
186            /**
187            * Gets the number of shopping orders.
188            *
189            * @return the number of shopping orders
190            * @throws SystemException if a system exception occurred
191            */
192            public int getShoppingOrdersCount()
193                    throws com.liferay.portal.kernel.exception.SystemException {
194                    return _shoppingOrderLocalService.getShoppingOrdersCount();
195            }
196    
197            /**
198            * Updates the shopping order in the database. Also notifies the appropriate model listeners.
199            *
200            * @param shoppingOrder the shopping order to update
201            * @return the shopping order that was updated
202            * @throws SystemException if a system exception occurred
203            */
204            public com.liferay.portlet.shopping.model.ShoppingOrder updateShoppingOrder(
205                    com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder)
206                    throws com.liferay.portal.kernel.exception.SystemException {
207                    return _shoppingOrderLocalService.updateShoppingOrder(shoppingOrder);
208            }
209    
210            /**
211            * Updates the shopping order in the database. Also notifies the appropriate model listeners.
212            *
213            * @param shoppingOrder the shopping order to update
214            * @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.
215            * @return the shopping order that was updated
216            * @throws SystemException if a system exception occurred
217            */
218            public com.liferay.portlet.shopping.model.ShoppingOrder updateShoppingOrder(
219                    com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder,
220                    boolean merge)
221                    throws com.liferay.portal.kernel.exception.SystemException {
222                    return _shoppingOrderLocalService.updateShoppingOrder(shoppingOrder,
223                            merge);
224            }
225    
226            public com.liferay.portlet.shopping.model.ShoppingOrder addLatestOrder(
227                    long userId, long groupId)
228                    throws com.liferay.portal.kernel.exception.PortalException,
229                            com.liferay.portal.kernel.exception.SystemException {
230                    return _shoppingOrderLocalService.addLatestOrder(userId, groupId);
231            }
232    
233            public void completeOrder(java.lang.String number,
234                    java.lang.String ppTxnId, java.lang.String ppPaymentStatus,
235                    double ppPaymentGross, java.lang.String ppReceiverEmail,
236                    java.lang.String ppPayerEmail, boolean updateInventory)
237                    throws com.liferay.portal.kernel.exception.PortalException,
238                            com.liferay.portal.kernel.exception.SystemException {
239                    _shoppingOrderLocalService.completeOrder(number, ppTxnId,
240                            ppPaymentStatus, ppPaymentGross, ppReceiverEmail, ppPayerEmail,
241                            updateInventory);
242            }
243    
244            public void deleteOrder(long orderId)
245                    throws com.liferay.portal.kernel.exception.PortalException,
246                            com.liferay.portal.kernel.exception.SystemException {
247                    _shoppingOrderLocalService.deleteOrder(orderId);
248            }
249    
250            public void deleteOrder(
251                    com.liferay.portlet.shopping.model.ShoppingOrder order)
252                    throws com.liferay.portal.kernel.exception.PortalException,
253                            com.liferay.portal.kernel.exception.SystemException {
254                    _shoppingOrderLocalService.deleteOrder(order);
255            }
256    
257            public void deleteOrders(long groupId)
258                    throws com.liferay.portal.kernel.exception.PortalException,
259                            com.liferay.portal.kernel.exception.SystemException {
260                    _shoppingOrderLocalService.deleteOrders(groupId);
261            }
262    
263            public com.liferay.portlet.shopping.model.ShoppingOrder getLatestOrder(
264                    long userId, long groupId)
265                    throws com.liferay.portal.kernel.exception.PortalException,
266                            com.liferay.portal.kernel.exception.SystemException {
267                    return _shoppingOrderLocalService.getLatestOrder(userId, groupId);
268            }
269    
270            public com.liferay.portlet.shopping.model.ShoppingOrder getOrder(
271                    long orderId)
272                    throws com.liferay.portal.kernel.exception.PortalException,
273                            com.liferay.portal.kernel.exception.SystemException {
274                    return _shoppingOrderLocalService.getOrder(orderId);
275            }
276    
277            public com.liferay.portlet.shopping.model.ShoppingOrder getOrder(
278                    java.lang.String number)
279                    throws com.liferay.portal.kernel.exception.PortalException,
280                            com.liferay.portal.kernel.exception.SystemException {
281                    return _shoppingOrderLocalService.getOrder(number);
282            }
283    
284            public com.liferay.portlet.shopping.model.ShoppingOrder getPayPalTxnIdOrder(
285                    java.lang.String ppTxnId)
286                    throws com.liferay.portal.kernel.exception.PortalException,
287                            com.liferay.portal.kernel.exception.SystemException {
288                    return _shoppingOrderLocalService.getPayPalTxnIdOrder(ppTxnId);
289            }
290    
291            public com.liferay.portlet.shopping.model.ShoppingOrder saveLatestOrder(
292                    com.liferay.portlet.shopping.model.ShoppingCart cart)
293                    throws com.liferay.portal.kernel.exception.PortalException,
294                            com.liferay.portal.kernel.exception.SystemException {
295                    return _shoppingOrderLocalService.saveLatestOrder(cart);
296            }
297    
298            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> search(
299                    long groupId, long companyId, long userId, java.lang.String number,
300                    java.lang.String billingFirstName, java.lang.String billingLastName,
301                    java.lang.String billingEmailAddress,
302                    java.lang.String shippingFirstName, java.lang.String shippingLastName,
303                    java.lang.String shippingEmailAddress,
304                    java.lang.String ppPaymentStatus, boolean andOperator, int start,
305                    int end) throws com.liferay.portal.kernel.exception.SystemException {
306                    return _shoppingOrderLocalService.search(groupId, companyId, userId,
307                            number, billingFirstName, billingLastName, billingEmailAddress,
308                            shippingFirstName, shippingLastName, shippingEmailAddress,
309                            ppPaymentStatus, andOperator, start, end);
310            }
311    
312            public int searchCount(long groupId, long companyId, long userId,
313                    java.lang.String number, java.lang.String billingFirstName,
314                    java.lang.String billingLastName, java.lang.String billingEmailAddress,
315                    java.lang.String shippingFirstName, java.lang.String shippingLastName,
316                    java.lang.String shippingEmailAddress,
317                    java.lang.String ppPaymentStatus, boolean andOperator)
318                    throws com.liferay.portal.kernel.exception.SystemException {
319                    return _shoppingOrderLocalService.searchCount(groupId, companyId,
320                            userId, number, billingFirstName, billingLastName,
321                            billingEmailAddress, shippingFirstName, shippingLastName,
322                            shippingEmailAddress, ppPaymentStatus, andOperator);
323            }
324    
325            public void sendEmail(long orderId, java.lang.String emailType)
326                    throws com.liferay.portal.kernel.exception.PortalException,
327                            com.liferay.portal.kernel.exception.SystemException {
328                    _shoppingOrderLocalService.sendEmail(orderId, emailType);
329            }
330    
331            public void sendEmail(
332                    com.liferay.portlet.shopping.model.ShoppingOrder order,
333                    java.lang.String emailType)
334                    throws com.liferay.portal.kernel.exception.PortalException,
335                            com.liferay.portal.kernel.exception.SystemException {
336                    _shoppingOrderLocalService.sendEmail(order, emailType);
337            }
338    
339            public com.liferay.portlet.shopping.model.ShoppingOrder updateLatestOrder(
340                    long userId, long groupId, java.lang.String billingFirstName,
341                    java.lang.String billingLastName, java.lang.String billingEmailAddress,
342                    java.lang.String billingCompany, java.lang.String billingStreet,
343                    java.lang.String billingCity, java.lang.String billingState,
344                    java.lang.String billingZip, java.lang.String billingCountry,
345                    java.lang.String billingPhone, boolean shipToBilling,
346                    java.lang.String shippingFirstName, java.lang.String shippingLastName,
347                    java.lang.String shippingEmailAddress,
348                    java.lang.String shippingCompany, java.lang.String shippingStreet,
349                    java.lang.String shippingCity, java.lang.String shippingState,
350                    java.lang.String shippingZip, java.lang.String shippingCountry,
351                    java.lang.String shippingPhone, java.lang.String ccName,
352                    java.lang.String ccType, java.lang.String ccNumber, int ccExpMonth,
353                    int ccExpYear, java.lang.String ccVerNumber, java.lang.String comments)
354                    throws com.liferay.portal.kernel.exception.PortalException,
355                            com.liferay.portal.kernel.exception.SystemException {
356                    return _shoppingOrderLocalService.updateLatestOrder(userId, groupId,
357                            billingFirstName, billingLastName, billingEmailAddress,
358                            billingCompany, billingStreet, billingCity, billingState,
359                            billingZip, billingCountry, billingPhone, shipToBilling,
360                            shippingFirstName, shippingLastName, shippingEmailAddress,
361                            shippingCompany, shippingStreet, shippingCity, shippingState,
362                            shippingZip, shippingCountry, shippingPhone, ccName, ccType,
363                            ccNumber, ccExpMonth, ccExpYear, ccVerNumber, comments);
364            }
365    
366            public com.liferay.portlet.shopping.model.ShoppingOrder updateOrder(
367                    long orderId, java.lang.String ppTxnId,
368                    java.lang.String ppPaymentStatus, double ppPaymentGross,
369                    java.lang.String ppReceiverEmail, java.lang.String ppPayerEmail)
370                    throws com.liferay.portal.kernel.exception.PortalException,
371                            com.liferay.portal.kernel.exception.SystemException {
372                    return _shoppingOrderLocalService.updateOrder(orderId, ppTxnId,
373                            ppPaymentStatus, ppPaymentGross, ppReceiverEmail, ppPayerEmail);
374            }
375    
376            public com.liferay.portlet.shopping.model.ShoppingOrder updateOrder(
377                    long orderId, 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.updateOrder(orderId,
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 ShoppingOrderLocalService getWrappedShoppingOrderLocalService() {
404                    return _shoppingOrderLocalService;
405            }
406    
407            private ShoppingOrderLocalService _shoppingOrderLocalService;
408    }