1   /**
2    * Copyright (c) 2000-2009 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   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portal.service.persistence;
21  
22  /**
23   * <a href="OrganizationFinderUtil.java.html"><b><i>View Source</i></b></a>
24   *
25   * @author Brian Wing Shun Chan
26   *
27   */
28  public class OrganizationFinderUtil {
29      public static int countByKeywords(long companyId,
30          long parentOrganizationId,
31          java.lang.String parentOrganizationIdComparator,
32          java.lang.String keywords, int type, java.lang.Long regionId,
33          java.lang.Long countryId, java.util.LinkedHashMap<String, Object> params)
34          throws com.liferay.portal.SystemException {
35          return getFinder()
36                     .countByKeywords(companyId, parentOrganizationId,
37              parentOrganizationIdComparator, keywords, type, regionId,
38              countryId, params);
39      }
40  
41      public static int countByC_PO_N_T_S_C_Z_R_C(long companyId,
42          long parentOrganizationId,
43          java.lang.String parentOrganizationIdComparator, java.lang.String name,
44          int type, java.lang.String street, java.lang.String city,
45          java.lang.String zip, java.lang.Long regionId,
46          java.lang.Long countryId,
47          java.util.LinkedHashMap<String, Object> params, boolean andOperator)
48          throws com.liferay.portal.SystemException {
49          return getFinder()
50                     .countByC_PO_N_T_S_C_Z_R_C(companyId, parentOrganizationId,
51              parentOrganizationIdComparator, name, type, street, city, zip,
52              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 parentOrganizationIdComparator,
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<String, Object> params, boolean andOperator)
62          throws com.liferay.portal.SystemException {
63          return getFinder()
64                     .countByC_PO_N_T_S_C_Z_R_C(companyId, parentOrganizationId,
65              parentOrganizationIdComparator, names, type, streets, cities, zips,
66              regionId, countryId, params, andOperator);
67      }
68  
69      public static java.util.List<com.liferay.portal.model.Organization> findByKeywords(
70          long companyId, long parentOrganizationId,
71          java.lang.String parentOrganizationIdComparator,
72          java.lang.String keywords, int type, java.lang.Long regionId,
73          java.lang.Long countryId,
74          java.util.LinkedHashMap<String, Object> params, int start, int end,
75          com.liferay.portal.kernel.util.OrderByComparator obc)
76          throws com.liferay.portal.SystemException {
77          return getFinder()
78                     .findByKeywords(companyId, parentOrganizationId,
79              parentOrganizationIdComparator, keywords, type, regionId,
80              countryId, params, start, end, obc);
81      }
82  
83      public static java.util.List<com.liferay.portal.model.Organization> findByC_PO_N_T_S_C_Z_R_C(
84          long companyId, long parentOrganizationId,
85          java.lang.String parentOrganizationIdComparator, java.lang.String name,
86          int type, java.lang.String street, java.lang.String city,
87          java.lang.String zip, java.lang.Long regionId,
88          java.lang.Long countryId,
89          java.util.LinkedHashMap<String, Object> params, boolean andOperator,
90          int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
91          throws com.liferay.portal.SystemException {
92          return getFinder()
93                     .findByC_PO_N_T_S_C_Z_R_C(companyId, parentOrganizationId,
94              parentOrganizationIdComparator, name, type, street, city, zip,
95              regionId, countryId, params, andOperator, start, end, obc);
96      }
97  
98      public static java.util.List<com.liferay.portal.model.Organization> findByC_PO_N_T_S_C_Z_R_C(
99          long companyId, long parentOrganizationId,
100         java.lang.String parentOrganizationIdComparator,
101         java.lang.String[] names, int type, java.lang.String[] streets,
102         java.lang.String[] cities, java.lang.String[] zips,
103         java.lang.Long regionId, java.lang.Long countryId,
104         java.util.LinkedHashMap<String, Object> params, boolean andOperator,
105         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
106         throws com.liferay.portal.SystemException {
107         return getFinder()
108                    .findByC_PO_N_T_S_C_Z_R_C(companyId, parentOrganizationId,
109             parentOrganizationIdComparator, names, type, streets, cities, zips,
110             regionId, countryId, params, andOperator, start, end, obc);
111     }
112 
113     public static OrganizationFinder getFinder() {
114         return _finder;
115     }
116 
117     public void setFinder(OrganizationFinder finder) {
118         _finder = finder;
119     }
120 
121     private static OrganizationFinder _finder;
122 }