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 MBThreadFinderUtil {
028            public static int countByG_U(long groupId, long userId,
029                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition) {
030                    return getFinder().countByG_U(groupId, userId, queryDefinition);
031            }
032    
033            public static int countByG_C(long groupId, long categoryId,
034                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition) {
035                    return getFinder().countByG_C(groupId, categoryId, queryDefinition);
036            }
037    
038            public static int countByG_U_C(long groupId, long userId,
039                    long[] categoryIds,
040                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition) {
041                    return getFinder()
042                                       .countByG_U_C(groupId, userId, categoryIds, queryDefinition);
043            }
044    
045            public static int countByG_U_LPD(long groupId, long userId,
046                    java.util.Date lastPostDate,
047                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition) {
048                    return getFinder()
049                                       .countByG_U_LPD(groupId, userId, lastPostDate,
050                            queryDefinition);
051            }
052    
053            public static int countByG_U_A(long groupId, long userId,
054                    boolean anonymous,
055                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition) {
056                    return getFinder()
057                                       .countByG_U_A(groupId, userId, anonymous, queryDefinition);
058            }
059    
060            public static int countByS_G_U(long groupId, long userId,
061                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition) {
062                    return getFinder().countByS_G_U(groupId, userId, queryDefinition);
063            }
064    
065            public static int countByG_U_C_A(long groupId, long userId,
066                    long[] categoryIds, boolean anonymous,
067                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition) {
068                    return getFinder()
069                                       .countByG_U_C_A(groupId, userId, categoryIds, anonymous,
070                            queryDefinition);
071            }
072    
073            public static int countByS_G_U_C(long groupId, long userId,
074                    long[] categoryIds,
075                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition) {
076                    return getFinder()
077                                       .countByS_G_U_C(groupId, userId, categoryIds, queryDefinition);
078            }
079    
080            public static int filterCountByG_C(long groupId, long categoryId) {
081                    return getFinder().filterCountByG_C(groupId, categoryId);
082            }
083    
084            public static int filterCountByG_C(long groupId, long categoryId,
085                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition) {
086                    return getFinder().filterCountByG_C(groupId, categoryId, queryDefinition);
087            }
088    
089            public static int filterCountByS_G_U_C(long groupId, long userId,
090                    long[] categoryIds,
091                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition) {
092                    return getFinder()
093                                       .filterCountByS_G_U_C(groupId, userId, categoryIds,
094                            queryDefinition);
095            }
096    
097            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> filterFindByG_C(
098                    long groupId, long categoryId, int start, int end) {
099                    return getFinder().filterFindByG_C(groupId, categoryId, start, end);
100            }
101    
102            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> filterFindByG_C(
103                    long groupId, long categoryId,
104                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition) {
105                    return getFinder().filterFindByG_C(groupId, categoryId, queryDefinition);
106            }
107    
108            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> filterFindByS_G_U_C(
109                    long groupId, long userId, long[] categoryIds,
110                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition) {
111                    return getFinder()
112                                       .filterFindByS_G_U_C(groupId, userId, categoryIds,
113                            queryDefinition);
114            }
115    
116            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByNoAssets() {
117                    return getFinder().findByNoAssets();
118            }
119    
120            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_U(
121                    long groupId, long userId,
122                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition) {
123                    return getFinder().findByG_U(groupId, userId, queryDefinition);
124            }
125    
126            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C(
127                    long groupId, long categoryId,
128                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition) {
129                    return getFinder().findByG_C(groupId, categoryId, queryDefinition);
130            }
131    
132            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_U_C(
133                    long groupId, long userId, long[] categoryIds,
134                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition) {
135                    return getFinder()
136                                       .findByG_U_C(groupId, userId, categoryIds, queryDefinition);
137            }
138    
139            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_U_LPD(
140                    long groupId, long userId, java.util.Date lastPostDate,
141                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition) {
142                    return getFinder()
143                                       .findByG_U_LPD(groupId, userId, lastPostDate, queryDefinition);
144            }
145    
146            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_U_A(
147                    long groupId, long userId, boolean anonymous,
148                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition) {
149                    return getFinder()
150                                       .findByG_U_A(groupId, userId, anonymous, queryDefinition);
151            }
152    
153            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByS_G_U(
154                    long groupId, long userId,
155                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition) {
156                    return getFinder().findByS_G_U(groupId, userId, queryDefinition);
157            }
158    
159            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_U_C_A(
160                    long groupId, long userId, long[] categoryIds, boolean anonymous,
161                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition) {
162                    return getFinder()
163                                       .findByG_U_C_A(groupId, userId, categoryIds, anonymous,
164                            queryDefinition);
165            }
166    
167            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByS_G_U_C(
168                    long groupId, long userId, long[] categoryIds,
169                    com.liferay.portal.kernel.dao.orm.QueryDefinition<com.liferay.portlet.messageboards.model.MBThread> queryDefinition) {
170                    return getFinder()
171                                       .findByS_G_U_C(groupId, userId, categoryIds, queryDefinition);
172            }
173    
174            public static MBThreadFinder getFinder() {
175                    if (_finder == null) {
176                            _finder = (MBThreadFinder)PortalBeanLocatorUtil.locate(MBThreadFinder.class.getName());
177    
178                            ReferenceRegistry.registerReference(MBThreadFinderUtil.class,
179                                    "_finder");
180                    }
181    
182                    return _finder;
183            }
184    
185            public void setFinder(MBThreadFinder finder) {
186                    _finder = finder;
187    
188                    ReferenceRegistry.registerReference(MBThreadFinderUtil.class, "_finder");
189            }
190    
191            private static MBThreadFinder _finder;
192    }