1
14
15 package com.liferay.portlet.shopping.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.util.MethodCache;
19 import com.liferay.portal.kernel.util.ReferenceRegistry;
20
21
41 public class ShoppingItemPriceLocalServiceUtil {
42 public static com.liferay.portlet.shopping.model.ShoppingItemPrice addShoppingItemPrice(
43 com.liferay.portlet.shopping.model.ShoppingItemPrice shoppingItemPrice)
44 throws com.liferay.portal.SystemException {
45 return getService().addShoppingItemPrice(shoppingItemPrice);
46 }
47
48 public static com.liferay.portlet.shopping.model.ShoppingItemPrice createShoppingItemPrice(
49 long itemPriceId) {
50 return getService().createShoppingItemPrice(itemPriceId);
51 }
52
53 public static void deleteShoppingItemPrice(long itemPriceId)
54 throws com.liferay.portal.PortalException,
55 com.liferay.portal.SystemException {
56 getService().deleteShoppingItemPrice(itemPriceId);
57 }
58
59 public static void deleteShoppingItemPrice(
60 com.liferay.portlet.shopping.model.ShoppingItemPrice shoppingItemPrice)
61 throws com.liferay.portal.SystemException {
62 getService().deleteShoppingItemPrice(shoppingItemPrice);
63 }
64
65 @SuppressWarnings("rawtypes")
66 public static java.util.List dynamicQuery(
67 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68 throws com.liferay.portal.SystemException {
69 return getService().dynamicQuery(dynamicQuery);
70 }
71
72 @SuppressWarnings("rawtypes")
73 public static java.util.List dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end) throws com.liferay.portal.SystemException {
76 return getService().dynamicQuery(dynamicQuery, start, end);
77 }
78
79 @SuppressWarnings("rawtypes")
80 public static java.util.List dynamicQuery(
81 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
82 int end,
83 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
84 throws com.liferay.portal.SystemException {
85 return getService()
86 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
87 }
88
89 public static int dynamicQueryCount(
90 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
91 throws com.liferay.portal.SystemException {
92 return getService().dynamicQueryCount(dynamicQuery);
93 }
94
95 public static com.liferay.portlet.shopping.model.ShoppingItemPrice getShoppingItemPrice(
96 long itemPriceId)
97 throws com.liferay.portal.PortalException,
98 com.liferay.portal.SystemException {
99 return getService().getShoppingItemPrice(itemPriceId);
100 }
101
102 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(
103 int start, int end) throws com.liferay.portal.SystemException {
104 return getService().getShoppingItemPrices(start, end);
105 }
106
107 public static int getShoppingItemPricesCount()
108 throws com.liferay.portal.SystemException {
109 return getService().getShoppingItemPricesCount();
110 }
111
112 public static com.liferay.portlet.shopping.model.ShoppingItemPrice updateShoppingItemPrice(
113 com.liferay.portlet.shopping.model.ShoppingItemPrice shoppingItemPrice)
114 throws com.liferay.portal.SystemException {
115 return getService().updateShoppingItemPrice(shoppingItemPrice);
116 }
117
118 public static com.liferay.portlet.shopping.model.ShoppingItemPrice updateShoppingItemPrice(
119 com.liferay.portlet.shopping.model.ShoppingItemPrice shoppingItemPrice,
120 boolean merge) throws com.liferay.portal.SystemException {
121 return getService().updateShoppingItemPrice(shoppingItemPrice, merge);
122 }
123
124 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getItemPrices(
125 long itemId)
126 throws com.liferay.portal.PortalException,
127 com.liferay.portal.SystemException {
128 return getService().getItemPrices(itemId);
129 }
130
131 public static ShoppingItemPriceLocalService getService() {
132 if (_service == null) {
133 _service = (ShoppingItemPriceLocalService)PortalBeanLocatorUtil.locate(ShoppingItemPriceLocalService.class.getName());
134
135 ReferenceRegistry.registerReference(ShoppingItemPriceLocalServiceUtil.class,
136 "_service");
137 MethodCache.remove(ShoppingItemPriceLocalService.class);
138 }
139
140 return _service;
141 }
142
143 public void setService(ShoppingItemPriceLocalService service) {
144 MethodCache.remove(ShoppingItemPriceLocalService.class);
145
146 _service = service;
147
148 ReferenceRegistry.registerReference(ShoppingItemPriceLocalServiceUtil.class,
149 "_service");
150 MethodCache.remove(ShoppingItemPriceLocalService.class);
151 }
152
153 private static ShoppingItemPriceLocalService _service;
154 }