001    /**
002     * Copyright (c) 2000-2012 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 com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.util.ReferenceRegistry;
019    
020    /**
021     * @author Brian Wing Shun Chan
022     */
023    public class AssetTagFinderUtil {
024            public static int countByG_C_N(long groupId, long classNameId,
025                    java.lang.String name)
026                    throws com.liferay.portal.kernel.exception.SystemException {
027                    return getFinder().countByG_C_N(groupId, classNameId, name);
028            }
029    
030            public static int countByG_N_P(long groupId, java.lang.String name,
031                    java.lang.String[] tagProperties)
032                    throws com.liferay.portal.kernel.exception.SystemException {
033                    return getFinder().countByG_N_P(groupId, name, tagProperties);
034            }
035    
036            public static int filterCountByG_N(long groupId, java.lang.String name)
037                    throws com.liferay.portal.kernel.exception.SystemException {
038                    return getFinder().filterCountByG_N(groupId, name);
039            }
040    
041            public static int filterCountByG_C_N(long groupId, long classNameId,
042                    java.lang.String name)
043                    throws com.liferay.portal.kernel.exception.SystemException {
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                    throws com.liferay.portal.kernel.exception.SystemException {
050                    return getFinder().filterCountByG_N_P(groupId, name, tagProperties);
051            }
052    
053            public static com.liferay.portlet.asset.model.AssetTag filterFindByG_N(
054                    long groupId, java.lang.String name)
055                    throws com.liferay.portal.kernel.exception.SystemException,
056                            com.liferay.portlet.asset.NoSuchTagException {
057                    return getFinder().filterFindByG_N(groupId, name);
058            }
059    
060            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> filterFindByG_C_N(
061                    long groupId, long classNameId, java.lang.String name, int start,
062                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
063                    throws com.liferay.portal.kernel.exception.SystemException {
064                    return getFinder()
065                                       .filterFindByG_C_N(groupId, classNameId, name, start, end,
066                            obc);
067            }
068    
069            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> filterFindByG_N_P(
070                    long[] groupIds, java.lang.String name,
071                    java.lang.String[] tagProperties, int start, int end,
072                    com.liferay.portal.kernel.util.OrderByComparator obc)
073                    throws com.liferay.portal.kernel.exception.SystemException {
074                    return getFinder()
075                                       .filterFindByG_N_P(groupIds, name, tagProperties, start,
076                            end, obc);
077            }
078    
079            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findByEntryId(
080                    long entryId)
081                    throws com.liferay.portal.kernel.exception.SystemException {
082                    return getFinder().findByEntryId(entryId);
083            }
084    
085            public static com.liferay.portlet.asset.model.AssetTag findByG_N(
086                    long groupId, java.lang.String name)
087                    throws com.liferay.portal.kernel.exception.SystemException,
088                            com.liferay.portlet.asset.NoSuchTagException {
089                    return getFinder().findByG_N(groupId, name);
090            }
091    
092            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findByC_C(
093                    long classNameId, long classPK)
094                    throws com.liferay.portal.kernel.exception.SystemException {
095                    return getFinder().findByC_C(classNameId, classPK);
096            }
097    
098            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findByG_C_N(
099                    long groupId, long classNameId, java.lang.String name, int start,
100                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
101                    throws com.liferay.portal.kernel.exception.SystemException {
102                    return getFinder()
103                                       .findByG_C_N(groupId, classNameId, name, start, end, obc);
104            }
105    
106            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findByG_N_P(
107                    long[] groupIds, java.lang.String name,
108                    java.lang.String[] tagProperties, int start, int end,
109                    com.liferay.portal.kernel.util.OrderByComparator obc)
110                    throws com.liferay.portal.kernel.exception.SystemException {
111                    return getFinder()
112                                       .findByG_N_P(groupIds, name, tagProperties, start, end, obc);
113            }
114    
115            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findByG_N_S_E(
116                    long groupId, java.lang.String name, int startPeriod, int endPeriod,
117                    int periodLength)
118                    throws com.liferay.portal.kernel.exception.SystemException {
119                    return getFinder()
120                                       .findByG_N_S_E(groupId, name, startPeriod, endPeriod,
121                            periodLength);
122            }
123    
124            public static AssetTagFinder getFinder() {
125                    if (_finder == null) {
126                            _finder = (AssetTagFinder)PortalBeanLocatorUtil.locate(AssetTagFinder.class.getName());
127    
128                            ReferenceRegistry.registerReference(AssetTagFinderUtil.class,
129                                    "_finder");
130                    }
131    
132                    return _finder;
133            }
134    
135            public void setFinder(AssetTagFinder finder) {
136                    _finder = finder;
137    
138                    ReferenceRegistry.registerReference(AssetTagFinderUtil.class, "_finder");
139            }
140    
141            private static AssetTagFinder _finder;
142    }