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