001    /**
002     * Copyright (c) 2000-2010 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.dao.orm.DynamicQuery;
019    import com.liferay.portal.kernel.exception.SystemException;
020    import com.liferay.portal.kernel.util.OrderByComparator;
021    import com.liferay.portal.service.ServiceContext;
022    
023    import com.liferay.portlet.messageboards.model.MBThread;
024    
025    import java.util.List;
026    
027    /**
028     * @author    Brian Wing Shun Chan
029     * @see       MBThreadPersistence
030     * @see       MBThreadPersistenceImpl
031     * @generated
032     */
033    public class MBThreadUtil {
034            /**
035             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
036             */
037            public static void clearCache() {
038                    getPersistence().clearCache();
039            }
040    
041            /**
042             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
043             */
044            public static void clearCache(MBThread mbThread) {
045                    getPersistence().clearCache(mbThread);
046            }
047    
048            /**
049             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
050             */
051            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
052                    throws SystemException {
053                    return getPersistence().countWithDynamicQuery(dynamicQuery);
054            }
055    
056            /**
057             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
058             */
059            public static List<MBThread> findWithDynamicQuery(DynamicQuery dynamicQuery)
060                    throws SystemException {
061                    return getPersistence().findWithDynamicQuery(dynamicQuery);
062            }
063    
064            /**
065             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
066             */
067            public static List<MBThread> findWithDynamicQuery(
068                    DynamicQuery dynamicQuery, int start, int end)
069                    throws SystemException {
070                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
071            }
072    
073            /**
074             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
075             */
076            public static List<MBThread> findWithDynamicQuery(
077                    DynamicQuery dynamicQuery, int start, int end,
078                    OrderByComparator orderByComparator) throws SystemException {
079                    return getPersistence()
080                                       .findWithDynamicQuery(dynamicQuery, start, end,
081                            orderByComparator);
082            }
083    
084            /**
085             * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
086             */
087            public static MBThread remove(MBThread mbThread) throws SystemException {
088                    return getPersistence().remove(mbThread);
089            }
090    
091            /**
092             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
093             */
094            public static MBThread update(MBThread mbThread, boolean merge)
095                    throws SystemException {
096                    return getPersistence().update(mbThread, merge);
097            }
098    
099            /**
100             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
101             */
102            public static MBThread update(MBThread mbThread, boolean merge,
103                    ServiceContext serviceContext) throws SystemException {
104                    return getPersistence().update(mbThread, merge, serviceContext);
105            }
106    
107            public static void cacheResult(
108                    com.liferay.portlet.messageboards.model.MBThread mbThread) {
109                    getPersistence().cacheResult(mbThread);
110            }
111    
112            public static void cacheResult(
113                    java.util.List<com.liferay.portlet.messageboards.model.MBThread> mbThreads) {
114                    getPersistence().cacheResult(mbThreads);
115            }
116    
117            public static com.liferay.portlet.messageboards.model.MBThread create(
118                    long threadId) {
119                    return getPersistence().create(threadId);
120            }
121    
122            public static com.liferay.portlet.messageboards.model.MBThread remove(
123                    long threadId)
124                    throws com.liferay.portal.kernel.exception.SystemException,
125                            com.liferay.portlet.messageboards.NoSuchThreadException {
126                    return getPersistence().remove(threadId);
127            }
128    
129            public static com.liferay.portlet.messageboards.model.MBThread updateImpl(
130                    com.liferay.portlet.messageboards.model.MBThread mbThread, boolean merge)
131                    throws com.liferay.portal.kernel.exception.SystemException {
132                    return getPersistence().updateImpl(mbThread, merge);
133            }
134    
135            public static com.liferay.portlet.messageboards.model.MBThread findByPrimaryKey(
136                    long threadId)
137                    throws com.liferay.portal.kernel.exception.SystemException,
138                            com.liferay.portlet.messageboards.NoSuchThreadException {
139                    return getPersistence().findByPrimaryKey(threadId);
140            }
141    
142            public static com.liferay.portlet.messageboards.model.MBThread fetchByPrimaryKey(
143                    long threadId)
144                    throws com.liferay.portal.kernel.exception.SystemException {
145                    return getPersistence().fetchByPrimaryKey(threadId);
146            }
147    
148            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByGroupId(
149                    long groupId)
150                    throws com.liferay.portal.kernel.exception.SystemException {
151                    return getPersistence().findByGroupId(groupId);
152            }
153    
154            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByGroupId(
155                    long groupId, int start, int end)
156                    throws com.liferay.portal.kernel.exception.SystemException {
157                    return getPersistence().findByGroupId(groupId, start, end);
158            }
159    
160            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByGroupId(
161                    long groupId, int start, int end,
162                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
163                    throws com.liferay.portal.kernel.exception.SystemException {
164                    return getPersistence()
165                                       .findByGroupId(groupId, start, end, orderByComparator);
166            }
167    
168            public static com.liferay.portlet.messageboards.model.MBThread findByGroupId_First(
169                    long groupId,
170                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
171                    throws com.liferay.portal.kernel.exception.SystemException,
172                            com.liferay.portlet.messageboards.NoSuchThreadException {
173                    return getPersistence().findByGroupId_First(groupId, orderByComparator);
174            }
175    
176            public static com.liferay.portlet.messageboards.model.MBThread findByGroupId_Last(
177                    long groupId,
178                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
179                    throws com.liferay.portal.kernel.exception.SystemException,
180                            com.liferay.portlet.messageboards.NoSuchThreadException {
181                    return getPersistence().findByGroupId_Last(groupId, orderByComparator);
182            }
183    
184            public static com.liferay.portlet.messageboards.model.MBThread[] findByGroupId_PrevAndNext(
185                    long threadId, long groupId,
186                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
187                    throws com.liferay.portal.kernel.exception.SystemException,
188                            com.liferay.portlet.messageboards.NoSuchThreadException {
189                    return getPersistence()
190                                       .findByGroupId_PrevAndNext(threadId, groupId,
191                            orderByComparator);
192            }
193    
194            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C(
195                    long groupId, long categoryId)
196                    throws com.liferay.portal.kernel.exception.SystemException {
197                    return getPersistence().findByG_C(groupId, categoryId);
198            }
199    
200            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C(
201                    long groupId, long categoryId, int start, int end)
202                    throws com.liferay.portal.kernel.exception.SystemException {
203                    return getPersistence().findByG_C(groupId, categoryId, start, end);
204            }
205    
206            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C(
207                    long groupId, long categoryId, int start, int end,
208                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
209                    throws com.liferay.portal.kernel.exception.SystemException {
210                    return getPersistence()
211                                       .findByG_C(groupId, categoryId, start, end, orderByComparator);
212            }
213    
214            public static com.liferay.portlet.messageboards.model.MBThread findByG_C_First(
215                    long groupId, long categoryId,
216                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
217                    throws com.liferay.portal.kernel.exception.SystemException,
218                            com.liferay.portlet.messageboards.NoSuchThreadException {
219                    return getPersistence()
220                                       .findByG_C_First(groupId, categoryId, orderByComparator);
221            }
222    
223            public static com.liferay.portlet.messageboards.model.MBThread findByG_C_Last(
224                    long groupId, long categoryId,
225                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
226                    throws com.liferay.portal.kernel.exception.SystemException,
227                            com.liferay.portlet.messageboards.NoSuchThreadException {
228                    return getPersistence()
229                                       .findByG_C_Last(groupId, categoryId, orderByComparator);
230            }
231    
232            public static com.liferay.portlet.messageboards.model.MBThread[] findByG_C_PrevAndNext(
233                    long threadId, long groupId, long categoryId,
234                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
235                    throws com.liferay.portal.kernel.exception.SystemException,
236                            com.liferay.portlet.messageboards.NoSuchThreadException {
237                    return getPersistence()
238                                       .findByG_C_PrevAndNext(threadId, groupId, categoryId,
239                            orderByComparator);
240            }
241    
242            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C(
243                    long groupId, long[] categoryIds)
244                    throws com.liferay.portal.kernel.exception.SystemException {
245                    return getPersistence().findByG_C(groupId, categoryIds);
246            }
247    
248            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C(
249                    long groupId, long[] categoryIds, int start, int end)
250                    throws com.liferay.portal.kernel.exception.SystemException {
251                    return getPersistence().findByG_C(groupId, categoryIds, start, end);
252            }
253    
254            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C(
255                    long groupId, long[] categoryIds, int start, int end,
256                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
257                    throws com.liferay.portal.kernel.exception.SystemException {
258                    return getPersistence()
259                                       .findByG_C(groupId, categoryIds, start, end,
260                            orderByComparator);
261            }
262    
263            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_NotC(
264                    long groupId, long categoryId)
265                    throws com.liferay.portal.kernel.exception.SystemException {
266                    return getPersistence().findByG_NotC(groupId, categoryId);
267            }
268    
269            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_NotC(
270                    long groupId, long categoryId, int start, int end)
271                    throws com.liferay.portal.kernel.exception.SystemException {
272                    return getPersistence().findByG_NotC(groupId, categoryId, start, end);
273            }
274    
275            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_NotC(
276                    long groupId, long categoryId, int start, int end,
277                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
278                    throws com.liferay.portal.kernel.exception.SystemException {
279                    return getPersistence()
280                                       .findByG_NotC(groupId, categoryId, start, end,
281                            orderByComparator);
282            }
283    
284            public static com.liferay.portlet.messageboards.model.MBThread findByG_NotC_First(
285                    long groupId, long categoryId,
286                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
287                    throws com.liferay.portal.kernel.exception.SystemException,
288                            com.liferay.portlet.messageboards.NoSuchThreadException {
289                    return getPersistence()
290                                       .findByG_NotC_First(groupId, categoryId, orderByComparator);
291            }
292    
293            public static com.liferay.portlet.messageboards.model.MBThread findByG_NotC_Last(
294                    long groupId, long categoryId,
295                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
296                    throws com.liferay.portal.kernel.exception.SystemException,
297                            com.liferay.portlet.messageboards.NoSuchThreadException {
298                    return getPersistence()
299                                       .findByG_NotC_Last(groupId, categoryId, orderByComparator);
300            }
301    
302            public static com.liferay.portlet.messageboards.model.MBThread[] findByG_NotC_PrevAndNext(
303                    long threadId, long groupId, long categoryId,
304                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
305                    throws com.liferay.portal.kernel.exception.SystemException,
306                            com.liferay.portlet.messageboards.NoSuchThreadException {
307                    return getPersistence()
308                                       .findByG_NotC_PrevAndNext(threadId, groupId, categoryId,
309                            orderByComparator);
310            }
311    
312            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_S(
313                    long groupId, int status)
314                    throws com.liferay.portal.kernel.exception.SystemException {
315                    return getPersistence().findByG_S(groupId, status);
316            }
317    
318            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_S(
319                    long groupId, int status, int start, int end)
320                    throws com.liferay.portal.kernel.exception.SystemException {
321                    return getPersistence().findByG_S(groupId, status, start, end);
322            }
323    
324            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_S(
325                    long groupId, int status, int start, int end,
326                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
327                    throws com.liferay.portal.kernel.exception.SystemException {
328                    return getPersistence()
329                                       .findByG_S(groupId, status, start, end, orderByComparator);
330            }
331    
332            public static com.liferay.portlet.messageboards.model.MBThread findByG_S_First(
333                    long groupId, int status,
334                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
335                    throws com.liferay.portal.kernel.exception.SystemException,
336                            com.liferay.portlet.messageboards.NoSuchThreadException {
337                    return getPersistence()
338                                       .findByG_S_First(groupId, status, orderByComparator);
339            }
340    
341            public static com.liferay.portlet.messageboards.model.MBThread findByG_S_Last(
342                    long groupId, int status,
343                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
344                    throws com.liferay.portal.kernel.exception.SystemException,
345                            com.liferay.portlet.messageboards.NoSuchThreadException {
346                    return getPersistence()
347                                       .findByG_S_Last(groupId, status, orderByComparator);
348            }
349    
350            public static com.liferay.portlet.messageboards.model.MBThread[] findByG_S_PrevAndNext(
351                    long threadId, long groupId, int status,
352                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
353                    throws com.liferay.portal.kernel.exception.SystemException,
354                            com.liferay.portlet.messageboards.NoSuchThreadException {
355                    return getPersistence()
356                                       .findByG_S_PrevAndNext(threadId, groupId, status,
357                            orderByComparator);
358            }
359    
360            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_P(
361                    long categoryId, double priority)
362                    throws com.liferay.portal.kernel.exception.SystemException {
363                    return getPersistence().findByC_P(categoryId, priority);
364            }
365    
366            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_P(
367                    long categoryId, double priority, int start, int end)
368                    throws com.liferay.portal.kernel.exception.SystemException {
369                    return getPersistence().findByC_P(categoryId, priority, start, end);
370            }
371    
372            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByC_P(
373                    long categoryId, double priority, int start, int end,
374                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
375                    throws com.liferay.portal.kernel.exception.SystemException {
376                    return getPersistence()
377                                       .findByC_P(categoryId, priority, start, end,
378                            orderByComparator);
379            }
380    
381            public static com.liferay.portlet.messageboards.model.MBThread findByC_P_First(
382                    long categoryId, double priority,
383                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
384                    throws com.liferay.portal.kernel.exception.SystemException,
385                            com.liferay.portlet.messageboards.NoSuchThreadException {
386                    return getPersistence()
387                                       .findByC_P_First(categoryId, priority, orderByComparator);
388            }
389    
390            public static com.liferay.portlet.messageboards.model.MBThread findByC_P_Last(
391                    long categoryId, double priority,
392                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
393                    throws com.liferay.portal.kernel.exception.SystemException,
394                            com.liferay.portlet.messageboards.NoSuchThreadException {
395                    return getPersistence()
396                                       .findByC_P_Last(categoryId, priority, orderByComparator);
397            }
398    
399            public static com.liferay.portlet.messageboards.model.MBThread[] findByC_P_PrevAndNext(
400                    long threadId, long categoryId, double priority,
401                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
402                    throws com.liferay.portal.kernel.exception.SystemException,
403                            com.liferay.portlet.messageboards.NoSuchThreadException {
404                    return getPersistence()
405                                       .findByC_P_PrevAndNext(threadId, categoryId, priority,
406                            orderByComparator);
407            }
408    
409            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_L(
410                    long groupId, long categoryId, java.util.Date lastPostDate)
411                    throws com.liferay.portal.kernel.exception.SystemException {
412                    return getPersistence().findByG_C_L(groupId, categoryId, lastPostDate);
413            }
414    
415            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_L(
416                    long groupId, long categoryId, java.util.Date lastPostDate, int start,
417                    int end) throws com.liferay.portal.kernel.exception.SystemException {
418                    return getPersistence()
419                                       .findByG_C_L(groupId, categoryId, lastPostDate, start, end);
420            }
421    
422            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_L(
423                    long groupId, long categoryId, java.util.Date lastPostDate, int start,
424                    int end,
425                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
426                    throws com.liferay.portal.kernel.exception.SystemException {
427                    return getPersistence()
428                                       .findByG_C_L(groupId, categoryId, lastPostDate, start, end,
429                            orderByComparator);
430            }
431    
432            public static com.liferay.portlet.messageboards.model.MBThread findByG_C_L_First(
433                    long groupId, long categoryId, java.util.Date lastPostDate,
434                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
435                    throws com.liferay.portal.kernel.exception.SystemException,
436                            com.liferay.portlet.messageboards.NoSuchThreadException {
437                    return getPersistence()
438                                       .findByG_C_L_First(groupId, categoryId, lastPostDate,
439                            orderByComparator);
440            }
441    
442            public static com.liferay.portlet.messageboards.model.MBThread findByG_C_L_Last(
443                    long groupId, long categoryId, java.util.Date lastPostDate,
444                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
445                    throws com.liferay.portal.kernel.exception.SystemException,
446                            com.liferay.portlet.messageboards.NoSuchThreadException {
447                    return getPersistence()
448                                       .findByG_C_L_Last(groupId, categoryId, lastPostDate,
449                            orderByComparator);
450            }
451    
452            public static com.liferay.portlet.messageboards.model.MBThread[] findByG_C_L_PrevAndNext(
453                    long threadId, long groupId, long categoryId,
454                    java.util.Date lastPostDate,
455                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
456                    throws com.liferay.portal.kernel.exception.SystemException,
457                            com.liferay.portlet.messageboards.NoSuchThreadException {
458                    return getPersistence()
459                                       .findByG_C_L_PrevAndNext(threadId, groupId, categoryId,
460                            lastPostDate, orderByComparator);
461            }
462    
463            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_S(
464                    long groupId, long categoryId, int status)
465                    throws com.liferay.portal.kernel.exception.SystemException {
466                    return getPersistence().findByG_C_S(groupId, categoryId, status);
467            }
468    
469            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_S(
470                    long groupId, long categoryId, int status, int start, int end)
471                    throws com.liferay.portal.kernel.exception.SystemException {
472                    return getPersistence()
473                                       .findByG_C_S(groupId, categoryId, status, start, end);
474            }
475    
476            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_S(
477                    long groupId, long categoryId, int status, int start, int end,
478                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
479                    throws com.liferay.portal.kernel.exception.SystemException {
480                    return getPersistence()
481                                       .findByG_C_S(groupId, categoryId, status, start, end,
482                            orderByComparator);
483            }
484    
485            public static com.liferay.portlet.messageboards.model.MBThread findByG_C_S_First(
486                    long groupId, long categoryId, int status,
487                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
488                    throws com.liferay.portal.kernel.exception.SystemException,
489                            com.liferay.portlet.messageboards.NoSuchThreadException {
490                    return getPersistence()
491                                       .findByG_C_S_First(groupId, categoryId, status,
492                            orderByComparator);
493            }
494    
495            public static com.liferay.portlet.messageboards.model.MBThread findByG_C_S_Last(
496                    long groupId, long categoryId, int status,
497                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
498                    throws com.liferay.portal.kernel.exception.SystemException,
499                            com.liferay.portlet.messageboards.NoSuchThreadException {
500                    return getPersistence()
501                                       .findByG_C_S_Last(groupId, categoryId, status,
502                            orderByComparator);
503            }
504    
505            public static com.liferay.portlet.messageboards.model.MBThread[] findByG_C_S_PrevAndNext(
506                    long threadId, long groupId, long categoryId, int status,
507                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
508                    throws com.liferay.portal.kernel.exception.SystemException,
509                            com.liferay.portlet.messageboards.NoSuchThreadException {
510                    return getPersistence()
511                                       .findByG_C_S_PrevAndNext(threadId, groupId, categoryId,
512                            status, orderByComparator);
513            }
514    
515            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_S(
516                    long groupId, long[] categoryIds, int status)
517                    throws com.liferay.portal.kernel.exception.SystemException {
518                    return getPersistence().findByG_C_S(groupId, categoryIds, status);
519            }
520    
521            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_S(
522                    long groupId, long[] categoryIds, int status, int start, int end)
523                    throws com.liferay.portal.kernel.exception.SystemException {
524                    return getPersistence()
525                                       .findByG_C_S(groupId, categoryIds, status, start, end);
526            }
527    
528            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_S(
529                    long groupId, long[] categoryIds, int status, int start, int end,
530                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
531                    throws com.liferay.portal.kernel.exception.SystemException {
532                    return getPersistence()
533                                       .findByG_C_S(groupId, categoryIds, status, start, end,
534                            orderByComparator);
535            }
536    
537            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_NotC_S(
538                    long groupId, long categoryId, int status)
539                    throws com.liferay.portal.kernel.exception.SystemException {
540                    return getPersistence().findByG_NotC_S(groupId, categoryId, status);
541            }
542    
543            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_NotC_S(
544                    long groupId, long categoryId, int status, int start, int end)
545                    throws com.liferay.portal.kernel.exception.SystemException {
546                    return getPersistence()
547                                       .findByG_NotC_S(groupId, categoryId, status, start, end);
548            }
549    
550            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_NotC_S(
551                    long groupId, long categoryId, int status, int start, int end,
552                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
553                    throws com.liferay.portal.kernel.exception.SystemException {
554                    return getPersistence()
555                                       .findByG_NotC_S(groupId, categoryId, status, start, end,
556                            orderByComparator);
557            }
558    
559            public static com.liferay.portlet.messageboards.model.MBThread findByG_NotC_S_First(
560                    long groupId, long categoryId, int status,
561                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
562                    throws com.liferay.portal.kernel.exception.SystemException,
563                            com.liferay.portlet.messageboards.NoSuchThreadException {
564                    return getPersistence()
565                                       .findByG_NotC_S_First(groupId, categoryId, status,
566                            orderByComparator);
567            }
568    
569            public static com.liferay.portlet.messageboards.model.MBThread findByG_NotC_S_Last(
570                    long groupId, long categoryId, int status,
571                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
572                    throws com.liferay.portal.kernel.exception.SystemException,
573                            com.liferay.portlet.messageboards.NoSuchThreadException {
574                    return getPersistence()
575                                       .findByG_NotC_S_Last(groupId, categoryId, status,
576                            orderByComparator);
577            }
578    
579            public static com.liferay.portlet.messageboards.model.MBThread[] findByG_NotC_S_PrevAndNext(
580                    long threadId, long groupId, long categoryId, int status,
581                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
582                    throws com.liferay.portal.kernel.exception.SystemException,
583                            com.liferay.portlet.messageboards.NoSuchThreadException {
584                    return getPersistence()
585                                       .findByG_NotC_S_PrevAndNext(threadId, groupId, categoryId,
586                            status, orderByComparator);
587            }
588    
589            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findAll()
590                    throws com.liferay.portal.kernel.exception.SystemException {
591                    return getPersistence().findAll();
592            }
593    
594            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findAll(
595                    int start, int end)
596                    throws com.liferay.portal.kernel.exception.SystemException {
597                    return getPersistence().findAll(start, end);
598            }
599    
600            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findAll(
601                    int start, int end,
602                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
603                    throws com.liferay.portal.kernel.exception.SystemException {
604                    return getPersistence().findAll(start, end, orderByComparator);
605            }
606    
607            public static void removeByGroupId(long groupId)
608                    throws com.liferay.portal.kernel.exception.SystemException {
609                    getPersistence().removeByGroupId(groupId);
610            }
611    
612            public static void removeByG_C(long groupId, long categoryId)
613                    throws com.liferay.portal.kernel.exception.SystemException {
614                    getPersistence().removeByG_C(groupId, categoryId);
615            }
616    
617            public static void removeByG_NotC(long groupId, long categoryId)
618                    throws com.liferay.portal.kernel.exception.SystemException {
619                    getPersistence().removeByG_NotC(groupId, categoryId);
620            }
621    
622            public static void removeByG_S(long groupId, int status)
623                    throws com.liferay.portal.kernel.exception.SystemException {
624                    getPersistence().removeByG_S(groupId, status);
625            }
626    
627            public static void removeByC_P(long categoryId, double priority)
628                    throws com.liferay.portal.kernel.exception.SystemException {
629                    getPersistence().removeByC_P(categoryId, priority);
630            }
631    
632            public static void removeByG_C_L(long groupId, long categoryId,
633                    java.util.Date lastPostDate)
634                    throws com.liferay.portal.kernel.exception.SystemException {
635                    getPersistence().removeByG_C_L(groupId, categoryId, lastPostDate);
636            }
637    
638            public static void removeByG_C_S(long groupId, long categoryId, int status)
639                    throws com.liferay.portal.kernel.exception.SystemException {
640                    getPersistence().removeByG_C_S(groupId, categoryId, status);
641            }
642    
643            public static void removeByG_NotC_S(long groupId, long categoryId,
644                    int status) throws com.liferay.portal.kernel.exception.SystemException {
645                    getPersistence().removeByG_NotC_S(groupId, categoryId, status);
646            }
647    
648            public static void removeAll()
649                    throws com.liferay.portal.kernel.exception.SystemException {
650                    getPersistence().removeAll();
651            }
652    
653            public static int countByGroupId(long groupId)
654                    throws com.liferay.portal.kernel.exception.SystemException {
655                    return getPersistence().countByGroupId(groupId);
656            }
657    
658            public static int countByG_C(long groupId, long categoryId)
659                    throws com.liferay.portal.kernel.exception.SystemException {
660                    return getPersistence().countByG_C(groupId, categoryId);
661            }
662    
663            public static int countByG_C(long groupId, long[] categoryIds)
664                    throws com.liferay.portal.kernel.exception.SystemException {
665                    return getPersistence().countByG_C(groupId, categoryIds);
666            }
667    
668            public static int countByG_NotC(long groupId, long categoryId)
669                    throws com.liferay.portal.kernel.exception.SystemException {
670                    return getPersistence().countByG_NotC(groupId, categoryId);
671            }
672    
673            public static int countByG_S(long groupId, int status)
674                    throws com.liferay.portal.kernel.exception.SystemException {
675                    return getPersistence().countByG_S(groupId, status);
676            }
677    
678            public static int countByC_P(long categoryId, double priority)
679                    throws com.liferay.portal.kernel.exception.SystemException {
680                    return getPersistence().countByC_P(categoryId, priority);
681            }
682    
683            public static int countByG_C_L(long groupId, long categoryId,
684                    java.util.Date lastPostDate)
685                    throws com.liferay.portal.kernel.exception.SystemException {
686                    return getPersistence().countByG_C_L(groupId, categoryId, lastPostDate);
687            }
688    
689            public static int countByG_C_S(long groupId, long categoryId, int status)
690                    throws com.liferay.portal.kernel.exception.SystemException {
691                    return getPersistence().countByG_C_S(groupId, categoryId, status);
692            }
693    
694            public static int countByG_C_S(long groupId, long[] categoryIds, int status)
695                    throws com.liferay.portal.kernel.exception.SystemException {
696                    return getPersistence().countByG_C_S(groupId, categoryIds, status);
697            }
698    
699            public static int countByG_NotC_S(long groupId, long categoryId, int status)
700                    throws com.liferay.portal.kernel.exception.SystemException {
701                    return getPersistence().countByG_NotC_S(groupId, categoryId, status);
702            }
703    
704            public static int countAll()
705                    throws com.liferay.portal.kernel.exception.SystemException {
706                    return getPersistence().countAll();
707            }
708    
709            public static MBThreadPersistence getPersistence() {
710                    if (_persistence == null) {
711                            _persistence = (MBThreadPersistence)PortalBeanLocatorUtil.locate(MBThreadPersistence.class.getName());
712                    }
713    
714                    return _persistence;
715            }
716    
717            public void setPersistence(MBThreadPersistence persistence) {
718                    _persistence = persistence;
719            }
720    
721            private static MBThreadPersistence _persistence;
722    }