001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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                    throws com.liferay.portal.kernel.exception.SystemException {
116                    return getFinder().findByG_N_S_E(groupId, name, startPeriod, endPeriod);
117            }
118    
119            public static AssetTagFinder getFinder() {
120                    if (_finder == null) {
121                            _finder = (AssetTagFinder)PortalBeanLocatorUtil.locate(AssetTagFinder.class.getName());
122    
123                            ReferenceRegistry.registerReference(AssetTagFinderUtil.class,
124                                    "_finder");
125                    }
126    
127                    return _finder;
128            }
129    
130            public void setFinder(AssetTagFinder finder) {
131                    _finder = finder;
132    
133                    ReferenceRegistry.registerReference(AssetTagFinderUtil.class, "_finder");
134            }
135    
136            private static AssetTagFinder _finder;
137    }