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