1
19
20 package com.liferay.portlet.shopping.service.persistence;
21
22
28 public class ShoppingCouponUtil {
29 public static void cacheResult(
30 com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon) {
31 getPersistence().cacheResult(shoppingCoupon);
32 }
33
34 public static void cacheResult(
35 java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> shoppingCoupons) {
36 getPersistence().cacheResult(shoppingCoupons);
37 }
38
39 public static void clearCache() {
40 getPersistence().clearCache();
41 }
42
43 public static com.liferay.portlet.shopping.model.ShoppingCoupon create(
44 long couponId) {
45 return getPersistence().create(couponId);
46 }
47
48 public static com.liferay.portlet.shopping.model.ShoppingCoupon remove(
49 long couponId)
50 throws com.liferay.portal.SystemException,
51 com.liferay.portlet.shopping.NoSuchCouponException {
52 return getPersistence().remove(couponId);
53 }
54
55 public static com.liferay.portlet.shopping.model.ShoppingCoupon remove(
56 com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon)
57 throws com.liferay.portal.SystemException {
58 return getPersistence().remove(shoppingCoupon);
59 }
60
61
64 public static com.liferay.portlet.shopping.model.ShoppingCoupon update(
65 com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon)
66 throws com.liferay.portal.SystemException {
67 return getPersistence().update(shoppingCoupon);
68 }
69
70
83 public static com.liferay.portlet.shopping.model.ShoppingCoupon update(
84 com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon,
85 boolean merge) throws com.liferay.portal.SystemException {
86 return getPersistence().update(shoppingCoupon, merge);
87 }
88
89 public static com.liferay.portlet.shopping.model.ShoppingCoupon updateImpl(
90 com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon,
91 boolean merge) throws com.liferay.portal.SystemException {
92 return getPersistence().updateImpl(shoppingCoupon, merge);
93 }
94
95 public static com.liferay.portlet.shopping.model.ShoppingCoupon findByPrimaryKey(
96 long couponId)
97 throws com.liferay.portal.SystemException,
98 com.liferay.portlet.shopping.NoSuchCouponException {
99 return getPersistence().findByPrimaryKey(couponId);
100 }
101
102 public static com.liferay.portlet.shopping.model.ShoppingCoupon fetchByPrimaryKey(
103 long couponId) throws com.liferay.portal.SystemException {
104 return getPersistence().fetchByPrimaryKey(couponId);
105 }
106
107 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findByGroupId(
108 long groupId) throws com.liferay.portal.SystemException {
109 return getPersistence().findByGroupId(groupId);
110 }
111
112 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findByGroupId(
113 long groupId, int start, int end)
114 throws com.liferay.portal.SystemException {
115 return getPersistence().findByGroupId(groupId, start, end);
116 }
117
118 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findByGroupId(
119 long groupId, int start, int end,
120 com.liferay.portal.kernel.util.OrderByComparator obc)
121 throws com.liferay.portal.SystemException {
122 return getPersistence().findByGroupId(groupId, start, end, obc);
123 }
124
125 public static com.liferay.portlet.shopping.model.ShoppingCoupon findByGroupId_First(
126 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
127 throws com.liferay.portal.SystemException,
128 com.liferay.portlet.shopping.NoSuchCouponException {
129 return getPersistence().findByGroupId_First(groupId, obc);
130 }
131
132 public static com.liferay.portlet.shopping.model.ShoppingCoupon findByGroupId_Last(
133 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
134 throws com.liferay.portal.SystemException,
135 com.liferay.portlet.shopping.NoSuchCouponException {
136 return getPersistence().findByGroupId_Last(groupId, obc);
137 }
138
139 public static com.liferay.portlet.shopping.model.ShoppingCoupon[] findByGroupId_PrevAndNext(
140 long couponId, long groupId,
141 com.liferay.portal.kernel.util.OrderByComparator obc)
142 throws com.liferay.portal.SystemException,
143 com.liferay.portlet.shopping.NoSuchCouponException {
144 return getPersistence().findByGroupId_PrevAndNext(couponId, groupId, obc);
145 }
146
147 public static com.liferay.portlet.shopping.model.ShoppingCoupon findByCode(
148 java.lang.String code)
149 throws com.liferay.portal.SystemException,
150 com.liferay.portlet.shopping.NoSuchCouponException {
151 return getPersistence().findByCode(code);
152 }
153
154 public static com.liferay.portlet.shopping.model.ShoppingCoupon fetchByCode(
155 java.lang.String code) throws com.liferay.portal.SystemException {
156 return getPersistence().fetchByCode(code);
157 }
158
159 public static com.liferay.portlet.shopping.model.ShoppingCoupon fetchByCode(
160 java.lang.String code, boolean retrieveFromCache)
161 throws com.liferay.portal.SystemException {
162 return getPersistence().fetchByCode(code, retrieveFromCache);
163 }
164
165 public static java.util.List<Object> findWithDynamicQuery(
166 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
167 throws com.liferay.portal.SystemException {
168 return getPersistence().findWithDynamicQuery(dynamicQuery);
169 }
170
171 public static java.util.List<Object> findWithDynamicQuery(
172 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
173 int end) throws com.liferay.portal.SystemException {
174 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
175 }
176
177 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findAll()
178 throws com.liferay.portal.SystemException {
179 return getPersistence().findAll();
180 }
181
182 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findAll(
183 int start, int end) throws com.liferay.portal.SystemException {
184 return getPersistence().findAll(start, end);
185 }
186
187 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingCoupon> findAll(
188 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
189 throws com.liferay.portal.SystemException {
190 return getPersistence().findAll(start, end, obc);
191 }
192
193 public static void removeByGroupId(long groupId)
194 throws com.liferay.portal.SystemException {
195 getPersistence().removeByGroupId(groupId);
196 }
197
198 public static void removeByCode(java.lang.String code)
199 throws com.liferay.portal.SystemException,
200 com.liferay.portlet.shopping.NoSuchCouponException {
201 getPersistence().removeByCode(code);
202 }
203
204 public static void removeAll() throws com.liferay.portal.SystemException {
205 getPersistence().removeAll();
206 }
207
208 public static int countByGroupId(long groupId)
209 throws com.liferay.portal.SystemException {
210 return getPersistence().countByGroupId(groupId);
211 }
212
213 public static int countByCode(java.lang.String code)
214 throws com.liferay.portal.SystemException {
215 return getPersistence().countByCode(code);
216 }
217
218 public static int countAll() throws com.liferay.portal.SystemException {
219 return getPersistence().countAll();
220 }
221
222 public static ShoppingCouponPersistence getPersistence() {
223 return _persistence;
224 }
225
226 public void setPersistence(ShoppingCouponPersistence persistence) {
227 _persistence = persistence;
228 }
229
230 private static ShoppingCouponPersistence _persistence;
231 }