1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.messageboards.service.persistence;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  
19  /**
20   * <a href="MBThreadFinderUtil.java.html"><b><i>View Source</i></b></a>
21   *
22   * @author Brian Wing Shun Chan
23   */
24  public class MBThreadFinderUtil {
25      public static int countByG_C_S(long groupId, long categoryId, int status)
26          throws com.liferay.portal.kernel.exception.SystemException {
27          return getFinder().countByG_C_S(groupId, categoryId, status);
28      }
29  
30      public static int countByS_G_U_S(long groupId, long userId, int status)
31          throws com.liferay.portal.kernel.exception.SystemException {
32          return getFinder().countByS_G_U_S(groupId, userId, status);
33      }
34  
35      public static int filterCountByG_C(long groupId, long categoryId)
36          throws com.liferay.portal.kernel.exception.SystemException {
37          return getFinder().filterCountByG_C(groupId, categoryId);
38      }
39  
40      public static int filterCountByG_C_S(long groupId, long categoryId,
41          int status) throws com.liferay.portal.kernel.exception.SystemException {
42          return getFinder().filterCountByG_C_S(groupId, categoryId, status);
43      }
44  
45      public static int filterCountByS_G_U_S(long groupId, long userId, int status)
46          throws com.liferay.portal.kernel.exception.SystemException {
47          return getFinder().filterCountByS_G_U_S(groupId, userId, status);
48      }
49  
50      public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> filterFindByG_C(
51          long groupId, long categoryId, int start, int end)
52          throws com.liferay.portal.kernel.exception.SystemException {
53          return getFinder().filterFindByG_C(groupId, categoryId, start, end);
54      }
55  
56      public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> filterFindByG_C_S(
57          long groupId, long categoryId, int status, int start, int end)
58          throws com.liferay.portal.kernel.exception.SystemException {
59          return getFinder()
60                     .filterFindByG_C_S(groupId, categoryId, status, start, end);
61      }
62  
63      public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> filterFindByS_G_U_S(
64          long groupId, long userId, int status, int start, int end)
65          throws com.liferay.portal.kernel.exception.SystemException {
66          return getFinder()
67                     .filterFindByS_G_U_S(groupId, userId, status, start, end);
68      }
69  
70      public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_S(
71          long groupId, long categoryId, int status, int start, int end)
72          throws com.liferay.portal.kernel.exception.SystemException {
73          return getFinder().findByG_C_S(groupId, categoryId, status, start, end);
74      }
75  
76      public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByS_G_U_S(
77          long groupId, long userId, int status, int start, int end)
78          throws com.liferay.portal.kernel.exception.SystemException {
79          return getFinder().findByS_G_U_S(groupId, userId, status, start, end);
80      }
81  
82      public static MBThreadFinder getFinder() {
83          if (_finder == null) {
84              _finder = (MBThreadFinder)PortalBeanLocatorUtil.locate(MBThreadFinder.class.getName());
85          }
86  
87          return _finder;
88      }
89  
90      public void setFinder(MBThreadFinder finder) {
91          _finder = finder;
92      }
93  
94      private static MBThreadFinder _finder;
95  }