1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.shopping.service.persistence;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19  import com.liferay.portal.kernel.exception.SystemException;
20  
21  import com.liferay.portlet.shopping.model.ShoppingOrder;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="ShoppingOrderUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * <p>
29   * ServiceBuilder generated this class. Modifications in this class will be
30   * overwritten the next time is generated.
31   * </p>
32   *
33   * @author    Brian Wing Shun Chan
34   * @see       ShoppingOrderPersistence
35   * @see       ShoppingOrderPersistenceImpl
36   * @generated
37   */
38  public class ShoppingOrderUtil {
39      /**
40       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
41       */
42      public static void clearCache() {
43          getPersistence().clearCache();
44      }
45  
46      /**
47       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(ShoppingOrder)
48       */
49      public static void clearCache(ShoppingOrder shoppingOrder) {
50          getPersistence().clearCache(shoppingOrder);
51      }
52  
53      /**
54       * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
55       */
56      public long countWithDynamicQuery(DynamicQuery dynamicQuery)
57          throws SystemException {
58          return getPersistence().countWithDynamicQuery(dynamicQuery);
59      }
60  
61      /**
62       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
63       */
64      public static List<ShoppingOrder> findWithDynamicQuery(
65          DynamicQuery dynamicQuery) throws SystemException {
66          return getPersistence().findWithDynamicQuery(dynamicQuery);
67      }
68  
69      /**
70       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
71       */
72      public static List<ShoppingOrder> findWithDynamicQuery(
73          DynamicQuery dynamicQuery, int start, int end)
74          throws SystemException {
75          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76      }
77  
78      /**
79       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
80       */
81      public static ShoppingOrder remove(ShoppingOrder shoppingOrder)
82          throws SystemException {
83          return getPersistence().remove(shoppingOrder);
84      }
85  
86      /**
87       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
88       */
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.kernel.exception.SystemException,
112             com.liferay.portlet.shopping.NoSuchOrderException {
113         return getPersistence().remove(orderId);
114     }
115 
116     public static com.liferay.portlet.shopping.model.ShoppingOrder updateImpl(
117         com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder,
118         boolean merge)
119         throws com.liferay.portal.kernel.exception.SystemException {
120         return getPersistence().updateImpl(shoppingOrder, merge);
121     }
122 
123     public static com.liferay.portlet.shopping.model.ShoppingOrder findByPrimaryKey(
124         long orderId)
125         throws com.liferay.portal.kernel.exception.SystemException,
126             com.liferay.portlet.shopping.NoSuchOrderException {
127         return getPersistence().findByPrimaryKey(orderId);
128     }
129 
130     public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByPrimaryKey(
131         long orderId)
132         throws com.liferay.portal.kernel.exception.SystemException {
133         return getPersistence().fetchByPrimaryKey(orderId);
134     }
135 
136     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId(
137         long groupId)
138         throws com.liferay.portal.kernel.exception.SystemException {
139         return getPersistence().findByGroupId(groupId);
140     }
141 
142     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId(
143         long groupId, int start, int end)
144         throws com.liferay.portal.kernel.exception.SystemException {
145         return getPersistence().findByGroupId(groupId, start, end);
146     }
147 
148     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId(
149         long groupId, int start, int end,
150         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151         throws com.liferay.portal.kernel.exception.SystemException {
152         return getPersistence()
153                    .findByGroupId(groupId, start, end, orderByComparator);
154     }
155 
156     public static com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_First(
157         long groupId,
158         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159         throws com.liferay.portal.kernel.exception.SystemException,
160             com.liferay.portlet.shopping.NoSuchOrderException {
161         return getPersistence().findByGroupId_First(groupId, orderByComparator);
162     }
163 
164     public static com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_Last(
165         long groupId,
166         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
167         throws com.liferay.portal.kernel.exception.SystemException,
168             com.liferay.portlet.shopping.NoSuchOrderException {
169         return getPersistence().findByGroupId_Last(groupId, orderByComparator);
170     }
171 
172     public static com.liferay.portlet.shopping.model.ShoppingOrder[] findByGroupId_PrevAndNext(
173         long orderId, long groupId,
174         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
175         throws com.liferay.portal.kernel.exception.SystemException,
176             com.liferay.portlet.shopping.NoSuchOrderException {
177         return getPersistence()
178                    .findByGroupId_PrevAndNext(orderId, groupId,
179             orderByComparator);
180     }
181 
182     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByGroupId(
183         long groupId)
184         throws com.liferay.portal.kernel.exception.SystemException {
185         return getPersistence().filterFindByGroupId(groupId);
186     }
187 
188     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByGroupId(
189         long groupId, int start, int end)
190         throws com.liferay.portal.kernel.exception.SystemException {
191         return getPersistence().filterFindByGroupId(groupId, start, end);
192     }
193 
194     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByGroupId(
195         long groupId, int start, int end,
196         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
197         throws com.liferay.portal.kernel.exception.SystemException {
198         return getPersistence()
199                    .filterFindByGroupId(groupId, start, end, orderByComparator);
200     }
201 
202     public static com.liferay.portlet.shopping.model.ShoppingOrder findByNumber(
203         java.lang.String number)
204         throws com.liferay.portal.kernel.exception.SystemException,
205             com.liferay.portlet.shopping.NoSuchOrderException {
206         return getPersistence().findByNumber(number);
207     }
208 
209     public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByNumber(
210         java.lang.String number)
211         throws com.liferay.portal.kernel.exception.SystemException {
212         return getPersistence().fetchByNumber(number);
213     }
214 
215     public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByNumber(
216         java.lang.String number, boolean retrieveFromCache)
217         throws com.liferay.portal.kernel.exception.SystemException {
218         return getPersistence().fetchByNumber(number, retrieveFromCache);
219     }
220 
221     public static com.liferay.portlet.shopping.model.ShoppingOrder findByPPTxnId(
222         java.lang.String ppTxnId)
223         throws com.liferay.portal.kernel.exception.SystemException,
224             com.liferay.portlet.shopping.NoSuchOrderException {
225         return getPersistence().findByPPTxnId(ppTxnId);
226     }
227 
228     public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByPPTxnId(
229         java.lang.String ppTxnId)
230         throws com.liferay.portal.kernel.exception.SystemException {
231         return getPersistence().fetchByPPTxnId(ppTxnId);
232     }
233 
234     public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByPPTxnId(
235         java.lang.String ppTxnId, boolean retrieveFromCache)
236         throws com.liferay.portal.kernel.exception.SystemException {
237         return getPersistence().fetchByPPTxnId(ppTxnId, retrieveFromCache);
238     }
239 
240     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
241         long groupId, long userId, java.lang.String ppPaymentStatus)
242         throws com.liferay.portal.kernel.exception.SystemException {
243         return getPersistence().findByG_U_PPPS(groupId, userId, ppPaymentStatus);
244     }
245 
246     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
247         long groupId, long userId, java.lang.String ppPaymentStatus, int start,
248         int end) throws com.liferay.portal.kernel.exception.SystemException {
249         return getPersistence()
250                    .findByG_U_PPPS(groupId, userId, ppPaymentStatus, start, end);
251     }
252 
253     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
254         long groupId, long userId, java.lang.String ppPaymentStatus, int start,
255         int end,
256         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
257         throws com.liferay.portal.kernel.exception.SystemException {
258         return getPersistence()
259                    .findByG_U_PPPS(groupId, userId, ppPaymentStatus, start,
260             end, orderByComparator);
261     }
262 
263     public static com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_First(
264         long groupId, long userId, java.lang.String ppPaymentStatus,
265         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
266         throws com.liferay.portal.kernel.exception.SystemException,
267             com.liferay.portlet.shopping.NoSuchOrderException {
268         return getPersistence()
269                    .findByG_U_PPPS_First(groupId, userId, ppPaymentStatus,
270             orderByComparator);
271     }
272 
273     public static com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_Last(
274         long groupId, long userId, java.lang.String ppPaymentStatus,
275         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
276         throws com.liferay.portal.kernel.exception.SystemException,
277             com.liferay.portlet.shopping.NoSuchOrderException {
278         return getPersistence()
279                    .findByG_U_PPPS_Last(groupId, userId, ppPaymentStatus,
280             orderByComparator);
281     }
282 
283     public static com.liferay.portlet.shopping.model.ShoppingOrder[] findByG_U_PPPS_PrevAndNext(
284         long orderId, long groupId, long userId,
285         java.lang.String ppPaymentStatus,
286         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
287         throws com.liferay.portal.kernel.exception.SystemException,
288             com.liferay.portlet.shopping.NoSuchOrderException {
289         return getPersistence()
290                    .findByG_U_PPPS_PrevAndNext(orderId, groupId, userId,
291             ppPaymentStatus, orderByComparator);
292     }
293 
294     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByG_U_PPPS(
295         long groupId, long userId, java.lang.String ppPaymentStatus)
296         throws com.liferay.portal.kernel.exception.SystemException {
297         return getPersistence()
298                    .filterFindByG_U_PPPS(groupId, userId, ppPaymentStatus);
299     }
300 
301     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByG_U_PPPS(
302         long groupId, long userId, java.lang.String ppPaymentStatus, int start,
303         int end) throws com.liferay.portal.kernel.exception.SystemException {
304         return getPersistence()
305                    .filterFindByG_U_PPPS(groupId, userId, ppPaymentStatus,
306             start, end);
307     }
308 
309     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> filterFindByG_U_PPPS(
310         long groupId, long userId, java.lang.String ppPaymentStatus, int start,
311         int end,
312         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
313         throws com.liferay.portal.kernel.exception.SystemException {
314         return getPersistence()
315                    .filterFindByG_U_PPPS(groupId, userId, ppPaymentStatus,
316             start, end, orderByComparator);
317     }
318 
319     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll()
320         throws com.liferay.portal.kernel.exception.SystemException {
321         return getPersistence().findAll();
322     }
323 
324     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll(
325         int start, int end)
326         throws com.liferay.portal.kernel.exception.SystemException {
327         return getPersistence().findAll(start, end);
328     }
329 
330     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll(
331         int start, int end,
332         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
333         throws com.liferay.portal.kernel.exception.SystemException {
334         return getPersistence().findAll(start, end, orderByComparator);
335     }
336 
337     public static void removeByGroupId(long groupId)
338         throws com.liferay.portal.kernel.exception.SystemException {
339         getPersistence().removeByGroupId(groupId);
340     }
341 
342     public static void removeByNumber(java.lang.String number)
343         throws com.liferay.portal.kernel.exception.SystemException,
344             com.liferay.portlet.shopping.NoSuchOrderException {
345         getPersistence().removeByNumber(number);
346     }
347 
348     public static void removeByPPTxnId(java.lang.String ppTxnId)
349         throws com.liferay.portal.kernel.exception.SystemException,
350             com.liferay.portlet.shopping.NoSuchOrderException {
351         getPersistence().removeByPPTxnId(ppTxnId);
352     }
353 
354     public static void removeByG_U_PPPS(long groupId, long userId,
355         java.lang.String ppPaymentStatus)
356         throws com.liferay.portal.kernel.exception.SystemException {
357         getPersistence().removeByG_U_PPPS(groupId, userId, ppPaymentStatus);
358     }
359 
360     public static void removeAll()
361         throws com.liferay.portal.kernel.exception.SystemException {
362         getPersistence().removeAll();
363     }
364 
365     public static int countByGroupId(long groupId)
366         throws com.liferay.portal.kernel.exception.SystemException {
367         return getPersistence().countByGroupId(groupId);
368     }
369 
370     public static int filterCountByGroupId(long groupId)
371         throws com.liferay.portal.kernel.exception.SystemException {
372         return getPersistence().filterCountByGroupId(groupId);
373     }
374 
375     public static int countByNumber(java.lang.String number)
376         throws com.liferay.portal.kernel.exception.SystemException {
377         return getPersistence().countByNumber(number);
378     }
379 
380     public static int countByPPTxnId(java.lang.String ppTxnId)
381         throws com.liferay.portal.kernel.exception.SystemException {
382         return getPersistence().countByPPTxnId(ppTxnId);
383     }
384 
385     public static int countByG_U_PPPS(long groupId, long userId,
386         java.lang.String ppPaymentStatus)
387         throws com.liferay.portal.kernel.exception.SystemException {
388         return getPersistence().countByG_U_PPPS(groupId, userId, ppPaymentStatus);
389     }
390 
391     public static int filterCountByG_U_PPPS(long groupId, long userId,
392         java.lang.String ppPaymentStatus)
393         throws com.liferay.portal.kernel.exception.SystemException {
394         return getPersistence()
395                    .filterCountByG_U_PPPS(groupId, userId, ppPaymentStatus);
396     }
397 
398     public static int countAll()
399         throws com.liferay.portal.kernel.exception.SystemException {
400         return getPersistence().countAll();
401     }
402 
403     public static ShoppingOrderPersistence getPersistence() {
404         if (_persistence == null) {
405             _persistence = (ShoppingOrderPersistence)PortalBeanLocatorUtil.locate(ShoppingOrderPersistence.class.getName());
406         }
407 
408         return _persistence;
409     }
410 
411     public void setPersistence(ShoppingOrderPersistence persistence) {
412         _persistence = persistence;
413     }
414 
415     private static ShoppingOrderPersistence _persistence;
416 }