001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.util.ReferenceRegistry;
021    
022    /**
023     * @author Brian Wing Shun Chan
024     * @generated
025     */
026    @ProviderType
027    public class OrganizationFinderUtil {
028            public static int countByKeywords(long companyId,
029                    long parentOrganizationId,
030                    java.lang.String parentOrganizationIdComparator,
031                    java.lang.String keywords, java.lang.String type,
032                    java.lang.Long regionId, java.lang.Long countryId,
033                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params) {
034                    return getFinder()
035                                       .countByKeywords(companyId, parentOrganizationId,
036                            parentOrganizationIdComparator, keywords, type, regionId,
037                            countryId, params);
038            }
039    
040            public static int countByO_U(long organizationId, long userId) {
041                    return getFinder().countByO_U(organizationId, userId);
042            }
043    
044            public static int countByC_PO_N_T_S_C_Z_R_C(long companyId,
045                    long parentOrganizationId,
046                    java.lang.String parentOrganizationIdComparator, java.lang.String name,
047                    java.lang.String type, java.lang.String street, java.lang.String city,
048                    java.lang.String zip, java.lang.Long regionId,
049                    java.lang.Long countryId,
050                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
051                    boolean andOperator) {
052                    return getFinder()
053                                       .countByC_PO_N_T_S_C_Z_R_C(companyId, parentOrganizationId,
054                            parentOrganizationIdComparator, name, type, street, city, zip,
055                            regionId, countryId, params, andOperator);
056            }
057    
058            public static int countByC_PO_N_T_S_C_Z_R_C(long companyId,
059                    long parentOrganizationId,
060                    java.lang.String parentOrganizationIdComparator,
061                    java.lang.String[] names, java.lang.String type,
062                    java.lang.String[] streets, java.lang.String[] cities,
063                    java.lang.String[] zips, java.lang.Long regionId,
064                    java.lang.Long countryId,
065                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
066                    boolean andOperator) {
067                    return getFinder()
068                                       .countByC_PO_N_T_S_C_Z_R_C(companyId, parentOrganizationId,
069                            parentOrganizationIdComparator, names, type, streets, cities, zips,
070                            regionId, countryId, params, andOperator);
071            }
072    
073            public static java.util.List<com.liferay.portal.model.Organization> findByKeywords(
074                    long companyId, long parentOrganizationId,
075                    java.lang.String parentOrganizationIdComparator,
076                    java.lang.String keywords, java.lang.String type,
077                    java.lang.Long regionId, java.lang.Long countryId,
078                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
079                    int start, int end,
080                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Organization> obc) {
081                    return getFinder()
082                                       .findByKeywords(companyId, parentOrganizationId,
083                            parentOrganizationIdComparator, keywords, type, regionId,
084                            countryId, params, start, end, obc);
085            }
086    
087            public static java.util.List<com.liferay.portal.model.Organization> findByNoAssets() {
088                    return getFinder().findByNoAssets();
089            }
090    
091            public static java.util.List<java.lang.Long> findByC_P(long companyId,
092                    long parentOrganizationId, long previousOrganizationId, int size) {
093                    return getFinder()
094                                       .findByC_P(companyId, parentOrganizationId,
095                            previousOrganizationId, size);
096            }
097    
098            public static java.util.List<com.liferay.portal.model.Organization> findByC_PO_N_T_S_C_Z_R_C(
099                    long companyId, long parentOrganizationId,
100                    java.lang.String parentOrganizationIdComparator, java.lang.String name,
101                    java.lang.String type, java.lang.String street, java.lang.String city,
102                    java.lang.String zip, java.lang.Long regionId,
103                    java.lang.Long countryId,
104                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
105                    boolean andOperator, int start, int end,
106                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Organization> obc) {
107                    return getFinder()
108                                       .findByC_PO_N_T_S_C_Z_R_C(companyId, parentOrganizationId,
109                            parentOrganizationIdComparator, name, type, street, city, zip,
110                            regionId, countryId, params, andOperator, start, end, obc);
111            }
112    
113            public static java.util.List<com.liferay.portal.model.Organization> findByC_PO_N_T_S_C_Z_R_C(
114                    long companyId, long parentOrganizationId,
115                    java.lang.String parentOrganizationIdComparator,
116                    java.lang.String[] names, java.lang.String type,
117                    java.lang.String[] streets, java.lang.String[] cities,
118                    java.lang.String[] zips, java.lang.Long regionId,
119                    java.lang.Long countryId,
120                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
121                    boolean andOperator, int start, int end,
122                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Organization> obc) {
123                    return getFinder()
124                                       .findByC_PO_N_T_S_C_Z_R_C(companyId, parentOrganizationId,
125                            parentOrganizationIdComparator, names, type, streets, cities, zips,
126                            regionId, countryId, params, andOperator, start, end, obc);
127            }
128    
129            public static OrganizationFinder getFinder() {
130                    if (_finder == null) {
131                            _finder = (OrganizationFinder)PortalBeanLocatorUtil.locate(OrganizationFinder.class.getName());
132    
133                            ReferenceRegistry.registerReference(OrganizationFinderUtil.class,
134                                    "_finder");
135                    }
136    
137                    return _finder;
138            }
139    
140            public void setFinder(OrganizationFinder finder) {
141                    _finder = finder;
142    
143                    ReferenceRegistry.registerReference(OrganizationFinderUtil.class,
144                            "_finder");
145            }
146    
147            private static OrganizationFinder _finder;
148    }