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

All Superinterfaces:
BasePersistence

@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface ShoppingItemPersistence
extends BasePersistence

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<ShoppingItem> findAll()
           
 java.util.List<ShoppingItem> findAll(int start, int end)
           
 java.util.List<ShoppingItem> findAll(int start, 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<ShoppingItem> findByCategoryId(long categoryId)
           
 java.util.List<ShoppingItem> findByCategoryId(long categoryId, int start, int end)
           
 java.util.List<ShoppingItem> findByCategoryId(long categoryId, int start, 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<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
 java.util.List<ShoppingItemPrice> getShoppingItemPrices(long pk)
           
 java.util.List<ShoppingItemPrice> getShoppingItemPrices(long pk, int start, int end)
           
 java.util.List<ShoppingItemPrice> getShoppingItemPrices(long pk, int start, 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)
          Deprecated. Use update(ShoppingItem shoppingItem, boolean merge).
 ShoppingItem update(ShoppingItem shoppingItem, boolean merge)
          Add, update, or merge, the entity.
 ShoppingItem updateImpl(ShoppingItem shoppingItem, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
getListeners, registerListener, unregisterListener
 

Method Detail

create

ShoppingItem create(long itemId)

remove

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

remove

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

update

ShoppingItem update(ShoppingItem shoppingItem)
                    throws com.liferay.portal.SystemException
Deprecated. Use update(ShoppingItem shoppingItem, boolean merge).

Throws:
com.liferay.portal.SystemException

update

ShoppingItem update(ShoppingItem shoppingItem,
                    boolean merge)
                    throws com.liferay.portal.SystemException
Add, update, or merge, the entity. This method also calls the model listeners to trigger the proper events associated with adding, deleting, or updating an entity.

Parameters:
shoppingItem - the entity to add, update, or merge
merge - boolean value for whether to merge the entity. The default value is false. Setting merge to true is more expensive and should only be true when shoppingItem is transient. See LEP-5473 for a detailed discussion of this method.
Returns:
true if the portlet can be displayed via Ajax
Throws:
com.liferay.portal.SystemException

updateImpl

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

findByPrimaryKey

@Transactional(propagation=SUPPORTS,
               readOnly=true)
ShoppingItem findByPrimaryKey(long itemId)
                              throws com.liferay.portal.SystemException,
                                     NoSuchItemException
Throws:
com.liferay.portal.SystemException
NoSuchItemException

fetchByPrimaryKey

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

findByCategoryId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<ShoppingItem> findByCategoryId(long categoryId)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCategoryId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<ShoppingItem> findByCategoryId(long categoryId,
                                                            int start,
                                                            int end)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCategoryId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<ShoppingItem> findByCategoryId(long categoryId,
                                                            int start,
                                                            int end,
                                                            com.liferay.portal.kernel.util.OrderByComparator obc)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCategoryId_First

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
ShoppingItem findBySmallImageId(long smallImageId)
                                throws com.liferay.portal.SystemException,
                                       NoSuchItemException
Throws:
com.liferay.portal.SystemException
NoSuchItemException

fetchBySmallImageId

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

findByMediumImageId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
ShoppingItem findByMediumImageId(long mediumImageId)
                                 throws com.liferay.portal.SystemException,
                                        NoSuchItemException
Throws:
com.liferay.portal.SystemException
NoSuchItemException

fetchByMediumImageId

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

findByLargeImageId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
ShoppingItem findByLargeImageId(long largeImageId)
                                throws com.liferay.portal.SystemException,
                                       NoSuchItemException
Throws:
com.liferay.portal.SystemException
NoSuchItemException

fetchByLargeImageId

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

findByC_S

@Transactional(propagation=SUPPORTS,
               readOnly=true)
ShoppingItem findByC_S(long companyId,
                                     java.lang.String sku)
                       throws com.liferay.portal.SystemException,
                              NoSuchItemException
Throws:
com.liferay.portal.SystemException
NoSuchItemException

fetchByC_S

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

findWithDynamicQuery

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                                                    int start,
                                                                    int end)
                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<ShoppingItem> findAll()
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<ShoppingItem> findAll(int start,
                                                   int end)
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<ShoppingItem> findAll(int start,
                                                   int end,
                                                   com.liferay.portal.kernel.util.OrderByComparator obc)
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByCategoryId

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

removeBySmallImageId

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

removeByMediumImageId

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

removeByLargeImageId

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

removeByC_S

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

removeAll

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

countByCategoryId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByCategoryId(long categoryId)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countBySmallImageId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countBySmallImageId(long smallImageId)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByMediumImageId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByMediumImageId(long mediumImageId)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByLargeImageId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByLargeImageId(long largeImageId)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByC_S

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByC_S(long companyId,
                             java.lang.String sku)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countAll()
             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getShoppingItemPrices

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<ShoppingItemPrice> getShoppingItemPrices(long pk)
                                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getShoppingItemPrices

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<ShoppingItemPrice> getShoppingItemPrices(long pk,
                                                                      int start,
                                                                      int end)
                                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getShoppingItemPrices

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<ShoppingItemPrice> getShoppingItemPrices(long pk,
                                                                      int start,
                                                                      int end,
                                                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getShoppingItemPricesSize

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getShoppingItemPricesSize(long pk)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

containsShoppingItemPrice

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean containsShoppingItemPrice(long pk,
                                                long shoppingItemPricePK)
                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

containsShoppingItemPrices

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean containsShoppingItemPrices(long pk)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException