1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
14  
15  package com.liferay.portlet.tags.service.persistence;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  
19  /**
20   * <a href="TagsPropertyFinderUtil.java.html"><b><i>View Source</i></b></a>
21   *
22   * @author Brian Wing Shun Chan
23   */
24  public class TagsPropertyFinderUtil {
25      public static int countByC_K(long companyId, java.lang.String key)
26          throws com.liferay.portal.SystemException {
27          return getFinder().countByC_K(companyId, key);
28      }
29  
30      public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByC_K(
31          long companyId, java.lang.String key)
32          throws com.liferay.portal.SystemException {
33          return getFinder().findByC_K(companyId, key);
34      }
35  
36      public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByC_K(
37          long companyId, java.lang.String key, int start, int end)
38          throws com.liferay.portal.SystemException {
39          return getFinder().findByC_K(companyId, key, start, end);
40      }
41  
42      public static TagsPropertyFinder getFinder() {
43          if (_finder == null) {
44              _finder = (TagsPropertyFinder)PortalBeanLocatorUtil.locate(TagsPropertyFinder.class.getName());
45          }
46  
47          return _finder;
48      }
49  
50      public void setFinder(TagsPropertyFinder finder) {
51          _finder = finder;
52      }
53  
54      private static TagsPropertyFinder _finder;
55  }