1
14
15 package com.liferay.portlet.shopping.service.persistence;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
24 public class ShoppingItemFinderUtil {
25 public static int countByCategoryIds(java.util.List<Long> categoryIds)
26 throws com.liferay.portal.SystemException {
27 return getFinder().countByCategoryIds(categoryIds);
28 }
29
30 public static int countByFeatured(long groupId, long[] categoryIds)
31 throws com.liferay.portal.SystemException {
32 return getFinder().countByFeatured(groupId, categoryIds);
33 }
34
35 public static int countByKeywords(long groupId, long[] categoryIds,
36 java.lang.String keywords) throws com.liferay.portal.SystemException {
37 return getFinder().countByKeywords(groupId, categoryIds, keywords);
38 }
39
40 public static int countBySale(long groupId, long[] categoryIds)
41 throws com.liferay.portal.SystemException {
42 return getFinder().countBySale(groupId, categoryIds);
43 }
44
45 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByFeatured(
46 long groupId, long[] categoryIds, int numOfItems)
47 throws com.liferay.portal.SystemException {
48 return getFinder().findByFeatured(groupId, categoryIds, numOfItems);
49 }
50
51 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByKeywords(
52 long groupId, long[] categoryIds, java.lang.String keywords, int start,
53 int end) throws com.liferay.portal.SystemException {
54 return getFinder()
55 .findByKeywords(groupId, categoryIds, keywords, start, end);
56 }
57
58 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findBySale(
59 long groupId, long[] categoryIds, int numOfItems)
60 throws com.liferay.portal.SystemException {
61 return getFinder().findBySale(groupId, categoryIds, numOfItems);
62 }
63
64 public static ShoppingItemFinder getFinder() {
65 if (_finder == null) {
66 _finder = (ShoppingItemFinder)PortalBeanLocatorUtil.locate(ShoppingItemFinder.class.getName());
67 }
68
69 return _finder;
70 }
71
72 public void setFinder(ShoppingItemFinder finder) {
73 _finder = finder;
74 }
75
76 private static ShoppingItemFinder _finder;
77 }