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  import com.liferay.portal.SystemException;
26  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
27  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
28  
29  import com.liferay.portlet.tags.model.TagsVocabulary;
30  
31  import java.util.List;
32  
33  /**
34   * <a href="TagsVocabularyUtil.java.html"><b><i>View Source</i></b></a>
35   *
36   * <p>
37   * ServiceBuilder generated this class. Modifications in this class will be
38   * overwritten the next time is generated.
39   * </p>
40   *
41   * @author    Brian Wing Shun Chan
42   * @see       TagsVocabularyPersistence
43   * @see       TagsVocabularyPersistenceImpl
44   * @generated
45   */
46  public class TagsVocabularyUtil {
47      /**
48       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
49       */
50      public static void clearCache() {
51          getPersistence().clearCache();
52      }
53  
54      /**
55       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
56       */
57      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
58          throws SystemException {
59          return getPersistence().findWithDynamicQuery(dynamicQuery);
60      }
61  
62      /**
63       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
64       */
65      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
66          int start, int end) throws SystemException {
67          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
72       */
73      public static TagsVocabulary remove(TagsVocabulary tagsVocabulary)
74          throws SystemException {
75          return getPersistence().remove(tagsVocabulary);
76      }
77  
78      /**
79       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
80       */
81      public static TagsVocabulary update(TagsVocabulary tagsVocabulary,
82          boolean merge) throws SystemException {
83          return getPersistence().update(tagsVocabulary, merge);
84      }
85  
86      public static void cacheResult(
87          com.liferay.portlet.tags.model.TagsVocabulary tagsVocabulary) {
88          getPersistence().cacheResult(tagsVocabulary);
89      }
90  
91      public static void cacheResult(
92          java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> tagsVocabularies) {
93          getPersistence().cacheResult(tagsVocabularies);
94      }
95  
96      public static com.liferay.portlet.tags.model.TagsVocabulary create(
97          long vocabularyId) {
98          return getPersistence().create(vocabularyId);
99      }
100 
101     public static com.liferay.portlet.tags.model.TagsVocabulary remove(
102         long vocabularyId)
103         throws com.liferay.portal.SystemException,
104             com.liferay.portlet.tags.NoSuchVocabularyException {
105         return getPersistence().remove(vocabularyId);
106     }
107 
108     /**
109      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
110      */
111     public static com.liferay.portlet.tags.model.TagsVocabulary update(
112         com.liferay.portlet.tags.model.TagsVocabulary tagsVocabulary)
113         throws com.liferay.portal.SystemException {
114         return getPersistence().update(tagsVocabulary);
115     }
116 
117     public static com.liferay.portlet.tags.model.TagsVocabulary updateImpl(
118         com.liferay.portlet.tags.model.TagsVocabulary tagsVocabulary,
119         boolean merge) throws com.liferay.portal.SystemException {
120         return getPersistence().updateImpl(tagsVocabulary, merge);
121     }
122 
123     public static com.liferay.portlet.tags.model.TagsVocabulary findByPrimaryKey(
124         long vocabularyId)
125         throws com.liferay.portal.SystemException,
126             com.liferay.portlet.tags.NoSuchVocabularyException {
127         return getPersistence().findByPrimaryKey(vocabularyId);
128     }
129 
130     public static com.liferay.portlet.tags.model.TagsVocabulary fetchByPrimaryKey(
131         long vocabularyId) throws com.liferay.portal.SystemException {
132         return getPersistence().fetchByPrimaryKey(vocabularyId);
133     }
134 
135     public static com.liferay.portlet.tags.model.TagsVocabulary findByG_N(
136         long groupId, java.lang.String name)
137         throws com.liferay.portal.SystemException,
138             com.liferay.portlet.tags.NoSuchVocabularyException {
139         return getPersistence().findByG_N(groupId, name);
140     }
141 
142     public static com.liferay.portlet.tags.model.TagsVocabulary fetchByG_N(
143         long groupId, java.lang.String name)
144         throws com.liferay.portal.SystemException {
145         return getPersistence().fetchByG_N(groupId, name);
146     }
147 
148     public static com.liferay.portlet.tags.model.TagsVocabulary fetchByG_N(
149         long groupId, java.lang.String name, boolean retrieveFromCache)
150         throws com.liferay.portal.SystemException {
151         return getPersistence().fetchByG_N(groupId, name, retrieveFromCache);
152     }
153 
154     public static java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findByG_F(
155         long groupId, boolean folksonomy)
156         throws com.liferay.portal.SystemException {
157         return getPersistence().findByG_F(groupId, folksonomy);
158     }
159 
160     public static java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findByG_F(
161         long groupId, boolean folksonomy, int start, int end)
162         throws com.liferay.portal.SystemException {
163         return getPersistence().findByG_F(groupId, folksonomy, start, end);
164     }
165 
166     public static java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findByG_F(
167         long groupId, boolean folksonomy, int start, int end,
168         com.liferay.portal.kernel.util.OrderByComparator obc)
169         throws com.liferay.portal.SystemException {
170         return getPersistence().findByG_F(groupId, folksonomy, start, end, obc);
171     }
172 
173     public static com.liferay.portlet.tags.model.TagsVocabulary findByG_F_First(
174         long groupId, boolean folksonomy,
175         com.liferay.portal.kernel.util.OrderByComparator obc)
176         throws com.liferay.portal.SystemException,
177             com.liferay.portlet.tags.NoSuchVocabularyException {
178         return getPersistence().findByG_F_First(groupId, folksonomy, obc);
179     }
180 
181     public static com.liferay.portlet.tags.model.TagsVocabulary findByG_F_Last(
182         long groupId, boolean folksonomy,
183         com.liferay.portal.kernel.util.OrderByComparator obc)
184         throws com.liferay.portal.SystemException,
185             com.liferay.portlet.tags.NoSuchVocabularyException {
186         return getPersistence().findByG_F_Last(groupId, folksonomy, obc);
187     }
188 
189     public static com.liferay.portlet.tags.model.TagsVocabulary[] findByG_F_PrevAndNext(
190         long vocabularyId, long groupId, boolean folksonomy,
191         com.liferay.portal.kernel.util.OrderByComparator obc)
192         throws com.liferay.portal.SystemException,
193             com.liferay.portlet.tags.NoSuchVocabularyException {
194         return getPersistence()
195                    .findByG_F_PrevAndNext(vocabularyId, groupId, folksonomy, obc);
196     }
197 
198     public static java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findByC_F(
199         long companyId, boolean folksonomy)
200         throws com.liferay.portal.SystemException {
201         return getPersistence().findByC_F(companyId, folksonomy);
202     }
203 
204     public static java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findByC_F(
205         long companyId, boolean folksonomy, int start, int end)
206         throws com.liferay.portal.SystemException {
207         return getPersistence().findByC_F(companyId, folksonomy, start, end);
208     }
209 
210     public static java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findByC_F(
211         long companyId, boolean folksonomy, int start, int end,
212         com.liferay.portal.kernel.util.OrderByComparator obc)
213         throws com.liferay.portal.SystemException {
214         return getPersistence().findByC_F(companyId, folksonomy, start, end, obc);
215     }
216 
217     public static com.liferay.portlet.tags.model.TagsVocabulary findByC_F_First(
218         long companyId, boolean folksonomy,
219         com.liferay.portal.kernel.util.OrderByComparator obc)
220         throws com.liferay.portal.SystemException,
221             com.liferay.portlet.tags.NoSuchVocabularyException {
222         return getPersistence().findByC_F_First(companyId, folksonomy, obc);
223     }
224 
225     public static com.liferay.portlet.tags.model.TagsVocabulary findByC_F_Last(
226         long companyId, boolean folksonomy,
227         com.liferay.portal.kernel.util.OrderByComparator obc)
228         throws com.liferay.portal.SystemException,
229             com.liferay.portlet.tags.NoSuchVocabularyException {
230         return getPersistence().findByC_F_Last(companyId, folksonomy, obc);
231     }
232 
233     public static com.liferay.portlet.tags.model.TagsVocabulary[] findByC_F_PrevAndNext(
234         long vocabularyId, long companyId, boolean folksonomy,
235         com.liferay.portal.kernel.util.OrderByComparator obc)
236         throws com.liferay.portal.SystemException,
237             com.liferay.portlet.tags.NoSuchVocabularyException {
238         return getPersistence()
239                    .findByC_F_PrevAndNext(vocabularyId, companyId, folksonomy,
240             obc);
241     }
242 
243     public static java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findAll()
244         throws com.liferay.portal.SystemException {
245         return getPersistence().findAll();
246     }
247 
248     public static java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findAll(
249         int start, int end) throws com.liferay.portal.SystemException {
250         return getPersistence().findAll(start, end);
251     }
252 
253     public static java.util.List<com.liferay.portlet.tags.model.TagsVocabulary> findAll(
254         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
255         throws com.liferay.portal.SystemException {
256         return getPersistence().findAll(start, end, obc);
257     }
258 
259     public static void removeByG_N(long groupId, java.lang.String name)
260         throws com.liferay.portal.SystemException,
261             com.liferay.portlet.tags.NoSuchVocabularyException {
262         getPersistence().removeByG_N(groupId, name);
263     }
264 
265     public static void removeByG_F(long groupId, boolean folksonomy)
266         throws com.liferay.portal.SystemException {
267         getPersistence().removeByG_F(groupId, folksonomy);
268     }
269 
270     public static void removeByC_F(long companyId, boolean folksonomy)
271         throws com.liferay.portal.SystemException {
272         getPersistence().removeByC_F(companyId, folksonomy);
273     }
274 
275     public static void removeAll() throws com.liferay.portal.SystemException {
276         getPersistence().removeAll();
277     }
278 
279     public static int countByG_N(long groupId, java.lang.String name)
280         throws com.liferay.portal.SystemException {
281         return getPersistence().countByG_N(groupId, name);
282     }
283 
284     public static int countByG_F(long groupId, boolean folksonomy)
285         throws com.liferay.portal.SystemException {
286         return getPersistence().countByG_F(groupId, folksonomy);
287     }
288 
289     public static int countByC_F(long companyId, boolean folksonomy)
290         throws com.liferay.portal.SystemException {
291         return getPersistence().countByC_F(companyId, folksonomy);
292     }
293 
294     public static int countAll() throws com.liferay.portal.SystemException {
295         return getPersistence().countAll();
296     }
297 
298     public static TagsVocabularyPersistence getPersistence() {
299         if (_persistence == null) {
300             _persistence = (TagsVocabularyPersistence)PortalBeanLocatorUtil.locate(TagsVocabularyPersistence.class.getName());
301         }
302 
303         return _persistence;
304     }
305 
306     public void setPersistence(TagsVocabularyPersistence persistence) {
307         _persistence = persistence;
308     }
309 
310     private static TagsVocabularyPersistence _persistence;
311 }