com.liferay.portlet.shopping.service.persistence
Interface ShoppingItemPersistence


public interface ShoppingItemPersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 boolean containsShoppingItemPrice(long pk, long shoppingItemPricePK)
           
 boolean containsShoppingItemPrices(long pk)
           
 int countAll()
           
 int countByC_S(long companyId, java.lang.String sku)
           
 int countByCategoryId(long categoryId)
           
 int countByLargeImageId(long largeImageId)
           
 int countByMediumImageId(long mediumImageId)
           
 int countBySmallImageId(long smallImageId)
           
 ShoppingItem create(long itemId)
           
 ShoppingItem fetchByC_S(long companyId, java.lang.String sku)
           
 ShoppingItem fetchByLargeImageId(long largeImageId)
           
 ShoppingItem fetchByMediumImageId(long mediumImageId)
           
 ShoppingItem fetchByPrimaryKey(long itemId)
           
 ShoppingItem fetchBySmallImageId(long smallImageId)
           
 java.util.List findAll()
           
 java.util.List findAll(int begin, int end)
           
 java.util.List findAll(int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 ShoppingItem findByC_S(long companyId, java.lang.String sku)
           
 ShoppingItem findByCategoryId_First(long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 ShoppingItem findByCategoryId_Last(long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 ShoppingItem[] findByCategoryId_PrevAndNext(long itemId, long categoryId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List findByCategoryId(long categoryId)
           
 java.util.List findByCategoryId(long categoryId, int begin, int end)
           
 java.util.List findByCategoryId(long categoryId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 ShoppingItem findByLargeImageId(long largeImageId)
           
 ShoppingItem findByMediumImageId(long mediumImageId)
           
 ShoppingItem findByPrimaryKey(long itemId)
           
 ShoppingItem findBySmallImageId(long smallImageId)
           
 java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
 java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
 java.util.List getShoppingItemPrices(long pk)
           
 java.util.List getShoppingItemPrices(long pk, int begin, int end)
           
 java.util.List getShoppingItemPrices(long pk, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 int getShoppingItemPricesSize(long pk)
           
 ShoppingItem remove(long itemId)
           
 ShoppingItem remove(ShoppingItem shoppingItem)
           
 void removeAll()
           
 void removeByC_S(long companyId, java.lang.String sku)
           
 void removeByCategoryId(long categoryId)
           
 void removeByLargeImageId(long largeImageId)
           
 void removeByMediumImageId(long mediumImageId)
           
 void removeBySmallImageId(long smallImageId)
           
 ShoppingItem update(ShoppingItem shoppingItem)
           
 ShoppingItem update(ShoppingItem shoppingItem, boolean merge)
           
 ShoppingItem updateImpl(ShoppingItem shoppingItem, boolean merge)
           
 

Method Detail

create

public ShoppingItem create(long itemId)

remove

public ShoppingItem remove(long itemId)
                    throws com.liferay.portal.SystemException,
                           NoSuchItemException
Throws:
com.liferay.portal.SystemException
NoSuchItemException

remove

public ShoppingItem remove(ShoppingItem shoppingItem)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public ShoppingItem update(ShoppingItem shoppingItem)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public ShoppingItem update(ShoppingItem shoppingItem,
                           boolean merge)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateImpl

public ShoppingItem updateImpl(ShoppingItem shoppingItem,
                               boolean merge)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

public ShoppingItem findByPrimaryKey(long itemId)
                              throws com.liferay.portal.SystemException,
                                     NoSuchItemException
Throws:
com.liferay.portal.SystemException
NoSuchItemException

fetchByPrimaryKey

public ShoppingItem fetchByPrimaryKey(long itemId)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCategoryId

public java.util.List findByCategoryId(long categoryId)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCategoryId

public java.util.List findByCategoryId(long categoryId,
                                       int begin,
                                       int end)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCategoryId

public java.util.List findByCategoryId(long categoryId,
                                       int begin,
                                       int end,
                                       com.liferay.portal.kernel.util.OrderByComparator obc)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCategoryId_First

public ShoppingItem findByCategoryId_First(long categoryId,
                                           com.liferay.portal.kernel.util.OrderByComparator obc)
                                    throws com.liferay.portal.SystemException,
                                           NoSuchItemException
Throws:
com.liferay.portal.SystemException
NoSuchItemException

findByCategoryId_Last

public ShoppingItem findByCategoryId_Last(long categoryId,
                                          com.liferay.portal.kernel.util.OrderByComparator obc)
                                   throws com.liferay.portal.SystemException,
                                          NoSuchItemException
Throws:
com.liferay.portal.SystemException
NoSuchItemException

findByCategoryId_PrevAndNext

public ShoppingItem[] findByCategoryId_PrevAndNext(long itemId,
                                                   long categoryId,
                                                   com.liferay.portal.kernel.util.OrderByComparator obc)
                                            throws com.liferay.portal.SystemException,
                                                   NoSuchItemException
Throws:
com.liferay.portal.SystemException
NoSuchItemException

findBySmallImageId

public ShoppingItem findBySmallImageId(long smallImageId)
                                throws com.liferay.portal.SystemException,
                                       NoSuchItemException
Throws:
com.liferay.portal.SystemException
NoSuchItemException

fetchBySmallImageId

public ShoppingItem fetchBySmallImageId(long smallImageId)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByMediumImageId

public ShoppingItem findByMediumImageId(long mediumImageId)
                                 throws com.liferay.portal.SystemException,
                                        NoSuchItemException
Throws:
com.liferay.portal.SystemException
NoSuchItemException

fetchByMediumImageId

public ShoppingItem fetchByMediumImageId(long mediumImageId)
                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByLargeImageId

public ShoppingItem findByLargeImageId(long largeImageId)
                                throws com.liferay.portal.SystemException,
                                       NoSuchItemException
Throws:
com.liferay.portal.SystemException
NoSuchItemException

fetchByLargeImageId

public ShoppingItem fetchByLargeImageId(long largeImageId)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByC_S

public ShoppingItem findByC_S(long companyId,
                              java.lang.String sku)
                       throws com.liferay.portal.SystemException,
                              NoSuchItemException
Throws:
com.liferay.portal.SystemException
NoSuchItemException

fetchByC_S

public ShoppingItem fetchByC_S(long companyId,
                               java.lang.String sku)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
                                           int begin,
                                           int end)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public java.util.List findAll()
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public java.util.List findAll(int begin,
                              int end)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public java.util.List findAll(int begin,
                              int end,
                              com.liferay.portal.kernel.util.OrderByComparator obc)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByCategoryId

public void removeByCategoryId(long categoryId)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeBySmallImageId

public void removeBySmallImageId(long smallImageId)
                          throws com.liferay.portal.SystemException,
                                 NoSuchItemException
Throws:
com.liferay.portal.SystemException
NoSuchItemException

removeByMediumImageId

public void removeByMediumImageId(long mediumImageId)
                           throws com.liferay.portal.SystemException,
                                  NoSuchItemException
Throws:
com.liferay.portal.SystemException
NoSuchItemException

removeByLargeImageId

public void removeByLargeImageId(long largeImageId)
                          throws com.liferay.portal.SystemException,
                                 NoSuchItemException
Throws:
com.liferay.portal.SystemException
NoSuchItemException

removeByC_S

public void removeByC_S(long companyId,
                        java.lang.String sku)
                 throws com.liferay.portal.SystemException,
                        NoSuchItemException
Throws:
com.liferay.portal.SystemException
NoSuchItemException

removeAll

public void removeAll()
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByCategoryId

public int countByCategoryId(long categoryId)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countBySmallImageId

public int countBySmallImageId(long smallImageId)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByMediumImageId

public int countByMediumImageId(long mediumImageId)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByLargeImageId

public int countByLargeImageId(long largeImageId)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByC_S

public int countByC_S(long companyId,
                      java.lang.String sku)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

public int countAll()
             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getShoppingItemPrices

public java.util.List getShoppingItemPrices(long pk)
                                     throws com.liferay.portal.SystemException,
                                            NoSuchItemException
Throws:
com.liferay.portal.SystemException
NoSuchItemException

getShoppingItemPrices

public java.util.List getShoppingItemPrices(long pk,
                                            int begin,
                                            int end)
                                     throws com.liferay.portal.SystemException,
                                            NoSuchItemException
Throws:
com.liferay.portal.SystemException
NoSuchItemException

getShoppingItemPrices

public java.util.List getShoppingItemPrices(long pk,
                                            int begin,
                                            int end,
                                            com.liferay.portal.kernel.util.OrderByComparator obc)
                                     throws com.liferay.portal.SystemException,
                                            NoSuchItemException
Throws:
com.liferay.portal.SystemException
NoSuchItemException

getShoppingItemPricesSize

public int getShoppingItemPricesSize(long pk)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

containsShoppingItemPrice

public boolean containsShoppingItemPrice(long pk,
                                         long shoppingItemPricePK)
                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

containsShoppingItemPrices

public boolean containsShoppingItemPrices(long pk)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException