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<String, Object> params)
37          throws com.liferay.portal.SystemException {
38          return getFinder()
39                     .countByKeywords(companyId, parentOrganizationId,
40              parentOrganizationComparator, keywords, type, regionId, countryId,
41              params);
42      }
43  
44      public static int countByC_PO_N_T_S_C_Z_R_C(long companyId,
45          long parentOrganizationId,
46          java.lang.String parentOrganizationComparator, java.lang.String name,
47          int type, java.lang.String street, java.lang.String city,
48          java.lang.String zip, java.lang.Long regionId,
49          java.lang.Long countryId,
50          java.util.LinkedHashMap<String, Object> params, boolean andOperator)
51          throws com.liferay.portal.SystemException {
52          return getFinder()
53                     .countByC_PO_N_T_S_C_Z_R_C(companyId, parentOrganizationId,
54              parentOrganizationComparator, name, type, street, city, zip,
55              regionId, countryId, params, andOperator);
56      }
57  
58      public static int countByC_PO_N_T_S_C_Z_R_C(long companyId,
59          long parentOrganizationId,
60          java.lang.String parentOrganizationComparator,
61          java.lang.String[] names, int type, java.lang.String[] streets,
62          java.lang.String[] cities, java.lang.String[] zips,
63          java.lang.Long regionId, java.lang.Long countryId,
64          java.util.LinkedHashMap<String, Object> params, boolean andOperator)
65          throws com.liferay.portal.SystemException {
66          return getFinder()
67                     .countByC_PO_N_T_S_C_Z_R_C(companyId, parentOrganizationId,
68              parentOrganizationComparator, names, type, streets, cities, zips,
69              regionId, countryId, params, andOperator);
70      }
71  
72      public static java.util.List<com.liferay.portal.model.Organization> findByKeywords(
73          long companyId, long parentOrganizationId,
74          java.lang.String parentOrganizationComparator,
75          java.lang.String keywords, int type, java.lang.Long regionId,
76          java.lang.Long countryId,
77          java.util.LinkedHashMap<String, Object> params, int start, int end,
78          com.liferay.portal.kernel.util.OrderByComparator obc)
79          throws com.liferay.portal.SystemException {
80          return getFinder()
81                     .findByKeywords(companyId, parentOrganizationId,
82              parentOrganizationComparator, keywords, type, regionId, countryId,
83              params, start, end, obc);
84      }
85  
86      public static java.util.List<com.liferay.portal.model.Organization> findByC_PO_N_T_S_C_Z_R_C(
87          long companyId, long parentOrganizationId,
88          java.lang.String parentOrganizationComparator, java.lang.String name,
89          int type, java.lang.String street, java.lang.String city,
90          java.lang.String zip, java.lang.Long regionId,
91          java.lang.Long countryId,
92          java.util.LinkedHashMap<String, Object> params, boolean andOperator,
93          int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
94          throws com.liferay.portal.SystemException {
95          return getFinder()
96                     .findByC_PO_N_T_S_C_Z_R_C(companyId, parentOrganizationId,
97              parentOrganizationComparator, name, type, street, city, zip,
98              regionId, countryId, params, andOperator, start, end, obc);
99      }
100 
101     public static java.util.List<com.liferay.portal.model.Organization> findByC_PO_N_T_S_C_Z_R_C(
102         long companyId, long parentOrganizationId,
103         java.lang.String parentOrganizationComparator,
104         java.lang.String[] names, int type, java.lang.String[] streets,
105         java.lang.String[] cities, java.lang.String[] zips,
106         java.lang.Long regionId, java.lang.Long countryId,
107         java.util.LinkedHashMap<String, Object> params, boolean andOperator,
108         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
109         throws com.liferay.portal.SystemException {
110         return getFinder()
111                    .findByC_PO_N_T_S_C_Z_R_C(companyId, parentOrganizationId,
112             parentOrganizationComparator, names, type, streets, cities, zips,
113             regionId, countryId, params, andOperator, start, end, obc);
114     }
115 
116     public static OrganizationFinder getFinder() {
117         return _finder;
118     }
119 
120     public void setFinder(OrganizationFinder finder) {
121         _finder = finder;
122     }
123 
124     private static OrganizationFinder _finder;
125 }