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