001    /**
002     * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.ServiceWrapper;
020    
021    /**
022     * Provides a wrapper for {@link ShoppingOrderItemLocalService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see ShoppingOrderItemLocalService
026     * @generated
027     */
028    @ProviderType
029    public class ShoppingOrderItemLocalServiceWrapper
030            implements ShoppingOrderItemLocalService,
031                    ServiceWrapper<ShoppingOrderItemLocalService> {
032            public ShoppingOrderItemLocalServiceWrapper(
033                    ShoppingOrderItemLocalService shoppingOrderItemLocalService) {
034                    _shoppingOrderItemLocalService = shoppingOrderItemLocalService;
035            }
036    
037            /**
038            * Adds the shopping order item to the database. Also notifies the appropriate model listeners.
039            *
040            * @param shoppingOrderItem the shopping order item
041            * @return the shopping order item that was added
042            */
043            @Override
044            public com.liferay.portlet.shopping.model.ShoppingOrderItem addShoppingOrderItem(
045                    com.liferay.portlet.shopping.model.ShoppingOrderItem shoppingOrderItem) {
046                    return _shoppingOrderItemLocalService.addShoppingOrderItem(shoppingOrderItem);
047            }
048    
049            /**
050            * Creates a new shopping order item with the primary key. Does not add the shopping order item to the database.
051            *
052            * @param orderItemId the primary key for the new shopping order item
053            * @return the new shopping order item
054            */
055            @Override
056            public com.liferay.portlet.shopping.model.ShoppingOrderItem createShoppingOrderItem(
057                    long orderItemId) {
058                    return _shoppingOrderItemLocalService.createShoppingOrderItem(orderItemId);
059            }
060    
061            /**
062            * @throws PortalException
063            */
064            @Override
065            public com.liferay.portal.model.PersistedModel deletePersistedModel(
066                    com.liferay.portal.model.PersistedModel persistedModel)
067                    throws com.liferay.portal.kernel.exception.PortalException {
068                    return _shoppingOrderItemLocalService.deletePersistedModel(persistedModel);
069            }
070    
071            /**
072            * Deletes the shopping order item with the primary key from the database. Also notifies the appropriate model listeners.
073            *
074            * @param orderItemId the primary key of the shopping order item
075            * @return the shopping order item that was removed
076            * @throws PortalException if a shopping order item with the primary key could not be found
077            */
078            @Override
079            public com.liferay.portlet.shopping.model.ShoppingOrderItem deleteShoppingOrderItem(
080                    long orderItemId)
081                    throws com.liferay.portal.kernel.exception.PortalException {
082                    return _shoppingOrderItemLocalService.deleteShoppingOrderItem(orderItemId);
083            }
084    
085            /**
086            * Deletes the shopping order item from the database. Also notifies the appropriate model listeners.
087            *
088            * @param shoppingOrderItem the shopping order item
089            * @return the shopping order item that was removed
090            */
091            @Override
092            public com.liferay.portlet.shopping.model.ShoppingOrderItem deleteShoppingOrderItem(
093                    com.liferay.portlet.shopping.model.ShoppingOrderItem shoppingOrderItem) {
094                    return _shoppingOrderItemLocalService.deleteShoppingOrderItem(shoppingOrderItem);
095            }
096    
097            @Override
098            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
099                    return _shoppingOrderItemLocalService.dynamicQuery();
100            }
101    
102            /**
103            * Performs a dynamic query on the database and returns the matching rows.
104            *
105            * @param dynamicQuery the dynamic query
106            * @return the matching rows
107            */
108            @Override
109            public <T> java.util.List<T> dynamicQuery(
110                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
111                    return _shoppingOrderItemLocalService.dynamicQuery(dynamicQuery);
112            }
113    
114            /**
115            * Performs a dynamic query on the database and returns a range of the matching rows.
116            *
117            * <p>
118            * 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.ShoppingOrderItemModelImpl}. 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.
119            * </p>
120            *
121            * @param dynamicQuery the dynamic query
122            * @param start the lower bound of the range of model instances
123            * @param end the upper bound of the range of model instances (not inclusive)
124            * @return the range of matching rows
125            */
126            @Override
127            public <T> java.util.List<T> dynamicQuery(
128                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
129                    int end) {
130                    return _shoppingOrderItemLocalService.dynamicQuery(dynamicQuery, start,
131                            end);
132            }
133    
134            /**
135            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
136            *
137            * <p>
138            * 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.ShoppingOrderItemModelImpl}. 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.
139            * </p>
140            *
141            * @param dynamicQuery the dynamic query
142            * @param start the lower bound of the range of model instances
143            * @param end the upper bound of the range of model instances (not inclusive)
144            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
145            * @return the ordered range of matching rows
146            */
147            @Override
148            public <T> java.util.List<T> dynamicQuery(
149                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
150                    int end,
151                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
152                    return _shoppingOrderItemLocalService.dynamicQuery(dynamicQuery, start,
153                            end, orderByComparator);
154            }
155    
156            /**
157            * Returns the number of rows matching the dynamic query.
158            *
159            * @param dynamicQuery the dynamic query
160            * @return the number of rows matching the dynamic query
161            */
162            @Override
163            public long dynamicQueryCount(
164                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
165                    return _shoppingOrderItemLocalService.dynamicQueryCount(dynamicQuery);
166            }
167    
168            /**
169            * Returns the number of rows matching the dynamic query.
170            *
171            * @param dynamicQuery the dynamic query
172            * @param projection the projection to apply to the query
173            * @return the number of rows matching the dynamic query
174            */
175            @Override
176            public long dynamicQueryCount(
177                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
178                    com.liferay.portal.kernel.dao.orm.Projection projection) {
179                    return _shoppingOrderItemLocalService.dynamicQueryCount(dynamicQuery,
180                            projection);
181            }
182    
183            @Override
184            public com.liferay.portlet.shopping.model.ShoppingOrderItem fetchShoppingOrderItem(
185                    long orderItemId) {
186                    return _shoppingOrderItemLocalService.fetchShoppingOrderItem(orderItemId);
187            }
188    
189            @Override
190            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
191                    return _shoppingOrderItemLocalService.getActionableDynamicQuery();
192            }
193    
194            /**
195            * Returns the Spring bean ID for this bean.
196            *
197            * @return the Spring bean ID for this bean
198            */
199            @Override
200            public java.lang.String getBeanIdentifier() {
201                    return _shoppingOrderItemLocalService.getBeanIdentifier();
202            }
203    
204            @Override
205            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrderItem> getOrderItems(
206                    long orderId) {
207                    return _shoppingOrderItemLocalService.getOrderItems(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                    return _shoppingOrderItemLocalService.getPersistedModel(primaryKeyObj);
215            }
216    
217            /**
218            * Returns the shopping order item with the primary key.
219            *
220            * @param orderItemId the primary key of the shopping order item
221            * @return the shopping order item
222            * @throws PortalException if a shopping order item with the primary key could not be found
223            */
224            @Override
225            public com.liferay.portlet.shopping.model.ShoppingOrderItem getShoppingOrderItem(
226                    long orderItemId)
227                    throws com.liferay.portal.kernel.exception.PortalException {
228                    return _shoppingOrderItemLocalService.getShoppingOrderItem(orderItemId);
229            }
230    
231            /**
232            * Returns a range of all the shopping order items.
233            *
234            * <p>
235            * 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.ShoppingOrderItemModelImpl}. 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.
236            * </p>
237            *
238            * @param start the lower bound of the range of shopping order items
239            * @param end the upper bound of the range of shopping order items (not inclusive)
240            * @return the range of shopping order items
241            */
242            @Override
243            public java.util.List<com.liferay.portlet.shopping.model.ShoppingOrderItem> getShoppingOrderItems(
244                    int start, int end) {
245                    return _shoppingOrderItemLocalService.getShoppingOrderItems(start, end);
246            }
247    
248            /**
249            * Returns the number of shopping order items.
250            *
251            * @return the number of shopping order items
252            */
253            @Override
254            public int getShoppingOrderItemsCount() {
255                    return _shoppingOrderItemLocalService.getShoppingOrderItemsCount();
256            }
257    
258            /**
259            * Sets the Spring bean ID for this bean.
260            *
261            * @param beanIdentifier the Spring bean ID for this bean
262            */
263            @Override
264            public void setBeanIdentifier(java.lang.String beanIdentifier) {
265                    _shoppingOrderItemLocalService.setBeanIdentifier(beanIdentifier);
266            }
267    
268            /**
269            * Updates the shopping order item in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
270            *
271            * @param shoppingOrderItem the shopping order item
272            * @return the shopping order item that was updated
273            */
274            @Override
275            public com.liferay.portlet.shopping.model.ShoppingOrderItem updateShoppingOrderItem(
276                    com.liferay.portlet.shopping.model.ShoppingOrderItem shoppingOrderItem) {
277                    return _shoppingOrderItemLocalService.updateShoppingOrderItem(shoppingOrderItem);
278            }
279    
280            /**
281             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
282             */
283            @Deprecated
284            public ShoppingOrderItemLocalService getWrappedShoppingOrderItemLocalService() {
285                    return _shoppingOrderItemLocalService;
286            }
287    
288            /**
289             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
290             */
291            @Deprecated
292            public void setWrappedShoppingOrderItemLocalService(
293                    ShoppingOrderItemLocalService shoppingOrderItemLocalService) {
294                    _shoppingOrderItemLocalService = shoppingOrderItemLocalService;
295            }
296    
297            @Override
298            public ShoppingOrderItemLocalService getWrappedService() {
299                    return _shoppingOrderItemLocalService;
300            }
301    
302            @Override
303            public void setWrappedService(
304                    ShoppingOrderItemLocalService shoppingOrderItemLocalService) {
305                    _shoppingOrderItemLocalService = shoppingOrderItemLocalService;
306            }
307    
308            private ShoppingOrderItemLocalService _shoppingOrderItemLocalService;
309    }