001
014
015 package com.liferay.portlet.shopping.service.persistence;
016
017 import com.liferay.portal.service.persistence.BasePersistence;
018
019 import com.liferay.portlet.shopping.model.ShoppingCoupon;
020
021
027 public interface ShoppingCouponPersistence extends BasePersistence<ShoppingCoupon> {
028 public void cacheResult(
029 com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon);
030
031 public void cacheResult(
032 java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> shoppingCoupons);
033
034 public com.liferay.portlet.shopping.model.ShoppingCoupon create(
035 long couponId);
036
037 public com.liferay.portlet.shopping.model.ShoppingCoupon remove(
038 long couponId)
039 throws com.liferay.portal.kernel.exception.SystemException,
040 com.liferay.portlet.shopping.NoSuchCouponException;
041
042 public com.liferay.portlet.shopping.model.ShoppingCoupon updateImpl(
043 com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon,
044 boolean merge)
045 throws com.liferay.portal.kernel.exception.SystemException;
046
047 public com.liferay.portlet.shopping.model.ShoppingCoupon findByPrimaryKey(
048 long couponId)
049 throws com.liferay.portal.kernel.exception.SystemException,
050 com.liferay.portlet.shopping.NoSuchCouponException;
051
052 public com.liferay.portlet.shopping.model.ShoppingCoupon fetchByPrimaryKey(
053 long couponId)
054 throws com.liferay.portal.kernel.exception.SystemException;
055
056 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findByGroupId(
057 long groupId)
058 throws com.liferay.portal.kernel.exception.SystemException;
059
060 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findByGroupId(
061 long groupId, int start, int end)
062 throws com.liferay.portal.kernel.exception.SystemException;
063
064 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findByGroupId(
065 long groupId, int start, int end,
066 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
067 throws com.liferay.portal.kernel.exception.SystemException;
068
069 public com.liferay.portlet.shopping.model.ShoppingCoupon findByGroupId_First(
070 long groupId,
071 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
072 throws com.liferay.portal.kernel.exception.SystemException,
073 com.liferay.portlet.shopping.NoSuchCouponException;
074
075 public com.liferay.portlet.shopping.model.ShoppingCoupon findByGroupId_Last(
076 long groupId,
077 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
078 throws com.liferay.portal.kernel.exception.SystemException,
079 com.liferay.portlet.shopping.NoSuchCouponException;
080
081 public com.liferay.portlet.shopping.model.ShoppingCoupon[] findByGroupId_PrevAndNext(
082 long couponId, long groupId,
083 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
084 throws com.liferay.portal.kernel.exception.SystemException,
085 com.liferay.portlet.shopping.NoSuchCouponException;
086
087 public com.liferay.portlet.shopping.model.ShoppingCoupon findByCode(
088 java.lang.String code)
089 throws com.liferay.portal.kernel.exception.SystemException,
090 com.liferay.portlet.shopping.NoSuchCouponException;
091
092 public com.liferay.portlet.shopping.model.ShoppingCoupon fetchByCode(
093 java.lang.String code)
094 throws com.liferay.portal.kernel.exception.SystemException;
095
096 public com.liferay.portlet.shopping.model.ShoppingCoupon fetchByCode(
097 java.lang.String code, boolean retrieveFromCache)
098 throws com.liferay.portal.kernel.exception.SystemException;
099
100 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findAll()
101 throws com.liferay.portal.kernel.exception.SystemException;
102
103 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findAll(
104 int start, int end)
105 throws com.liferay.portal.kernel.exception.SystemException;
106
107 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findAll(
108 int start, int end,
109 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
110 throws com.liferay.portal.kernel.exception.SystemException;
111
112 public void removeByGroupId(long groupId)
113 throws com.liferay.portal.kernel.exception.SystemException;
114
115 public void removeByCode(java.lang.String code)
116 throws com.liferay.portal.kernel.exception.SystemException,
117 com.liferay.portlet.shopping.NoSuchCouponException;
118
119 public void removeAll()
120 throws com.liferay.portal.kernel.exception.SystemException;
121
122 public int countByGroupId(long groupId)
123 throws com.liferay.portal.kernel.exception.SystemException;
124
125 public int countByCode(java.lang.String code)
126 throws com.liferay.portal.kernel.exception.SystemException;
127
128 public int countAll()
129 throws com.liferay.portal.kernel.exception.SystemException;
130 }