com.liferay.portlet.shopping.service.persistence
Class ShoppingItemFinderUtil

java.lang.Object
  extended by com.liferay.portlet.shopping.service.persistence.ShoppingItemFinderUtil

public class ShoppingItemFinderUtil
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
ShoppingItemFinderUtil()
           
 
Method Summary
static int countByCategoryIds(java.util.List<java.lang.Long> categoryIds)
           
static int countByFeatured(long groupId, long[] categoryIds)
           
static int countByKeywords(long groupId, long[] categoryIds, java.lang.String keywords)
           
static int countBySale(long groupId, long[] categoryIds)
           
static java.util.List<ShoppingItem> findByFeatured(long groupId, long[] categoryIds, int numOfItems)
           
static java.util.List<ShoppingItem> findByKeywords(long groupId, long[] categoryIds, java.lang.String keywords, int start, int end)
           
static java.util.List<ShoppingItem> findBySale(long groupId, long[] categoryIds, int numOfItems)
           
static ShoppingItemFinder getFinder()
           
 void setFinder(ShoppingItemFinder finder)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShoppingItemFinderUtil

public ShoppingItemFinderUtil()
Method Detail

countByCategoryIds

public static int countByCategoryIds(java.util.List<java.lang.Long> categoryIds)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByFeatured

public static int countByFeatured(long groupId,
                                  long[] categoryIds)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByKeywords

public static int countByKeywords(long groupId,
                                  long[] categoryIds,
                                  java.lang.String keywords)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countBySale

public static int countBySale(long groupId,
                              long[] categoryIds)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByFeatured

public static java.util.List<ShoppingItem> findByFeatured(long groupId,
                                                          long[] categoryIds,
                                                          int numOfItems)
                                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByKeywords

public static java.util.List<ShoppingItem> findByKeywords(long groupId,
                                                          long[] categoryIds,
                                                          java.lang.String keywords,
                                                          int start,
                                                          int end)
                                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findBySale

public static java.util.List<ShoppingItem> findBySale(long groupId,
                                                      long[] categoryIds,
                                                      int numOfItems)
                                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getFinder

public static ShoppingItemFinder getFinder()

setFinder

public void setFinder(ShoppingItemFinder finder)