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 orderByComparator)
           
 ShoppingCoupon findByCode(java.lang.String code)
           
 ShoppingCoupon findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
 ShoppingCoupon findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
 ShoppingCoupon[] findByGroupId_PrevAndNext(long couponId, long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
 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 orderByComparator)
           
 ShoppingCoupon findByPrimaryKey(long couponId)
           
 ShoppingCoupon remove(long couponId)
           
 void removeAll()
           
 void removeByCode(java.lang.String code)
           
 void removeByGroupId(long groupId)
           
 ShoppingCoupon update(ShoppingCoupon shoppingCoupon)
          Deprecated. Use BasePersistence.update(com.liferay.portal.model.BaseModel, boolean).
 ShoppingCoupon updateImpl(ShoppingCoupon shoppingCoupon, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, remove, setDataSource, 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.SystemException,
                             NoSuchCouponException
Throws:
com.liferay.portal.SystemException
NoSuchCouponException

update

ShoppingCoupon update(ShoppingCoupon shoppingCoupon)
                      throws com.liferay.portal.SystemException
Deprecated. Use BasePersistence.update(com.liferay.portal.model.BaseModel, boolean).

Throws:
com.liferay.portal.SystemException

updateImpl

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

findByPrimaryKey

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

fetchByPrimaryKey

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

findByGroupId

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

findByGroupId

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

findByGroupId

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

findByGroupId_First

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

findByGroupId_Last

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

findByGroupId_PrevAndNext

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

findByCode

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

fetchByCode

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

fetchByCode

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

findAll

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

findAll

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

findAll

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

removeByGroupId

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

removeByCode

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

removeAll

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

countByGroupId

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

countByCode

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

countAll

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