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