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  
19  /**
20   * <a href="ShoppingOrderFinderUtil.java.html"><b><i>View Source</i></b></a>
21   *
22   * @author Brian Wing Shun Chan
23   */
24  public class ShoppingOrderFinderUtil {
25      public static int countByG_C_U_N_PPPS(long groupId, long companyId,
26          long userId, java.lang.String number,
27          java.lang.String billingFirstName, java.lang.String billingLastName,
28          java.lang.String billingEmailAddress,
29          java.lang.String shippingFirstName, java.lang.String shippingLastName,
30          java.lang.String shippingEmailAddress,
31          java.lang.String ppPaymentStatus, boolean andOperator)
32          throws com.liferay.portal.kernel.exception.SystemException {
33          return getFinder()
34                     .countByG_C_U_N_PPPS(groupId, companyId, userId, number,
35              billingFirstName, billingLastName, billingEmailAddress,
36              shippingFirstName, shippingLastName, shippingEmailAddress,
37              ppPaymentStatus, andOperator);
38      }
39  
40      public static java.util.List<com.liferay.portlet.shopping.model.ShoppingOrder> findByG_C_U_N_PPPS(
41          long groupId, long companyId, long userId, java.lang.String number,
42          java.lang.String billingFirstName, java.lang.String billingLastName,
43          java.lang.String billingEmailAddress,
44          java.lang.String shippingFirstName, java.lang.String shippingLastName,
45          java.lang.String shippingEmailAddress,
46          java.lang.String ppPaymentStatus, boolean andOperator, int start,
47          int end, com.liferay.portal.kernel.util.OrderByComparator obc)
48          throws com.liferay.portal.kernel.exception.SystemException {
49          return getFinder()
50                     .findByG_C_U_N_PPPS(groupId, companyId, userId, number,
51              billingFirstName, billingLastName, billingEmailAddress,
52              shippingFirstName, shippingLastName, shippingEmailAddress,
53              ppPaymentStatus, andOperator, start, end, obc);
54      }
55  
56      public static ShoppingOrderFinder getFinder() {
57          if (_finder == null) {
58              _finder = (ShoppingOrderFinder)PortalBeanLocatorUtil.locate(ShoppingOrderFinder.class.getName());
59          }
60  
61          return _finder;
62      }
63  
64      public void setFinder(ShoppingOrderFinder finder) {
65          _finder = finder;
66      }
67  
68      private static ShoppingOrderFinder _finder;
69  }