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_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[] tagProperties) {
035                    return getFinder().countByG_N_P(groupId, name, tagProperties);
036            }
037    
038            public static int filterCountByG_N(long groupId, java.lang.String name) {
039                    return getFinder().filterCountByG_N(groupId, name);
040            }
041    
042            public static int filterCountByG_C_N(long groupId, long classNameId,
043                    java.lang.String name) {
044                    return getFinder().filterCountByG_C_N(groupId, classNameId, name);
045            }
046    
047            public static int filterCountByG_N_P(long groupId, java.lang.String name,
048                    java.lang.String[] tagProperties) {
049                    return getFinder().filterCountByG_N_P(groupId, name, tagProperties);
050            }
051    
052            public static com.liferay.portlet.asset.model.AssetTag filterFindByG_N(
053                    long groupId, java.lang.String name)
054                    throws com.liferay.portlet.asset.NoSuchTagException {
055                    return getFinder().filterFindByG_N(groupId, name);
056            }
057    
058            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> filterFindByG_C_N(
059                    long groupId, long classNameId, java.lang.String name, int start,
060                    int end,
061                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTag> obc) {
062                    return getFinder()
063                                       .filterFindByG_C_N(groupId, classNameId, name, start, end,
064                            obc);
065            }
066    
067            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> filterFindByG_N_P(
068                    long[] groupIds, java.lang.String name,
069                    java.lang.String[] tagProperties, int start, int end,
070                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTag> obc) {
071                    return getFinder()
072                                       .filterFindByG_N_P(groupIds, name, tagProperties, start,
073                            end, obc);
074            }
075    
076            public static com.liferay.portlet.asset.model.AssetTag findByG_N(
077                    long groupId, java.lang.String name)
078                    throws com.liferay.portlet.asset.NoSuchTagException {
079                    return getFinder().findByG_N(groupId, name);
080            }
081    
082            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findByG_C_N(
083                    long groupId, long classNameId, java.lang.String name, int start,
084                    int end,
085                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTag> obc) {
086                    return getFinder()
087                                       .findByG_C_N(groupId, classNameId, name, start, end, obc);
088            }
089    
090            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findByG_N_P(
091                    long[] groupIds, java.lang.String name,
092                    java.lang.String[] tagProperties, int start, int end,
093                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTag> obc) {
094                    return getFinder()
095                                       .findByG_N_P(groupIds, name, tagProperties, start, end, obc);
096            }
097    
098            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findByG_N_S_E(
099                    long groupId, java.lang.String name, int startPeriod, int endPeriod,
100                    int periodLength) {
101                    return getFinder()
102                                       .findByG_N_S_E(groupId, name, startPeriod, endPeriod,
103                            periodLength);
104            }
105    
106            public static AssetTagFinder getFinder() {
107                    if (_finder == null) {
108                            _finder = (AssetTagFinder)PortalBeanLocatorUtil.locate(AssetTagFinder.class.getName());
109    
110                            ReferenceRegistry.registerReference(AssetTagFinderUtil.class,
111                                    "_finder");
112                    }
113    
114                    return _finder;
115            }
116    
117            public void setFinder(AssetTagFinder finder) {
118                    _finder = finder;
119    
120                    ReferenceRegistry.registerReference(AssetTagFinderUtil.class, "_finder");
121            }
122    
123            private static AssetTagFinder _finder;
124    }