com.liferay.portlet.shopping.service.persistence
Interface ShoppingCouponPersistence

All Superinterfaces:
BasePersistence<ShoppingCoupon>

public interface ShoppingCouponPersistence
extends BasePersistence<ShoppingCoupon>

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Author:
Brian Wing Shun Chan
See Also:
ShoppingCouponPersistenceImpl, ShoppingCouponUtil
Generated:

Method Summary
 void cacheResult(java.util.List<ShoppingCoupon> shoppingCoupons)
           
 void cacheResult(ShoppingCoupon shoppingCoupon)
           
 int countAll()
           
 int countByCode(java.lang.String code)
           
 int countByGroupId(long groupId)
           
 ShoppingCoupon create(long couponId)
           
 ShoppingCoupon fetchByCode(java.lang.String code)
           
 ShoppingCoupon fetchByCode(java.lang.String code, boolean retrieveFromCache)
           
 ShoppingCoupon fetchByPrimaryKey(long couponId)
           
 java.util.List<ShoppingCoupon> findAll()
           
 java.util.List<ShoppingCoupon> findAll(int start, int end)
           
 java.util.List<ShoppingCoupon> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 ShoppingCoupon findByCode(java.lang.String code)
           
 ShoppingCoupon findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 ShoppingCoupon findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 ShoppingCoupon[] findByGroupId_PrevAndNext(long couponId, long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<ShoppingCoupon> findByGroupId(long groupId)
           
 java.util.List<ShoppingCoupon> findByGroupId(long groupId, int start, int end)
           
 java.util.List<ShoppingCoupon> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 ShoppingCoupon findByPrimaryKey(long couponId)
           
 ShoppingCoupon remove(long couponId)
           
 void removeAll()
           
 void removeByCode(java.lang.String code)
           
 void removeByGroupId(long groupId)
           
 ShoppingCoupon updateImpl(ShoppingCoupon shoppingCoupon, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, getListeners, registerListener, remove, remove, unregisterListener, update
 

Method Detail

cacheResult

void cacheResult(ShoppingCoupon shoppingCoupon)

cacheResult

void cacheResult(java.util.List<ShoppingCoupon> shoppingCoupons)

create

ShoppingCoupon create(long couponId)

remove

ShoppingCoupon remove(long couponId)
                      throws com.liferay.portal.kernel.exception.SystemException,
                             NoSuchCouponException
Throws:
com.liferay.portal.kernel.exception.SystemException
NoSuchCouponException

updateImpl

ShoppingCoupon updateImpl(ShoppingCoupon shoppingCoupon,
                          boolean merge)
                          throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

findByPrimaryKey

ShoppingCoupon findByPrimaryKey(long couponId)
                                throws com.liferay.portal.kernel.exception.SystemException,
                                       NoSuchCouponException
Throws:
com.liferay.portal.kernel.exception.SystemException
NoSuchCouponException

fetchByPrimaryKey

ShoppingCoupon fetchByPrimaryKey(long couponId)
                                 throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

findByGroupId

java.util.List<ShoppingCoupon> findByGroupId(long groupId)
                                             throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

findByGroupId

java.util.List<ShoppingCoupon> findByGroupId(long groupId,
                                             int start,
                                             int end)
                                             throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

findByGroupId

java.util.List<ShoppingCoupon> findByGroupId(long groupId,
                                             int start,
                                             int end,
                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                                             throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

findByGroupId_First

ShoppingCoupon findByGroupId_First(long groupId,
                                   com.liferay.portal.kernel.util.OrderByComparator obc)
                                   throws com.liferay.portal.kernel.exception.SystemException,
                                          NoSuchCouponException
Throws:
com.liferay.portal.kernel.exception.SystemException
NoSuchCouponException

findByGroupId_Last

ShoppingCoupon findByGroupId_Last(long groupId,
                                  com.liferay.portal.kernel.util.OrderByComparator obc)
                                  throws com.liferay.portal.kernel.exception.SystemException,
                                         NoSuchCouponException
Throws:
com.liferay.portal.kernel.exception.SystemException
NoSuchCouponException

findByGroupId_PrevAndNext

ShoppingCoupon[] findByGroupId_PrevAndNext(long couponId,
                                           long groupId,
                                           com.liferay.portal.kernel.util.OrderByComparator obc)
                                           throws com.liferay.portal.kernel.exception.SystemException,
                                                  NoSuchCouponException
Throws:
com.liferay.portal.kernel.exception.SystemException
NoSuchCouponException

findByCode

ShoppingCoupon findByCode(java.lang.String code)
                          throws com.liferay.portal.kernel.exception.SystemException,
                                 NoSuchCouponException
Throws:
com.liferay.portal.kernel.exception.SystemException
NoSuchCouponException

fetchByCode

ShoppingCoupon fetchByCode(java.lang.String code)
                           throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

fetchByCode

ShoppingCoupon fetchByCode(java.lang.String code,
                           boolean retrieveFromCache)
                           throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

findAll

java.util.List<ShoppingCoupon> findAll()
                                       throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

findAll

java.util.List<ShoppingCoupon> findAll(int start,
                                       int end)
                                       throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

findAll

java.util.List<ShoppingCoupon> findAll(int start,
                                       int end,
                                       com.liferay.portal.kernel.util.OrderByComparator obc)
                                       throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

removeByGroupId

void removeByGroupId(long groupId)
                     throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

removeByCode

void removeByCode(java.lang.String code)
                  throws com.liferay.portal.kernel.exception.SystemException,
                         NoSuchCouponException
Throws:
com.liferay.portal.kernel.exception.SystemException
NoSuchCouponException

removeAll

void removeAll()
               throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

countByGroupId

int countByGroupId(long groupId)
                   throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

countByCode

int countByCode(java.lang.String code)
                throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

countAll

int countAll()
             throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException