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 countC_ByS_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                                       .countC_ByS_G_U_P(groupId, userId, parentCategoryIds,
033                            queryDefinition);
034            }
035    
036            public static int countC_T_ByG_C(long groupId, long categoryId,
037                    com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition) {
038                    return getFinder().countC_T_ByG_C(groupId, categoryId, queryDefinition);
039            }
040    
041            public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindC_ByS_G_U_P(
042                    long groupId, long userId, long[] parentCategoryIds,
043                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBCategory> queryDefinition) {
044                    return getFinder()
045                                       .filterFindC_ByS_G_U_P(groupId, userId, parentCategoryIds,
046                            queryDefinition);
047            }
048    
049            public static java.util.List<java.lang.Object> filterFindC_T_ByG_C(
050                    long groupId, long categoryId,
051                    com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition) {
052                    return getFinder()
053                                       .filterFindC_T_ByG_C(groupId, categoryId, queryDefinition);
054            }
055    
056            public static java.util.List<java.lang.Object> findC_T_ByG_C(long groupId,
057                    long categoryId,
058                    com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition) {
059                    return getFinder().findC_T_ByG_C(groupId, categoryId, queryDefinition);
060            }
061    
062            public static int filterCountC_ByS_G_U_P(long groupId, long userId,
063                    long[] parentCategoryIds,
064                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBCategory> queryDefinition) {
065                    return getFinder()
066                                       .filterCountC_ByS_G_U_P(groupId, userId, parentCategoryIds,
067                            queryDefinition);
068            }
069    
070            public static int filterCountC_T_ByG_C(long groupId, long categoryId,
071                    com.liferay.portal.kernel.dao.orm.QueryDefinition<?> queryDefinition) {
072                    return getFinder()
073                                       .filterCountC_T_ByG_C(groupId, categoryId, queryDefinition);
074            }
075    
076            public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findC_ByS_G_U_P(
077                    long groupId, long userId, long[] parentCategoryIds,
078                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBCategory> queryDefinition) {
079                    return getFinder()
080                                       .findC_ByS_G_U_P(groupId, userId, parentCategoryIds,
081                            queryDefinition);
082            }
083    
084            public static MBCategoryFinder getFinder() {
085                    if (_finder == null) {
086                            _finder = (MBCategoryFinder)PortalBeanLocatorUtil.locate(MBCategoryFinder.class.getName());
087    
088                            ReferenceRegistry.registerReference(MBCategoryFinderUtil.class,
089                                    "_finder");
090                    }
091    
092                    return _finder;
093            }
094    
095            public void setFinder(MBCategoryFinder finder) {
096                    _finder = finder;
097    
098                    ReferenceRegistry.registerReference(MBCategoryFinderUtil.class,
099                            "_finder");
100            }
101    
102            private static MBCategoryFinder _finder;
103    }