@ProviderType public interface ShoppingCouponPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<ShoppingCoupon>
Caching information and settings can be found in portal.properties
com.liferay.shopping.service.persistence.impl.ShoppingCouponPersistenceImpl,
ShoppingCouponUtil| Modifier and Type | Method and Description |
|---|---|
void |
cacheResult(java.util.List<ShoppingCoupon> shoppingCoupons)
Caches the shopping coupons in the entity cache if it is enabled.
|
void |
cacheResult(ShoppingCoupon shoppingCoupon)
Caches the shopping coupon in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of shopping coupons.
|
int |
countByCode(java.lang.String code)
Returns the number of shopping coupons where code = ?.
|
int |
countByGroupId(long groupId)
Returns the number of shopping coupons where groupId = ?.
|
ShoppingCoupon |
create(long couponId)
Creates a new shopping coupon with the primary key.
|
ShoppingCoupon |
fetchByCode(java.lang.String code)
Returns the shopping coupon where code = ? or returns
null if it could not be found. |
ShoppingCoupon |
fetchByCode(java.lang.String code,
boolean retrieveFromCache)
Returns the shopping coupon where code = ? or returns
null if it could not be found, optionally using the finder cache. |
ShoppingCoupon |
fetchByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<ShoppingCoupon> orderByComparator)
Returns the first shopping coupon in the ordered set where groupId = ?.
|
ShoppingCoupon |
fetchByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<ShoppingCoupon> orderByComparator)
Returns the last shopping coupon in the ordered set where groupId = ?.
|
ShoppingCoupon |
fetchByPrimaryKey(long couponId)
Returns the shopping coupon with the primary key or returns
null if it could not be found. |
java.util.Map<java.io.Serializable,ShoppingCoupon> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
java.util.List<ShoppingCoupon> |
findAll()
Returns all the shopping coupons.
|
java.util.List<ShoppingCoupon> |
findAll(int start,
int end)
Returns a range of all the shopping coupons.
|
java.util.List<ShoppingCoupon> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ShoppingCoupon> orderByComparator)
Returns an ordered range of all the shopping coupons.
|
java.util.List<ShoppingCoupon> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ShoppingCoupon> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the shopping coupons.
|
ShoppingCoupon |
findByCode(java.lang.String code)
Returns the shopping coupon where code = ? or throws a
NoSuchCouponException if it could not be found. |
ShoppingCoupon |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<ShoppingCoupon> orderByComparator)
Returns the first shopping coupon in the ordered set where groupId = ?.
|
ShoppingCoupon |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<ShoppingCoupon> orderByComparator)
Returns the last shopping coupon in the ordered set where groupId = ?.
|
ShoppingCoupon[] |
findByGroupId_PrevAndNext(long couponId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<ShoppingCoupon> orderByComparator)
Returns the shopping coupons before and after the current shopping coupon in the ordered set where groupId = ?.
|
java.util.List<ShoppingCoupon> |
findByGroupId(long groupId)
Returns all the shopping coupons where groupId = ?.
|
java.util.List<ShoppingCoupon> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the shopping coupons where groupId = ?.
|
java.util.List<ShoppingCoupon> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ShoppingCoupon> orderByComparator)
Returns an ordered range of all the shopping coupons where groupId = ?.
|
java.util.List<ShoppingCoupon> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ShoppingCoupon> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the shopping coupons where groupId = ?.
|
ShoppingCoupon |
findByPrimaryKey(long couponId)
Returns the shopping coupon with the primary key or throws a
NoSuchCouponException if it could not be found. |
java.util.Set<java.lang.String> |
getBadColumnNames() |
ShoppingCoupon |
remove(long couponId)
Removes the shopping coupon with the primary key from the database.
|
void |
removeAll()
Removes all the shopping coupons from the database.
|
ShoppingCoupon |
removeByCode(java.lang.String code)
Removes the shopping coupon where code = ? from the database.
|
void |
removeByGroupId(long groupId)
Removes all the shopping coupons where groupId = ? from the database.
|
ShoppingCoupon |
updateImpl(ShoppingCoupon shoppingCoupon) |
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, updatejava.util.List<ShoppingCoupon> findByGroupId(long groupId)
groupId - the group IDjava.util.List<ShoppingCoupon> findByGroupId(long groupId, int start, int end)
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 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)java.util.List<ShoppingCoupon> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ShoppingCoupon> orderByComparator)
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 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)java.util.List<ShoppingCoupon> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ShoppingCoupon> orderByComparator, boolean retrieveFromCache)
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 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)retrieveFromCache - whether to retrieve from the finder cacheShoppingCoupon findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<ShoppingCoupon> orderByComparator) throws NoSuchCouponException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchCouponException - if a matching shopping coupon could not be foundShoppingCoupon fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<ShoppingCoupon> orderByComparator)
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)null if a matching shopping coupon could not be foundShoppingCoupon findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<ShoppingCoupon> orderByComparator) throws NoSuchCouponException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchCouponException - if a matching shopping coupon could not be foundShoppingCoupon fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<ShoppingCoupon> orderByComparator)
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)null if a matching shopping coupon could not be foundShoppingCoupon[] findByGroupId_PrevAndNext(long couponId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<ShoppingCoupon> orderByComparator) throws 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 foundvoid removeByGroupId(long groupId)
groupId - the group IDint countByGroupId(long groupId)
groupId - the group IDShoppingCoupon findByCode(java.lang.String code) throws NoSuchCouponException
NoSuchCouponException if it could not be found.code - the codeNoSuchCouponException - if a matching shopping coupon could not be foundShoppingCoupon fetchByCode(java.lang.String code)
null if it could not be found. Uses the finder cache.code - the codenull if a matching shopping coupon could not be foundShoppingCoupon fetchByCode(java.lang.String code, boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.code - the coderetrieveFromCache - whether to retrieve from the finder cachenull if a matching shopping coupon could not be foundShoppingCoupon removeByCode(java.lang.String code) throws NoSuchCouponException
code - the codeNoSuchCouponExceptionint countByCode(java.lang.String code)
code - the codevoid cacheResult(ShoppingCoupon shoppingCoupon)
shoppingCoupon - the shopping couponvoid cacheResult(java.util.List<ShoppingCoupon> shoppingCoupons)
shoppingCoupons - the shopping couponsShoppingCoupon create(long couponId)
couponId - the primary key for the new shopping couponShoppingCoupon remove(long couponId) throws NoSuchCouponException
couponId - the primary key of the shopping couponNoSuchCouponException - if a shopping coupon with the primary key could not be foundShoppingCoupon updateImpl(ShoppingCoupon shoppingCoupon)
ShoppingCoupon findByPrimaryKey(long couponId) throws NoSuchCouponException
NoSuchCouponException if it could not be found.couponId - the primary key of the shopping couponNoSuchCouponException - if a shopping coupon with the primary key could not be foundShoppingCoupon fetchByPrimaryKey(long couponId)
null if it could not be found.couponId - the primary key of the shopping couponnull if a shopping coupon with the primary key could not be foundjava.util.Map<java.io.Serializable,ShoppingCoupon> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
fetchByPrimaryKeys in interface com.liferay.portal.kernel.service.persistence.BasePersistence<ShoppingCoupon>java.util.List<ShoppingCoupon> findAll()
java.util.List<ShoppingCoupon> findAll(int start, int end)
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 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)java.util.List<ShoppingCoupon> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ShoppingCoupon> orderByComparator)
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 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)java.util.List<ShoppingCoupon> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ShoppingCoupon> orderByComparator, boolean retrieveFromCache)
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 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)retrieveFromCache - whether to retrieve from the finder cachevoid removeAll()
int countAll()
java.util.Set<java.lang.String> getBadColumnNames()
getBadColumnNames in interface com.liferay.portal.kernel.service.persistence.BasePersistence<ShoppingCoupon>