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.ShoppingItem;
22
23 import java.util.List;
24
25
38 public class ShoppingItemUtil {
39
42 public static void clearCache() {
43 getPersistence().clearCache();
44 }
45
46
49 public static void clearCache(ShoppingItem shoppingItem) {
50 getPersistence().clearCache(shoppingItem);
51 }
52
53
56 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
57 throws SystemException {
58 return getPersistence().countWithDynamicQuery(dynamicQuery);
59 }
60
61
64 public static List<ShoppingItem> findWithDynamicQuery(
65 DynamicQuery dynamicQuery) throws SystemException {
66 return getPersistence().findWithDynamicQuery(dynamicQuery);
67 }
68
69
72 public static List<ShoppingItem> findWithDynamicQuery(
73 DynamicQuery dynamicQuery, int start, int end)
74 throws SystemException {
75 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76 }
77
78
81 public static ShoppingItem remove(ShoppingItem shoppingItem)
82 throws SystemException {
83 return getPersistence().remove(shoppingItem);
84 }
85
86
89 public static ShoppingItem update(ShoppingItem shoppingItem, boolean merge)
90 throws SystemException {
91 return getPersistence().update(shoppingItem, merge);
92 }
93
94 public static void cacheResult(
95 com.liferay.portlet.shopping.model.ShoppingItem shoppingItem) {
96 getPersistence().cacheResult(shoppingItem);
97 }
98
99 public static void cacheResult(
100 java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> shoppingItems) {
101 getPersistence().cacheResult(shoppingItems);
102 }
103
104 public static com.liferay.portlet.shopping.model.ShoppingItem create(
105 long itemId) {
106 return getPersistence().create(itemId);
107 }
108
109 public static com.liferay.portlet.shopping.model.ShoppingItem remove(
110 long itemId)
111 throws com.liferay.portal.kernel.exception.SystemException,
112 com.liferay.portlet.shopping.NoSuchItemException {
113 return getPersistence().remove(itemId);
114 }
115
116 public static com.liferay.portlet.shopping.model.ShoppingItem updateImpl(
117 com.liferay.portlet.shopping.model.ShoppingItem shoppingItem,
118 boolean merge)
119 throws com.liferay.portal.kernel.exception.SystemException {
120 return getPersistence().updateImpl(shoppingItem, merge);
121 }
122
123 public static com.liferay.portlet.shopping.model.ShoppingItem findByPrimaryKey(
124 long itemId)
125 throws com.liferay.portal.kernel.exception.SystemException,
126 com.liferay.portlet.shopping.NoSuchItemException {
127 return getPersistence().findByPrimaryKey(itemId);
128 }
129
130 public static com.liferay.portlet.shopping.model.ShoppingItem fetchByPrimaryKey(
131 long itemId) throws com.liferay.portal.kernel.exception.SystemException {
132 return getPersistence().fetchByPrimaryKey(itemId);
133 }
134
135 public static com.liferay.portlet.shopping.model.ShoppingItem findBySmallImageId(
136 long smallImageId)
137 throws com.liferay.portal.kernel.exception.SystemException,
138 com.liferay.portlet.shopping.NoSuchItemException {
139 return getPersistence().findBySmallImageId(smallImageId);
140 }
141
142 public static com.liferay.portlet.shopping.model.ShoppingItem fetchBySmallImageId(
143 long smallImageId)
144 throws com.liferay.portal.kernel.exception.SystemException {
145 return getPersistence().fetchBySmallImageId(smallImageId);
146 }
147
148 public static com.liferay.portlet.shopping.model.ShoppingItem fetchBySmallImageId(
149 long smallImageId, boolean retrieveFromCache)
150 throws com.liferay.portal.kernel.exception.SystemException {
151 return getPersistence()
152 .fetchBySmallImageId(smallImageId, retrieveFromCache);
153 }
154
155 public static com.liferay.portlet.shopping.model.ShoppingItem findByMediumImageId(
156 long mediumImageId)
157 throws com.liferay.portal.kernel.exception.SystemException,
158 com.liferay.portlet.shopping.NoSuchItemException {
159 return getPersistence().findByMediumImageId(mediumImageId);
160 }
161
162 public static com.liferay.portlet.shopping.model.ShoppingItem fetchByMediumImageId(
163 long mediumImageId)
164 throws com.liferay.portal.kernel.exception.SystemException {
165 return getPersistence().fetchByMediumImageId(mediumImageId);
166 }
167
168 public static com.liferay.portlet.shopping.model.ShoppingItem fetchByMediumImageId(
169 long mediumImageId, boolean retrieveFromCache)
170 throws com.liferay.portal.kernel.exception.SystemException {
171 return getPersistence()
172 .fetchByMediumImageId(mediumImageId, retrieveFromCache);
173 }
174
175 public static com.liferay.portlet.shopping.model.ShoppingItem findByLargeImageId(
176 long largeImageId)
177 throws com.liferay.portal.kernel.exception.SystemException,
178 com.liferay.portlet.shopping.NoSuchItemException {
179 return getPersistence().findByLargeImageId(largeImageId);
180 }
181
182 public static com.liferay.portlet.shopping.model.ShoppingItem fetchByLargeImageId(
183 long largeImageId)
184 throws com.liferay.portal.kernel.exception.SystemException {
185 return getPersistence().fetchByLargeImageId(largeImageId);
186 }
187
188 public static com.liferay.portlet.shopping.model.ShoppingItem fetchByLargeImageId(
189 long largeImageId, boolean retrieveFromCache)
190 throws com.liferay.portal.kernel.exception.SystemException {
191 return getPersistence()
192 .fetchByLargeImageId(largeImageId, retrieveFromCache);
193 }
194
195 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByG_C(
196 long groupId, long categoryId)
197 throws com.liferay.portal.kernel.exception.SystemException {
198 return getPersistence().findByG_C(groupId, categoryId);
199 }
200
201 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByG_C(
202 long groupId, long categoryId, int start, int end)
203 throws com.liferay.portal.kernel.exception.SystemException {
204 return getPersistence().findByG_C(groupId, categoryId, start, end);
205 }
206
207 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByG_C(
208 long groupId, long categoryId, int start, int end,
209 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
210 throws com.liferay.portal.kernel.exception.SystemException {
211 return getPersistence()
212 .findByG_C(groupId, categoryId, start, end, orderByComparator);
213 }
214
215 public static com.liferay.portlet.shopping.model.ShoppingItem findByG_C_First(
216 long groupId, long categoryId,
217 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
218 throws com.liferay.portal.kernel.exception.SystemException,
219 com.liferay.portlet.shopping.NoSuchItemException {
220 return getPersistence()
221 .findByG_C_First(groupId, categoryId, orderByComparator);
222 }
223
224 public static com.liferay.portlet.shopping.model.ShoppingItem findByG_C_Last(
225 long groupId, long categoryId,
226 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
227 throws com.liferay.portal.kernel.exception.SystemException,
228 com.liferay.portlet.shopping.NoSuchItemException {
229 return getPersistence()
230 .findByG_C_Last(groupId, categoryId, orderByComparator);
231 }
232
233 public static com.liferay.portlet.shopping.model.ShoppingItem[] findByG_C_PrevAndNext(
234 long itemId, long groupId, long categoryId,
235 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
236 throws com.liferay.portal.kernel.exception.SystemException,
237 com.liferay.portlet.shopping.NoSuchItemException {
238 return getPersistence()
239 .findByG_C_PrevAndNext(itemId, groupId, categoryId,
240 orderByComparator);
241 }
242
243 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> filterFindByG_C(
244 long groupId, long categoryId)
245 throws com.liferay.portal.kernel.exception.SystemException {
246 return getPersistence().filterFindByG_C(groupId, categoryId);
247 }
248
249 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> filterFindByG_C(
250 long groupId, long categoryId, int start, int end)
251 throws com.liferay.portal.kernel.exception.SystemException {
252 return getPersistence().filterFindByG_C(groupId, categoryId, start, end);
253 }
254
255 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> filterFindByG_C(
256 long groupId, long categoryId, int start, int end,
257 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
258 throws com.liferay.portal.kernel.exception.SystemException {
259 return getPersistence()
260 .filterFindByG_C(groupId, categoryId, start, end,
261 orderByComparator);
262 }
263
264 public static com.liferay.portlet.shopping.model.ShoppingItem findByC_S(
265 long companyId, java.lang.String sku)
266 throws com.liferay.portal.kernel.exception.SystemException,
267 com.liferay.portlet.shopping.NoSuchItemException {
268 return getPersistence().findByC_S(companyId, sku);
269 }
270
271 public static com.liferay.portlet.shopping.model.ShoppingItem fetchByC_S(
272 long companyId, java.lang.String sku)
273 throws com.liferay.portal.kernel.exception.SystemException {
274 return getPersistence().fetchByC_S(companyId, sku);
275 }
276
277 public static com.liferay.portlet.shopping.model.ShoppingItem fetchByC_S(
278 long companyId, java.lang.String sku, boolean retrieveFromCache)
279 throws com.liferay.portal.kernel.exception.SystemException {
280 return getPersistence().fetchByC_S(companyId, sku, retrieveFromCache);
281 }
282
283 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll()
284 throws com.liferay.portal.kernel.exception.SystemException {
285 return getPersistence().findAll();
286 }
287
288 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll(
289 int start, int end)
290 throws com.liferay.portal.kernel.exception.SystemException {
291 return getPersistence().findAll(start, end);
292 }
293
294 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll(
295 int start, int end,
296 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
297 throws com.liferay.portal.kernel.exception.SystemException {
298 return getPersistence().findAll(start, end, orderByComparator);
299 }
300
301 public static void removeBySmallImageId(long smallImageId)
302 throws com.liferay.portal.kernel.exception.SystemException,
303 com.liferay.portlet.shopping.NoSuchItemException {
304 getPersistence().removeBySmallImageId(smallImageId);
305 }
306
307 public static void removeByMediumImageId(long mediumImageId)
308 throws com.liferay.portal.kernel.exception.SystemException,
309 com.liferay.portlet.shopping.NoSuchItemException {
310 getPersistence().removeByMediumImageId(mediumImageId);
311 }
312
313 public static void removeByLargeImageId(long largeImageId)
314 throws com.liferay.portal.kernel.exception.SystemException,
315 com.liferay.portlet.shopping.NoSuchItemException {
316 getPersistence().removeByLargeImageId(largeImageId);
317 }
318
319 public static void removeByG_C(long groupId, long categoryId)
320 throws com.liferay.portal.kernel.exception.SystemException {
321 getPersistence().removeByG_C(groupId, categoryId);
322 }
323
324 public static void removeByC_S(long companyId, java.lang.String sku)
325 throws com.liferay.portal.kernel.exception.SystemException,
326 com.liferay.portlet.shopping.NoSuchItemException {
327 getPersistence().removeByC_S(companyId, sku);
328 }
329
330 public static void removeAll()
331 throws com.liferay.portal.kernel.exception.SystemException {
332 getPersistence().removeAll();
333 }
334
335 public static int countBySmallImageId(long smallImageId)
336 throws com.liferay.portal.kernel.exception.SystemException {
337 return getPersistence().countBySmallImageId(smallImageId);
338 }
339
340 public static int countByMediumImageId(long mediumImageId)
341 throws com.liferay.portal.kernel.exception.SystemException {
342 return getPersistence().countByMediumImageId(mediumImageId);
343 }
344
345 public static int countByLargeImageId(long largeImageId)
346 throws com.liferay.portal.kernel.exception.SystemException {
347 return getPersistence().countByLargeImageId(largeImageId);
348 }
349
350 public static int countByG_C(long groupId, long categoryId)
351 throws com.liferay.portal.kernel.exception.SystemException {
352 return getPersistence().countByG_C(groupId, categoryId);
353 }
354
355 public static int filterCountByG_C(long groupId, long categoryId)
356 throws com.liferay.portal.kernel.exception.SystemException {
357 return getPersistence().filterCountByG_C(groupId, categoryId);
358 }
359
360 public static int countByC_S(long companyId, java.lang.String sku)
361 throws com.liferay.portal.kernel.exception.SystemException {
362 return getPersistence().countByC_S(companyId, sku);
363 }
364
365 public static int countAll()
366 throws com.liferay.portal.kernel.exception.SystemException {
367 return getPersistence().countAll();
368 }
369
370 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(
371 long pk) throws com.liferay.portal.kernel.exception.SystemException {
372 return getPersistence().getShoppingItemPrices(pk);
373 }
374
375 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(
376 long pk, int start, int end)
377 throws com.liferay.portal.kernel.exception.SystemException {
378 return getPersistence().getShoppingItemPrices(pk, start, end);
379 }
380
381 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(
382 long pk, int start, int end,
383 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
384 throws com.liferay.portal.kernel.exception.SystemException {
385 return getPersistence()
386 .getShoppingItemPrices(pk, start, end, orderByComparator);
387 }
388
389 public static int getShoppingItemPricesSize(long pk)
390 throws com.liferay.portal.kernel.exception.SystemException {
391 return getPersistence().getShoppingItemPricesSize(pk);
392 }
393
394 public static boolean containsShoppingItemPrice(long pk,
395 long shoppingItemPricePK)
396 throws com.liferay.portal.kernel.exception.SystemException {
397 return getPersistence()
398 .containsShoppingItemPrice(pk, shoppingItemPricePK);
399 }
400
401 public static boolean containsShoppingItemPrices(long pk)
402 throws com.liferay.portal.kernel.exception.SystemException {
403 return getPersistence().containsShoppingItemPrices(pk);
404 }
405
406 public static ShoppingItemPersistence getPersistence() {
407 if (_persistence == null) {
408 _persistence = (ShoppingItemPersistence)PortalBeanLocatorUtil.locate(ShoppingItemPersistence.class.getName());
409 }
410
411 return _persistence;
412 }
413
414 public void setPersistence(ShoppingItemPersistence persistence) {
415 _persistence = persistence;
416 }
417
418 private static ShoppingItemPersistence _persistence;
419 }