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 orderByComparator)
141         throws com.liferay.portal.SystemException {
142         return getPersistence()
143                    .findByGroupId(groupId, start, end, orderByComparator);
144     }
145 
146     public static com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_First(
147         long groupId,
148         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149         throws com.liferay.portal.SystemException,
150             com.liferay.portlet.shopping.NoSuchOrderException {
151         return getPersistence().findByGroupId_First(groupId, orderByComparator);
152     }
153 
154     public static com.liferay.portlet.shopping.model.ShoppingOrder findByGroupId_Last(
155         long groupId,
156         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
157         throws com.liferay.portal.SystemException,
158             com.liferay.portlet.shopping.NoSuchOrderException {
159         return getPersistence().findByGroupId_Last(groupId, orderByComparator);
160     }
161 
162     public static com.liferay.portlet.shopping.model.ShoppingOrder[] findByGroupId_PrevAndNext(
163         long orderId, 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()
168                    .findByGroupId_PrevAndNext(orderId, groupId,
169             orderByComparator);
170     }
171 
172     public static com.liferay.portlet.shopping.model.ShoppingOrder findByNumber(
173         java.lang.String number)
174         throws com.liferay.portal.SystemException,
175             com.liferay.portlet.shopping.NoSuchOrderException {
176         return getPersistence().findByNumber(number);
177     }
178 
179     public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByNumber(
180         java.lang.String number) throws com.liferay.portal.SystemException {
181         return getPersistence().fetchByNumber(number);
182     }
183 
184     public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByNumber(
185         java.lang.String number, boolean retrieveFromCache)
186         throws com.liferay.portal.SystemException {
187         return getPersistence().fetchByNumber(number, retrieveFromCache);
188     }
189 
190     public static com.liferay.portlet.shopping.model.ShoppingOrder findByPPTxnId(
191         java.lang.String ppTxnId)
192         throws com.liferay.portal.SystemException,
193             com.liferay.portlet.shopping.NoSuchOrderException {
194         return getPersistence().findByPPTxnId(ppTxnId);
195     }
196 
197     public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByPPTxnId(
198         java.lang.String ppTxnId) throws com.liferay.portal.SystemException {
199         return getPersistence().fetchByPPTxnId(ppTxnId);
200     }
201 
202     public static com.liferay.portlet.shopping.model.ShoppingOrder fetchByPPTxnId(
203         java.lang.String ppTxnId, boolean retrieveFromCache)
204         throws com.liferay.portal.SystemException {
205         return getPersistence().fetchByPPTxnId(ppTxnId, retrieveFromCache);
206     }
207 
208     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
209         long groupId, long userId, java.lang.String ppPaymentStatus)
210         throws com.liferay.portal.SystemException {
211         return getPersistence().findByG_U_PPPS(groupId, userId, ppPaymentStatus);
212     }
213 
214     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
215         long groupId, long userId, java.lang.String ppPaymentStatus, int start,
216         int end) throws com.liferay.portal.SystemException {
217         return getPersistence()
218                    .findByG_U_PPPS(groupId, userId, ppPaymentStatus, start, end);
219     }
220 
221     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_U_PPPS(
222         long groupId, long userId, java.lang.String ppPaymentStatus, int start,
223         int end,
224         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
225         throws com.liferay.portal.SystemException {
226         return getPersistence()
227                    .findByG_U_PPPS(groupId, userId, ppPaymentStatus, start,
228             end, orderByComparator);
229     }
230 
231     public static com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_First(
232         long groupId, long userId, java.lang.String ppPaymentStatus,
233         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
234         throws com.liferay.portal.SystemException,
235             com.liferay.portlet.shopping.NoSuchOrderException {
236         return getPersistence()
237                    .findByG_U_PPPS_First(groupId, userId, ppPaymentStatus,
238             orderByComparator);
239     }
240 
241     public static com.liferay.portlet.shopping.model.ShoppingOrder findByG_U_PPPS_Last(
242         long groupId, long userId, java.lang.String ppPaymentStatus,
243         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
244         throws com.liferay.portal.SystemException,
245             com.liferay.portlet.shopping.NoSuchOrderException {
246         return getPersistence()
247                    .findByG_U_PPPS_Last(groupId, userId, ppPaymentStatus,
248             orderByComparator);
249     }
250 
251     public static com.liferay.portlet.shopping.model.ShoppingOrder[] findByG_U_PPPS_PrevAndNext(
252         long orderId, long groupId, long userId,
253         java.lang.String ppPaymentStatus,
254         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
255         throws com.liferay.portal.SystemException,
256             com.liferay.portlet.shopping.NoSuchOrderException {
257         return getPersistence()
258                    .findByG_U_PPPS_PrevAndNext(orderId, groupId, userId,
259             ppPaymentStatus, orderByComparator);
260     }
261 
262     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll()
263         throws com.liferay.portal.SystemException {
264         return getPersistence().findAll();
265     }
266 
267     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll(
268         int start, int end) throws com.liferay.portal.SystemException {
269         return getPersistence().findAll(start, end);
270     }
271 
272     public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findAll(
273         int start, int end,
274         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
275         throws com.liferay.portal.SystemException {
276         return getPersistence().findAll(start, end, orderByComparator);
277     }
278 
279     public static void removeByGroupId(long groupId)
280         throws com.liferay.portal.SystemException {
281         getPersistence().removeByGroupId(groupId);
282     }
283 
284     public static void removeByNumber(java.lang.String number)
285         throws com.liferay.portal.SystemException,
286             com.liferay.portlet.shopping.NoSuchOrderException {
287         getPersistence().removeByNumber(number);
288     }
289 
290     public static void removeByPPTxnId(java.lang.String ppTxnId)
291         throws com.liferay.portal.SystemException,
292             com.liferay.portlet.shopping.NoSuchOrderException {
293         getPersistence().removeByPPTxnId(ppTxnId);
294     }
295 
296     public static void removeByG_U_PPPS(long groupId, long userId,
297         java.lang.String ppPaymentStatus)
298         throws com.liferay.portal.SystemException {
299         getPersistence().removeByG_U_PPPS(groupId, userId, ppPaymentStatus);
300     }
301 
302     public static void removeAll() throws com.liferay.portal.SystemException {
303         getPersistence().removeAll();
304     }
305 
306     public static int countByGroupId(long groupId)
307         throws com.liferay.portal.SystemException {
308         return getPersistence().countByGroupId(groupId);
309     }
310 
311     public static int countByNumber(java.lang.String number)
312         throws com.liferay.portal.SystemException {
313         return getPersistence().countByNumber(number);
314     }
315 
316     public static int countByPPTxnId(java.lang.String ppTxnId)
317         throws com.liferay.portal.SystemException {
318         return getPersistence().countByPPTxnId(ppTxnId);
319     }
320 
321     public static int countByG_U_PPPS(long groupId, long userId,
322         java.lang.String ppPaymentStatus)
323         throws com.liferay.portal.SystemException {
324         return getPersistence().countByG_U_PPPS(groupId, userId, ppPaymentStatus);
325     }
326 
327     public static int countAll() throws com.liferay.portal.SystemException {
328         return getPersistence().countAll();
329     }
330 
331     public static ShoppingOrderPersistence getPersistence() {
332         if (_persistence == null) {
333             _persistence = (ShoppingOrderPersistence)PortalBeanLocatorUtil.locate(ShoppingOrderPersistence.class.getName());
334         }
335 
336         return _persistence;
337     }
338 
339     public void setPersistence(ShoppingOrderPersistence persistence) {
340         _persistence = persistence;
341     }
342 
343     private static ShoppingOrderPersistence _persistence;
344 }