1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.tags.service.persistence;
24  
25  
26  /**
27   * <a href="TagsVocabularyUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * @author    Brian Wing Shun Chan
35   * @see       TagsVocabularyPersistence
36   * @see       TagsVocabularyPersistenceImpl
37   * @generated
38   */
39  public class TagsVocabularyUtil {
40      public static void cacheResult(
41          com.liferay.portlet.tags.model.TagsVocabulary tagsVocabulary) {
42          getPersistence().cacheResult(tagsVocabulary);
43      }
44  
45      public static void cacheResult(
46          java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> tagsVocabularies) {
47          getPersistence().cacheResult(tagsVocabularies);
48      }
49  
50      public static void clearCache() {
51          getPersistence().clearCache();
52      }
53  
54      public static com.liferay.portlet.tags.model.TagsVocabulary create(
55          long vocabularyId) {
56          return getPersistence().create(vocabularyId);
57      }
58  
59      public static com.liferay.portlet.tags.model.TagsVocabulary remove(
60          long vocabularyId)
61          throws com.liferay.portal.SystemException,
62              com.liferay.portlet.tags.NoSuchVocabularyException {
63          return getPersistence().remove(vocabularyId);
64      }
65  
66      public static com.liferay.portlet.tags.model.TagsVocabulary remove(
67          com.liferay.portlet.tags.model.TagsVocabulary tagsVocabulary)
68          throws com.liferay.portal.SystemException {
69          return getPersistence().remove(tagsVocabulary);
70      }
71  
72      /**
73       * @deprecated Use {@link #update(TagsVocabulary, boolean merge)}.
74       */
75      public static com.liferay.portlet.tags.model.TagsVocabulary update(
76          com.liferay.portlet.tags.model.TagsVocabulary tagsVocabulary)
77          throws com.liferay.portal.SystemException {
78          return getPersistence().update(tagsVocabulary);
79      }
80  
81      /**
82       * Add, update, or merge, the entity. This method also calls the model
83       * listeners to trigger the proper events associated with adding, deleting,
84       * or updating an entity.
85       *
86       * @param  tagsVocabulary the entity to add, update, or merge
87       * @param  merge boolean value for whether to merge the entity. The default
88       *         value is false. Setting merge to true is more expensive and
89       *         should only be true when tagsVocabulary is transient. See
90       *         LEP-5473 for a detailed discussion of this method.
91       * @return the entity that was added, updated, or merged
92       */
93      public static com.liferay.portlet.tags.model.TagsVocabulary update(
94          com.liferay.portlet.tags.model.TagsVocabulary tagsVocabulary,
95          boolean merge) throws com.liferay.portal.SystemException {
96          return getPersistence().update(tagsVocabulary, merge);
97      }
98  
99      public static com.liferay.portlet.tags.model.TagsVocabulary updateImpl(
100         com.liferay.portlet.tags.model.TagsVocabulary tagsVocabulary,
101         boolean merge) throws com.liferay.portal.SystemException {
102         return getPersistence().updateImpl(tagsVocabulary, merge);
103     }
104 
105     public static com.liferay.portlet.tags.model.TagsVocabulary findByPrimaryKey(
106         long vocabularyId)
107         throws com.liferay.portal.SystemException,
108             com.liferay.portlet.tags.NoSuchVocabularyException {
109         return getPersistence().findByPrimaryKey(vocabularyId);
110     }
111 
112     public static com.liferay.portlet.tags.model.TagsVocabulary fetchByPrimaryKey(
113         long vocabularyId) throws com.liferay.portal.SystemException {
114         return getPersistence().fetchByPrimaryKey(vocabularyId);
115     }
116 
117     public static com.liferay.portlet.tags.model.TagsVocabulary findByG_N(
118         long groupId, java.lang.String name)
119         throws com.liferay.portal.SystemException,
120             com.liferay.portlet.tags.NoSuchVocabularyException {
121         return getPersistence().findByG_N(groupId, name);
122     }
123 
124     public static com.liferay.portlet.tags.model.TagsVocabulary fetchByG_N(
125         long groupId, java.lang.String name)
126         throws com.liferay.portal.SystemException {
127         return getPersistence().fetchByG_N(groupId, name);
128     }
129 
130     public static com.liferay.portlet.tags.model.TagsVocabulary fetchByG_N(
131         long groupId, java.lang.String name, boolean retrieveFromCache)
132         throws com.liferay.portal.SystemException {
133         return getPersistence().fetchByG_N(groupId, name, retrieveFromCache);
134     }
135 
136     public static java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findByG_F(
137         long groupId, boolean folksonomy)
138         throws com.liferay.portal.SystemException {
139         return getPersistence().findByG_F(groupId, folksonomy);
140     }
141 
142     public static java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findByG_F(
143         long groupId, boolean folksonomy, int start, int end)
144         throws com.liferay.portal.SystemException {
145         return getPersistence().findByG_F(groupId, folksonomy, start, end);
146     }
147 
148     public static java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findByG_F(
149         long groupId, boolean folksonomy, int start, int end,
150         com.liferay.portal.kernel.util.OrderByComparator obc)
151         throws com.liferay.portal.SystemException {
152         return getPersistence().findByG_F(groupId, folksonomy, start, end, obc);
153     }
154 
155     public static com.liferay.portlet.tags.model.TagsVocabulary findByG_F_First(
156         long groupId, boolean folksonomy,
157         com.liferay.portal.kernel.util.OrderByComparator obc)
158         throws com.liferay.portal.SystemException,
159             com.liferay.portlet.tags.NoSuchVocabularyException {
160         return getPersistence().findByG_F_First(groupId, folksonomy, obc);
161     }
162 
163     public static com.liferay.portlet.tags.model.TagsVocabulary findByG_F_Last(
164         long groupId, boolean folksonomy,
165         com.liferay.portal.kernel.util.OrderByComparator obc)
166         throws com.liferay.portal.SystemException,
167             com.liferay.portlet.tags.NoSuchVocabularyException {
168         return getPersistence().findByG_F_Last(groupId, folksonomy, obc);
169     }
170 
171     public static com.liferay.portlet.tags.model.TagsVocabulary[] findByG_F_PrevAndNext(
172         long vocabularyId, long groupId, boolean folksonomy,
173         com.liferay.portal.kernel.util.OrderByComparator obc)
174         throws com.liferay.portal.SystemException,
175             com.liferay.portlet.tags.NoSuchVocabularyException {
176         return getPersistence()
177                    .findByG_F_PrevAndNext(vocabularyId, groupId, folksonomy, obc);
178     }
179 
180     public static java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findByC_F(
181         long companyId, boolean folksonomy)
182         throws com.liferay.portal.SystemException {
183         return getPersistence().findByC_F(companyId, folksonomy);
184     }
185 
186     public static java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findByC_F(
187         long companyId, boolean folksonomy, int start, int end)
188         throws com.liferay.portal.SystemException {
189         return getPersistence().findByC_F(companyId, folksonomy, start, end);
190     }
191 
192     public static java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findByC_F(
193         long companyId, boolean folksonomy, int start, int end,
194         com.liferay.portal.kernel.util.OrderByComparator obc)
195         throws com.liferay.portal.SystemException {
196         return getPersistence().findByC_F(companyId, folksonomy, start, end, obc);
197     }
198 
199     public static com.liferay.portlet.tags.model.TagsVocabulary findByC_F_First(
200         long companyId, boolean folksonomy,
201         com.liferay.portal.kernel.util.OrderByComparator obc)
202         throws com.liferay.portal.SystemException,
203             com.liferay.portlet.tags.NoSuchVocabularyException {
204         return getPersistence().findByC_F_First(companyId, folksonomy, obc);
205     }
206 
207     public static com.liferay.portlet.tags.model.TagsVocabulary findByC_F_Last(
208         long companyId, boolean folksonomy,
209         com.liferay.portal.kernel.util.OrderByComparator obc)
210         throws com.liferay.portal.SystemException,
211             com.liferay.portlet.tags.NoSuchVocabularyException {
212         return getPersistence().findByC_F_Last(companyId, folksonomy, obc);
213     }
214 
215     public static com.liferay.portlet.tags.model.TagsVocabulary[] findByC_F_PrevAndNext(
216         long vocabularyId, long companyId, boolean folksonomy,
217         com.liferay.portal.kernel.util.OrderByComparator obc)
218         throws com.liferay.portal.SystemException,
219             com.liferay.portlet.tags.NoSuchVocabularyException {
220         return getPersistence()
221                    .findByC_F_PrevAndNext(vocabularyId, companyId, folksonomy,
222             obc);
223     }
224 
225     public static java.util.List<Object> findWithDynamicQuery(
226         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
227         throws com.liferay.portal.SystemException {
228         return getPersistence().findWithDynamicQuery(dynamicQuery);
229     }
230 
231     public static java.util.List<Object> findWithDynamicQuery(
232         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
233         int end) throws com.liferay.portal.SystemException {
234         return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
235     }
236 
237     public static java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findAll()
238         throws com.liferay.portal.SystemException {
239         return getPersistence().findAll();
240     }
241 
242     public static java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findAll(
243         int start, int end) throws com.liferay.portal.SystemException {
244         return getPersistence().findAll(start, end);
245     }
246 
247     public static java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findAll(
248         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
249         throws com.liferay.portal.SystemException {
250         return getPersistence().findAll(start, end, obc);
251     }
252 
253     public static void removeByG_N(long groupId, java.lang.String name)
254         throws com.liferay.portal.SystemException,
255             com.liferay.portlet.tags.NoSuchVocabularyException {
256         getPersistence().removeByG_N(groupId, name);
257     }
258 
259     public static void removeByG_F(long groupId, boolean folksonomy)
260         throws com.liferay.portal.SystemException {
261         getPersistence().removeByG_F(groupId, folksonomy);
262     }
263 
264     public static void removeByC_F(long companyId, boolean folksonomy)
265         throws com.liferay.portal.SystemException {
266         getPersistence().removeByC_F(companyId, folksonomy);
267     }
268 
269     public static void removeAll() throws com.liferay.portal.SystemException {
270         getPersistence().removeAll();
271     }
272 
273     public static int countByG_N(long groupId, java.lang.String name)
274         throws com.liferay.portal.SystemException {
275         return getPersistence().countByG_N(groupId, name);
276     }
277 
278     public static int countByG_F(long groupId, boolean folksonomy)
279         throws com.liferay.portal.SystemException {
280         return getPersistence().countByG_F(groupId, folksonomy);
281     }
282 
283     public static int countByC_F(long companyId, boolean folksonomy)
284         throws com.liferay.portal.SystemException {
285         return getPersistence().countByC_F(companyId, folksonomy);
286     }
287 
288     public static int countAll() throws com.liferay.portal.SystemException {
289         return getPersistence().countAll();
290     }
291 
292     public static TagsVocabularyPersistence getPersistence() {
293         return _persistence;
294     }
295 
296     public void setPersistence(TagsVocabularyPersistence persistence) {
297         _persistence = persistence;
298     }
299 
300     private static TagsVocabularyPersistence _persistence;
301 }