001
014
015 package com.liferay.portlet.shopping.service.persistence;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
026 @ProviderType
027 public class ShoppingItemFinderUtil {
028 public static int countByG_C(long groupId,
029 java.util.List<java.lang.Long> categoryIds) {
030 return getFinder().countByG_C(groupId, categoryIds);
031 }
032
033 public static int countByFeatured(long groupId, long[] categoryIds) {
034 return getFinder().countByFeatured(groupId, categoryIds);
035 }
036
037 public static int countByKeywords(long groupId, long[] categoryIds,
038 java.lang.String keywords) {
039 return getFinder().countByKeywords(groupId, categoryIds, keywords);
040 }
041
042 public static int countBySale(long groupId, long[] categoryIds) {
043 return getFinder().countBySale(groupId, categoryIds);
044 }
045
046 public static int filterCountByG_C(long groupId,
047 java.util.List<java.lang.Long> categoryIds) {
048 return getFinder().filterCountByG_C(groupId, categoryIds);
049 }
050
051 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByFeatured(
052 long groupId, long[] categoryIds, int numOfItems) {
053 return getFinder().findByFeatured(groupId, categoryIds, numOfItems);
054 }
055
056 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByKeywords(
057 long groupId, long[] categoryIds, java.lang.String keywords, int start,
058 int end) {
059 return getFinder()
060 .findByKeywords(groupId, categoryIds, keywords, start, end);
061 }
062
063 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findBySale(
064 long groupId, long[] categoryIds, int numOfItems) {
065 return getFinder().findBySale(groupId, categoryIds, numOfItems);
066 }
067
068 public static ShoppingItemFinder getFinder() {
069 if (_finder == null) {
070 _finder = (ShoppingItemFinder)PortalBeanLocatorUtil.locate(ShoppingItemFinder.class.getName());
071
072 ReferenceRegistry.registerReference(ShoppingItemFinderUtil.class,
073 "_finder");
074 }
075
076 return _finder;
077 }
078
079 public void setFinder(ShoppingItemFinder finder) {
080 _finder = finder;
081
082 ReferenceRegistry.registerReference(ShoppingItemFinderUtil.class,
083 "_finder");
084 }
085
086 private static ShoppingItemFinder _finder;
087 }