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

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

public class ShoppingItemUtil
extends java.lang.Object

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Author:
Brian Wing Shun Chan
See Also:
ShoppingItemPersistence, ShoppingItemPersistenceImpl
Generated:

Constructor Summary
ShoppingItemUtil()
           
 
Method Summary
static void cacheResult(java.util.List<ShoppingItem> shoppingItems)
           
static void cacheResult(ShoppingItem shoppingItem)
           
static void clearCache()
           
static void clearCache(ShoppingItem shoppingItem)
           
static boolean containsShoppingItemPrice(long pk, long shoppingItemPricePK)
           
static boolean containsShoppingItemPrices(long pk)
           
static int countAll()
           
static int countByC_S(long companyId, java.lang.String sku)
           
static int countByCategoryId(long categoryId)
           
static int countByLargeImageId(long largeImageId)
           
static int countByMediumImageId(long mediumImageId)
           
static int countBySmallImageId(long smallImageId)
           
 int countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
static ShoppingItem create(long itemId)
           
static ShoppingItem fetchByC_S(long companyId, java.lang.String sku)
           
static ShoppingItem fetchByC_S(long companyId, java.lang.String sku, boolean retrieveFromCache)
           
static ShoppingItem fetchByLargeImageId(long largeImageId)
           
static ShoppingItem fetchByLargeImageId(long largeImageId, boolean retrieveFromCache)
           
static ShoppingItem fetchByMediumImageId(long mediumImageId)
           
static ShoppingItem fetchByMediumImageId(long mediumImageId, boolean retrieveFromCache)
           
static ShoppingItem fetchByPrimaryKey(long itemId)
           
static ShoppingItem fetchBySmallImageId(long smallImageId)
           
static ShoppingItem fetchBySmallImageId(long smallImageId, boolean retrieveFromCache)
           
static java.util.List<ShoppingItem> findAll()
           
static java.util.List<ShoppingItem> findAll(int start, int end)
           
static java.util.List<ShoppingItem> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static ShoppingItem findByC_S(long companyId, java.lang.String sku)
           
static ShoppingItem findByCategoryId_First(long categoryId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static ShoppingItem findByCategoryId_Last(long categoryId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static ShoppingItem[] findByCategoryId_PrevAndNext(long itemId, long categoryId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static java.util.List<ShoppingItem> findByCategoryId(long categoryId)
           
static java.util.List<ShoppingItem> findByCategoryId(long categoryId, int start, int end)
           
static java.util.List<ShoppingItem> findByCategoryId(long categoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static ShoppingItem findByLargeImageId(long largeImageId)
           
static ShoppingItem findByMediumImageId(long mediumImageId)
           
static ShoppingItem findByPrimaryKey(long itemId)
           
static ShoppingItem findBySmallImageId(long smallImageId)
           
static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
static ShoppingItemPersistence getPersistence()
           
static java.util.List<ShoppingItemPrice> getShoppingItemPrices(long pk)
           
static java.util.List<ShoppingItemPrice> getShoppingItemPrices(long pk, int start, int end)
           
static java.util.List<ShoppingItemPrice> getShoppingItemPrices(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static int getShoppingItemPricesSize(long pk)
           
static ShoppingItem remove(long itemId)
           
static ShoppingItem remove(ShoppingItem shoppingItem)
           
static void removeAll()
           
static void removeByC_S(long companyId, java.lang.String sku)
           
static void removeByCategoryId(long categoryId)
           
static void removeByLargeImageId(long largeImageId)
           
static void removeByMediumImageId(long mediumImageId)
           
static void removeBySmallImageId(long smallImageId)
           
 void setPersistence(ShoppingItemPersistence persistence)
           
static ShoppingItem update(ShoppingItem shoppingItem)
          Deprecated. Use com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean).
static ShoppingItem update(ShoppingItem shoppingItem, boolean merge)
           
static ShoppingItem updateImpl(ShoppingItem shoppingItem, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShoppingItemUtil

public ShoppingItemUtil()
Method Detail

clearCache

public static void clearCache()
See Also:
BasePersistence.clearCache()

clearCache

public static void clearCache(ShoppingItem shoppingItem)
See Also:
com.liferay.portal.service.persistence.BasePersistence#clearCache(ShoppingItem)

countWithDynamicQuery

public int countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static 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
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static 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
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

remove

public static ShoppingItem remove(ShoppingItem shoppingItem)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException
See Also:
BasePersistence.remove(com.liferay.portal.model.BaseModel)

update

public static ShoppingItem update(ShoppingItem shoppingItem,
                                  boolean merge)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)

cacheResult

public static void cacheResult(ShoppingItem shoppingItem)

cacheResult

public static void cacheResult(java.util.List<ShoppingItem> shoppingItems)

create

public static ShoppingItem create(long itemId)

remove

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

update

public static ShoppingItem update(ShoppingItem shoppingItem)
                           throws com.liferay.portal.SystemException
Deprecated. Use com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean).

Throws:
com.liferay.portal.SystemException

updateImpl

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

findByPrimaryKey

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

fetchByPrimaryKey

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

findByCategoryId

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

findByCategoryId

public static java.util.List<ShoppingItem> findByCategoryId(long categoryId,
                                                            int start,
                                                            int end)
                                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCategoryId

public static java.util.List<ShoppingItem> findByCategoryId(long categoryId,
                                                            int start,
                                                            int end,
                                                            com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCategoryId_First

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

findByCategoryId_Last

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

findByCategoryId_PrevAndNext

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

findBySmallImageId

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

fetchBySmallImageId

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

fetchBySmallImageId

public static ShoppingItem fetchBySmallImageId(long smallImageId,
                                               boolean retrieveFromCache)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByMediumImageId

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

fetchByMediumImageId

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

fetchByMediumImageId

public static ShoppingItem fetchByMediumImageId(long mediumImageId,
                                                boolean retrieveFromCache)
                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByLargeImageId

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

fetchByLargeImageId

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

fetchByLargeImageId

public static ShoppingItem fetchByLargeImageId(long largeImageId,
                                               boolean retrieveFromCache)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByC_S

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

fetchByC_S

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

fetchByC_S

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

findAll

public static java.util.List<ShoppingItem> findAll()
                                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List<ShoppingItem> findAll(int start,
                                                   int end)
                                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List<ShoppingItem> findAll(int start,
                                                   int end,
                                                   com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByCategoryId

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

removeBySmallImageId

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

removeByMediumImageId

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

removeByLargeImageId

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

removeByC_S

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

removeAll

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

countByCategoryId

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

countBySmallImageId

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

countByMediumImageId

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

countByLargeImageId

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

countByC_S

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

countAll

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

getShoppingItemPrices

public static java.util.List<ShoppingItemPrice> getShoppingItemPrices(long pk)
                                                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getShoppingItemPrices

public static java.util.List<ShoppingItemPrice> getShoppingItemPrices(long pk,
                                                                      int start,
                                                                      int end)
                                                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getShoppingItemPrices

public static java.util.List<ShoppingItemPrice> getShoppingItemPrices(long pk,
                                                                      int start,
                                                                      int end,
                                                                      com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getShoppingItemPricesSize

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

containsShoppingItemPrice

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

containsShoppingItemPrices

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

getPersistence

public static ShoppingItemPersistence getPersistence()

setPersistence

public void setPersistence(ShoppingItemPersistence persistence)