1
14
15 package com.liferay.portlet.shopping.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class ShoppingItemPriceLocalServiceUtil {
40 public static com.liferay.portlet.shopping.model.ShoppingItemPrice addShoppingItemPrice(
41 com.liferay.portlet.shopping.model.ShoppingItemPrice shoppingItemPrice)
42 throws com.liferay.portal.kernel.exception.SystemException {
43 return getService().addShoppingItemPrice(shoppingItemPrice);
44 }
45
46 public static com.liferay.portlet.shopping.model.ShoppingItemPrice createShoppingItemPrice(
47 long itemPriceId) {
48 return getService().createShoppingItemPrice(itemPriceId);
49 }
50
51 public static void deleteShoppingItemPrice(long itemPriceId)
52 throws com.liferay.portal.kernel.exception.PortalException,
53 com.liferay.portal.kernel.exception.SystemException {
54 getService().deleteShoppingItemPrice(itemPriceId);
55 }
56
57 public static void deleteShoppingItemPrice(
58 com.liferay.portlet.shopping.model.ShoppingItemPrice shoppingItemPrice)
59 throws com.liferay.portal.kernel.exception.SystemException {
60 getService().deleteShoppingItemPrice(shoppingItemPrice);
61 }
62
63 public static java.util.List<Object> dynamicQuery(
64 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65 throws com.liferay.portal.kernel.exception.SystemException {
66 return getService().dynamicQuery(dynamicQuery);
67 }
68
69 public static java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.kernel.exception.SystemException {
72 return getService().dynamicQuery(dynamicQuery, start, end);
73 }
74
75 public static com.liferay.portlet.shopping.model.ShoppingItemPrice getShoppingItemPrice(
76 long itemPriceId)
77 throws com.liferay.portal.kernel.exception.PortalException,
78 com.liferay.portal.kernel.exception.SystemException {
79 return getService().getShoppingItemPrice(itemPriceId);
80 }
81
82 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(
83 int start, int end)
84 throws com.liferay.portal.kernel.exception.SystemException {
85 return getService().getShoppingItemPrices(start, end);
86 }
87
88 public static int getShoppingItemPricesCount()
89 throws com.liferay.portal.kernel.exception.SystemException {
90 return getService().getShoppingItemPricesCount();
91 }
92
93 public static com.liferay.portlet.shopping.model.ShoppingItemPrice updateShoppingItemPrice(
94 com.liferay.portlet.shopping.model.ShoppingItemPrice shoppingItemPrice)
95 throws com.liferay.portal.kernel.exception.SystemException {
96 return getService().updateShoppingItemPrice(shoppingItemPrice);
97 }
98
99 public static com.liferay.portlet.shopping.model.ShoppingItemPrice updateShoppingItemPrice(
100 com.liferay.portlet.shopping.model.ShoppingItemPrice shoppingItemPrice,
101 boolean merge)
102 throws com.liferay.portal.kernel.exception.SystemException {
103 return getService().updateShoppingItemPrice(shoppingItemPrice, merge);
104 }
105
106 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getItemPrices(
107 long itemId)
108 throws com.liferay.portal.kernel.exception.PortalException,
109 com.liferay.portal.kernel.exception.SystemException {
110 return getService().getItemPrices(itemId);
111 }
112
113 public static ShoppingItemPriceLocalService getService() {
114 if (_service == null) {
115 _service = (ShoppingItemPriceLocalService)PortalBeanLocatorUtil.locate(ShoppingItemPriceLocalService.class.getName());
116 }
117
118 return _service;
119 }
120
121 public void setService(ShoppingItemPriceLocalService service) {
122 _service = service;
123 }
124
125 private static ShoppingItemPriceLocalService _service;
126 }