com.liferay.portlet.shopping.service.persistence
Class ShoppingItemUtil
java.lang.Object
com.liferay.portlet.shopping.service.persistence.ShoppingItemUtil
- public class ShoppingItemUtil
- extends java.lang.Object
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
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)
|
static ShoppingItem |
create(long itemId)
|
static ShoppingItem |
fetchByC_S(long companyId,
java.lang.String sku)
|
static ShoppingItem |
fetchByLargeImageId(long largeImageId)
|
static ShoppingItem |
fetchByMediumImageId(long mediumImageId)
|
static ShoppingItem |
fetchByPrimaryKey(long itemId)
|
static ShoppingItem |
fetchBySmallImageId(long smallImageId)
|
static java.util.List |
findAll()
|
static java.util.List |
findAll(int begin,
int end)
|
static java.util.List |
findAll(int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static ShoppingItem |
findByC_S(long companyId,
java.lang.String sku)
|
static ShoppingItem |
findByCategoryId_First(long categoryId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static ShoppingItem |
findByCategoryId_Last(long categoryId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static ShoppingItem[] |
findByCategoryId_PrevAndNext(long itemId,
long categoryId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List |
findByCategoryId(long categoryId)
|
static java.util.List |
findByCategoryId(long categoryId,
int begin,
int end)
|
static java.util.List |
findByCategoryId(long categoryId,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static ShoppingItem |
findByLargeImageId(long largeImageId)
|
static ShoppingItem |
findByMediumImageId(long mediumImageId)
|
static ShoppingItem |
findByPrimaryKey(long itemId)
|
static ShoppingItem |
findBySmallImageId(long smallImageId)
|
static java.util.List |
findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
|
static java.util.List |
findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
int begin,
int end)
|
static ShoppingItemPersistence |
getPersistence()
|
static java.util.List |
getShoppingItemPrices(long pk)
|
static java.util.List |
getShoppingItemPrices(long pk,
int begin,
int end)
|
static java.util.List |
getShoppingItemPrices(long pk,
int begin,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
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)
|
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 |
ShoppingItemUtil
public ShoppingItemUtil()
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
remove
public static ShoppingItem remove(ShoppingItem shoppingItem)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
public static ShoppingItem update(ShoppingItem shoppingItem)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
public static ShoppingItem update(ShoppingItem shoppingItem,
boolean merge)
throws com.liferay.portal.SystemException
- 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 findByCategoryId(long categoryId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByCategoryId
public static java.util.List findByCategoryId(long categoryId,
int begin,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByCategoryId
public static 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 static 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 static 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 static 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 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
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
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
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
findWithDynamicQuery
public static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
public static 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 static java.util.List findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List findAll(int begin,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static 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 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 getShoppingItemPrices(long pk)
throws com.liferay.portal.SystemException,
NoSuchItemException
- Throws:
com.liferay.portal.SystemException
NoSuchItemException
getShoppingItemPrices
public static java.util.List getShoppingItemPrices(long pk,
int begin,
int end)
throws com.liferay.portal.SystemException,
NoSuchItemException
- Throws:
com.liferay.portal.SystemException
NoSuchItemException
getShoppingItemPrices
public static 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 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)