|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@ProviderType public interface ShoppingItemPersistence
The persistence interface for the shopping item service.
Caching information and settings can be found in portal.properties
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. |
int |
countAll()
Returns the number of shopping items. |
int |
countByC_S(long companyId,
String sku)
Returns the number of shopping items where companyId = ? and sku = ?. |
int |
countByG_C(long groupId,
long categoryId)
Returns the number of shopping items where groupId = ? and categoryId = ?. |
int |
countByLargeImageId(long largeImageId)
Returns the number of shopping items where largeImageId = ?. |
int |
countByMediumImageId(long mediumImageId)
Returns the number of shopping items where mediumImageId = ?. |
int |
countBySmallImageId(long smallImageId)
Returns the number of shopping items where smallImageId = ?. |
ShoppingItem |
create(long itemId)
Creates a new shopping item with the primary key. |
ShoppingItem |
fetchByC_S(long companyId,
String sku)
Returns 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)
Returns the shopping item where companyId = ? and sku = ? or returns null if it could not be found, optionally using the finder cache. |
ShoppingItem |
fetchByG_C_First(long groupId,
long categoryId,
OrderByComparator orderByComparator)
Returns the first shopping item in the ordered set where groupId = ? and categoryId = ?. |
ShoppingItem |
fetchByG_C_Last(long groupId,
long categoryId,
OrderByComparator orderByComparator)
Returns the last shopping item in the ordered set where groupId = ? and categoryId = ?. |
ShoppingItem |
fetchByLargeImageId(long largeImageId)
Returns the shopping item where largeImageId = ? or returns null if it could not be found. |
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. |
ShoppingItem |
fetchByMediumImageId(long mediumImageId)
Returns the shopping item where mediumImageId = ? or returns null if it could not be found. |
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. |
ShoppingItem |
fetchByPrimaryKey(long itemId)
Returns the shopping item with the primary key or returns null if it could not be found. |
ShoppingItem |
fetchBySmallImageId(long smallImageId)
Returns the shopping item where smallImageId = ? or returns null if it could not be found. |
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. |
int |
filterCountByG_C(long groupId,
long categoryId)
Returns the number of shopping items that the user has permission to view where groupId = ? and categoryId = ?. |
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 = ?. |
List<ShoppingItem> |
filterFindByG_C(long groupId,
long categoryId)
Returns all the shopping items that the user has permission to view where groupId = ? and categoryId = ?. |
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 = ?. |
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 = ?. |
List<ShoppingItem> |
findAll()
Returns all the shopping items. |
List<ShoppingItem> |
findAll(int start,
int end)
Returns a range of all the shopping items. |
List<ShoppingItem> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the shopping items. |
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. |
ShoppingItem |
findByG_C_First(long groupId,
long categoryId,
OrderByComparator orderByComparator)
Returns the first shopping item in the ordered set where groupId = ? and categoryId = ?. |
ShoppingItem |
findByG_C_Last(long groupId,
long categoryId,
OrderByComparator orderByComparator)
Returns the last shopping item in the ordered set where groupId = ? and categoryId = ?. |
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 = ?. |
List<ShoppingItem> |
findByG_C(long groupId,
long categoryId)
Returns all the shopping items where groupId = ? and categoryId = ?. |
List<ShoppingItem> |
findByG_C(long groupId,
long categoryId,
int start,
int end)
Returns 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)
Returns an ordered range of all the shopping items where groupId = ? and categoryId = ?. |
ShoppingItem |
findByLargeImageId(long largeImageId)
Returns the shopping item where largeImageId = ? or throws a NoSuchItemException if it could not be found. |
ShoppingItem |
findByMediumImageId(long mediumImageId)
Returns the shopping item where mediumImageId = ? or throws a NoSuchItemException if it could not be found. |
ShoppingItem |
findByPrimaryKey(long itemId)
Returns the shopping item with the primary key or throws a NoSuchItemException if it could not be found. |
ShoppingItem |
findBySmallImageId(long smallImageId)
Returns the shopping item where smallImageId = ? or throws a NoSuchItemException if it could not be found. |
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. |
ShoppingItem |
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. |
ShoppingItem |
removeByLargeImageId(long largeImageId)
Removes the shopping item where largeImageId = ? from the database. |
ShoppingItem |
removeByMediumImageId(long mediumImageId)
Removes the shopping item where mediumImageId = ? from the database. |
ShoppingItem |
removeBySmallImageId(long smallImageId)
Removes the shopping item where smallImageId = ? from the database. |
ShoppingItem |
updateImpl(ShoppingItem shoppingItem)
|
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
---|
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update, update, update |
Method Detail |
---|
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 occurredShoppingItem 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 occurredShoppingItem 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 occurredShoppingItem removeBySmallImageId(long smallImageId) throws SystemException, NoSuchItemException
smallImageId
- the small image ID
SystemException
- if a system exception occurred
NoSuchItemException
int countBySmallImageId(long smallImageId) throws SystemException
smallImageId
- the small image ID
SystemException
- if a system exception occurredShoppingItem 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 occurredShoppingItem 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 occurredShoppingItem 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 occurredShoppingItem removeByMediumImageId(long mediumImageId) throws SystemException, NoSuchItemException
mediumImageId
- the medium image ID
SystemException
- if a system exception occurred
NoSuchItemException
int countByMediumImageId(long mediumImageId) throws SystemException
mediumImageId
- the medium image ID
SystemException
- if a system exception occurredShoppingItem 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 occurredShoppingItem 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 occurredShoppingItem 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 occurredShoppingItem removeByLargeImageId(long largeImageId) throws SystemException, NoSuchItemException
largeImageId
- the large image ID
SystemException
- if a system exception occurred
NoSuchItemException
int countByLargeImageId(long largeImageId) throws SystemException
largeImageId
- the large image ID
SystemException
- if a system exception occurredList<ShoppingItem> findByG_C(long groupId, long categoryId) throws SystemException
groupId
- the group IDcategoryId
- the category ID
SystemException
- if a system exception occurredList<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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from ShoppingItemModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 occurredList<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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from ShoppingItemModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 occurredShoppingItem 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 occurredShoppingItem 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 occurredShoppingItem 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 occurredShoppingItem 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 occurredShoppingItem[] 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 occurredList<ShoppingItem> filterFindByG_C(long groupId, long categoryId) throws SystemException
groupId
- the group IDcategoryId
- the category ID
SystemException
- if a system exception occurredList<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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from ShoppingItemModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 occurredList<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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from ShoppingItemModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 occurredShoppingItem[] 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 occurredvoid removeByG_C(long groupId, long categoryId) throws SystemException
groupId
- the group IDcategoryId
- the category ID
SystemException
- if a system exception occurredint countByG_C(long groupId, long categoryId) throws SystemException
groupId
- the group IDcategoryId
- the category ID
SystemException
- if a system exception occurredint filterCountByG_C(long groupId, long categoryId) throws SystemException
groupId
- the group IDcategoryId
- the category ID
SystemException
- if a system exception occurredShoppingItem 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 occurredShoppingItem 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 occurredShoppingItem 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 occurredShoppingItem removeByC_S(long companyId, String sku) throws SystemException, NoSuchItemException
companyId
- the company IDsku
- the sku
SystemException
- if a system exception occurred
NoSuchItemException
int countByC_S(long companyId, String sku) throws SystemException
companyId
- the company IDsku
- the sku
SystemException
- if a system exception occurredvoid cacheResult(ShoppingItem shoppingItem)
shoppingItem
- the shopping itemvoid cacheResult(List<ShoppingItem> shoppingItems)
shoppingItems
- the shopping itemsShoppingItem 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
NoSuchItemException
- if a shopping item with the primary key could not be found
SystemException
- if a system exception occurredShoppingItem updateImpl(ShoppingItem shoppingItem) 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
NoSuchItemException
- if a shopping item with the primary key could not be found
SystemException
- if a system exception occurredShoppingItem 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 occurredList<ShoppingItem> findAll() throws SystemException
SystemException
- if a system exception occurredList<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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from ShoppingItemModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 occurredList<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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from ShoppingItemModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 occurredvoid removeAll() throws SystemException
SystemException
- if a system exception occurredint countAll() throws SystemException
SystemException
- if a system exception occurred
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |