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="TagsEntryFinderUtil.java.html"><b><i>View Source</i></b></a>
21   *
22   * @author Brian Wing Shun Chan
23   */
24  public class TagsEntryFinderUtil {
25      public static int countByG_C_N_F(long groupId, long classNameId,
26          java.lang.String name, boolean folksonomy)
27          throws com.liferay.portal.SystemException {
28          return getFinder().countByG_C_N_F(groupId, classNameId, name, folksonomy);
29      }
30  
31      public static int countByG_N_F_P(long groupId, java.lang.String name,
32          boolean folksonomy, java.lang.String[] properties)
33          throws com.liferay.portal.SystemException {
34          return getFinder().countByG_N_F_P(groupId, name, folksonomy, properties);
35      }
36  
37      public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> findByFolksonomy(
38          boolean folksonomy) throws com.liferay.portal.SystemException {
39          return getFinder().findByFolksonomy(folksonomy);
40      }
41  
42      public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> findByA_F(
43          long assetId, boolean folksonomy)
44          throws com.liferay.portal.SystemException {
45          return getFinder().findByA_F(assetId, folksonomy);
46      }
47  
48      public static com.liferay.portlet.tags.model.TagsEntry findByG_N_F(
49          long groupId, java.lang.String name, boolean folksonomy)
50          throws com.liferay.portal.SystemException,
51              com.liferay.portlet.tags.NoSuchEntryException {
52          return getFinder().findByG_N_F(groupId, name, folksonomy);
53      }
54  
55      public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> findByC_C_F(
56          long classNameId, long classPK, boolean folksonomy)
57          throws com.liferay.portal.SystemException {
58          return getFinder().findByC_C_F(classNameId, classPK, folksonomy);
59      }
60  
61      public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> findByG_C_N_F(
62          long groupId, long classNameId, java.lang.String name,
63          boolean folksonomy) throws com.liferay.portal.SystemException {
64          return getFinder().findByG_C_N_F(groupId, classNameId, name, folksonomy);
65      }
66  
67      public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> findByG_C_N_F(
68          long groupId, long classNameId, java.lang.String name,
69          boolean folksonomy, int start, int end)
70          throws com.liferay.portal.SystemException {
71          return getFinder()
72                     .findByG_C_N_F(groupId, classNameId, name, folksonomy,
73              start, end);
74      }
75  
76      public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> findByG_N_F_P(
77          long groupId, java.lang.String name, boolean folksonomy,
78          java.lang.String[] properties)
79          throws com.liferay.portal.SystemException {
80          return getFinder().findByG_N_F_P(groupId, name, folksonomy, properties);
81      }
82  
83      public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> findByG_N_F_P(
84          long groupId, java.lang.String name, boolean folksonomy,
85          java.lang.String[] properties, int start, int end)
86          throws com.liferay.portal.SystemException {
87          return getFinder()
88                     .findByG_N_F_P(groupId, name, folksonomy, properties, start,
89              end);
90      }
91  
92      public static TagsEntryFinder getFinder() {
93          if (_finder == null) {
94              _finder = (TagsEntryFinder)PortalBeanLocatorUtil.locate(TagsEntryFinder.class.getName());
95          }
96  
97          return _finder;
98      }
99  
100     public void setFinder(TagsEntryFinder finder) {
101         _finder = finder;
102     }
103 
104     private static TagsEntryFinder _finder;
105 }