1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.service.persistence;
24  
25  /**
26   * <a href="OrganizationFinderUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public class OrganizationFinderUtil {
32      public static int countByKeywords(long companyId,
33          long parentOrganizationId,
34          java.lang.String parentOrganizationComparator,
35          java.lang.String keywords, int type, java.lang.Long regionId,
36          java.lang.Long countryId, java.util.LinkedHashMap params)
37          throws com.liferay.portal.SystemException {
38          return getFinder().countByKeywords(companyId, parentOrganizationId,
39              parentOrganizationComparator, keywords, type, regionId, countryId,
40              params);
41      }
42  
43      public static int countByC_PO_N_T_S_C_Z_R_C(long companyId,
44          long parentOrganizationId,
45          java.lang.String parentOrganizationComparator, java.lang.String name,
46          int type, java.lang.String street, java.lang.String city,
47          java.lang.String zip, java.lang.Long regionId,
48          java.lang.Long countryId, java.util.LinkedHashMap params,
49          boolean andOperator) throws com.liferay.portal.SystemException {
50          return getFinder().countByC_PO_N_T_S_C_Z_R_C(companyId,
51              parentOrganizationId, parentOrganizationComparator, name, type,
52              street, city, zip, regionId, countryId, params, andOperator);
53      }
54  
55      public static int countByC_PO_N_T_S_C_Z_R_C(long companyId,
56          long parentOrganizationId,
57          java.lang.String parentOrganizationComparator,
58          java.lang.String[] names, int type, java.lang.String[] streets,
59          java.lang.String[] cities, java.lang.String[] zips,
60          java.lang.Long regionId, java.lang.Long countryId,
61          java.util.LinkedHashMap params, boolean andOperator)
62          throws com.liferay.portal.SystemException {
63          return getFinder().countByC_PO_N_T_S_C_Z_R_C(companyId,
64              parentOrganizationId, parentOrganizationComparator, names, type,
65              streets, cities, zips, regionId, countryId, params, andOperator);
66      }
67  
68      public static java.util.List findByKeywords(long companyId,
69          long parentOrganizationId,
70          java.lang.String parentOrganizationComparator,
71          java.lang.String keywords, int type, java.lang.Long regionId,
72          java.lang.Long countryId, java.util.LinkedHashMap params, int begin,
73          int end, com.liferay.portal.kernel.util.OrderByComparator obc)
74          throws com.liferay.portal.SystemException {
75          return getFinder().findByKeywords(companyId, parentOrganizationId,
76              parentOrganizationComparator, keywords, type, regionId, countryId,
77              params, begin, end, obc);
78      }
79  
80      public static java.util.List findByC_PO_N_T_S_C_Z_R_C(long companyId,
81          long parentOrganizationId,
82          java.lang.String parentOrganizationComparator, java.lang.String name,
83          int type, java.lang.String street, java.lang.String city,
84          java.lang.String zip, java.lang.Long regionId,
85          java.lang.Long countryId, java.util.LinkedHashMap params,
86          boolean andOperator, int begin, int end,
87          com.liferay.portal.kernel.util.OrderByComparator obc)
88          throws com.liferay.portal.SystemException {
89          return getFinder().findByC_PO_N_T_S_C_Z_R_C(companyId,
90              parentOrganizationId, parentOrganizationComparator, name, type,
91              street, city, zip, regionId, countryId, params, andOperator, begin,
92              end, obc);
93      }
94  
95      public static java.util.List findByC_PO_N_T_S_C_Z_R_C(long companyId,
96          long parentOrganizationId,
97          java.lang.String parentOrganizationComparator,
98          java.lang.String[] names, int type, java.lang.String[] streets,
99          java.lang.String[] cities, java.lang.String[] zips,
100         java.lang.Long regionId, java.lang.Long countryId,
101         java.util.LinkedHashMap params, boolean andOperator, int begin,
102         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
103         throws com.liferay.portal.SystemException {
104         return getFinder().findByC_PO_N_T_S_C_Z_R_C(companyId,
105             parentOrganizationId, parentOrganizationComparator, names, type,
106             streets, cities, zips, regionId, countryId, params, andOperator,
107             begin, end, obc);
108     }
109 
110     public static OrganizationFinder getFinder() {
111         return _getUtil()._finder;
112     }
113 
114     public void setFinder(OrganizationFinder finder) {
115         _finder = finder;
116     }
117 
118     private static OrganizationFinderUtil _getUtil() {
119         if (_util == null) {
120             _util = (OrganizationFinderUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
121         }
122 
123         return _util;
124     }
125 
126     private static final String _UTIL = OrganizationFinderUtil.class.getName();
127     private static OrganizationFinderUtil _util;
128     private OrganizationFinder _finder;
129 }