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 groupId, java.lang.String name, java.lang.String[] tagProperties,
071                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
072                    throws com.liferay.portal.kernel.exception.SystemException {
073                    return getFinder()
074                                       .filterFindByG_N_P(groupId, name, tagProperties, start, end,
075                            obc);
076            }
077    
078            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findByEntryId(
079                    long entryId)
080                    throws com.liferay.portal.kernel.exception.SystemException {
081                    return getFinder().findByEntryId(entryId);
082            }
083    
084            public static com.liferay.portlet.asset.model.AssetTag findByG_N(
085                    long groupId, java.lang.String name)
086                    throws com.liferay.portal.kernel.exception.SystemException,
087                            com.liferay.portlet.asset.NoSuchTagException {
088                    return getFinder().findByG_N(groupId, name);
089            }
090    
091            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findByC_C(
092                    long classNameId, long classPK)
093                    throws com.liferay.portal.kernel.exception.SystemException {
094                    return getFinder().findByC_C(classNameId, classPK);
095            }
096    
097            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findByG_C_N(
098                    long groupId, long classNameId, java.lang.String name, int start,
099                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
100                    throws com.liferay.portal.kernel.exception.SystemException {
101                    return getFinder()
102                                       .findByG_C_N(groupId, classNameId, name, start, end, obc);
103            }
104    
105            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findByG_N_P(
106                    long groupId, java.lang.String name, java.lang.String[] tagProperties,
107                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
108                    throws com.liferay.portal.kernel.exception.SystemException {
109                    return getFinder()
110                                       .findByG_N_P(groupId, name, tagProperties, start, end, obc);
111            }
112    
113            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findByG_N_S_E(
114                    long groupId, java.lang.String name, int startPeriod, int endPeriod,
115                    int periodLength)
116                    throws com.liferay.portal.kernel.exception.SystemException {
117                    return getFinder()
118                                       .findByG_N_S_E(groupId, name, startPeriod, endPeriod,
119                            periodLength);
120            }
121    
122            public static AssetTagFinder getFinder() {
123                    if (_finder == null) {
124                            _finder = (AssetTagFinder)PortalBeanLocatorUtil.locate(AssetTagFinder.class.getName());
125    
126                            ReferenceRegistry.registerReference(AssetTagFinderUtil.class,
127                                    "_finder");
128                    }
129    
130                    return _finder;
131            }
132    
133            public void setFinder(AssetTagFinder finder) {
134                    _finder = finder;
135    
136                    ReferenceRegistry.registerReference(AssetTagFinderUtil.class, "_finder");
137            }
138    
139            private static AssetTagFinder _finder;
140    }