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