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#findWithDynamicQuery(DynamicQuery)
48       */
49      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
50          throws SystemException {
51          return getPersistence().findWithDynamicQuery(dynamicQuery);
52      }
53  
54      /**
55       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
56       */
57      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
58          int start, int end) throws SystemException {
59          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
60      }
61  
62      /**
63       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
64       */
65      public static ShoppingOrder remove(ShoppingOrder shoppingOrder)
66          throws SystemException {
67          return getPersistence().remove(shoppingOrder);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
72       */
73      public static ShoppingOrder update(ShoppingOrder shoppingOrder,
74          boolean merge) throws SystemException {
75          return getPersistence().update(shoppingOrder, merge);
76      }
77  
78      public static void cacheResult(
79          com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder) {
80          getPersistence().cacheResult(shoppingOrder);
81      }
82  
83      public static void cacheResult(
84          java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> shoppingOrders) {
85          getPersistence().cacheResult(shoppingOrders);
86      }
87  
88      public static com.liferay.portlet.shopping.model.ShoppingOrder create(
89          long orderId) {
90          return getPersistence().create(orderId);
91      }
92  
93      public static com.liferay.portlet.shopping.model.ShoppingOrder remove(
94          long orderId)
95          throws com.liferay.portal.kernel.exception.SystemException,
96              com.liferay.portlet.shopping.NoSuchOrderException {
97          return getPersistence().remove(orderId);
98      }
99  
100     public static com.liferay.portlet.shopping.model.ShoppingOrder updateImpl(
101         com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder,
102         boolean merge)
103         throws com.liferay.portal.kernel.exception.SystemException {
104         return getPersistence().updateImpl(shoppingOrder, merge);
105     }
106 
107     public static com.liferay.portlet.shopping.model.ShoppingOrder findByPrimaryKey(
108         long orderId)
109         throws com.liferay.portal.kernel.exception.SystemException,
110             com.liferay.portlet.shopping.NoSuchOrderException {
111         return getPersistence().findByPrimaryKey(orderId);
112     }
113 
114     public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByPrimaryKey(
115         long orderId)
116         throws com.liferay.portal.kernel.exception.SystemException {
117         return getPersistence().fetchByPrimaryKey(orderId);
118     }
119 
120     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId(
121         long groupId)
122         throws com.liferay.portal.kernel.exception.SystemException {
123         return getPersistence().findByGroupId(groupId);
124     }
125 
126     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId(
127         long groupId, int start, int end)
128         throws com.liferay.portal.kernel.exception.SystemException {
129         return getPersistence().findByGroupId(groupId, start, end);
130     }
131 
132     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId(
133         long groupId, int start, int end,
134         com.liferay.portal.kernel.util.OrderByComparator obc)
135         throws com.liferay.portal.kernel.exception.SystemException {
136         return getPersistence().findByGroupId(groupId, start, end, obc);
137     }
138 
139     public static com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_First(
140         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
141         throws com.liferay.portal.kernel.exception.SystemException,
142             com.liferay.portlet.shopping.NoSuchOrderException {
143         return getPersistence().findByGroupId_First(groupId, obc);
144     }
145 
146     public static com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_Last(
147         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
148         throws com.liferay.portal.kernel.exception.SystemException,
149             com.liferay.portlet.shopping.NoSuchOrderException {
150         return getPersistence().findByGroupId_Last(groupId, obc);
151     }
152 
153     public static com.liferay.portlet.shopping.model.ShoppingOrder[] findByGroupId_PrevAndNext(
154         long orderId, long groupId,
155         com.liferay.portal.kernel.util.OrderByComparator obc)
156         throws com.liferay.portal.kernel.exception.SystemException,
157             com.liferay.portlet.shopping.NoSuchOrderException {
158         return getPersistence().findByGroupId_PrevAndNext(orderId, groupId, obc);
159     }
160 
161     public static com.liferay.portlet.shopping.model.ShoppingOrder findByNumber(
162         java.lang.String number)
163         throws com.liferay.portal.kernel.exception.SystemException,
164             com.liferay.portlet.shopping.NoSuchOrderException {
165         return getPersistence().findByNumber(number);
166     }
167 
168     public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByNumber(
169         java.lang.String number)
170         throws com.liferay.portal.kernel.exception.SystemException {
171         return getPersistence().fetchByNumber(number);
172     }
173 
174     public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByNumber(
175         java.lang.String number, boolean retrieveFromCache)
176         throws com.liferay.portal.kernel.exception.SystemException {
177         return getPersistence().fetchByNumber(number, retrieveFromCache);
178     }
179 
180     public static com.liferay.portlet.shopping.model.ShoppingOrder findByPPTxnId(
181         java.lang.String ppTxnId)
182         throws com.liferay.portal.kernel.exception.SystemException,
183             com.liferay.portlet.shopping.NoSuchOrderException {
184         return getPersistence().findByPPTxnId(ppTxnId);
185     }
186 
187     public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByPPTxnId(
188         java.lang.String ppTxnId)
189         throws com.liferay.portal.kernel.exception.SystemException {
190         return getPersistence().fetchByPPTxnId(ppTxnId);
191     }
192 
193     public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByPPTxnId(
194         java.lang.String ppTxnId, boolean retrieveFromCache)
195         throws com.liferay.portal.kernel.exception.SystemException {
196         return getPersistence().fetchByPPTxnId(ppTxnId, retrieveFromCache);
197     }
198 
199     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
200         long groupId, long userId, java.lang.String ppPaymentStatus)
201         throws com.liferay.portal.kernel.exception.SystemException {
202         return getPersistence().findByG_U_PPPS(groupId, userId, ppPaymentStatus);
203     }
204 
205     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
206         long groupId, long userId, java.lang.String ppPaymentStatus, int start,
207         int end) throws com.liferay.portal.kernel.exception.SystemException {
208         return getPersistence()
209                    .findByG_U_PPPS(groupId, userId, ppPaymentStatus, start, end);
210     }
211 
212     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
213         long groupId, long userId, java.lang.String ppPaymentStatus, int start,
214         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
215         throws com.liferay.portal.kernel.exception.SystemException {
216         return getPersistence()
217                    .findByG_U_PPPS(groupId, userId, ppPaymentStatus, start,
218             end, obc);
219     }
220 
221     public static com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_First(
222         long groupId, long userId, java.lang.String ppPaymentStatus,
223         com.liferay.portal.kernel.util.OrderByComparator obc)
224         throws com.liferay.portal.kernel.exception.SystemException,
225             com.liferay.portlet.shopping.NoSuchOrderException {
226         return getPersistence()
227                    .findByG_U_PPPS_First(groupId, userId, ppPaymentStatus, obc);
228     }
229 
230     public static com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_Last(
231         long groupId, long userId, java.lang.String ppPaymentStatus,
232         com.liferay.portal.kernel.util.OrderByComparator obc)
233         throws com.liferay.portal.kernel.exception.SystemException,
234             com.liferay.portlet.shopping.NoSuchOrderException {
235         return getPersistence()
236                    .findByG_U_PPPS_Last(groupId, userId, ppPaymentStatus, obc);
237     }
238 
239     public static com.liferay.portlet.shopping.model.ShoppingOrder[] findByG_U_PPPS_PrevAndNext(
240         long orderId, long groupId, long userId,
241         java.lang.String ppPaymentStatus,
242         com.liferay.portal.kernel.util.OrderByComparator obc)
243         throws com.liferay.portal.kernel.exception.SystemException,
244             com.liferay.portlet.shopping.NoSuchOrderException {
245         return getPersistence()
246                    .findByG_U_PPPS_PrevAndNext(orderId, groupId, userId,
247             ppPaymentStatus, obc);
248     }
249 
250     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll()
251         throws com.liferay.portal.kernel.exception.SystemException {
252         return getPersistence().findAll();
253     }
254 
255     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll(
256         int start, int end)
257         throws com.liferay.portal.kernel.exception.SystemException {
258         return getPersistence().findAll(start, end);
259     }
260 
261     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll(
262         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
263         throws com.liferay.portal.kernel.exception.SystemException {
264         return getPersistence().findAll(start, end, obc);
265     }
266 
267     public static void removeByGroupId(long groupId)
268         throws com.liferay.portal.kernel.exception.SystemException {
269         getPersistence().removeByGroupId(groupId);
270     }
271 
272     public static void removeByNumber(java.lang.String number)
273         throws com.liferay.portal.kernel.exception.SystemException,
274             com.liferay.portlet.shopping.NoSuchOrderException {
275         getPersistence().removeByNumber(number);
276     }
277 
278     public static void removeByPPTxnId(java.lang.String ppTxnId)
279         throws com.liferay.portal.kernel.exception.SystemException,
280             com.liferay.portlet.shopping.NoSuchOrderException {
281         getPersistence().removeByPPTxnId(ppTxnId);
282     }
283 
284     public static void removeByG_U_PPPS(long groupId, long userId,
285         java.lang.String ppPaymentStatus)
286         throws com.liferay.portal.kernel.exception.SystemException {
287         getPersistence().removeByG_U_PPPS(groupId, userId, ppPaymentStatus);
288     }
289 
290     public static void removeAll()
291         throws com.liferay.portal.kernel.exception.SystemException {
292         getPersistence().removeAll();
293     }
294 
295     public static int countByGroupId(long groupId)
296         throws com.liferay.portal.kernel.exception.SystemException {
297         return getPersistence().countByGroupId(groupId);
298     }
299 
300     public static int countByNumber(java.lang.String number)
301         throws com.liferay.portal.kernel.exception.SystemException {
302         return getPersistence().countByNumber(number);
303     }
304 
305     public static int countByPPTxnId(java.lang.String ppTxnId)
306         throws com.liferay.portal.kernel.exception.SystemException {
307         return getPersistence().countByPPTxnId(ppTxnId);
308     }
309 
310     public static int countByG_U_PPPS(long groupId, long userId,
311         java.lang.String ppPaymentStatus)
312         throws com.liferay.portal.kernel.exception.SystemException {
313         return getPersistence().countByG_U_PPPS(groupId, userId, ppPaymentStatus);
314     }
315 
316     public static int countAll()
317         throws com.liferay.portal.kernel.exception.SystemException {
318         return getPersistence().countAll();
319     }
320 
321     public static ShoppingOrderPersistence getPersistence() {
322         if (_persistence == null) {
323             _persistence = (ShoppingOrderPersistence)PortalBeanLocatorUtil.locate(ShoppingOrderPersistence.class.getName());
324         }
325 
326         return _persistence;
327     }
328 
329     public void setPersistence(ShoppingOrderPersistence persistence) {
330         _persistence = persistence;
331     }
332 
333     private static ShoppingOrderPersistence _persistence;
334 }