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 ShoppingItemPriceLocalService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see ShoppingItemPriceLocalService
026     * @generated
027     */
028    @ProviderType
029    public class ShoppingItemPriceLocalServiceWrapper
030            implements ShoppingItemPriceLocalService,
031                    ServiceWrapper<ShoppingItemPriceLocalService> {
032            public ShoppingItemPriceLocalServiceWrapper(
033                    ShoppingItemPriceLocalService shoppingItemPriceLocalService) {
034                    _shoppingItemPriceLocalService = shoppingItemPriceLocalService;
035            }
036    
037            /**
038            * Adds the shopping item price to the database. Also notifies the appropriate model listeners.
039            *
040            * @param shoppingItemPrice the shopping item price
041            * @return the shopping item price that was added
042            */
043            @Override
044            public com.liferay.portlet.shopping.model.ShoppingItemPrice addShoppingItemPrice(
045                    com.liferay.portlet.shopping.model.ShoppingItemPrice shoppingItemPrice) {
046                    return _shoppingItemPriceLocalService.addShoppingItemPrice(shoppingItemPrice);
047            }
048    
049            /**
050            * Creates a new shopping item price with the primary key. Does not add the shopping item price to the database.
051            *
052            * @param itemPriceId the primary key for the new shopping item price
053            * @return the new shopping item price
054            */
055            @Override
056            public com.liferay.portlet.shopping.model.ShoppingItemPrice createShoppingItemPrice(
057                    long itemPriceId) {
058                    return _shoppingItemPriceLocalService.createShoppingItemPrice(itemPriceId);
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 _shoppingItemPriceLocalService.deletePersistedModel(persistedModel);
069            }
070    
071            /**
072            * Deletes the shopping item price with the primary key from the database. Also notifies the appropriate model listeners.
073            *
074            * @param itemPriceId the primary key of the shopping item price
075            * @return the shopping item price that was removed
076            * @throws PortalException if a shopping item price with the primary key could not be found
077            */
078            @Override
079            public com.liferay.portlet.shopping.model.ShoppingItemPrice deleteShoppingItemPrice(
080                    long itemPriceId)
081                    throws com.liferay.portal.kernel.exception.PortalException {
082                    return _shoppingItemPriceLocalService.deleteShoppingItemPrice(itemPriceId);
083            }
084    
085            /**
086            * Deletes the shopping item price from the database. Also notifies the appropriate model listeners.
087            *
088            * @param shoppingItemPrice the shopping item price
089            * @return the shopping item price that was removed
090            */
091            @Override
092            public com.liferay.portlet.shopping.model.ShoppingItemPrice deleteShoppingItemPrice(
093                    com.liferay.portlet.shopping.model.ShoppingItemPrice shoppingItemPrice) {
094                    return _shoppingItemPriceLocalService.deleteShoppingItemPrice(shoppingItemPrice);
095            }
096    
097            @Override
098            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
099                    return _shoppingItemPriceLocalService.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 _shoppingItemPriceLocalService.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.ShoppingItemPriceModelImpl}. 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 _shoppingItemPriceLocalService.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.ShoppingItemPriceModelImpl}. 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 _shoppingItemPriceLocalService.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 _shoppingItemPriceLocalService.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 _shoppingItemPriceLocalService.dynamicQueryCount(dynamicQuery,
180                            projection);
181            }
182    
183            @Override
184            public com.liferay.portlet.shopping.model.ShoppingItemPrice fetchShoppingItemPrice(
185                    long itemPriceId) {
186                    return _shoppingItemPriceLocalService.fetchShoppingItemPrice(itemPriceId);
187            }
188    
189            @Override
190            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
191                    return _shoppingItemPriceLocalService.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 _shoppingItemPriceLocalService.getBeanIdentifier();
202            }
203    
204            @Override
205            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getItemPrices(
206                    long itemId) throws com.liferay.portal.kernel.exception.PortalException {
207                    return _shoppingItemPriceLocalService.getItemPrices(itemId);
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 _shoppingItemPriceLocalService.getPersistedModel(primaryKeyObj);
215            }
216    
217            /**
218            * Returns the shopping item price with the primary key.
219            *
220            * @param itemPriceId the primary key of the shopping item price
221            * @return the shopping item price
222            * @throws PortalException if a shopping item price with the primary key could not be found
223            */
224            @Override
225            public com.liferay.portlet.shopping.model.ShoppingItemPrice getShoppingItemPrice(
226                    long itemPriceId)
227                    throws com.liferay.portal.kernel.exception.PortalException {
228                    return _shoppingItemPriceLocalService.getShoppingItemPrice(itemPriceId);
229            }
230    
231            /**
232            * Returns a range of all the shopping item prices.
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.ShoppingItemPriceModelImpl}. 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 item prices
239            * @param end the upper bound of the range of shopping item prices (not inclusive)
240            * @return the range of shopping item prices
241            */
242            @Override
243            public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(
244                    int start, int end) {
245                    return _shoppingItemPriceLocalService.getShoppingItemPrices(start, end);
246            }
247    
248            /**
249            * Returns the number of shopping item prices.
250            *
251            * @return the number of shopping item prices
252            */
253            @Override
254            public int getShoppingItemPricesCount() {
255                    return _shoppingItemPriceLocalService.getShoppingItemPricesCount();
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                    _shoppingItemPriceLocalService.setBeanIdentifier(beanIdentifier);
266            }
267    
268            /**
269            * Updates the shopping item price in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
270            *
271            * @param shoppingItemPrice the shopping item price
272            * @return the shopping item price that was updated
273            */
274            @Override
275            public com.liferay.portlet.shopping.model.ShoppingItemPrice updateShoppingItemPrice(
276                    com.liferay.portlet.shopping.model.ShoppingItemPrice shoppingItemPrice) {
277                    return _shoppingItemPriceLocalService.updateShoppingItemPrice(shoppingItemPrice);
278            }
279    
280            /**
281             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
282             */
283            @Deprecated
284            public ShoppingItemPriceLocalService getWrappedShoppingItemPriceLocalService() {
285                    return _shoppingItemPriceLocalService;
286            }
287    
288            /**
289             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
290             */
291            @Deprecated
292            public void setWrappedShoppingItemPriceLocalService(
293                    ShoppingItemPriceLocalService shoppingItemPriceLocalService) {
294                    _shoppingItemPriceLocalService = shoppingItemPriceLocalService;
295            }
296    
297            @Override
298            public ShoppingItemPriceLocalService getWrappedService() {
299                    return _shoppingItemPriceLocalService;
300            }
301    
302            @Override
303            public void setWrappedService(
304                    ShoppingItemPriceLocalService shoppingItemPriceLocalService) {
305                    _shoppingItemPriceLocalService = shoppingItemPriceLocalService;
306            }
307    
308            private ShoppingItemPriceLocalService _shoppingItemPriceLocalService;
309    }