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.messageboards.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 MBCategoryFinderUtil {
028            public static int countByS_G_U_P(long groupId, long userId,
029                    long[] parentCategoryIds,
030                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBCategory> queryDefinition) {
031                    return getFinder()
032                                       .countByS_G_U_P(groupId, userId, parentCategoryIds,
033                            queryDefinition);
034            }
035    
036            public static int filterCountByS_G_U_P(long groupId, long userId,
037                    long[] parentCategoryIds,
038                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBCategory> queryDefinition) {
039                    return getFinder()
040                                       .filterCountByS_G_U_P(groupId, userId, parentCategoryIds,
041                            queryDefinition);
042            }
043    
044            public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByS_G_U_P(
045                    long groupId, long userId, long[] parentCategoryIds,
046                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBCategory> queryDefinition) {
047                    return getFinder()
048                                       .filterFindByS_G_U_P(groupId, userId, parentCategoryIds,
049                            queryDefinition);
050            }
051    
052            public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByS_G_U_P(
053                    long groupId, long userId, long[] parentCategoryIds,
054                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBCategory> queryDefinition) {
055                    return getFinder()
056                                       .findByS_G_U_P(groupId, userId, parentCategoryIds,
057                            queryDefinition);
058            }
059    
060            public static MBCategoryFinder getFinder() {
061                    if (_finder == null) {
062                            _finder = (MBCategoryFinder)PortalBeanLocatorUtil.locate(MBCategoryFinder.class.getName());
063    
064                            ReferenceRegistry.registerReference(MBCategoryFinderUtil.class,
065                                    "_finder");
066                    }
067    
068                    return _finder;
069            }
070    
071            public void setFinder(MBCategoryFinder finder) {
072                    _finder = finder;
073    
074                    ReferenceRegistry.registerReference(MBCategoryFinderUtil.class,
075                            "_finder");
076            }
077    
078            private static MBCategoryFinder _finder;
079    }