com.liferay.portlet.shopping.service.persistence
Interface ShoppingItemPersistence
- All Superinterfaces:
- BasePersistence
public interface ShoppingItemPersistence
- extends BasePersistence
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
void |
cacheResult(java.util.List<ShoppingItem> shoppingItems)
|
void |
cacheResult(ShoppingItem shoppingItem)
|
void |
clearCache()
|
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 |
fetchByC_S(long companyId,
java.lang.String sku,
boolean retrieveFromCache)
|
ShoppingItem |
fetchByLargeImageId(long largeImageId)
|
ShoppingItem |
fetchByLargeImageId(long largeImageId,
boolean retrieveFromCache)
|
ShoppingItem |
fetchByMediumImageId(long mediumImageId)
|
ShoppingItem |
fetchByMediumImageId(long mediumImageId,
boolean retrieveFromCache)
|
ShoppingItem |
fetchByPrimaryKey(long itemId)
|
ShoppingItem |
fetchBySmallImageId(long smallImageId)
|
ShoppingItem |
fetchBySmallImageId(long smallImageId,
boolean retrieveFromCache)
|
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)
|
cacheResult
void cacheResult(ShoppingItem shoppingItem)
cacheResult
void cacheResult(java.util.List<ShoppingItem> shoppingItems)
clearCache
void clearCache()
- Specified by:
clearCache
in interface BasePersistence
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 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 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
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
java.util.List<ShoppingItem> findByCategoryId(long categoryId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByCategoryId
java.util.List<ShoppingItem> findByCategoryId(long categoryId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByCategoryId
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
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
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
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
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
fetchBySmallImageId
ShoppingItem fetchBySmallImageId(long smallImageId,
boolean retrieveFromCache)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByMediumImageId
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
fetchByMediumImageId
ShoppingItem fetchByMediumImageId(long mediumImageId,
boolean retrieveFromCache)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByLargeImageId
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
fetchByLargeImageId
ShoppingItem fetchByLargeImageId(long largeImageId,
boolean retrieveFromCache)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByC_S
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
fetchByC_S
ShoppingItem fetchByC_S(long companyId,
java.lang.String sku,
boolean retrieveFromCache)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
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
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
java.util.List<ShoppingItem> findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
java.util.List<ShoppingItem> findAll(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
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
int countByCategoryId(long categoryId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countBySmallImageId
int countBySmallImageId(long smallImageId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByMediumImageId
int countByMediumImageId(long mediumImageId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByLargeImageId
int countByLargeImageId(long largeImageId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByC_S
int countByC_S(long companyId,
java.lang.String sku)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countAll
int countAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getShoppingItemPrices
java.util.List<ShoppingItemPrice> getShoppingItemPrices(long pk)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getShoppingItemPrices
java.util.List<ShoppingItemPrice> getShoppingItemPrices(long pk,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getShoppingItemPrices
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
int getShoppingItemPricesSize(long pk)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
containsShoppingItemPrice
boolean containsShoppingItemPrice(long pk,
long shoppingItemPricePK)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
containsShoppingItemPrices
boolean containsShoppingItemPrices(long pk)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException