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="MBCategoryFinderUtil.java.html"><b><i>View Source</i></b></a>
21   *
22   * @author Brian Wing Shun Chan
23   */
24  public class MBCategoryFinderUtil {
25      public static int countByS_G_U(long groupId, long userId)
26          throws com.liferay.portal.kernel.exception.SystemException {
27          return getFinder().countByS_G_U(groupId, userId);
28      }
29  
30      public static int filterCountByS_G_U(long groupId, long userId)
31          throws com.liferay.portal.kernel.exception.SystemException {
32          return getFinder().filterCountByS_G_U(groupId, userId);
33      }
34  
35      public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> filterFindByS_G_U(
36          long groupId, long userId, int start, int end)
37          throws com.liferay.portal.kernel.exception.SystemException {
38          return getFinder().filterFindByS_G_U(groupId, userId, start, end);
39      }
40  
41      public static java.util.List<com.liferay.portlet.messageboards.model.MBCategory> findByS_G_U(
42          long groupId, long userId, int start, int end)
43          throws com.liferay.portal.kernel.exception.SystemException {
44          return getFinder().findByS_G_U(groupId, userId, start, end);
45      }
46  
47      public static MBCategoryFinder getFinder() {
48          if (_finder == null) {
49              _finder = (MBCategoryFinder)PortalBeanLocatorUtil.locate(MBCategoryFinder.class.getName());
50          }
51  
52          return _finder;
53      }
54  
55      public void setFinder(MBCategoryFinder finder) {
56          _finder = finder;
57      }
58  
59      private static MBCategoryFinder _finder;
60  }