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 AssetTagFinderUtil {
028            public static int countByG_N(long groupId, java.lang.String name) {
029                    return getFinder().countByG_N(groupId, name);
030            }
031    
032            public static int countByG_C_N(long groupId, long classNameId,
033                    java.lang.String name) {
034                    return getFinder().countByG_C_N(groupId, classNameId, name);
035            }
036    
037            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findByG_C_N(
038                    long groupId, long classNameId, java.lang.String name, int start,
039                    int end,
040                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTag> obc) {
041                    return getFinder()
042                                       .findByG_C_N(groupId, classNameId, name, start, end, obc);
043            }
044    
045            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findByG_N_S_E(
046                    long groupId, java.lang.String name, int startPeriod, int endPeriod,
047                    int periodLength) {
048                    return getFinder()
049                                       .findByG_N_S_E(groupId, name, startPeriod, endPeriod,
050                            periodLength);
051            }
052    
053            public static AssetTagFinder getFinder() {
054                    if (_finder == null) {
055                            _finder = (AssetTagFinder)PortalBeanLocatorUtil.locate(AssetTagFinder.class.getName());
056    
057                            ReferenceRegistry.registerReference(AssetTagFinderUtil.class,
058                                    "_finder");
059                    }
060    
061                    return _finder;
062            }
063    
064            public void setFinder(AssetTagFinder finder) {
065                    _finder = finder;
066    
067                    ReferenceRegistry.registerReference(AssetTagFinderUtil.class, "_finder");
068            }
069    
070            private static AssetTagFinder _finder;
071    }