1
14
15 package com.liferay.portlet.shopping.service.persistence;
16
17 import com.liferay.portal.SystemException;
18 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
19 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
20 import com.liferay.portal.kernel.util.ReferenceRegistry;
21
22 import com.liferay.portlet.shopping.model.ShoppingOrder;
23
24 import java.util.List;
25
26
39 public class ShoppingOrderUtil {
40
43 public static void clearCache() {
44 getPersistence().clearCache();
45 }
46
47
50 public static void clearCache(ShoppingOrder shoppingOrder) {
51 getPersistence().clearCache(shoppingOrder);
52 }
53
54
57 public int countWithDynamicQuery(DynamicQuery dynamicQuery)
58 throws SystemException {
59 return getPersistence().countWithDynamicQuery(dynamicQuery);
60 }
61
62
65 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
66 throws SystemException {
67 return getPersistence().findWithDynamicQuery(dynamicQuery);
68 }
69
70
73 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
74 int start, int end) throws SystemException {
75 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76 }
77
78
81 public static ShoppingOrder remove(ShoppingOrder shoppingOrder)
82 throws SystemException {
83 return getPersistence().remove(shoppingOrder);
84 }
85
86
89 public static ShoppingOrder update(ShoppingOrder shoppingOrder,
90 boolean merge) throws SystemException {
91 return getPersistence().update(shoppingOrder, merge);
92 }
93
94 public static void cacheResult(
95 com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder) {
96 getPersistence().cacheResult(shoppingOrder);
97 }
98
99 public static void cacheResult(
100 java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> shoppingOrders) {
101 getPersistence().cacheResult(shoppingOrders);
102 }
103
104 public static com.liferay.portlet.shopping.model.ShoppingOrder create(
105 long orderId) {
106 return getPersistence().create(orderId);
107 }
108
109 public static com.liferay.portlet.shopping.model.ShoppingOrder remove(
110 long orderId)
111 throws com.liferay.portal.SystemException,
112 com.liferay.portlet.shopping.NoSuchOrderException {
113 return getPersistence().remove(orderId);
114 }
115
116
119 public static com.liferay.portlet.shopping.model.ShoppingOrder update(
120 com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder)
121 throws com.liferay.portal.SystemException {
122 return getPersistence().update(shoppingOrder);
123 }
124
125 public static com.liferay.portlet.shopping.model.ShoppingOrder updateImpl(
126 com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder,
127 boolean merge) throws com.liferay.portal.SystemException {
128 return getPersistence().updateImpl(shoppingOrder, merge);
129 }
130
131 public static com.liferay.portlet.shopping.model.ShoppingOrder findByPrimaryKey(
132 long orderId)
133 throws com.liferay.portal.SystemException,
134 com.liferay.portlet.shopping.NoSuchOrderException {
135 return getPersistence().findByPrimaryKey(orderId);
136 }
137
138 public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByPrimaryKey(
139 long orderId) throws com.liferay.portal.SystemException {
140 return getPersistence().fetchByPrimaryKey(orderId);
141 }
142
143 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId(
144 long groupId) throws com.liferay.portal.SystemException {
145 return getPersistence().findByGroupId(groupId);
146 }
147
148 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId(
149 long groupId, int start, int end)
150 throws com.liferay.portal.SystemException {
151 return getPersistence().findByGroupId(groupId, start, end);
152 }
153
154 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId(
155 long groupId, int start, int end,
156 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
157 throws com.liferay.portal.SystemException {
158 return getPersistence()
159 .findByGroupId(groupId, start, end, orderByComparator);
160 }
161
162 public static com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_First(
163 long groupId,
164 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165 throws com.liferay.portal.SystemException,
166 com.liferay.portlet.shopping.NoSuchOrderException {
167 return getPersistence().findByGroupId_First(groupId, orderByComparator);
168 }
169
170 public static com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_Last(
171 long groupId,
172 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
173 throws com.liferay.portal.SystemException,
174 com.liferay.portlet.shopping.NoSuchOrderException {
175 return getPersistence().findByGroupId_Last(groupId, orderByComparator);
176 }
177
178 public static com.liferay.portlet.shopping.model.ShoppingOrder[] findByGroupId_PrevAndNext(
179 long orderId, long groupId,
180 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
181 throws com.liferay.portal.SystemException,
182 com.liferay.portlet.shopping.NoSuchOrderException {
183 return getPersistence()
184 .findByGroupId_PrevAndNext(orderId, groupId,
185 orderByComparator);
186 }
187
188 public static com.liferay.portlet.shopping.model.ShoppingOrder findByNumber(
189 java.lang.String number)
190 throws com.liferay.portal.SystemException,
191 com.liferay.portlet.shopping.NoSuchOrderException {
192 return getPersistence().findByNumber(number);
193 }
194
195 public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByNumber(
196 java.lang.String number) throws com.liferay.portal.SystemException {
197 return getPersistence().fetchByNumber(number);
198 }
199
200 public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByNumber(
201 java.lang.String number, boolean retrieveFromCache)
202 throws com.liferay.portal.SystemException {
203 return getPersistence().fetchByNumber(number, retrieveFromCache);
204 }
205
206 public static com.liferay.portlet.shopping.model.ShoppingOrder findByPPTxnId(
207 java.lang.String ppTxnId)
208 throws com.liferay.portal.SystemException,
209 com.liferay.portlet.shopping.NoSuchOrderException {
210 return getPersistence().findByPPTxnId(ppTxnId);
211 }
212
213 public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByPPTxnId(
214 java.lang.String ppTxnId) throws com.liferay.portal.SystemException {
215 return getPersistence().fetchByPPTxnId(ppTxnId);
216 }
217
218 public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByPPTxnId(
219 java.lang.String ppTxnId, boolean retrieveFromCache)
220 throws com.liferay.portal.SystemException {
221 return getPersistence().fetchByPPTxnId(ppTxnId, retrieveFromCache);
222 }
223
224 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
225 long groupId, long userId, java.lang.String ppPaymentStatus)
226 throws com.liferay.portal.SystemException {
227 return getPersistence().findByG_U_PPPS(groupId, userId, ppPaymentStatus);
228 }
229
230 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
231 long groupId, long userId, java.lang.String ppPaymentStatus, int start,
232 int end) throws com.liferay.portal.SystemException {
233 return getPersistence()
234 .findByG_U_PPPS(groupId, userId, ppPaymentStatus, start, end);
235 }
236
237 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
238 long groupId, long userId, java.lang.String ppPaymentStatus, int start,
239 int end,
240 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
241 throws com.liferay.portal.SystemException {
242 return getPersistence()
243 .findByG_U_PPPS(groupId, userId, ppPaymentStatus, start,
244 end, orderByComparator);
245 }
246
247 public static com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_First(
248 long groupId, long userId, java.lang.String ppPaymentStatus,
249 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
250 throws com.liferay.portal.SystemException,
251 com.liferay.portlet.shopping.NoSuchOrderException {
252 return getPersistence()
253 .findByG_U_PPPS_First(groupId, userId, ppPaymentStatus,
254 orderByComparator);
255 }
256
257 public static com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_Last(
258 long groupId, long userId, java.lang.String ppPaymentStatus,
259 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
260 throws com.liferay.portal.SystemException,
261 com.liferay.portlet.shopping.NoSuchOrderException {
262 return getPersistence()
263 .findByG_U_PPPS_Last(groupId, userId, ppPaymentStatus,
264 orderByComparator);
265 }
266
267 public static com.liferay.portlet.shopping.model.ShoppingOrder[] findByG_U_PPPS_PrevAndNext(
268 long orderId, long groupId, long userId,
269 java.lang.String ppPaymentStatus,
270 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
271 throws com.liferay.portal.SystemException,
272 com.liferay.portlet.shopping.NoSuchOrderException {
273 return getPersistence()
274 .findByG_U_PPPS_PrevAndNext(orderId, groupId, userId,
275 ppPaymentStatus, orderByComparator);
276 }
277
278 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll()
279 throws com.liferay.portal.SystemException {
280 return getPersistence().findAll();
281 }
282
283 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll(
284 int start, int end) throws com.liferay.portal.SystemException {
285 return getPersistence().findAll(start, end);
286 }
287
288 public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll(
289 int start, int end,
290 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
291 throws com.liferay.portal.SystemException {
292 return getPersistence().findAll(start, end, orderByComparator);
293 }
294
295 public static void removeByGroupId(long groupId)
296 throws com.liferay.portal.SystemException {
297 getPersistence().removeByGroupId(groupId);
298 }
299
300 public static void removeByNumber(java.lang.String number)
301 throws com.liferay.portal.SystemException,
302 com.liferay.portlet.shopping.NoSuchOrderException {
303 getPersistence().removeByNumber(number);
304 }
305
306 public static void removeByPPTxnId(java.lang.String ppTxnId)
307 throws com.liferay.portal.SystemException,
308 com.liferay.portlet.shopping.NoSuchOrderException {
309 getPersistence().removeByPPTxnId(ppTxnId);
310 }
311
312 public static void removeByG_U_PPPS(long groupId, long userId,
313 java.lang.String ppPaymentStatus)
314 throws com.liferay.portal.SystemException {
315 getPersistence().removeByG_U_PPPS(groupId, userId, ppPaymentStatus);
316 }
317
318 public static void removeAll() throws com.liferay.portal.SystemException {
319 getPersistence().removeAll();
320 }
321
322 public static int countByGroupId(long groupId)
323 throws com.liferay.portal.SystemException {
324 return getPersistence().countByGroupId(groupId);
325 }
326
327 public static int countByNumber(java.lang.String number)
328 throws com.liferay.portal.SystemException {
329 return getPersistence().countByNumber(number);
330 }
331
332 public static int countByPPTxnId(java.lang.String ppTxnId)
333 throws com.liferay.portal.SystemException {
334 return getPersistence().countByPPTxnId(ppTxnId);
335 }
336
337 public static int countByG_U_PPPS(long groupId, long userId,
338 java.lang.String ppPaymentStatus)
339 throws com.liferay.portal.SystemException {
340 return getPersistence().countByG_U_PPPS(groupId, userId, ppPaymentStatus);
341 }
342
343 public static int countAll() throws com.liferay.portal.SystemException {
344 return getPersistence().countAll();
345 }
346
347 public static ShoppingOrderPersistence getPersistence() {
348 if (_persistence == null) {
349 _persistence = (ShoppingOrderPersistence)PortalBeanLocatorUtil.locate(ShoppingOrderPersistence.class.getName());
350
351 ReferenceRegistry.registerReference(ShoppingOrderUtil.class,
352 "_persistence");
353 }
354
355 return _persistence;
356 }
357
358 public void setPersistence(ShoppingOrderPersistence persistence) {
359 _persistence = persistence;
360
361 ReferenceRegistry.registerReference(ShoppingOrderUtil.class,
362 "_persistence");
363 }
364
365 private static ShoppingOrderPersistence _persistence;
366 }