1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.shopping.service.base;
24  
25  import com.liferay.portal.PortalException;
26  import com.liferay.portal.SystemException;
27  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
28  
29  import com.liferay.portlet.shopping.model.ShoppingItemPrice;
30  import com.liferay.portlet.shopping.service.ShoppingCartLocalService;
31  import com.liferay.portlet.shopping.service.ShoppingCategoryLocalService;
32  import com.liferay.portlet.shopping.service.ShoppingCategoryService;
33  import com.liferay.portlet.shopping.service.ShoppingCouponLocalService;
34  import com.liferay.portlet.shopping.service.ShoppingCouponService;
35  import com.liferay.portlet.shopping.service.ShoppingItemFieldLocalService;
36  import com.liferay.portlet.shopping.service.ShoppingItemLocalService;
37  import com.liferay.portlet.shopping.service.ShoppingItemPriceLocalService;
38  import com.liferay.portlet.shopping.service.ShoppingItemService;
39  import com.liferay.portlet.shopping.service.ShoppingOrderItemLocalService;
40  import com.liferay.portlet.shopping.service.ShoppingOrderLocalService;
41  import com.liferay.portlet.shopping.service.ShoppingOrderService;
42  import com.liferay.portlet.shopping.service.persistence.ShoppingCartPersistence;
43  import com.liferay.portlet.shopping.service.persistence.ShoppingCategoryPersistence;
44  import com.liferay.portlet.shopping.service.persistence.ShoppingCouponFinder;
45  import com.liferay.portlet.shopping.service.persistence.ShoppingCouponPersistence;
46  import com.liferay.portlet.shopping.service.persistence.ShoppingItemFieldPersistence;
47  import com.liferay.portlet.shopping.service.persistence.ShoppingItemFinder;
48  import com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence;
49  import com.liferay.portlet.shopping.service.persistence.ShoppingItemPricePersistence;
50  import com.liferay.portlet.shopping.service.persistence.ShoppingOrderFinder;
51  import com.liferay.portlet.shopping.service.persistence.ShoppingOrderItemPersistence;
52  import com.liferay.portlet.shopping.service.persistence.ShoppingOrderPersistence;
53  
54  import java.util.List;
55  
56  /**
57   * <a href="ShoppingItemPriceLocalServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
58   *
59   * @author Brian Wing Shun Chan
60   *
61   */
62  public abstract class ShoppingItemPriceLocalServiceBaseImpl
63      implements ShoppingItemPriceLocalService {
64      public ShoppingItemPrice addShoppingItemPrice(
65          ShoppingItemPrice shoppingItemPrice) throws SystemException {
66          shoppingItemPrice.setNew(true);
67  
68          return shoppingItemPricePersistence.update(shoppingItemPrice, false);
69      }
70  
71      public ShoppingItemPrice createShoppingItemPrice(long itemPriceId) {
72          return shoppingItemPricePersistence.create(itemPriceId);
73      }
74  
75      public void deleteShoppingItemPrice(long itemPriceId)
76          throws PortalException, SystemException {
77          shoppingItemPricePersistence.remove(itemPriceId);
78      }
79  
80      public void deleteShoppingItemPrice(ShoppingItemPrice shoppingItemPrice)
81          throws SystemException {
82          shoppingItemPricePersistence.remove(shoppingItemPrice);
83      }
84  
85      public List<Object> dynamicQuery(DynamicQuery dynamicQuery)
86          throws SystemException {
87          return shoppingItemPricePersistence.findWithDynamicQuery(dynamicQuery);
88      }
89  
90      public List<Object> dynamicQuery(DynamicQuery dynamicQuery, int start,
91          int end) throws SystemException {
92          return shoppingItemPricePersistence.findWithDynamicQuery(dynamicQuery,
93              start, end);
94      }
95  
96      public ShoppingItemPrice getShoppingItemPrice(long itemPriceId)
97          throws PortalException, SystemException {
98          return shoppingItemPricePersistence.findByPrimaryKey(itemPriceId);
99      }
100 
101     public List<ShoppingItemPrice> getShoppingItemPrices(int start, int end)
102         throws SystemException {
103         return shoppingItemPricePersistence.findAll(start, end);
104     }
105 
106     public int getShoppingItemPricesCount() throws SystemException {
107         return shoppingItemPricePersistence.countAll();
108     }
109 
110     public ShoppingItemPrice updateShoppingItemPrice(
111         ShoppingItemPrice shoppingItemPrice) throws SystemException {
112         shoppingItemPrice.setNew(false);
113 
114         return shoppingItemPricePersistence.update(shoppingItemPrice, true);
115     }
116 
117     public ShoppingCartLocalService getShoppingCartLocalService() {
118         return shoppingCartLocalService;
119     }
120 
121     public void setShoppingCartLocalService(
122         ShoppingCartLocalService shoppingCartLocalService) {
123         this.shoppingCartLocalService = shoppingCartLocalService;
124     }
125 
126     public ShoppingCartPersistence getShoppingCartPersistence() {
127         return shoppingCartPersistence;
128     }
129 
130     public void setShoppingCartPersistence(
131         ShoppingCartPersistence shoppingCartPersistence) {
132         this.shoppingCartPersistence = shoppingCartPersistence;
133     }
134 
135     public ShoppingCategoryLocalService getShoppingCategoryLocalService() {
136         return shoppingCategoryLocalService;
137     }
138 
139     public void setShoppingCategoryLocalService(
140         ShoppingCategoryLocalService shoppingCategoryLocalService) {
141         this.shoppingCategoryLocalService = shoppingCategoryLocalService;
142     }
143 
144     public ShoppingCategoryService getShoppingCategoryService() {
145         return shoppingCategoryService;
146     }
147 
148     public void setShoppingCategoryService(
149         ShoppingCategoryService shoppingCategoryService) {
150         this.shoppingCategoryService = shoppingCategoryService;
151     }
152 
153     public ShoppingCategoryPersistence getShoppingCategoryPersistence() {
154         return shoppingCategoryPersistence;
155     }
156 
157     public void setShoppingCategoryPersistence(
158         ShoppingCategoryPersistence shoppingCategoryPersistence) {
159         this.shoppingCategoryPersistence = shoppingCategoryPersistence;
160     }
161 
162     public ShoppingCouponLocalService getShoppingCouponLocalService() {
163         return shoppingCouponLocalService;
164     }
165 
166     public void setShoppingCouponLocalService(
167         ShoppingCouponLocalService shoppingCouponLocalService) {
168         this.shoppingCouponLocalService = shoppingCouponLocalService;
169     }
170 
171     public ShoppingCouponService getShoppingCouponService() {
172         return shoppingCouponService;
173     }
174 
175     public void setShoppingCouponService(
176         ShoppingCouponService shoppingCouponService) {
177         this.shoppingCouponService = shoppingCouponService;
178     }
179 
180     public ShoppingCouponPersistence getShoppingCouponPersistence() {
181         return shoppingCouponPersistence;
182     }
183 
184     public void setShoppingCouponPersistence(
185         ShoppingCouponPersistence shoppingCouponPersistence) {
186         this.shoppingCouponPersistence = shoppingCouponPersistence;
187     }
188 
189     public ShoppingCouponFinder getShoppingCouponFinder() {
190         return shoppingCouponFinder;
191     }
192 
193     public void setShoppingCouponFinder(
194         ShoppingCouponFinder shoppingCouponFinder) {
195         this.shoppingCouponFinder = shoppingCouponFinder;
196     }
197 
198     public ShoppingItemLocalService getShoppingItemLocalService() {
199         return shoppingItemLocalService;
200     }
201 
202     public void setShoppingItemLocalService(
203         ShoppingItemLocalService shoppingItemLocalService) {
204         this.shoppingItemLocalService = shoppingItemLocalService;
205     }
206 
207     public ShoppingItemService getShoppingItemService() {
208         return shoppingItemService;
209     }
210 
211     public void setShoppingItemService(ShoppingItemService shoppingItemService) {
212         this.shoppingItemService = shoppingItemService;
213     }
214 
215     public ShoppingItemPersistence getShoppingItemPersistence() {
216         return shoppingItemPersistence;
217     }
218 
219     public void setShoppingItemPersistence(
220         ShoppingItemPersistence shoppingItemPersistence) {
221         this.shoppingItemPersistence = shoppingItemPersistence;
222     }
223 
224     public ShoppingItemFinder getShoppingItemFinder() {
225         return shoppingItemFinder;
226     }
227 
228     public void setShoppingItemFinder(ShoppingItemFinder shoppingItemFinder) {
229         this.shoppingItemFinder = shoppingItemFinder;
230     }
231 
232     public ShoppingItemFieldLocalService getShoppingItemFieldLocalService() {
233         return shoppingItemFieldLocalService;
234     }
235 
236     public void setShoppingItemFieldLocalService(
237         ShoppingItemFieldLocalService shoppingItemFieldLocalService) {
238         this.shoppingItemFieldLocalService = shoppingItemFieldLocalService;
239     }
240 
241     public ShoppingItemFieldPersistence getShoppingItemFieldPersistence() {
242         return shoppingItemFieldPersistence;
243     }
244 
245     public void setShoppingItemFieldPersistence(
246         ShoppingItemFieldPersistence shoppingItemFieldPersistence) {
247         this.shoppingItemFieldPersistence = shoppingItemFieldPersistence;
248     }
249 
250     public ShoppingItemPriceLocalService getShoppingItemPriceLocalService() {
251         return shoppingItemPriceLocalService;
252     }
253 
254     public void setShoppingItemPriceLocalService(
255         ShoppingItemPriceLocalService shoppingItemPriceLocalService) {
256         this.shoppingItemPriceLocalService = shoppingItemPriceLocalService;
257     }
258 
259     public ShoppingItemPricePersistence getShoppingItemPricePersistence() {
260         return shoppingItemPricePersistence;
261     }
262 
263     public void setShoppingItemPricePersistence(
264         ShoppingItemPricePersistence shoppingItemPricePersistence) {
265         this.shoppingItemPricePersistence = shoppingItemPricePersistence;
266     }
267 
268     public ShoppingOrderLocalService getShoppingOrderLocalService() {
269         return shoppingOrderLocalService;
270     }
271 
272     public void setShoppingOrderLocalService(
273         ShoppingOrderLocalService shoppingOrderLocalService) {
274         this.shoppingOrderLocalService = shoppingOrderLocalService;
275     }
276 
277     public ShoppingOrderService getShoppingOrderService() {
278         return shoppingOrderService;
279     }
280 
281     public void setShoppingOrderService(
282         ShoppingOrderService shoppingOrderService) {
283         this.shoppingOrderService = shoppingOrderService;
284     }
285 
286     public ShoppingOrderPersistence getShoppingOrderPersistence() {
287         return shoppingOrderPersistence;
288     }
289 
290     public void setShoppingOrderPersistence(
291         ShoppingOrderPersistence shoppingOrderPersistence) {
292         this.shoppingOrderPersistence = shoppingOrderPersistence;
293     }
294 
295     public ShoppingOrderFinder getShoppingOrderFinder() {
296         return shoppingOrderFinder;
297     }
298 
299     public void setShoppingOrderFinder(ShoppingOrderFinder shoppingOrderFinder) {
300         this.shoppingOrderFinder = shoppingOrderFinder;
301     }
302 
303     public ShoppingOrderItemLocalService getShoppingOrderItemLocalService() {
304         return shoppingOrderItemLocalService;
305     }
306 
307     public void setShoppingOrderItemLocalService(
308         ShoppingOrderItemLocalService shoppingOrderItemLocalService) {
309         this.shoppingOrderItemLocalService = shoppingOrderItemLocalService;
310     }
311 
312     public ShoppingOrderItemPersistence getShoppingOrderItemPersistence() {
313         return shoppingOrderItemPersistence;
314     }
315 
316     public void setShoppingOrderItemPersistence(
317         ShoppingOrderItemPersistence shoppingOrderItemPersistence) {
318         this.shoppingOrderItemPersistence = shoppingOrderItemPersistence;
319     }
320 
321     @javax.annotation.Resource(name = "com.liferay.portlet.shopping.service.ShoppingCartLocalService.impl")
322     protected ShoppingCartLocalService shoppingCartLocalService;
323     @javax.annotation.Resource(name = "com.liferay.portlet.shopping.service.persistence.ShoppingCartPersistence.impl")
324     protected ShoppingCartPersistence shoppingCartPersistence;
325     @javax.annotation.Resource(name = "com.liferay.portlet.shopping.service.ShoppingCategoryLocalService.impl")
326     protected ShoppingCategoryLocalService shoppingCategoryLocalService;
327     @javax.annotation.Resource(name = "com.liferay.portlet.shopping.service.ShoppingCategoryService.impl")
328     protected ShoppingCategoryService shoppingCategoryService;
329     @javax.annotation.Resource(name = "com.liferay.portlet.shopping.service.persistence.ShoppingCategoryPersistence.impl")
330     protected ShoppingCategoryPersistence shoppingCategoryPersistence;
331     @javax.annotation.Resource(name = "com.liferay.portlet.shopping.service.ShoppingCouponLocalService.impl")
332     protected ShoppingCouponLocalService shoppingCouponLocalService;
333     @javax.annotation.Resource(name = "com.liferay.portlet.shopping.service.ShoppingCouponService.impl")
334     protected ShoppingCouponService shoppingCouponService;
335     @javax.annotation.Resource(name = "com.liferay.portlet.shopping.service.persistence.ShoppingCouponPersistence.impl")
336     protected ShoppingCouponPersistence shoppingCouponPersistence;
337     @javax.annotation.Resource(name = "com.liferay.portlet.shopping.service.persistence.ShoppingCouponFinder.impl")
338     protected ShoppingCouponFinder shoppingCouponFinder;
339     @javax.annotation.Resource(name = "com.liferay.portlet.shopping.service.ShoppingItemLocalService.impl")
340     protected ShoppingItemLocalService shoppingItemLocalService;
341     @javax.annotation.Resource(name = "com.liferay.portlet.shopping.service.ShoppingItemService.impl")
342     protected ShoppingItemService shoppingItemService;
343     @javax.annotation.Resource(name = "com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence.impl")
344     protected ShoppingItemPersistence shoppingItemPersistence;
345     @javax.annotation.Resource(name = "com.liferay.portlet.shopping.service.persistence.ShoppingItemFinder.impl")
346     protected ShoppingItemFinder shoppingItemFinder;
347     @javax.annotation.Resource(name = "com.liferay.portlet.shopping.service.ShoppingItemFieldLocalService.impl")
348     protected ShoppingItemFieldLocalService shoppingItemFieldLocalService;
349     @javax.annotation.Resource(name = "com.liferay.portlet.shopping.service.persistence.ShoppingItemFieldPersistence.impl")
350     protected ShoppingItemFieldPersistence shoppingItemFieldPersistence;
351     @javax.annotation.Resource(name = "com.liferay.portlet.shopping.service.ShoppingItemPriceLocalService.impl")
352     protected ShoppingItemPriceLocalService shoppingItemPriceLocalService;
353     @javax.annotation.Resource(name = "com.liferay.portlet.shopping.service.persistence.ShoppingItemPricePersistence.impl")
354     protected ShoppingItemPricePersistence shoppingItemPricePersistence;
355     @javax.annotation.Resource(name = "com.liferay.portlet.shopping.service.ShoppingOrderLocalService.impl")
356     protected ShoppingOrderLocalService shoppingOrderLocalService;
357     @javax.annotation.Resource(name = "com.liferay.portlet.shopping.service.ShoppingOrderService.impl")
358     protected ShoppingOrderService shoppingOrderService;
359     @javax.annotation.Resource(name = "com.liferay.portlet.shopping.service.persistence.ShoppingOrderPersistence.impl")
360     protected ShoppingOrderPersistence shoppingOrderPersistence;
361     @javax.annotation.Resource(name = "com.liferay.portlet.shopping.service.persistence.ShoppingOrderFinder.impl")
362     protected ShoppingOrderFinder shoppingOrderFinder;
363     @javax.annotation.Resource(name = "com.liferay.portlet.shopping.service.ShoppingOrderItemLocalService.impl")
364     protected ShoppingOrderItemLocalService shoppingOrderItemLocalService;
365     @javax.annotation.Resource(name = "com.liferay.portlet.shopping.service.persistence.ShoppingOrderItemPersistence.impl")
366     protected ShoppingOrderItemPersistence shoppingOrderItemPersistence;
367 }