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.portal.service.persistence;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  
19  /**
20   * <a href="TeamFinderUtil.java.html"><b><i>View Source</i></b></a>
21   *
22   * @author Brian Wing Shun Chan
23   */
24  public class TeamFinderUtil {
25      public static int countByG_N_D(long groupId, java.lang.String name,
26          java.lang.String description,
27          java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
28          throws com.liferay.portal.kernel.exception.SystemException {
29          return getFinder().countByG_N_D(groupId, name, description, params);
30      }
31  
32      public static java.util.List<com.liferay.portal.model.Team> findByG_N_D(
33          long groupId, java.lang.String name, java.lang.String description,
34          java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
35          int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
36          throws com.liferay.portal.kernel.exception.SystemException {
37          return getFinder()
38                     .findByG_N_D(groupId, name, description, params, start, end,
39              obc);
40      }
41  
42      public static TeamFinder getFinder() {
43          if (_finder == null) {
44              _finder = (TeamFinder)PortalBeanLocatorUtil.locate(TeamFinder.class.getName());
45          }
46  
47          return _finder;
48      }
49  
50      public void setFinder(TeamFinder finder) {
51          _finder = finder;
52      }
53  
54      private static TeamFinder _finder;
55  }