001    /**
002     * Copyright (c) 2000-2010 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    
019    /**
020     * @author Brian Wing Shun Chan
021     */
022    public class AssetCategoryFinderUtil {
023            public static int countByG_C_N(long groupId, long classNameId,
024                    java.lang.String name)
025                    throws com.liferay.portal.kernel.exception.SystemException {
026                    return getFinder().countByG_C_N(groupId, classNameId, name);
027            }
028    
029            public static int countByG_N_P(long groupId, java.lang.String name,
030                    java.lang.String[] categoryProperties)
031                    throws com.liferay.portal.kernel.exception.SystemException {
032                    return getFinder().countByG_N_P(groupId, name, categoryProperties);
033            }
034    
035            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByEntryId(
036                    long entryId)
037                    throws com.liferay.portal.kernel.exception.SystemException {
038                    return getFinder().findByEntryId(entryId);
039            }
040    
041            public static com.liferay.portlet.asset.model.AssetCategory findByG_N(
042                    long groupId, java.lang.String name)
043                    throws com.liferay.portal.kernel.exception.SystemException,
044                            com.liferay.portlet.asset.NoSuchCategoryException {
045                    return getFinder().findByG_N(groupId, name);
046            }
047    
048            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByC_C(
049                    long classNameId, long classPK)
050                    throws com.liferay.portal.kernel.exception.SystemException {
051                    return getFinder().findByC_C(classNameId, classPK);
052            }
053    
054            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_N_P(
055                    long groupId, java.lang.String name,
056                    java.lang.String[] categoryProperties)
057                    throws com.liferay.portal.kernel.exception.SystemException {
058                    return getFinder().findByG_N_P(groupId, name, categoryProperties);
059            }
060    
061            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_N_P(
062                    long groupId, java.lang.String name,
063                    java.lang.String[] categoryProperties, int start, int end)
064                    throws com.liferay.portal.kernel.exception.SystemException {
065                    return getFinder()
066                                       .findByG_N_P(groupId, name, categoryProperties, start, end);
067            }
068    
069            public static AssetCategoryFinder getFinder() {
070                    if (_finder == null) {
071                            _finder = (AssetCategoryFinder)PortalBeanLocatorUtil.locate(AssetCategoryFinder.class.getName());
072                    }
073    
074                    return _finder;
075            }
076    
077            public void setFinder(AssetCategoryFinder finder) {
078                    _finder = finder;
079            }
080    
081            private static AssetCategoryFinder _finder;
082    }