1
22
23 package com.liferay.portlet.shopping.service.persistence;
24
25 import com.liferay.portal.service.persistence.BasePersistence;
26
27
40 public interface ShoppingCouponPersistence extends BasePersistence {
41 public void cacheResult(
42 com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon);
43
44 public void cacheResult(
45 java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> shoppingCoupons);
46
47 public void clearCache();
48
49 public com.liferay.portlet.shopping.model.ShoppingCoupon create(
50 long couponId);
51
52 public com.liferay.portlet.shopping.model.ShoppingCoupon remove(
53 long couponId)
54 throws com.liferay.portal.SystemException,
55 com.liferay.portlet.shopping.NoSuchCouponException;
56
57 public com.liferay.portlet.shopping.model.ShoppingCoupon remove(
58 com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon)
59 throws com.liferay.portal.SystemException;
60
61
64 public com.liferay.portlet.shopping.model.ShoppingCoupon update(
65 com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon)
66 throws com.liferay.portal.SystemException;
67
68
80 public com.liferay.portlet.shopping.model.ShoppingCoupon update(
81 com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon,
82 boolean merge) throws com.liferay.portal.SystemException;
83
84 public com.liferay.portlet.shopping.model.ShoppingCoupon updateImpl(
85 com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon,
86 boolean merge) throws com.liferay.portal.SystemException;
87
88 public com.liferay.portlet.shopping.model.ShoppingCoupon findByPrimaryKey(
89 long couponId)
90 throws com.liferay.portal.SystemException,
91 com.liferay.portlet.shopping.NoSuchCouponException;
92
93 public com.liferay.portlet.shopping.model.ShoppingCoupon fetchByPrimaryKey(
94 long couponId) throws com.liferay.portal.SystemException;
95
96 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findByGroupId(
97 long groupId) throws com.liferay.portal.SystemException;
98
99 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findByGroupId(
100 long groupId, int start, int end)
101 throws com.liferay.portal.SystemException;
102
103 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findByGroupId(
104 long groupId, int start, int end,
105 com.liferay.portal.kernel.util.OrderByComparator obc)
106 throws com.liferay.portal.SystemException;
107
108 public com.liferay.portlet.shopping.model.ShoppingCoupon findByGroupId_First(
109 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
110 throws com.liferay.portal.SystemException,
111 com.liferay.portlet.shopping.NoSuchCouponException;
112
113 public com.liferay.portlet.shopping.model.ShoppingCoupon findByGroupId_Last(
114 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
115 throws com.liferay.portal.SystemException,
116 com.liferay.portlet.shopping.NoSuchCouponException;
117
118 public com.liferay.portlet.shopping.model.ShoppingCoupon[] findByGroupId_PrevAndNext(
119 long couponId, long groupId,
120 com.liferay.portal.kernel.util.OrderByComparator obc)
121 throws com.liferay.portal.SystemException,
122 com.liferay.portlet.shopping.NoSuchCouponException;
123
124 public com.liferay.portlet.shopping.model.ShoppingCoupon findByCode(
125 java.lang.String code)
126 throws com.liferay.portal.SystemException,
127 com.liferay.portlet.shopping.NoSuchCouponException;
128
129 public com.liferay.portlet.shopping.model.ShoppingCoupon fetchByCode(
130 java.lang.String code) throws com.liferay.portal.SystemException;
131
132 public com.liferay.portlet.shopping.model.ShoppingCoupon fetchByCode(
133 java.lang.String code, boolean retrieveFromCache)
134 throws com.liferay.portal.SystemException;
135
136 public java.util.List<Object> findWithDynamicQuery(
137 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
138 throws com.liferay.portal.SystemException;
139
140 public java.util.List<Object> findWithDynamicQuery(
141 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
142 int end) throws com.liferay.portal.SystemException;
143
144 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findAll()
145 throws com.liferay.portal.SystemException;
146
147 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findAll(
148 int start, int end) throws com.liferay.portal.SystemException;
149
150 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findAll(
151 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
152 throws com.liferay.portal.SystemException;
153
154 public void removeByGroupId(long groupId)
155 throws com.liferay.portal.SystemException;
156
157 public void removeByCode(java.lang.String code)
158 throws com.liferay.portal.SystemException,
159 com.liferay.portlet.shopping.NoSuchCouponException;
160
161 public void removeAll() throws com.liferay.portal.SystemException;
162
163 public int countByGroupId(long groupId)
164 throws com.liferay.portal.SystemException;
165
166 public int countByCode(java.lang.String code)
167 throws com.liferay.portal.SystemException;
168
169 public int countAll() throws com.liferay.portal.SystemException;
170 }