001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portal.service.persistence;
022:
023: /**
024: * <a href="OrganizationFinderUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class OrganizationFinderUtil {
030: public static int countByKeywords(long companyId,
031: long parentOrganizationId,
032: java.lang.String parentOrganizationComparator,
033: java.lang.String keywords, int type,
034: java.lang.Long regionId, java.lang.Long countryId,
035: java.util.LinkedHashMap params)
036: throws com.liferay.portal.SystemException {
037: return getFinder().countByKeywords(companyId,
038: parentOrganizationId, parentOrganizationComparator,
039: keywords, type, regionId, countryId, params);
040: }
041:
042: public static int countByC_PO_N_T_S_C_Z_R_C(long companyId,
043: long parentOrganizationId,
044: java.lang.String parentOrganizationComparator,
045: java.lang.String name, int type, java.lang.String street,
046: java.lang.String city, java.lang.String zip,
047: java.lang.Long regionId, java.lang.Long countryId,
048: java.util.LinkedHashMap params, boolean andOperator)
049: throws com.liferay.portal.SystemException {
050: return getFinder().countByC_PO_N_T_S_C_Z_R_C(companyId,
051: parentOrganizationId, parentOrganizationComparator,
052: name, type, street, city, zip, regionId, countryId,
053: params, andOperator);
054: }
055:
056: public static int countByC_PO_N_T_S_C_Z_R_C(long companyId,
057: long parentOrganizationId,
058: java.lang.String parentOrganizationComparator,
059: java.lang.String[] names, int type,
060: java.lang.String[] streets, java.lang.String[] cities,
061: java.lang.String[] zips, java.lang.Long regionId,
062: java.lang.Long countryId, java.util.LinkedHashMap params,
063: boolean andOperator)
064: throws com.liferay.portal.SystemException {
065: return getFinder().countByC_PO_N_T_S_C_Z_R_C(companyId,
066: parentOrganizationId, parentOrganizationComparator,
067: names, type, streets, cities, zips, regionId,
068: countryId, params, andOperator);
069: }
070:
071: public static java.util.List findByKeywords(long companyId,
072: long parentOrganizationId,
073: java.lang.String parentOrganizationComparator,
074: java.lang.String keywords, int type,
075: java.lang.Long regionId, java.lang.Long countryId,
076: java.util.LinkedHashMap params, int begin, int end,
077: com.liferay.portal.kernel.util.OrderByComparator obc)
078: throws com.liferay.portal.SystemException {
079: return getFinder().findByKeywords(companyId,
080: parentOrganizationId, parentOrganizationComparator,
081: keywords, type, regionId, countryId, params, begin,
082: end, obc);
083: }
084:
085: public static java.util.List findByC_PO_N_T_S_C_Z_R_C(
086: long companyId, long parentOrganizationId,
087: java.lang.String parentOrganizationComparator,
088: java.lang.String name, int type, java.lang.String street,
089: java.lang.String city, java.lang.String zip,
090: java.lang.Long regionId, java.lang.Long countryId,
091: java.util.LinkedHashMap params, boolean andOperator,
092: int begin, int end,
093: com.liferay.portal.kernel.util.OrderByComparator obc)
094: throws com.liferay.portal.SystemException {
095: return getFinder().findByC_PO_N_T_S_C_Z_R_C(companyId,
096: parentOrganizationId, parentOrganizationComparator,
097: name, type, street, city, zip, regionId, countryId,
098: params, andOperator, begin, end, obc);
099: }
100:
101: public static java.util.List 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,
105: java.lang.String[] streets, java.lang.String[] cities,
106: java.lang.String[] zips, java.lang.Long regionId,
107: java.lang.Long countryId, java.util.LinkedHashMap params,
108: boolean andOperator, int begin, int end,
109: com.liferay.portal.kernel.util.OrderByComparator obc)
110: throws com.liferay.portal.SystemException {
111: return getFinder().findByC_PO_N_T_S_C_Z_R_C(companyId,
112: parentOrganizationId, parentOrganizationComparator,
113: names, type, streets, cities, zips, regionId,
114: countryId, params, andOperator, begin, end, obc);
115: }
116:
117: public static OrganizationFinder getFinder() {
118: return _getUtil()._finder;
119: }
120:
121: public void setFinder(OrganizationFinder finder) {
122: _finder = finder;
123: }
124:
125: private static OrganizationFinderUtil _getUtil() {
126: if (_util == null) {
127: _util = (OrganizationFinderUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
128: .locate(_UTIL);
129: }
130:
131: return _util;
132: }
133:
134: private static final String _UTIL = OrganizationFinderUtil.class
135: .getName();
136: private static OrganizationFinderUtil _util;
137: private OrganizationFinder _finder;
138: }
|