|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.shopping.service.persistence.ShoppingItemUtil
public class ShoppingItemUtil
The persistence utility for the shopping item service. This utility wraps ShoppingItemPersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
ShoppingItemPersistence
,
ShoppingItemPersistenceImpl
Constructor Summary | |
---|---|
ShoppingItemUtil()
|
Method Summary | |
---|---|
static void |
cacheResult(List<ShoppingItem> shoppingItems)
Caches the shopping items in the entity cache if it is enabled. |
static void |
cacheResult(ShoppingItem shoppingItem)
Caches the shopping item in the entity cache if it is enabled. |
static void |
clearCache()
|
static void |
clearCache(ShoppingItem shoppingItem)
|
static boolean |
containsShoppingItemPrice(long pk,
long shoppingItemPricePK)
Returns true if the shopping item price is associated with the shopping item. |
static boolean |
containsShoppingItemPrices(long pk)
Returns true if the shopping item has any shopping item prices associated with it. |
static int |
countAll()
Returns the number of shopping items. |
static int |
countByC_S(long companyId,
String sku)
Returns the number of shopping items where companyId = ? and sku = ?. |
static int |
countByG_C(long groupId,
long categoryId)
Returns the number of shopping items where groupId = ? and categoryId = ?. |
static int |
countByLargeImageId(long largeImageId)
Returns the number of shopping items where largeImageId = ?. |
static int |
countByMediumImageId(long mediumImageId)
Returns the number of shopping items where mediumImageId = ?. |
static int |
countBySmallImageId(long smallImageId)
Returns the number of shopping items where smallImageId = ?. |
long |
countWithDynamicQuery(DynamicQuery dynamicQuery)
|
static ShoppingItem |
create(long itemId)
Creates a new shopping item with the primary key. |
static ShoppingItem |
fetchByC_S(long companyId,
String sku)
Returns the shopping item where companyId = ? and sku = ? or returns null if it could not be found. |
static ShoppingItem |
fetchByC_S(long companyId,
String sku,
boolean retrieveFromCache)
Returns the shopping item where companyId = ? and sku = ? or returns null if it could not be found, optionally using the finder cache. |
static ShoppingItem |
fetchByG_C_First(long groupId,
long categoryId,
OrderByComparator orderByComparator)
Returns the first shopping item in the ordered set where groupId = ? and categoryId = ?. |
static ShoppingItem |
fetchByG_C_Last(long groupId,
long categoryId,
OrderByComparator orderByComparator)
Returns the last shopping item in the ordered set where groupId = ? and categoryId = ?. |
static ShoppingItem |
fetchByLargeImageId(long largeImageId)
Returns the shopping item where largeImageId = ? or returns null if it could not be found. |
static ShoppingItem |
fetchByLargeImageId(long largeImageId,
boolean retrieveFromCache)
Returns the shopping item where largeImageId = ? or returns null if it could not be found, optionally using the finder cache. |
static ShoppingItem |
fetchByMediumImageId(long mediumImageId)
Returns the shopping item where mediumImageId = ? or returns null if it could not be found. |
static ShoppingItem |
fetchByMediumImageId(long mediumImageId,
boolean retrieveFromCache)
Returns the shopping item where mediumImageId = ? or returns null if it could not be found, optionally using the finder cache. |
static ShoppingItem |
fetchByPrimaryKey(long itemId)
Returns the shopping item with the primary key or returns null if it could not be found. |
static ShoppingItem |
fetchBySmallImageId(long smallImageId)
Returns the shopping item where smallImageId = ? or returns null if it could not be found. |
static ShoppingItem |
fetchBySmallImageId(long smallImageId,
boolean retrieveFromCache)
Returns the shopping item where smallImageId = ? or returns null if it could not be found, optionally using the finder cache. |
static int |
filterCountByG_C(long groupId,
long categoryId)
Returns the number of shopping items that the user has permission to view where groupId = ? and categoryId = ?. |
static ShoppingItem[] |
filterFindByG_C_PrevAndNext(long itemId,
long groupId,
long categoryId,
OrderByComparator orderByComparator)
Returns the shopping items before and after the current shopping item in the ordered set of shopping items that the user has permission to view where groupId = ? and categoryId = ?. |
static List<ShoppingItem> |
filterFindByG_C(long groupId,
long categoryId)
Returns all the shopping items that the user has permission to view where groupId = ? and categoryId = ?. |
static List<ShoppingItem> |
filterFindByG_C(long groupId,
long categoryId,
int start,
int end)
Returns a range of all the shopping items that the user has permission to view where groupId = ? and categoryId = ?. |
static List<ShoppingItem> |
filterFindByG_C(long groupId,
long categoryId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the shopping items that the user has permissions to view where groupId = ? and categoryId = ?. |
static List<ShoppingItem> |
findAll()
Returns all the shopping items. |
static List<ShoppingItem> |
findAll(int start,
int end)
Returns a range of all the shopping items. |
static List<ShoppingItem> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the shopping items. |
static ShoppingItem |
findByC_S(long companyId,
String sku)
Returns the shopping item where companyId = ? and sku = ? or throws a NoSuchItemException if it could not be found. |
static ShoppingItem |
findByG_C_First(long groupId,
long categoryId,
OrderByComparator orderByComparator)
Returns the first shopping item in the ordered set where groupId = ? and categoryId = ?. |
static ShoppingItem |
findByG_C_Last(long groupId,
long categoryId,
OrderByComparator orderByComparator)
Returns the last shopping item in the ordered set where groupId = ? and categoryId = ?. |
static ShoppingItem[] |
findByG_C_PrevAndNext(long itemId,
long groupId,
long categoryId,
OrderByComparator orderByComparator)
Returns the shopping items before and after the current shopping item in the ordered set where groupId = ? and categoryId = ?. |
static List<ShoppingItem> |
findByG_C(long groupId,
long categoryId)
Returns all the shopping items where groupId = ? and categoryId = ?. |
static List<ShoppingItem> |
findByG_C(long groupId,
long categoryId,
int start,
int end)
Returns a range of all the shopping items where groupId = ? and categoryId = ?. |
static List<ShoppingItem> |
findByG_C(long groupId,
long categoryId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the shopping items where groupId = ? and categoryId = ?. |
static ShoppingItem |
findByLargeImageId(long largeImageId)
Returns the shopping item where largeImageId = ? or throws a NoSuchItemException if it could not be found. |
static ShoppingItem |
findByMediumImageId(long mediumImageId)
Returns the shopping item where mediumImageId = ? or throws a NoSuchItemException if it could not be found. |
static ShoppingItem |
findByPrimaryKey(long itemId)
Returns the shopping item with the primary key or throws a NoSuchItemException if it could not be found. |
static ShoppingItem |
findBySmallImageId(long smallImageId)
Returns the shopping item where smallImageId = ? or throws a NoSuchItemException if it could not be found. |
static List<ShoppingItem> |
findWithDynamicQuery(DynamicQuery dynamicQuery)
|
static List<ShoppingItem> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
static List<ShoppingItem> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
|
static ShoppingItemPersistence |
getPersistence()
|
static List<ShoppingItemPrice> |
getShoppingItemPrices(long pk)
Returns all the shopping item prices associated with the shopping item. |
static List<ShoppingItemPrice> |
getShoppingItemPrices(long pk,
int start,
int end)
Returns a range of all the shopping item prices associated with the shopping item. |
static List<ShoppingItemPrice> |
getShoppingItemPrices(long pk,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the shopping item prices associated with the shopping item. |
static int |
getShoppingItemPricesSize(long pk)
Returns the number of shopping item prices associated with the shopping item. |
static ShoppingItem |
remove(long itemId)
Removes the shopping item with the primary key from the database. |
static void |
removeAll()
Removes all the shopping items from the database. |
static ShoppingItem |
removeByC_S(long companyId,
String sku)
Removes the shopping item where companyId = ? and sku = ? from the database. |
static void |
removeByG_C(long groupId,
long categoryId)
Removes all the shopping items where groupId = ? and categoryId = ? from the database. |
static ShoppingItem |
removeByLargeImageId(long largeImageId)
Removes the shopping item where largeImageId = ? from the database. |
static ShoppingItem |
removeByMediumImageId(long mediumImageId)
Removes the shopping item where mediumImageId = ? from the database. |
static ShoppingItem |
removeBySmallImageId(long smallImageId)
Removes the shopping item where smallImageId = ? from the database. |
void |
setPersistence(ShoppingItemPersistence persistence)
Deprecated. |
static ShoppingItem |
update(ShoppingItem shoppingItem,
boolean merge)
|
static ShoppingItem |
update(ShoppingItem shoppingItem,
boolean merge,
ServiceContext serviceContext)
|
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 |
Constructor Detail |
---|
public ShoppingItemUtil()
Method Detail |
---|
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(ShoppingItem shoppingItem)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)
public long countWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static List<ShoppingItem> findWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<ShoppingItem> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<ShoppingItem> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static ShoppingItem update(ShoppingItem shoppingItem, boolean merge) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)
public static ShoppingItem update(ShoppingItem shoppingItem, boolean merge, ServiceContext serviceContext) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
public static void cacheResult(ShoppingItem shoppingItem)
shoppingItem
- the shopping itempublic static void cacheResult(List<ShoppingItem> shoppingItems)
shoppingItems
- the shopping itemspublic static ShoppingItem create(long itemId)
itemId
- the primary key for the new shopping item
public static ShoppingItem remove(long itemId) throws SystemException, NoSuchItemException
itemId
- the primary key of the shopping item
NoSuchItemException
- if a shopping item with the primary key could not be found
SystemException
- if a system exception occurredpublic static ShoppingItem updateImpl(ShoppingItem shoppingItem, boolean merge) throws SystemException
SystemException
public static ShoppingItem findByPrimaryKey(long itemId) throws SystemException, NoSuchItemException
NoSuchItemException
if it could not be found.
itemId
- the primary key of the shopping item
NoSuchItemException
- if a shopping item with the primary key could not be found
SystemException
- if a system exception occurredpublic static ShoppingItem fetchByPrimaryKey(long itemId) throws SystemException
null
if it could not be found.
itemId
- the primary key of the shopping item
null
if a shopping item with the primary key could not be found
SystemException
- if a system exception occurredpublic static ShoppingItem findBySmallImageId(long smallImageId) throws SystemException, NoSuchItemException
NoSuchItemException
if it could not be found.
smallImageId
- the small image ID
NoSuchItemException
- if a matching shopping item could not be found
SystemException
- if a system exception occurredpublic static ShoppingItem fetchBySmallImageId(long smallImageId) throws SystemException
null
if it could not be found. Uses the finder cache.
smallImageId
- the small image ID
null
if a matching shopping item could not be found
SystemException
- if a system exception occurredpublic static ShoppingItem fetchBySmallImageId(long smallImageId, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
smallImageId
- the small image IDretrieveFromCache
- whether to use the finder cache
null
if a matching shopping item could not be found
SystemException
- if a system exception occurredpublic static ShoppingItem findByMediumImageId(long mediumImageId) throws SystemException, NoSuchItemException
NoSuchItemException
if it could not be found.
mediumImageId
- the medium image ID
NoSuchItemException
- if a matching shopping item could not be found
SystemException
- if a system exception occurredpublic static ShoppingItem fetchByMediumImageId(long mediumImageId) throws SystemException
null
if it could not be found. Uses the finder cache.
mediumImageId
- the medium image ID
null
if a matching shopping item could not be found
SystemException
- if a system exception occurredpublic static ShoppingItem fetchByMediumImageId(long mediumImageId, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
mediumImageId
- the medium image IDretrieveFromCache
- whether to use the finder cache
null
if a matching shopping item could not be found
SystemException
- if a system exception occurredpublic static ShoppingItem findByLargeImageId(long largeImageId) throws SystemException, NoSuchItemException
NoSuchItemException
if it could not be found.
largeImageId
- the large image ID
NoSuchItemException
- if a matching shopping item could not be found
SystemException
- if a system exception occurredpublic static ShoppingItem fetchByLargeImageId(long largeImageId) throws SystemException
null
if it could not be found. Uses the finder cache.
largeImageId
- the large image ID
null
if a matching shopping item could not be found
SystemException
- if a system exception occurredpublic static ShoppingItem fetchByLargeImageId(long largeImageId, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
largeImageId
- the large image IDretrieveFromCache
- whether to use the finder cache
null
if a matching shopping item could not be found
SystemException
- if a system exception occurredpublic static List<ShoppingItem> findByG_C(long groupId, long categoryId) throws SystemException
groupId
- the group IDcategoryId
- the category ID
SystemException
- if a system exception occurredpublic static 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 IDcategoryId
- the category IDstart
- the lower bound of the range of shopping itemsend
- the upper bound of the range of shopping items (not inclusive)
SystemException
- if a system exception occurredpublic static 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 IDcategoryId
- the category IDstart
- the lower bound of the range of shopping itemsend
- the upper bound of the range of shopping items (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static ShoppingItem findByG_C_First(long groupId, long categoryId, OrderByComparator orderByComparator) throws SystemException, NoSuchItemException
groupId
- the group IDcategoryId
- the category IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchItemException
- if a matching shopping item could not be found
SystemException
- if a system exception occurredpublic static ShoppingItem fetchByG_C_First(long groupId, long categoryId, OrderByComparator orderByComparator) throws SystemException
groupId
- the group IDcategoryId
- the category IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching shopping item could not be found
SystemException
- if a system exception occurredpublic static ShoppingItem findByG_C_Last(long groupId, long categoryId, OrderByComparator orderByComparator) throws SystemException, NoSuchItemException
groupId
- the group IDcategoryId
- the category IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchItemException
- if a matching shopping item could not be found
SystemException
- if a system exception occurredpublic static ShoppingItem fetchByG_C_Last(long groupId, long categoryId, OrderByComparator orderByComparator) throws SystemException
groupId
- the group IDcategoryId
- the category IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching shopping item could not be found
SystemException
- if a system exception occurredpublic static ShoppingItem[] findByG_C_PrevAndNext(long itemId, long groupId, long categoryId, OrderByComparator orderByComparator) throws SystemException, NoSuchItemException
itemId
- the primary key of the current shopping itemgroupId
- the group IDcategoryId
- the category IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchItemException
- if a shopping item with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<ShoppingItem> filterFindByG_C(long groupId, long categoryId) throws SystemException
groupId
- the group IDcategoryId
- the category ID
SystemException
- if a system exception occurredpublic static 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 IDcategoryId
- the category IDstart
- the lower bound of the range of shopping itemsend
- the upper bound of the range of shopping items (not inclusive)
SystemException
- if a system exception occurredpublic static 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 IDcategoryId
- the category IDstart
- the lower bound of the range of shopping itemsend
- the upper bound of the range of shopping items (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static ShoppingItem[] filterFindByG_C_PrevAndNext(long itemId, long groupId, long categoryId, OrderByComparator orderByComparator) throws SystemException, NoSuchItemException
itemId
- the primary key of the current shopping itemgroupId
- the group IDcategoryId
- the category IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchItemException
- if a shopping item with the primary key could not be found
SystemException
- if a system exception occurredpublic static ShoppingItem findByC_S(long companyId, String sku) throws SystemException, NoSuchItemException
NoSuchItemException
if it could not be found.
companyId
- the company IDsku
- the sku
NoSuchItemException
- if a matching shopping item could not be found
SystemException
- if a system exception occurredpublic static ShoppingItem fetchByC_S(long companyId, String sku) throws SystemException
null
if it could not be found. Uses the finder cache.
companyId
- the company IDsku
- the sku
null
if a matching shopping item could not be found
SystemException
- if a system exception occurredpublic static 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 IDsku
- the skuretrieveFromCache
- whether to use the finder cache
null
if a matching shopping item could not be found
SystemException
- if a system exception occurredpublic static List<ShoppingItem> findAll() throws SystemException
SystemException
- if a system exception occurredpublic static 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 itemsend
- the upper bound of the range of shopping items (not inclusive)
SystemException
- if a system exception occurredpublic static 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 itemsend
- the upper bound of the range of shopping items (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static ShoppingItem removeBySmallImageId(long smallImageId) throws SystemException, NoSuchItemException
smallImageId
- the small image ID
SystemException
- if a system exception occurred
NoSuchItemException
public static ShoppingItem removeByMediumImageId(long mediumImageId) throws SystemException, NoSuchItemException
mediumImageId
- the medium image ID
SystemException
- if a system exception occurred
NoSuchItemException
public static ShoppingItem removeByLargeImageId(long largeImageId) throws SystemException, NoSuchItemException
largeImageId
- the large image ID
SystemException
- if a system exception occurred
NoSuchItemException
public static void removeByG_C(long groupId, long categoryId) throws SystemException
groupId
- the group IDcategoryId
- the category ID
SystemException
- if a system exception occurredpublic static ShoppingItem removeByC_S(long companyId, String sku) throws SystemException, NoSuchItemException
companyId
- the company IDsku
- the sku
SystemException
- if a system exception occurred
NoSuchItemException
public static void removeAll() throws SystemException
SystemException
- if a system exception occurredpublic static int countBySmallImageId(long smallImageId) throws SystemException
smallImageId
- the small image ID
SystemException
- if a system exception occurredpublic static int countByMediumImageId(long mediumImageId) throws SystemException
mediumImageId
- the medium image ID
SystemException
- if a system exception occurredpublic static int countByLargeImageId(long largeImageId) throws SystemException
largeImageId
- the large image ID
SystemException
- if a system exception occurredpublic static int countByG_C(long groupId, long categoryId) throws SystemException
groupId
- the group IDcategoryId
- the category ID
SystemException
- if a system exception occurredpublic static int filterCountByG_C(long groupId, long categoryId) throws SystemException
groupId
- the group IDcategoryId
- the category ID
SystemException
- if a system exception occurredpublic static int countByC_S(long companyId, String sku) throws SystemException
companyId
- the company IDsku
- the sku
SystemException
- if a system exception occurredpublic static int countAll() throws SystemException
SystemException
- if a system exception occurredpublic static List<ShoppingItemPrice> getShoppingItemPrices(long pk) throws SystemException
pk
- the primary key of the shopping item
SystemException
- if a system exception occurredpublic static 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 itemstart
- the lower bound of the range of shopping itemsend
- the upper bound of the range of shopping items (not inclusive)
SystemException
- if a system exception occurredpublic static 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 itemstart
- the lower bound of the range of shopping itemsend
- the upper bound of the range of shopping items (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic static int getShoppingItemPricesSize(long pk) throws SystemException
pk
- the primary key of the shopping item
SystemException
- if a system exception occurredpublic static boolean containsShoppingItemPrice(long pk, long shoppingItemPricePK) throws SystemException
true
if the shopping item price is associated with the shopping item.
pk
- the primary key of the shopping itemshoppingItemPricePK
- the primary key of the shopping item price
true
if the shopping item price is associated with the shopping item; false
otherwise
SystemException
- if a system exception occurredpublic static boolean containsShoppingItemPrices(long pk) throws SystemException
true
if the shopping item has any shopping item prices associated with it.
pk
- the primary key of the shopping item to check for associations with shopping item prices
true
if the shopping item has any shopping item prices associated with it; false
otherwise
SystemException
- if a system exception occurredpublic static ShoppingItemPersistence getPersistence()
public void setPersistence(ShoppingItemPersistence persistence)
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |