1
14
15 package com.liferay.portlet.shopping.service.persistence;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19 import com.liferay.portal.kernel.exception.SystemException;
20
21 import com.liferay.portlet.shopping.model.ShoppingItemPrice;
22
23 import java.util.List;
24
25
38 public class ShoppingItemPriceUtil {
39
42 public static void clearCache() {
43 getPersistence().clearCache();
44 }
45
46
49 public static void clearCache(ShoppingItemPrice shoppingItemPrice) {
50 getPersistence().clearCache(shoppingItemPrice);
51 }
52
53
56 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
57 throws SystemException {
58 return getPersistence().countWithDynamicQuery(dynamicQuery);
59 }
60
61
64 public static List<ShoppingItemPrice> findWithDynamicQuery(
65 DynamicQuery dynamicQuery) throws SystemException {
66 return getPersistence().findWithDynamicQuery(dynamicQuery);
67 }
68
69
72 public static List<ShoppingItemPrice> findWithDynamicQuery(
73 DynamicQuery dynamicQuery, int start, int end)
74 throws SystemException {
75 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76 }
77
78
81 public static ShoppingItemPrice remove(ShoppingItemPrice shoppingItemPrice)
82 throws SystemException {
83 return getPersistence().remove(shoppingItemPrice);
84 }
85
86
89 public static ShoppingItemPrice update(
90 ShoppingItemPrice shoppingItemPrice, boolean merge)
91 throws SystemException {
92 return getPersistence().update(shoppingItemPrice, merge);
93 }
94
95 public static void cacheResult(
96 com.liferay.portlet.shopping.model.ShoppingItemPrice shoppingItemPrice) {
97 getPersistence().cacheResult(shoppingItemPrice);
98 }
99
100 public static void cacheResult(
101 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> shoppingItemPrices) {
102 getPersistence().cacheResult(shoppingItemPrices);
103 }
104
105 public static com.liferay.portlet.shopping.model.ShoppingItemPrice create(
106 long itemPriceId) {
107 return getPersistence().create(itemPriceId);
108 }
109
110 public static com.liferay.portlet.shopping.model.ShoppingItemPrice remove(
111 long itemPriceId)
112 throws com.liferay.portal.kernel.exception.SystemException,
113 com.liferay.portlet.shopping.NoSuchItemPriceException {
114 return getPersistence().remove(itemPriceId);
115 }
116
117 public static com.liferay.portlet.shopping.model.ShoppingItemPrice updateImpl(
118 com.liferay.portlet.shopping.model.ShoppingItemPrice shoppingItemPrice,
119 boolean merge)
120 throws com.liferay.portal.kernel.exception.SystemException {
121 return getPersistence().updateImpl(shoppingItemPrice, merge);
122 }
123
124 public static com.liferay.portlet.shopping.model.ShoppingItemPrice findByPrimaryKey(
125 long itemPriceId)
126 throws com.liferay.portal.kernel.exception.SystemException,
127 com.liferay.portlet.shopping.NoSuchItemPriceException {
128 return getPersistence().findByPrimaryKey(itemPriceId);
129 }
130
131 public static com.liferay.portlet.shopping.model.ShoppingItemPrice fetchByPrimaryKey(
132 long itemPriceId)
133 throws com.liferay.portal.kernel.exception.SystemException {
134 return getPersistence().fetchByPrimaryKey(itemPriceId);
135 }
136
137 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findByItemId(
138 long itemId) throws com.liferay.portal.kernel.exception.SystemException {
139 return getPersistence().findByItemId(itemId);
140 }
141
142 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findByItemId(
143 long itemId, int start, int end)
144 throws com.liferay.portal.kernel.exception.SystemException {
145 return getPersistence().findByItemId(itemId, start, end);
146 }
147
148 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findByItemId(
149 long itemId, int start, int end,
150 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151 throws com.liferay.portal.kernel.exception.SystemException {
152 return getPersistence()
153 .findByItemId(itemId, start, end, orderByComparator);
154 }
155
156 public static com.liferay.portlet.shopping.model.ShoppingItemPrice findByItemId_First(
157 long itemId,
158 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159 throws com.liferay.portal.kernel.exception.SystemException,
160 com.liferay.portlet.shopping.NoSuchItemPriceException {
161 return getPersistence().findByItemId_First(itemId, orderByComparator);
162 }
163
164 public static com.liferay.portlet.shopping.model.ShoppingItemPrice findByItemId_Last(
165 long itemId,
166 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
167 throws com.liferay.portal.kernel.exception.SystemException,
168 com.liferay.portlet.shopping.NoSuchItemPriceException {
169 return getPersistence().findByItemId_Last(itemId, orderByComparator);
170 }
171
172 public static com.liferay.portlet.shopping.model.ShoppingItemPrice[] findByItemId_PrevAndNext(
173 long itemPriceId, long itemId,
174 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
175 throws com.liferay.portal.kernel.exception.SystemException,
176 com.liferay.portlet.shopping.NoSuchItemPriceException {
177 return getPersistence()
178 .findByItemId_PrevAndNext(itemPriceId, itemId,
179 orderByComparator);
180 }
181
182 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findAll()
183 throws com.liferay.portal.kernel.exception.SystemException {
184 return getPersistence().findAll();
185 }
186
187 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findAll(
188 int start, int end)
189 throws com.liferay.portal.kernel.exception.SystemException {
190 return getPersistence().findAll(start, end);
191 }
192
193 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> findAll(
194 int start, int end,
195 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
196 throws com.liferay.portal.kernel.exception.SystemException {
197 return getPersistence().findAll(start, end, orderByComparator);
198 }
199
200 public static void removeByItemId(long itemId)
201 throws com.liferay.portal.kernel.exception.SystemException {
202 getPersistence().removeByItemId(itemId);
203 }
204
205 public static void removeAll()
206 throws com.liferay.portal.kernel.exception.SystemException {
207 getPersistence().removeAll();
208 }
209
210 public static int countByItemId(long itemId)
211 throws com.liferay.portal.kernel.exception.SystemException {
212 return getPersistence().countByItemId(itemId);
213 }
214
215 public static int countAll()
216 throws com.liferay.portal.kernel.exception.SystemException {
217 return getPersistence().countAll();
218 }
219
220 public static ShoppingItemPricePersistence getPersistence() {
221 if (_persistence == null) {
222 _persistence = (ShoppingItemPricePersistence)PortalBeanLocatorUtil.locate(ShoppingItemPricePersistence.class.getName());
223 }
224
225 return _persistence;
226 }
227
228 public void setPersistence(ShoppingItemPricePersistence persistence) {
229 _persistence = persistence;
230 }
231
232 private static ShoppingItemPricePersistence _persistence;
233 }