|
Liferay 6.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@ProviderType public interface ShoppingCouponPersistence
The persistence interface for the shopping coupon service.
Caching information and settings can be found in portal.properties
ShoppingCouponPersistenceImpl,
ShoppingCouponUtil| Method Summary | |
|---|---|
abstract void |
cacheResult(List<ShoppingCoupon> shoppingCoupons)
Caches the shopping coupons in the entity cache if it is enabled. |
abstract void |
cacheResult(ShoppingCoupon shoppingCoupon)
Caches the shopping coupon in the entity cache if it is enabled. |
abstract int |
countAll()
Returns the number of shopping coupons. |
abstract int |
countByCode(String code)
Returns the number of shopping coupons where code = ?. |
abstract int |
countByGroupId(long groupId)
Returns the number of shopping coupons where groupId = ?. |
abstract ShoppingCoupon |
create(long couponId)
Creates a new shopping coupon with the primary key. |
abstract ShoppingCoupon |
fetchByCode(String code)
Returns the shopping coupon where code = ? or returns null if it could not be found. |
abstract ShoppingCoupon |
fetchByCode(String code,
boolean retrieveFromCache)
Returns the shopping coupon where code = ? or returns null if it could not be found, optionally using the finder cache. |
abstract ShoppingCoupon |
fetchByGroupId_First(long groupId,
OrderByComparator orderByComparator)
Returns the first shopping coupon in the ordered set where groupId = ?. |
abstract ShoppingCoupon |
fetchByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
Returns the last shopping coupon in the ordered set where groupId = ?. |
abstract ShoppingCoupon |
fetchByPrimaryKey(long couponId)
Returns the shopping coupon with the primary key or returns null if it could not be found. |
abstract List<ShoppingCoupon> |
findAll()
Returns all the shopping coupons. |
abstract List<ShoppingCoupon> |
findAll(int start,
int end)
Returns a range of all the shopping coupons. |
abstract List<ShoppingCoupon> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the shopping coupons. |
abstract ShoppingCoupon |
findByCode(String code)
Returns the shopping coupon where code = ? or throws a NoSuchCouponException if it could not be found. |
abstract ShoppingCoupon |
findByGroupId_First(long groupId,
OrderByComparator orderByComparator)
Returns the first shopping coupon in the ordered set where groupId = ?. |
abstract ShoppingCoupon |
findByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
Returns the last shopping coupon in the ordered set where groupId = ?. |
abstract ShoppingCoupon[] |
findByGroupId_PrevAndNext(long couponId,
long groupId,
OrderByComparator orderByComparator)
Returns the shopping coupons before and after the current shopping coupon in the ordered set where groupId = ?. |
abstract List<ShoppingCoupon> |
findByGroupId(long groupId)
Returns all the shopping coupons where groupId = ?. |
abstract List<ShoppingCoupon> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the shopping coupons where groupId = ?. |
abstract List<ShoppingCoupon> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the shopping coupons where groupId = ?. |
abstract ShoppingCoupon |
findByPrimaryKey(long couponId)
Returns the shopping coupon with the primary key or throws a NoSuchCouponException if it could not be found. |
abstract ShoppingCoupon |
remove(long couponId)
Removes the shopping coupon with the primary key from the database. |
abstract void |
removeAll()
Removes all the shopping coupons from the database. |
abstract ShoppingCoupon |
removeByCode(String code)
Removes the shopping coupon where code = ? from the database. |
abstract void |
removeByGroupId(long groupId)
Removes all the shopping coupons where groupId = ? from the database. |
abstract ShoppingCoupon |
updateImpl(ShoppingCoupon shoppingCoupon)
|
| 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 |
|---|
List<ShoppingCoupon> findByGroupId(long groupId)
throws SystemException
groupId - the group ID
SystemException - if a system exception occurred
List<ShoppingCoupon> findByGroupId(long groupId,
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 com.liferay.portlet.shopping.model.impl.ShoppingCouponModelImpl. 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 IDstart - the lower bound of the range of shopping couponsend - the upper bound of the range of shopping coupons (not inclusive)
SystemException - if a system exception occurred
List<ShoppingCoupon> findByGroupId(long groupId,
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 com.liferay.portlet.shopping.model.impl.ShoppingCouponModelImpl. 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 IDstart - the lower bound of the range of shopping couponsend - the upper bound of the range of shopping coupons (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
ShoppingCoupon findByGroupId_First(long groupId,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchCouponException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchCouponException - if a matching shopping coupon could not be found
SystemException - if a system exception occurred
ShoppingCoupon fetchByGroupId_First(long groupId,
OrderByComparator orderByComparator)
throws SystemException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching shopping coupon could not be found
SystemException - if a system exception occurred
ShoppingCoupon findByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchCouponException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchCouponException - if a matching shopping coupon could not be found
SystemException - if a system exception occurred
ShoppingCoupon fetchByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
throws SystemException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching shopping coupon could not be found
SystemException - if a system exception occurred
ShoppingCoupon[] findByGroupId_PrevAndNext(long couponId,
long groupId,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchCouponException
couponId - the primary key of the current shopping coupongroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchCouponException - if a shopping coupon with the primary key could not be found
SystemException - if a system exception occurred
void removeByGroupId(long groupId)
throws SystemException
groupId - the group ID
SystemException - if a system exception occurred
int countByGroupId(long groupId)
throws SystemException
groupId - the group ID
SystemException - if a system exception occurred
ShoppingCoupon findByCode(String code)
throws SystemException,
NoSuchCouponException
NoSuchCouponException if it could not be found.
code - the code
NoSuchCouponException - if a matching shopping coupon could not be found
SystemException - if a system exception occurred
ShoppingCoupon fetchByCode(String code)
throws SystemException
null if it could not be found. Uses the finder cache.
code - the code
null if a matching shopping coupon could not be found
SystemException - if a system exception occurred
ShoppingCoupon fetchByCode(String code,
boolean retrieveFromCache)
throws SystemException
null if it could not be found, optionally using the finder cache.
code - the coderetrieveFromCache - whether to use the finder cache
null if a matching shopping coupon could not be found
SystemException - if a system exception occurred
ShoppingCoupon removeByCode(String code)
throws SystemException,
NoSuchCouponException
code - the code
SystemException - if a system exception occurred
NoSuchCouponException
int countByCode(String code)
throws SystemException
code - the code
SystemException - if a system exception occurredvoid cacheResult(ShoppingCoupon shoppingCoupon)
shoppingCoupon - the shopping couponvoid cacheResult(List<ShoppingCoupon> shoppingCoupons)
shoppingCoupons - the shopping couponsShoppingCoupon create(long couponId)
couponId - the primary key for the new shopping coupon
ShoppingCoupon remove(long couponId)
throws SystemException,
NoSuchCouponException
couponId - the primary key of the shopping coupon
NoSuchCouponException - if a shopping coupon with the primary key could not be found
SystemException - if a system exception occurred
ShoppingCoupon updateImpl(ShoppingCoupon shoppingCoupon)
throws SystemException
SystemException
ShoppingCoupon findByPrimaryKey(long couponId)
throws SystemException,
NoSuchCouponException
NoSuchCouponException if it could not be found.
couponId - the primary key of the shopping coupon
NoSuchCouponException - if a shopping coupon with the primary key could not be found
SystemException - if a system exception occurred
ShoppingCoupon fetchByPrimaryKey(long couponId)
throws SystemException
null if it could not be found.
couponId - the primary key of the shopping coupon
null if a shopping coupon with the primary key could not be found
SystemException - if a system exception occurred
List<ShoppingCoupon> findAll()
throws SystemException
SystemException - if a system exception occurred
List<ShoppingCoupon> 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 com.liferay.portlet.shopping.model.impl.ShoppingCouponModelImpl. 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 couponsend - the upper bound of the range of shopping coupons (not inclusive)
SystemException - if a system exception occurred
List<ShoppingCoupon> 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 com.liferay.portlet.shopping.model.impl.ShoppingCouponModelImpl. 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 couponsend - the upper bound of the range of shopping coupons (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
void removeAll()
throws SystemException
SystemException - if a system exception occurred
int countAll()
throws SystemException
SystemException - if a system exception occurred
|
Liferay 6.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||