com.liferay.portlet.shopping.service.persistence
Class ShoppingItemPriceUtil
java.lang.Object
com.liferay.portlet.shopping.service.persistence.ShoppingItemPriceUtil
public class ShoppingItemPriceUtil
- extends java.lang.Object
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
static void |
cacheResult(java.util.List<ShoppingItemPrice> shoppingItemPrices)
|
static void |
cacheResult(ShoppingItemPrice shoppingItemPrice)
|
static void |
clearCache()
|
static int |
countAll()
|
static int |
countByItemId(long itemId)
|
static ShoppingItemPrice |
create(long itemPriceId)
|
static ShoppingItemPrice |
fetchByPrimaryKey(long itemPriceId)
|
static java.util.List<ShoppingItemPrice> |
findAll()
|
static java.util.List<ShoppingItemPrice> |
findAll(int start,
int end)
|
static java.util.List<ShoppingItemPrice> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static ShoppingItemPrice |
findByItemId_First(long itemId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static ShoppingItemPrice |
findByItemId_Last(long itemId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static ShoppingItemPrice[] |
findByItemId_PrevAndNext(long itemPriceId,
long itemId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<ShoppingItemPrice> |
findByItemId(long itemId)
|
static java.util.List<ShoppingItemPrice> |
findByItemId(long itemId,
int start,
int end)
|
static java.util.List<ShoppingItemPrice> |
findByItemId(long itemId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static ShoppingItemPrice |
findByPrimaryKey(long itemPriceId)
|
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 ShoppingItemPricePersistence |
getPersistence()
|
static ShoppingItemPrice |
remove(long itemPriceId)
|
static ShoppingItemPrice |
remove(ShoppingItemPrice shoppingItemPrice)
|
static void |
removeAll()
|
static void |
removeByItemId(long itemId)
|
void |
setPersistence(ShoppingItemPricePersistence persistence)
|
static ShoppingItemPrice |
update(ShoppingItemPrice shoppingItemPrice)
Deprecated. Use update(ShoppingItemPrice shoppingItemPrice, boolean merge) . |
static ShoppingItemPrice |
update(ShoppingItemPrice shoppingItemPrice,
boolean merge)
Add, update, or merge, the entity. |
static ShoppingItemPrice |
updateImpl(ShoppingItemPrice shoppingItemPrice,
boolean merge)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShoppingItemPriceUtil
public ShoppingItemPriceUtil()
cacheResult
public static void cacheResult(ShoppingItemPrice shoppingItemPrice)
cacheResult
public static void cacheResult(java.util.List<ShoppingItemPrice> shoppingItemPrices)
clearCache
public static void clearCache()
create
public static ShoppingItemPrice create(long itemPriceId)
remove
public static ShoppingItemPrice remove(long itemPriceId)
throws com.liferay.portal.SystemException,
NoSuchItemPriceException
- Throws:
com.liferay.portal.SystemException
NoSuchItemPriceException
remove
public static ShoppingItemPrice remove(ShoppingItemPrice shoppingItemPrice)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
public static ShoppingItemPrice update(ShoppingItemPrice shoppingItemPrice)
throws com.liferay.portal.SystemException
- Deprecated. Use
update(ShoppingItemPrice shoppingItemPrice, boolean merge)
.
- Throws:
com.liferay.portal.SystemException
update
public static ShoppingItemPrice update(ShoppingItemPrice shoppingItemPrice,
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:
shoppingItemPrice
- the entity to add, update, or mergemerge
- 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 shoppingItemPrice 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
public static ShoppingItemPrice updateImpl(ShoppingItemPrice shoppingItemPrice,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
public static ShoppingItemPrice findByPrimaryKey(long itemPriceId)
throws com.liferay.portal.SystemException,
NoSuchItemPriceException
- Throws:
com.liferay.portal.SystemException
NoSuchItemPriceException
fetchByPrimaryKey
public static ShoppingItemPrice fetchByPrimaryKey(long itemPriceId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByItemId
public static java.util.List<ShoppingItemPrice> findByItemId(long itemId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByItemId
public static java.util.List<ShoppingItemPrice> findByItemId(long itemId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByItemId
public static java.util.List<ShoppingItemPrice> findByItemId(long itemId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByItemId_First
public static ShoppingItemPrice findByItemId_First(long itemId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchItemPriceException
- Throws:
com.liferay.portal.SystemException
NoSuchItemPriceException
findByItemId_Last
public static ShoppingItemPrice findByItemId_Last(long itemId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchItemPriceException
- Throws:
com.liferay.portal.SystemException
NoSuchItemPriceException
findByItemId_PrevAndNext
public static ShoppingItemPrice[] findByItemId_PrevAndNext(long itemPriceId,
long itemId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchItemPriceException
- Throws:
com.liferay.portal.SystemException
NoSuchItemPriceException
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
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
findAll
public static java.util.List<ShoppingItemPrice> findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<ShoppingItemPrice> findAll(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<ShoppingItemPrice> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByItemId
public static void removeByItemId(long itemId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeAll
public static void removeAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByItemId
public static int countByItemId(long itemId)
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
getPersistence
public static ShoppingItemPricePersistence getPersistence()
setPersistence
public void setPersistence(ShoppingItemPricePersistence persistence)