|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ShoppingItemPersistence
The persistence interface for the shopping item service.
Never modify this interface directly. Modify service.xml and rerun ServiceBuilder to regnerate this interface.
ShoppingItemPersistenceImpl,
ShoppingItemUtil| Method Summary | |
|---|---|
void |
cacheResult(List<ShoppingItem> shoppingItems)
Caches the shopping items in the entity cache if it is enabled. |
void |
cacheResult(ShoppingItem shoppingItem)
Caches the shopping item in the entity cache if it is enabled. |
boolean |
containsShoppingItemPrice(long pk,
long shoppingItemPricePK)
Determines whether the shopping item price is associated with the shopping item. |
boolean |
containsShoppingItemPrices(long pk)
Determines whether the shopping item has any shopping item prices associated with it. |
int |
countAll()
Counts all the shopping items. |
int |
countByC_S(long companyId,
String sku)
Counts all the shopping items where companyId = ? and sku = ?. |
int |
countByG_C(long groupId,
long categoryId)
Counts all the shopping items where groupId = ? and categoryId = ?. |
int |
countByLargeImageId(long largeImageId)
Counts all the shopping items where largeImageId = ?. |
int |
countByMediumImageId(long mediumImageId)
Counts all the shopping items where mediumImageId = ?. |
int |
countBySmallImageId(long smallImageId)
Counts all the shopping items where smallImageId = ?. |
ShoppingItem |
create(long itemId)
Creates a new shopping item with the primary key. |
ShoppingItem |
fetchByC_S(long companyId,
String sku)
Finds the shopping item where companyId = ? and sku = ? or returns null if it could not be found. |
ShoppingItem |
fetchByC_S(long companyId,
String sku,
boolean retrieveFromCache)
Finds the shopping item where companyId = ? and sku = ? or returns null if it could not be found, optionally using the finder cache. |
ShoppingItem |
fetchByLargeImageId(long largeImageId)
Finds the shopping item where largeImageId = ? or returns null if it could not be found. |
ShoppingItem |
fetchByLargeImageId(long largeImageId,
boolean retrieveFromCache)
Finds the shopping item where largeImageId = ? or returns null if it could not be found, optionally using the finder cache. |
ShoppingItem |
fetchByMediumImageId(long mediumImageId)
Finds the shopping item where mediumImageId = ? or returns null if it could not be found. |
ShoppingItem |
fetchByMediumImageId(long mediumImageId,
boolean retrieveFromCache)
Finds the shopping item where mediumImageId = ? or returns null if it could not be found, optionally using the finder cache. |
ShoppingItem |
fetchByPrimaryKey(long itemId)
Finds the shopping item with the primary key or returns null if it could not be found. |
ShoppingItem |
fetchBySmallImageId(long smallImageId)
Finds the shopping item where smallImageId = ? or returns null if it could not be found. |
ShoppingItem |
fetchBySmallImageId(long smallImageId,
boolean retrieveFromCache)
Finds the shopping item where smallImageId = ? or returns null if it could not be found, optionally using the finder cache. |
int |
filterCountByG_C(long groupId,
long categoryId)
Filters by the user's permissions and counts all the shopping items where groupId = ? and categoryId = ?. |
List<ShoppingItem> |
filterFindByG_C(long groupId,
long categoryId)
Filters by the user's permissions and finds all the shopping items where groupId = ? and categoryId = ?. |
List<ShoppingItem> |
filterFindByG_C(long groupId,
long categoryId,
int start,
int end)
Filters by the user's permissions and finds a range of all the shopping items where groupId = ? and categoryId = ?. |
List<ShoppingItem> |
filterFindByG_C(long groupId,
long categoryId,
int start,
int end,
OrderByComparator orderByComparator)
Filters by the user's permissions and finds an ordered range of all the shopping items where groupId = ? and categoryId = ?. |
List<ShoppingItem> |
findAll()
Finds all the shopping items. |
List<ShoppingItem> |
findAll(int start,
int end)
Finds a range of all the shopping items. |
List<ShoppingItem> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the shopping items. |
ShoppingItem |
findByC_S(long companyId,
String sku)
Finds the shopping item where companyId = ? and sku = ? or throws a NoSuchItemException if it could not be found. |
ShoppingItem |
findByG_C_First(long groupId,
long categoryId,
OrderByComparator orderByComparator)
Finds the first shopping item in the ordered set where groupId = ? and categoryId = ?. |
ShoppingItem |
findByG_C_Last(long groupId,
long categoryId,
OrderByComparator orderByComparator)
Finds the last shopping item in the ordered set where groupId = ? and categoryId = ?. |
ShoppingItem[] |
findByG_C_PrevAndNext(long itemId,
long groupId,
long categoryId,
OrderByComparator orderByComparator)
Finds the shopping items before and after the current shopping item in the ordered set where groupId = ? and categoryId = ?. |
List<ShoppingItem> |
findByG_C(long groupId,
long categoryId)
Finds all the shopping items where groupId = ? and categoryId = ?. |
List<ShoppingItem> |
findByG_C(long groupId,
long categoryId,
int start,
int end)
Finds a range of all the shopping items where groupId = ? and categoryId = ?. |
List<ShoppingItem> |
findByG_C(long groupId,
long categoryId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the shopping items where groupId = ? and categoryId = ?. |
ShoppingItem |
findByLargeImageId(long largeImageId)
Finds the shopping item where largeImageId = ? or throws a NoSuchItemException if it could not be found. |
ShoppingItem |
findByMediumImageId(long mediumImageId)
Finds the shopping item where mediumImageId = ? or throws a NoSuchItemException if it could not be found. |
ShoppingItem |
findByPrimaryKey(long itemId)
Finds the shopping item with the primary key or throws a NoSuchItemException if it could not be found. |
ShoppingItem |
findBySmallImageId(long smallImageId)
Finds the shopping item where smallImageId = ? or throws a NoSuchItemException if it could not be found. |
List<ShoppingItemPrice> |
getShoppingItemPrices(long pk)
Gets all the shopping item prices associated with the shopping item. |
List<ShoppingItemPrice> |
getShoppingItemPrices(long pk,
int start,
int end)
Gets a range of all the shopping item prices associated with the shopping item. |
List<ShoppingItemPrice> |
getShoppingItemPrices(long pk,
int start,
int end,
OrderByComparator orderByComparator)
Gets an ordered range of all the shopping item prices associated with the shopping item. |
int |
getShoppingItemPricesSize(long pk)
Gets the number of shopping item prices associated with the shopping item. |
ShoppingItem |
remove(long itemId)
Removes the shopping item with the primary key from the database. |
void |
removeAll()
Removes all the shopping items from the database. |
void |
removeByC_S(long companyId,
String sku)
Removes the shopping item where companyId = ? and sku = ? from the database. |
void |
removeByG_C(long groupId,
long categoryId)
Removes all the shopping items where groupId = ? and categoryId = ? from the database. |
void |
removeByLargeImageId(long largeImageId)
Removes the shopping item where largeImageId = ? from the database. |
void |
removeByMediumImageId(long mediumImageId)
Removes the shopping item where mediumImageId = ? from the database. |
void |
removeBySmallImageId(long smallImageId)
Removes the shopping item where smallImageId = ? from the database. |
ShoppingItem |
updateImpl(ShoppingItem shoppingItem,
boolean merge)
|
| Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
|---|
clearCache, clearCache, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, remove, setDataSource, unregisterListener, update, update |
| Method Detail |
|---|
void cacheResult(ShoppingItem shoppingItem)
shoppingItem - the shopping item to cachevoid cacheResult(List<ShoppingItem> shoppingItems)
shoppingItems - the shopping items to cacheShoppingItem create(long itemId)
itemId - the primary key for the new shopping item
ShoppingItem remove(long itemId)
throws SystemException,
NoSuchItemException
itemId - the primary key of the shopping item to remove
NoSuchItemException - if a shopping item with the primary key could not be found
SystemException - if a system exception occurred
ShoppingItem updateImpl(ShoppingItem shoppingItem,
boolean merge)
throws SystemException
SystemException
ShoppingItem findByPrimaryKey(long itemId)
throws SystemException,
NoSuchItemException
NoSuchItemException if it could not be found.
itemId - the primary key of the shopping item to find
NoSuchItemException - if a shopping item with the primary key could not be found
SystemException - if a system exception occurred
ShoppingItem fetchByPrimaryKey(long itemId)
throws SystemException
null if it could not be found.
itemId - the primary key of the shopping item to find
null if a shopping item with the primary key could not be found
SystemException - if a system exception occurred
ShoppingItem findBySmallImageId(long smallImageId)
throws SystemException,
NoSuchItemException
NoSuchItemException if it could not be found.
smallImageId - the small image id to search with
NoSuchItemException - if a matching shopping item could not be found
SystemException - if a system exception occurred
ShoppingItem fetchBySmallImageId(long smallImageId)
throws SystemException
null if it could not be found. Uses the finder cache.
smallImageId - the small image id to search with
null if a matching shopping item could not be found
SystemException - if a system exception occurred
ShoppingItem fetchBySmallImageId(long smallImageId,
boolean retrieveFromCache)
throws SystemException
null if it could not be found, optionally using the finder cache.
smallImageId - the small image id to search with
null if a matching shopping item could not be found
SystemException - if a system exception occurred
ShoppingItem findByMediumImageId(long mediumImageId)
throws SystemException,
NoSuchItemException
NoSuchItemException if it could not be found.
mediumImageId - the medium image id to search with
NoSuchItemException - if a matching shopping item could not be found
SystemException - if a system exception occurred
ShoppingItem fetchByMediumImageId(long mediumImageId)
throws SystemException
null if it could not be found. Uses the finder cache.
mediumImageId - the medium image id to search with
null if a matching shopping item could not be found
SystemException - if a system exception occurred
ShoppingItem fetchByMediumImageId(long mediumImageId,
boolean retrieveFromCache)
throws SystemException
null if it could not be found, optionally using the finder cache.
mediumImageId - the medium image id to search with
null if a matching shopping item could not be found
SystemException - if a system exception occurred
ShoppingItem findByLargeImageId(long largeImageId)
throws SystemException,
NoSuchItemException
NoSuchItemException if it could not be found.
largeImageId - the large image id to search with
NoSuchItemException - if a matching shopping item could not be found
SystemException - if a system exception occurred
ShoppingItem fetchByLargeImageId(long largeImageId)
throws SystemException
null if it could not be found. Uses the finder cache.
largeImageId - the large image id to search with
null if a matching shopping item could not be found
SystemException - if a system exception occurred
ShoppingItem fetchByLargeImageId(long largeImageId,
boolean retrieveFromCache)
throws SystemException
null if it could not be found, optionally using the finder cache.
largeImageId - the large image id to search with
null if a matching shopping item could not be found
SystemException - if a system exception occurred
List<ShoppingItem> findByG_C(long groupId,
long categoryId)
throws SystemException
groupId - the group id to search withcategoryId - the category id to search with
SystemException - if a system exception occurred
List<ShoppingItem> findByG_C(long groupId,
long categoryId,
int start,
int end)
throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
groupId - the group id to search withcategoryId - the category id to search withstart - the lower bound of the range of shopping items to returnend - the upper bound of the range of shopping items to return (not inclusive)
SystemException - if a system exception occurred
List<ShoppingItem> findByG_C(long groupId,
long categoryId,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
groupId - the group id to search withcategoryId - the category id to search withstart - the lower bound of the range of shopping items to returnend - the upper bound of the range of shopping items to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
ShoppingItem findByG_C_First(long groupId,
long categoryId,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchItemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
groupId - the group id to search withcategoryId - the category id to search withorderByComparator - the comparator to order the set by
NoSuchItemException - if a matching shopping item could not be found
SystemException - if a system exception occurred
ShoppingItem findByG_C_Last(long groupId,
long categoryId,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchItemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
groupId - the group id to search withcategoryId - the category id to search withorderByComparator - the comparator to order the set by
NoSuchItemException - if a matching shopping item could not be found
SystemException - if a system exception occurred
ShoppingItem[] findByG_C_PrevAndNext(long itemId,
long groupId,
long categoryId,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchItemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
itemId - the primary key of the current shopping itemgroupId - the group id to search withcategoryId - the category id to search withorderByComparator - the comparator to order the set by
NoSuchItemException - if a shopping item with the primary key could not be found
SystemException - if a system exception occurred
List<ShoppingItem> filterFindByG_C(long groupId,
long categoryId)
throws SystemException
groupId - the group id to search withcategoryId - the category id to search with
SystemException - if a system exception occurred
List<ShoppingItem> filterFindByG_C(long groupId,
long categoryId,
int start,
int end)
throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
groupId - the group id to search withcategoryId - the category id to search withstart - the lower bound of the range of shopping items to returnend - the upper bound of the range of shopping items to return (not inclusive)
SystemException - if a system exception occurred
List<ShoppingItem> filterFindByG_C(long groupId,
long categoryId,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
groupId - the group id to search withcategoryId - the category id to search withstart - the lower bound of the range of shopping items to returnend - the upper bound of the range of shopping items to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
ShoppingItem findByC_S(long companyId,
String sku)
throws SystemException,
NoSuchItemException
NoSuchItemException if it could not be found.
companyId - the company id to search withsku - the sku to search with
NoSuchItemException - if a matching shopping item could not be found
SystemException - if a system exception occurred
ShoppingItem fetchByC_S(long companyId,
String sku)
throws SystemException
null if it could not be found. Uses the finder cache.
companyId - the company id to search withsku - the sku to search with
null if a matching shopping item could not be found
SystemException - if a system exception occurred
ShoppingItem fetchByC_S(long companyId,
String sku,
boolean retrieveFromCache)
throws SystemException
null if it could not be found, optionally using the finder cache.
companyId - the company id to search withsku - the sku to search with
null if a matching shopping item could not be found
SystemException - if a system exception occurred
List<ShoppingItem> findAll()
throws SystemException
SystemException - if a system exception occurred
List<ShoppingItem> findAll(int start,
int end)
throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
start - the lower bound of the range of shopping items to returnend - the upper bound of the range of shopping items to return (not inclusive)
SystemException - if a system exception occurred
List<ShoppingItem> findAll(int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
start - the lower bound of the range of shopping items to returnend - the upper bound of the range of shopping items to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
void removeBySmallImageId(long smallImageId)
throws SystemException,
NoSuchItemException
smallImageId - the small image id to search with
SystemException - if a system exception occurred
NoSuchItemException
void removeByMediumImageId(long mediumImageId)
throws SystemException,
NoSuchItemException
mediumImageId - the medium image id to search with
SystemException - if a system exception occurred
NoSuchItemException
void removeByLargeImageId(long largeImageId)
throws SystemException,
NoSuchItemException
largeImageId - the large image id to search with
SystemException - if a system exception occurred
NoSuchItemException
void removeByG_C(long groupId,
long categoryId)
throws SystemException
groupId - the group id to search withcategoryId - the category id to search with
SystemException - if a system exception occurred
void removeByC_S(long companyId,
String sku)
throws SystemException,
NoSuchItemException
companyId - the company id to search withsku - the sku to search with
SystemException - if a system exception occurred
NoSuchItemException
void removeAll()
throws SystemException
SystemException - if a system exception occurred
int countBySmallImageId(long smallImageId)
throws SystemException
smallImageId - the small image id to search with
SystemException - if a system exception occurred
int countByMediumImageId(long mediumImageId)
throws SystemException
mediumImageId - the medium image id to search with
SystemException - if a system exception occurred
int countByLargeImageId(long largeImageId)
throws SystemException
largeImageId - the large image id to search with
SystemException - if a system exception occurred
int countByG_C(long groupId,
long categoryId)
throws SystemException
groupId - the group id to search withcategoryId - the category id to search with
SystemException - if a system exception occurred
int filterCountByG_C(long groupId,
long categoryId)
throws SystemException
groupId - the group id to search withcategoryId - the category id to search with
SystemException - if a system exception occurred
int countByC_S(long companyId,
String sku)
throws SystemException
companyId - the company id to search withsku - the sku to search with
SystemException - if a system exception occurred
int countAll()
throws SystemException
SystemException - if a system exception occurred
List<ShoppingItemPrice> getShoppingItemPrices(long pk)
throws SystemException
pk - the primary key of the shopping item to get the associated shopping item prices for
SystemException - if a system exception occurred
List<ShoppingItemPrice> getShoppingItemPrices(long pk,
int start,
int end)
throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
pk - the primary key of the shopping item to get the associated shopping item prices forstart - the lower bound of the range of shopping items to returnend - the upper bound of the range of shopping items to return (not inclusive)
SystemException - if a system exception occurred
List<ShoppingItemPrice> getShoppingItemPrices(long pk,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
pk - the primary key of the shopping item to get the associated shopping item prices forstart - the lower bound of the range of shopping items to returnend - the upper bound of the range of shopping items to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
int getShoppingItemPricesSize(long pk)
throws SystemException
pk - the primary key of the shopping item to get the number of associated shopping item prices for
SystemException - if a system exception occurred
boolean containsShoppingItemPrice(long pk,
long shoppingItemPricePK)
throws SystemException
pk - the primary key of the shopping itemshoppingItemPricePK - the primary key of the shopping item price
SystemException - if a system exception occurred
boolean containsShoppingItemPrices(long pk)
throws SystemException
pk - the primary key of the shopping item to check for associations with shopping item prices
SystemException - if a system exception occurred
|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||