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

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.shopping.model.ShoppingItem>
      extended by com.liferay.portlet.shopping.service.persistence.ShoppingItemFinderImpl
All Implemented Interfaces:
com.liferay.portal.kernel.dao.orm.SessionFactory, com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.shopping.model.ShoppingItem>, com.liferay.portlet.shopping.service.persistence.ShoppingItemFinder

public class ShoppingItemFinderImpl
extends com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.shopping.model.ShoppingItem>
implements com.liferay.portlet.shopping.service.persistence.ShoppingItemFinder

View Source

Author:
Brian Wing Shun Chan

Field Summary
static java.lang.String COUNT_BY_G_C
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT
 
Constructor Summary
ShoppingItemFinderImpl()
           
 
Method Summary
 int countByFeatured(long groupId, long[] categoryIds)
           
 int countByG_C(long groupId, java.util.List<java.lang.Long> categoryIds)
           
 int countByKeywords(long groupId, long[] categoryIds, java.lang.String keywords)
           
 int countBySale(long groupId, long[] categoryIds)
           
 java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByFeatured(long groupId, long[] categoryIds, int numOfItems)
           
 java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByKeywords(long groupId, long[] categoryIds, java.lang.String keywords, int start, int end)
           
 java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findBySale(long groupId, long[] categoryIds, int numOfItems)
           
protected  java.lang.String getCategoryIds(java.util.List<java.lang.Long> categoryIds)
           
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, clearCache, closeSession, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, remove, setDataSource, setSessionFactory, unregisterListener, update, updateImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COUNT_BY_G_C

public static java.lang.String COUNT_BY_G_C
Constructor Detail

ShoppingItemFinderImpl

public ShoppingItemFinderImpl()
Method Detail

countByG_C

public int countByG_C(long groupId,
                      java.util.List<java.lang.Long> categoryIds)
               throws com.liferay.portal.kernel.exception.SystemException
Specified by:
countByG_C in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

countByFeatured

public int countByFeatured(long groupId,
                           long[] categoryIds)
                    throws com.liferay.portal.kernel.exception.SystemException
Specified by:
countByFeatured in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

countByKeywords

public int countByKeywords(long groupId,
                           long[] categoryIds,
                           java.lang.String keywords)
                    throws com.liferay.portal.kernel.exception.SystemException
Specified by:
countByKeywords in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

countBySale

public int countBySale(long groupId,
                       long[] categoryIds)
                throws com.liferay.portal.kernel.exception.SystemException
Specified by:
countBySale in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

findByFeatured

public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByFeatured(long groupId,
                                                                                      long[] categoryIds,
                                                                                      int numOfItems)
                                                                               throws com.liferay.portal.kernel.exception.SystemException
Specified by:
findByFeatured in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

findByKeywords

public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByKeywords(long groupId,
                                                                                      long[] categoryIds,
                                                                                      java.lang.String keywords,
                                                                                      int start,
                                                                                      int end)
                                                                               throws com.liferay.portal.kernel.exception.SystemException
Specified by:
findByKeywords in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

findBySale

public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findBySale(long groupId,
                                                                                  long[] categoryIds,
                                                                                  int numOfItems)
                                                                           throws com.liferay.portal.kernel.exception.SystemException
Specified by:
findBySale in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

getCategoryIds

protected java.lang.String getCategoryIds(java.util.List<java.lang.Long> categoryIds)