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