1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
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  
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.SystemException,
96              com.liferay.portlet.shopping.NoSuchOrderException {
97          return getPersistence().remove(orderId);
98      }
99  
100     /**
101      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
102      */
103     public static com.liferay.portlet.shopping.model.ShoppingOrder update(
104         com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder)
105         throws com.liferay.portal.SystemException {
106         return getPersistence().update(shoppingOrder);
107     }
108 
109     public static com.liferay.portlet.shopping.model.ShoppingOrder updateImpl(
110         com.liferay.portlet.shopping.model.ShoppingOrder shoppingOrder,
111         boolean merge) throws com.liferay.portal.SystemException {
112         return getPersistence().updateImpl(shoppingOrder, merge);
113     }
114 
115     public static com.liferay.portlet.shopping.model.ShoppingOrder findByPrimaryKey(
116         long orderId)
117         throws com.liferay.portal.SystemException,
118             com.liferay.portlet.shopping.NoSuchOrderException {
119         return getPersistence().findByPrimaryKey(orderId);
120     }
121 
122     public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByPrimaryKey(
123         long orderId) throws com.liferay.portal.SystemException {
124         return getPersistence().fetchByPrimaryKey(orderId);
125     }
126 
127     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId(
128         long groupId) throws com.liferay.portal.SystemException {
129         return getPersistence().findByGroupId(groupId);
130     }
131 
132     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId(
133         long groupId, int start, int end)
134         throws com.liferay.portal.SystemException {
135         return getPersistence().findByGroupId(groupId, start, end);
136     }
137 
138     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByGroupId(
139         long groupId, int start, int end,
140         com.liferay.portal.kernel.util.OrderByComparator obc)
141         throws com.liferay.portal.SystemException {
142         return getPersistence().findByGroupId(groupId, start, end, obc);
143     }
144 
145     public static com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_First(
146         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
147         throws com.liferay.portal.SystemException,
148             com.liferay.portlet.shopping.NoSuchOrderException {
149         return getPersistence().findByGroupId_First(groupId, obc);
150     }
151 
152     public static com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_Last(
153         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
154         throws com.liferay.portal.SystemException,
155             com.liferay.portlet.shopping.NoSuchOrderException {
156         return getPersistence().findByGroupId_Last(groupId, obc);
157     }
158 
159     public static com.liferay.portlet.shopping.model.ShoppingOrder[] findByGroupId_PrevAndNext(
160         long orderId, long groupId,
161         com.liferay.portal.kernel.util.OrderByComparator obc)
162         throws com.liferay.portal.SystemException,
163             com.liferay.portlet.shopping.NoSuchOrderException {
164         return getPersistence().findByGroupId_PrevAndNext(orderId, groupId, obc);
165     }
166 
167     public static com.liferay.portlet.shopping.model.ShoppingOrder findByNumber(
168         java.lang.String number)
169         throws com.liferay.portal.SystemException,
170             com.liferay.portlet.shopping.NoSuchOrderException {
171         return getPersistence().findByNumber(number);
172     }
173 
174     public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByNumber(
175         java.lang.String number) throws com.liferay.portal.SystemException {
176         return getPersistence().fetchByNumber(number);
177     }
178 
179     public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByNumber(
180         java.lang.String number, boolean retrieveFromCache)
181         throws com.liferay.portal.SystemException {
182         return getPersistence().fetchByNumber(number, retrieveFromCache);
183     }
184 
185     public static com.liferay.portlet.shopping.model.ShoppingOrder findByPPTxnId(
186         java.lang.String ppTxnId)
187         throws com.liferay.portal.SystemException,
188             com.liferay.portlet.shopping.NoSuchOrderException {
189         return getPersistence().findByPPTxnId(ppTxnId);
190     }
191 
192     public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByPPTxnId(
193         java.lang.String ppTxnId) throws com.liferay.portal.SystemException {
194         return getPersistence().fetchByPPTxnId(ppTxnId);
195     }
196 
197     public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByPPTxnId(
198         java.lang.String ppTxnId, boolean retrieveFromCache)
199         throws com.liferay.portal.SystemException {
200         return getPersistence().fetchByPPTxnId(ppTxnId, retrieveFromCache);
201     }
202 
203     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
204         long groupId, long userId, java.lang.String ppPaymentStatus)
205         throws com.liferay.portal.SystemException {
206         return getPersistence().findByG_U_PPPS(groupId, userId, ppPaymentStatus);
207     }
208 
209     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
210         long groupId, long userId, java.lang.String ppPaymentStatus, int start,
211         int end) throws com.liferay.portal.SystemException {
212         return getPersistence()
213                    .findByG_U_PPPS(groupId, userId, ppPaymentStatus, start, end);
214     }
215 
216     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
217         long groupId, long userId, java.lang.String ppPaymentStatus, int start,
218         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
219         throws com.liferay.portal.SystemException {
220         return getPersistence()
221                    .findByG_U_PPPS(groupId, userId, ppPaymentStatus, start,
222             end, obc);
223     }
224 
225     public static com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_First(
226         long groupId, long userId, java.lang.String ppPaymentStatus,
227         com.liferay.portal.kernel.util.OrderByComparator obc)
228         throws com.liferay.portal.SystemException,
229             com.liferay.portlet.shopping.NoSuchOrderException {
230         return getPersistence()
231                    .findByG_U_PPPS_First(groupId, userId, ppPaymentStatus, obc);
232     }
233 
234     public static com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_Last(
235         long groupId, long userId, java.lang.String ppPaymentStatus,
236         com.liferay.portal.kernel.util.OrderByComparator obc)
237         throws com.liferay.portal.SystemException,
238             com.liferay.portlet.shopping.NoSuchOrderException {
239         return getPersistence()
240                    .findByG_U_PPPS_Last(groupId, userId, ppPaymentStatus, obc);
241     }
242 
243     public static com.liferay.portlet.shopping.model.ShoppingOrder[] findByG_U_PPPS_PrevAndNext(
244         long orderId, long groupId, long userId,
245         java.lang.String ppPaymentStatus,
246         com.liferay.portal.kernel.util.OrderByComparator obc)
247         throws com.liferay.portal.SystemException,
248             com.liferay.portlet.shopping.NoSuchOrderException {
249         return getPersistence()
250                    .findByG_U_PPPS_PrevAndNext(orderId, groupId, userId,
251             ppPaymentStatus, obc);
252     }
253 
254     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll()
255         throws com.liferay.portal.SystemException {
256         return getPersistence().findAll();
257     }
258 
259     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll(
260         int start, int end) throws com.liferay.portal.SystemException {
261         return getPersistence().findAll(start, end);
262     }
263 
264     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll(
265         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
266         throws com.liferay.portal.SystemException {
267         return getPersistence().findAll(start, end, obc);
268     }
269 
270     public static void removeByGroupId(long groupId)
271         throws com.liferay.portal.SystemException {
272         getPersistence().removeByGroupId(groupId);
273     }
274 
275     public static void removeByNumber(java.lang.String number)
276         throws com.liferay.portal.SystemException,
277             com.liferay.portlet.shopping.NoSuchOrderException {
278         getPersistence().removeByNumber(number);
279     }
280 
281     public static void removeByPPTxnId(java.lang.String ppTxnId)
282         throws com.liferay.portal.SystemException,
283             com.liferay.portlet.shopping.NoSuchOrderException {
284         getPersistence().removeByPPTxnId(ppTxnId);
285     }
286 
287     public static void removeByG_U_PPPS(long groupId, long userId,
288         java.lang.String ppPaymentStatus)
289         throws com.liferay.portal.SystemException {
290         getPersistence().removeByG_U_PPPS(groupId, userId, ppPaymentStatus);
291     }
292 
293     public static void removeAll() throws com.liferay.portal.SystemException {
294         getPersistence().removeAll();
295     }
296 
297     public static int countByGroupId(long groupId)
298         throws com.liferay.portal.SystemException {
299         return getPersistence().countByGroupId(groupId);
300     }
301 
302     public static int countByNumber(java.lang.String number)
303         throws com.liferay.portal.SystemException {
304         return getPersistence().countByNumber(number);
305     }
306 
307     public static int countByPPTxnId(java.lang.String ppTxnId)
308         throws com.liferay.portal.SystemException {
309         return getPersistence().countByPPTxnId(ppTxnId);
310     }
311 
312     public static int countByG_U_PPPS(long groupId, long userId,
313         java.lang.String ppPaymentStatus)
314         throws com.liferay.portal.SystemException {
315         return getPersistence().countByG_U_PPPS(groupId, userId, ppPaymentStatus);
316     }
317 
318     public static int countAll() throws com.liferay.portal.SystemException {
319         return getPersistence().countAll();
320     }
321 
322     public static ShoppingOrderPersistence getPersistence() {
323         if (_persistence == null) {
324             _persistence = (ShoppingOrderPersistence)PortalBeanLocatorUtil.locate(ShoppingOrderPersistence.class.getName());
325         }
326 
327         return _persistence;
328     }
329 
330     public void setPersistence(ShoppingOrderPersistence persistence) {
331         _persistence = persistence;
332     }
333 
334     private static ShoppingOrderPersistence _persistence;
335 }