001    /**
002     * Copyright (c) 2000-2011 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
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
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
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
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
104            * @param start the lower bound of the range of model instances
105            * @param end the upper bound of the range of model instances (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
124            * @param start the lower bound of the range of model instances
125            * @param end the upper bound of the range of model instances (not inclusive)
126            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
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            * Returns the number of rows that match the dynamic query.
142            *
143            * @param dynamicQuery the dynamic query
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            * Returns the shopping order with the primary key.
155            *
156            * @param orderId the primary key of the shopping order
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            public com.liferay.portal.model.PersistedModel getPersistedModel(
169                    java.io.Serializable primaryKeyObj)
170                    throws com.liferay.portal.kernel.exception.PortalException,
171                            com.liferay.portal.kernel.exception.SystemException {
172                    return _shoppingOrderLocalService.getPersistedModel(primaryKeyObj);
173            }
174    
175            /**
176            * Returns a range of all the shopping orders.
177            *
178            * <p>
179            * 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.
180            * </p>
181            *
182            * @param start the lower bound of the range of shopping orders
183            * @param end the upper bound of the range of shopping orders (not inclusive)
184            * @return the range of shopping orders
185            * @throws SystemException if a system exception occurred
186            */
187            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> getShoppingOrders(
188                    int start, int end)
189                    throws com.liferay.portal.kernel.exception.SystemException {
190                    return _shoppingOrderLocalService.getShoppingOrders(start, end);
191            }
192    
193            /**
194            * Returns the number of shopping orders.
195            *
196            * @return the number of shopping orders
197            * @throws SystemException if a system exception occurred
198            */
199            public int getShoppingOrdersCount()
200                    throws com.liferay.portal.kernel.exception.SystemException {
201                    return _shoppingOrderLocalService.getShoppingOrdersCount();
202            }
203    
204            /**
205            * Updates the shopping order in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
206            *
207            * @param shoppingOrder the shopping order
208            * @return the shopping order that was updated
209            * @throws SystemException if a system exception occurred
210            */
211            public com.liferay.portlet.shopping.model.ShoppingOrder updateShoppingOrder(
212                    com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder)
213                    throws com.liferay.portal.kernel.exception.SystemException {
214                    return _shoppingOrderLocalService.updateShoppingOrder(shoppingOrder);
215            }
216    
217            /**
218            * Updates the shopping order in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
219            *
220            * @param shoppingOrder the shopping order
221            * @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.
222            * @return the shopping order that was updated
223            * @throws SystemException if a system exception occurred
224            */
225            public com.liferay.portlet.shopping.model.ShoppingOrder updateShoppingOrder(
226                    com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder,
227                    boolean merge)
228                    throws com.liferay.portal.kernel.exception.SystemException {
229                    return _shoppingOrderLocalService.updateShoppingOrder(shoppingOrder,
230                            merge);
231            }
232    
233            /**
234            * Returns the Spring bean ID for this bean.
235            *
236            * @return the Spring bean ID for this bean
237            */
238            public java.lang.String getBeanIdentifier() {
239                    return _shoppingOrderLocalService.getBeanIdentifier();
240            }
241    
242            /**
243            * Sets the Spring bean ID for this bean.
244            *
245            * @param beanIdentifier the Spring bean ID for this bean
246            */
247            public void setBeanIdentifier(java.lang.String beanIdentifier) {
248                    _shoppingOrderLocalService.setBeanIdentifier(beanIdentifier);
249            }
250    
251            public com.liferay.portlet.shopping.model.ShoppingOrder addLatestOrder(
252                    long userId, long groupId)
253                    throws com.liferay.portal.kernel.exception.PortalException,
254                            com.liferay.portal.kernel.exception.SystemException {
255                    return _shoppingOrderLocalService.addLatestOrder(userId, groupId);
256            }
257    
258            public void completeOrder(java.lang.String number,
259                    java.lang.String ppTxnId, java.lang.String ppPaymentStatus,
260                    double ppPaymentGross, java.lang.String ppReceiverEmail,
261                    java.lang.String ppPayerEmail, boolean updateInventory)
262                    throws com.liferay.portal.kernel.exception.PortalException,
263                            com.liferay.portal.kernel.exception.SystemException {
264                    _shoppingOrderLocalService.completeOrder(number, ppTxnId,
265                            ppPaymentStatus, ppPaymentGross, ppReceiverEmail, ppPayerEmail,
266                            updateInventory);
267            }
268    
269            public void deleteOrder(long orderId)
270                    throws com.liferay.portal.kernel.exception.PortalException,
271                            com.liferay.portal.kernel.exception.SystemException {
272                    _shoppingOrderLocalService.deleteOrder(orderId);
273            }
274    
275            public void deleteOrder(
276                    com.liferay.portlet.shopping.model.ShoppingOrder order)
277                    throws com.liferay.portal.kernel.exception.PortalException,
278                            com.liferay.portal.kernel.exception.SystemException {
279                    _shoppingOrderLocalService.deleteOrder(order);
280            }
281    
282            public void deleteOrders(long groupId)
283                    throws com.liferay.portal.kernel.exception.PortalException,
284                            com.liferay.portal.kernel.exception.SystemException {
285                    _shoppingOrderLocalService.deleteOrders(groupId);
286            }
287    
288            public com.liferay.portlet.shopping.model.ShoppingOrder getLatestOrder(
289                    long userId, long groupId)
290                    throws com.liferay.portal.kernel.exception.PortalException,
291                            com.liferay.portal.kernel.exception.SystemException {
292                    return _shoppingOrderLocalService.getLatestOrder(userId, groupId);
293            }
294    
295            public com.liferay.portlet.shopping.model.ShoppingOrder getOrder(
296                    long orderId)
297                    throws com.liferay.portal.kernel.exception.PortalException,
298                            com.liferay.portal.kernel.exception.SystemException {
299                    return _shoppingOrderLocalService.getOrder(orderId);
300            }
301    
302            public com.liferay.portlet.shopping.model.ShoppingOrder getOrder(
303                    java.lang.String number)
304                    throws com.liferay.portal.kernel.exception.PortalException,
305                            com.liferay.portal.kernel.exception.SystemException {
306                    return _shoppingOrderLocalService.getOrder(number);
307            }
308    
309            public com.liferay.portlet.shopping.model.ShoppingOrder getPayPalTxnIdOrder(
310                    java.lang.String ppTxnId)
311                    throws com.liferay.portal.kernel.exception.PortalException,
312                            com.liferay.portal.kernel.exception.SystemException {
313                    return _shoppingOrderLocalService.getPayPalTxnIdOrder(ppTxnId);
314            }
315    
316            public com.liferay.portlet.shopping.model.ShoppingOrder saveLatestOrder(
317                    com.liferay.portlet.shopping.model.ShoppingCart cart)
318                    throws com.liferay.portal.kernel.exception.PortalException,
319                            com.liferay.portal.kernel.exception.SystemException {
320                    return _shoppingOrderLocalService.saveLatestOrder(cart);
321            }
322    
323            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> search(
324                    long groupId, long companyId, long userId, java.lang.String number,
325                    java.lang.String billingFirstName, java.lang.String billingLastName,
326                    java.lang.String billingEmailAddress,
327                    java.lang.String shippingFirstName, java.lang.String shippingLastName,
328                    java.lang.String shippingEmailAddress,
329                    java.lang.String ppPaymentStatus, boolean andOperator, int start,
330                    int end) throws com.liferay.portal.kernel.exception.SystemException {
331                    return _shoppingOrderLocalService.search(groupId, companyId, userId,
332                            number, billingFirstName, billingLastName, billingEmailAddress,
333                            shippingFirstName, shippingLastName, shippingEmailAddress,
334                            ppPaymentStatus, andOperator, start, end);
335            }
336    
337            public int searchCount(long groupId, long companyId, long userId,
338                    java.lang.String number, java.lang.String billingFirstName,
339                    java.lang.String billingLastName, java.lang.String billingEmailAddress,
340                    java.lang.String shippingFirstName, java.lang.String shippingLastName,
341                    java.lang.String shippingEmailAddress,
342                    java.lang.String ppPaymentStatus, boolean andOperator)
343                    throws com.liferay.portal.kernel.exception.SystemException {
344                    return _shoppingOrderLocalService.searchCount(groupId, companyId,
345                            userId, number, billingFirstName, billingLastName,
346                            billingEmailAddress, shippingFirstName, shippingLastName,
347                            shippingEmailAddress, ppPaymentStatus, andOperator);
348            }
349    
350            public void sendEmail(long orderId, java.lang.String emailType)
351                    throws com.liferay.portal.kernel.exception.PortalException,
352                            com.liferay.portal.kernel.exception.SystemException {
353                    _shoppingOrderLocalService.sendEmail(orderId, emailType);
354            }
355    
356            public void sendEmail(
357                    com.liferay.portlet.shopping.model.ShoppingOrder order,
358                    java.lang.String emailType)
359                    throws com.liferay.portal.kernel.exception.PortalException,
360                            com.liferay.portal.kernel.exception.SystemException {
361                    _shoppingOrderLocalService.sendEmail(order, emailType);
362            }
363    
364            public com.liferay.portlet.shopping.model.ShoppingOrder updateLatestOrder(
365                    long userId, long groupId, java.lang.String billingFirstName,
366                    java.lang.String billingLastName, java.lang.String billingEmailAddress,
367                    java.lang.String billingCompany, java.lang.String billingStreet,
368                    java.lang.String billingCity, java.lang.String billingState,
369                    java.lang.String billingZip, java.lang.String billingCountry,
370                    java.lang.String billingPhone, boolean shipToBilling,
371                    java.lang.String shippingFirstName, java.lang.String shippingLastName,
372                    java.lang.String shippingEmailAddress,
373                    java.lang.String shippingCompany, java.lang.String shippingStreet,
374                    java.lang.String shippingCity, java.lang.String shippingState,
375                    java.lang.String shippingZip, java.lang.String shippingCountry,
376                    java.lang.String shippingPhone, java.lang.String ccName,
377                    java.lang.String ccType, java.lang.String ccNumber, int ccExpMonth,
378                    int ccExpYear, java.lang.String ccVerNumber, java.lang.String comments)
379                    throws com.liferay.portal.kernel.exception.PortalException,
380                            com.liferay.portal.kernel.exception.SystemException {
381                    return _shoppingOrderLocalService.updateLatestOrder(userId, groupId,
382                            billingFirstName, billingLastName, billingEmailAddress,
383                            billingCompany, billingStreet, billingCity, billingState,
384                            billingZip, billingCountry, billingPhone, shipToBilling,
385                            shippingFirstName, shippingLastName, shippingEmailAddress,
386                            shippingCompany, shippingStreet, shippingCity, shippingState,
387                            shippingZip, shippingCountry, shippingPhone, ccName, ccType,
388                            ccNumber, ccExpMonth, ccExpYear, ccVerNumber, comments);
389            }
390    
391            public com.liferay.portlet.shopping.model.ShoppingOrder updateOrder(
392                    long orderId, java.lang.String ppTxnId,
393                    java.lang.String ppPaymentStatus, double ppPaymentGross,
394                    java.lang.String ppReceiverEmail, java.lang.String ppPayerEmail)
395                    throws com.liferay.portal.kernel.exception.PortalException,
396                            com.liferay.portal.kernel.exception.SystemException {
397                    return _shoppingOrderLocalService.updateOrder(orderId, ppTxnId,
398                            ppPaymentStatus, ppPaymentGross, ppReceiverEmail, ppPayerEmail);
399            }
400    
401            public com.liferay.portlet.shopping.model.ShoppingOrder updateOrder(
402                    long orderId, java.lang.String billingFirstName,
403                    java.lang.String billingLastName, java.lang.String billingEmailAddress,
404                    java.lang.String billingCompany, java.lang.String billingStreet,
405                    java.lang.String billingCity, java.lang.String billingState,
406                    java.lang.String billingZip, java.lang.String billingCountry,
407                    java.lang.String billingPhone, boolean shipToBilling,
408                    java.lang.String shippingFirstName, java.lang.String shippingLastName,
409                    java.lang.String shippingEmailAddress,
410                    java.lang.String shippingCompany, java.lang.String shippingStreet,
411                    java.lang.String shippingCity, java.lang.String shippingState,
412                    java.lang.String shippingZip, java.lang.String shippingCountry,
413                    java.lang.String shippingPhone, java.lang.String ccName,
414                    java.lang.String ccType, java.lang.String ccNumber, int ccExpMonth,
415                    int ccExpYear, java.lang.String ccVerNumber, java.lang.String comments)
416                    throws com.liferay.portal.kernel.exception.PortalException,
417                            com.liferay.portal.kernel.exception.SystemException {
418                    return _shoppingOrderLocalService.updateOrder(orderId,
419                            billingFirstName, billingLastName, billingEmailAddress,
420                            billingCompany, billingStreet, billingCity, billingState,
421                            billingZip, billingCountry, billingPhone, shipToBilling,
422                            shippingFirstName, shippingLastName, shippingEmailAddress,
423                            shippingCompany, shippingStreet, shippingCity, shippingState,
424                            shippingZip, shippingCountry, shippingPhone, ccName, ccType,
425                            ccNumber, ccExpMonth, ccExpYear, ccVerNumber, comments);
426            }
427    
428            public ShoppingOrderLocalService getWrappedShoppingOrderLocalService() {
429                    return _shoppingOrderLocalService;
430            }
431    
432            public void setWrappedShoppingOrderLocalService(
433                    ShoppingOrderLocalService shoppingOrderLocalService) {
434                    _shoppingOrderLocalService = shoppingOrderLocalService;
435            }
436    
437            private ShoppingOrderLocalService _shoppingOrderLocalService;
438    }