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.portlet.asset.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 AssetCategoryFinderUtil {
028            public static int countByG_C_N(long groupId, long classNameId,
029                    java.lang.String name) {
030                    return getFinder().countByG_C_N(groupId, classNameId, name);
031            }
032    
033            public static int countByG_N_P(long groupId, java.lang.String name,
034                    java.lang.String[] categoryProperties) {
035                    return getFinder().countByG_N_P(groupId, name, categoryProperties);
036            }
037    
038            public static com.liferay.portlet.asset.model.AssetCategory findByG_N(
039                    long groupId, java.lang.String name)
040                    throws com.liferay.portlet.asset.exception.NoSuchCategoryException {
041                    return getFinder().findByG_N(groupId, name);
042            }
043    
044            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_N_P(
045                    long groupId, java.lang.String name,
046                    java.lang.String[] categoryProperties) {
047                    return getFinder().findByG_N_P(groupId, name, categoryProperties);
048            }
049    
050            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_N_P(
051                    long groupId, java.lang.String name,
052                    java.lang.String[] categoryProperties, int start, int end) {
053                    return getFinder()
054                                       .findByG_N_P(groupId, name, categoryProperties, start, end);
055            }
056    
057            public static AssetCategoryFinder getFinder() {
058                    if (_finder == null) {
059                            _finder = (AssetCategoryFinder)PortalBeanLocatorUtil.locate(AssetCategoryFinder.class.getName());
060    
061                            ReferenceRegistry.registerReference(AssetCategoryFinderUtil.class,
062                                    "_finder");
063                    }
064    
065                    return _finder;
066            }
067    
068            public void setFinder(AssetCategoryFinder finder) {
069                    _finder = finder;
070    
071                    ReferenceRegistry.registerReference(AssetCategoryFinderUtil.class,
072                            "_finder");
073            }
074    
075            private static AssetCategoryFinder _finder;
076    }