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