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 com.liferay.portlet.shopping.model.ShoppingItem |
create(long itemId)
|
static com.liferay.portlet.shopping.model.ShoppingItem |
fetchByC_S(long companyId,
java.lang.String sku)
|
static com.liferay.portlet.shopping.model.ShoppingItem |
fetchByPrimaryKey(long itemId)
|
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 com.liferay.portlet.shopping.model.ShoppingItem |
findByC_S(long companyId,
java.lang.String sku)
|
static com.liferay.portlet.shopping.model.ShoppingItem |
findByCategoryId_First(long categoryId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static com.liferay.portlet.shopping.model.ShoppingItem |
findByCategoryId_Last(long categoryId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static com.liferay.portlet.shopping.model.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 com.liferay.portlet.shopping.model.ShoppingItem |
findByPrimaryKey(long itemId)
|
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 com.liferay.portlet.shopping.model.ShoppingItem |
remove(long itemId)
|
static com.liferay.portlet.shopping.model.ShoppingItem |
remove(com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
|
static void |
removeAll()
|
static void |
removeByC_S(long companyId,
java.lang.String sku)
|
static void |
removeByCategoryId(long categoryId)
|
void |
setPersistence(ShoppingItemPersistence persistence)
|
static com.liferay.portlet.shopping.model.ShoppingItem |
update(com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
|
static com.liferay.portlet.shopping.model.ShoppingItem |
update(com.liferay.portlet.shopping.model.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 com.liferay.portlet.shopping.model.ShoppingItem create(long itemId)
remove
public static com.liferay.portlet.shopping.model.ShoppingItem remove(long itemId)
throws com.liferay.portal.SystemException,
com.liferay.portlet.shopping.NoSuchItemException
- Throws:
com.liferay.portal.SystemException
com.liferay.portlet.shopping.NoSuchItemException
remove
public static com.liferay.portlet.shopping.model.ShoppingItem remove(com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
public static com.liferay.portlet.shopping.model.ShoppingItem update(com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
public static com.liferay.portlet.shopping.model.ShoppingItem update(com.liferay.portlet.shopping.model.ShoppingItem shoppingItem,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
public static com.liferay.portlet.shopping.model.ShoppingItem findByPrimaryKey(long itemId)
throws com.liferay.portal.SystemException,
com.liferay.portlet.shopping.NoSuchItemException
- Throws:
com.liferay.portal.SystemException
com.liferay.portlet.shopping.NoSuchItemException
fetchByPrimaryKey
public static com.liferay.portlet.shopping.model.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 com.liferay.portlet.shopping.model.ShoppingItem findByCategoryId_First(long categoryId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
com.liferay.portlet.shopping.NoSuchItemException
- Throws:
com.liferay.portal.SystemException
com.liferay.portlet.shopping.NoSuchItemException
findByCategoryId_Last
public static com.liferay.portlet.shopping.model.ShoppingItem findByCategoryId_Last(long categoryId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
com.liferay.portlet.shopping.NoSuchItemException
- Throws:
com.liferay.portal.SystemException
com.liferay.portlet.shopping.NoSuchItemException
findByCategoryId_PrevAndNext
public static com.liferay.portlet.shopping.model.ShoppingItem[] findByCategoryId_PrevAndNext(long itemId,
long categoryId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
com.liferay.portlet.shopping.NoSuchItemException
- Throws:
com.liferay.portal.SystemException
com.liferay.portlet.shopping.NoSuchItemException
findByC_S
public static com.liferay.portlet.shopping.model.ShoppingItem findByC_S(long companyId,
java.lang.String sku)
throws com.liferay.portal.SystemException,
com.liferay.portlet.shopping.NoSuchItemException
- Throws:
com.liferay.portal.SystemException
com.liferay.portlet.shopping.NoSuchItemException
fetchByC_S
public static com.liferay.portlet.shopping.model.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
removeByC_S
public static void removeByC_S(long companyId,
java.lang.String sku)
throws com.liferay.portal.SystemException,
com.liferay.portlet.shopping.NoSuchItemException
- Throws:
com.liferay.portal.SystemException
com.liferay.portlet.shopping.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
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,
com.liferay.portlet.shopping.NoSuchItemException
- Throws:
com.liferay.portal.SystemException
com.liferay.portlet.shopping.NoSuchItemException
getShoppingItemPrices
public static java.util.List getShoppingItemPrices(long pk,
int begin,
int end)
throws com.liferay.portal.SystemException,
com.liferay.portlet.shopping.NoSuchItemException
- Throws:
com.liferay.portal.SystemException
com.liferay.portlet.shopping.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,
com.liferay.portlet.shopping.NoSuchItemException
- Throws:
com.liferay.portal.SystemException
com.liferay.portlet.shopping.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)