1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.asset.service.persistence;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19  import com.liferay.portal.kernel.exception.SystemException;
20  
21  import com.liferay.portlet.asset.model.AssetVocabulary;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="AssetVocabularyUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * <p>
29   * ServiceBuilder generated this class. Modifications in this class will be
30   * overwritten the next time is generated.
31   * </p>
32   *
33   * @author    Brian Wing Shun Chan
34   * @see       AssetVocabularyPersistence
35   * @see       AssetVocabularyPersistenceImpl
36   * @generated
37   */
38  public class AssetVocabularyUtil {
39      /**
40       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
41       */
42      public static void clearCache() {
43          getPersistence().clearCache();
44      }
45  
46      /**
47       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
48       */
49      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
50          throws SystemException {
51          return getPersistence().findWithDynamicQuery(dynamicQuery);
52      }
53  
54      /**
55       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
56       */
57      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
58          int start, int end) throws SystemException {
59          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
60      }
61  
62      /**
63       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
64       */
65      public static AssetVocabulary remove(AssetVocabulary assetVocabulary)
66          throws SystemException {
67          return getPersistence().remove(assetVocabulary);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
72       */
73      public static AssetVocabulary update(AssetVocabulary assetVocabulary,
74          boolean merge) throws SystemException {
75          return getPersistence().update(assetVocabulary, merge);
76      }
77  
78      public static void cacheResult(
79          com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary) {
80          getPersistence().cacheResult(assetVocabulary);
81      }
82  
83      public static void cacheResult(
84          java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> assetVocabularies) {
85          getPersistence().cacheResult(assetVocabularies);
86      }
87  
88      public static com.liferay.portlet.asset.model.AssetVocabulary create(
89          long vocabularyId) {
90          return getPersistence().create(vocabularyId);
91      }
92  
93      public static com.liferay.portlet.asset.model.AssetVocabulary remove(
94          long vocabularyId)
95          throws com.liferay.portal.kernel.exception.SystemException,
96              com.liferay.portlet.asset.NoSuchVocabularyException {
97          return getPersistence().remove(vocabularyId);
98      }
99  
100     public static com.liferay.portlet.asset.model.AssetVocabulary updateImpl(
101         com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary,
102         boolean merge)
103         throws com.liferay.portal.kernel.exception.SystemException {
104         return getPersistence().updateImpl(assetVocabulary, merge);
105     }
106 
107     public static com.liferay.portlet.asset.model.AssetVocabulary findByPrimaryKey(
108         long vocabularyId)
109         throws com.liferay.portal.kernel.exception.SystemException,
110             com.liferay.portlet.asset.NoSuchVocabularyException {
111         return getPersistence().findByPrimaryKey(vocabularyId);
112     }
113 
114     public static com.liferay.portlet.asset.model.AssetVocabulary fetchByPrimaryKey(
115         long vocabularyId)
116         throws com.liferay.portal.kernel.exception.SystemException {
117         return getPersistence().fetchByPrimaryKey(vocabularyId);
118     }
119 
120     public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByUuid(
121         java.lang.String uuid)
122         throws com.liferay.portal.kernel.exception.SystemException {
123         return getPersistence().findByUuid(uuid);
124     }
125 
126     public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByUuid(
127         java.lang.String uuid, int start, int end)
128         throws com.liferay.portal.kernel.exception.SystemException {
129         return getPersistence().findByUuid(uuid, start, end);
130     }
131 
132     public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByUuid(
133         java.lang.String uuid, int start, int end,
134         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135         throws com.liferay.portal.kernel.exception.SystemException {
136         return getPersistence().findByUuid(uuid, start, end, orderByComparator);
137     }
138 
139     public static com.liferay.portlet.asset.model.AssetVocabulary findByUuid_First(
140         java.lang.String uuid,
141         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142         throws com.liferay.portal.kernel.exception.SystemException,
143             com.liferay.portlet.asset.NoSuchVocabularyException {
144         return getPersistence().findByUuid_First(uuid, orderByComparator);
145     }
146 
147     public static com.liferay.portlet.asset.model.AssetVocabulary findByUuid_Last(
148         java.lang.String uuid,
149         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150         throws com.liferay.portal.kernel.exception.SystemException,
151             com.liferay.portlet.asset.NoSuchVocabularyException {
152         return getPersistence().findByUuid_Last(uuid, orderByComparator);
153     }
154 
155     public static com.liferay.portlet.asset.model.AssetVocabulary[] findByUuid_PrevAndNext(
156         long vocabularyId, java.lang.String uuid,
157         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
158         throws com.liferay.portal.kernel.exception.SystemException,
159             com.liferay.portlet.asset.NoSuchVocabularyException {
160         return getPersistence()
161                    .findByUuid_PrevAndNext(vocabularyId, uuid, orderByComparator);
162     }
163 
164     public static com.liferay.portlet.asset.model.AssetVocabulary findByUUID_G(
165         java.lang.String uuid, long groupId)
166         throws com.liferay.portal.kernel.exception.SystemException,
167             com.liferay.portlet.asset.NoSuchVocabularyException {
168         return getPersistence().findByUUID_G(uuid, groupId);
169     }
170 
171     public static com.liferay.portlet.asset.model.AssetVocabulary fetchByUUID_G(
172         java.lang.String uuid, long groupId)
173         throws com.liferay.portal.kernel.exception.SystemException {
174         return getPersistence().fetchByUUID_G(uuid, groupId);
175     }
176 
177     public static com.liferay.portlet.asset.model.AssetVocabulary fetchByUUID_G(
178         java.lang.String uuid, long groupId, boolean retrieveFromCache)
179         throws com.liferay.portal.kernel.exception.SystemException {
180         return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
181     }
182 
183     public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByGroupId(
184         long groupId)
185         throws com.liferay.portal.kernel.exception.SystemException {
186         return getPersistence().findByGroupId(groupId);
187     }
188 
189     public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByGroupId(
190         long groupId, int start, int end)
191         throws com.liferay.portal.kernel.exception.SystemException {
192         return getPersistence().findByGroupId(groupId, start, end);
193     }
194 
195     public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByGroupId(
196         long groupId, int start, int end,
197         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
198         throws com.liferay.portal.kernel.exception.SystemException {
199         return getPersistence()
200                    .findByGroupId(groupId, start, end, orderByComparator);
201     }
202 
203     public static com.liferay.portlet.asset.model.AssetVocabulary findByGroupId_First(
204         long groupId,
205         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
206         throws com.liferay.portal.kernel.exception.SystemException,
207             com.liferay.portlet.asset.NoSuchVocabularyException {
208         return getPersistence().findByGroupId_First(groupId, orderByComparator);
209     }
210 
211     public static com.liferay.portlet.asset.model.AssetVocabulary findByGroupId_Last(
212         long groupId,
213         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
214         throws com.liferay.portal.kernel.exception.SystemException,
215             com.liferay.portlet.asset.NoSuchVocabularyException {
216         return getPersistence().findByGroupId_Last(groupId, orderByComparator);
217     }
218 
219     public static com.liferay.portlet.asset.model.AssetVocabulary[] findByGroupId_PrevAndNext(
220         long vocabularyId, long groupId,
221         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
222         throws com.liferay.portal.kernel.exception.SystemException,
223             com.liferay.portlet.asset.NoSuchVocabularyException {
224         return getPersistence()
225                    .findByGroupId_PrevAndNext(vocabularyId, groupId,
226             orderByComparator);
227     }
228 
229     public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId(
230         long companyId)
231         throws com.liferay.portal.kernel.exception.SystemException {
232         return getPersistence().findByCompanyId(companyId);
233     }
234 
235     public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId(
236         long companyId, int start, int end)
237         throws com.liferay.portal.kernel.exception.SystemException {
238         return getPersistence().findByCompanyId(companyId, start, end);
239     }
240 
241     public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId(
242         long companyId, int start, int end,
243         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
244         throws com.liferay.portal.kernel.exception.SystemException {
245         return getPersistence()
246                    .findByCompanyId(companyId, start, end, orderByComparator);
247     }
248 
249     public static com.liferay.portlet.asset.model.AssetVocabulary findByCompanyId_First(
250         long companyId,
251         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
252         throws com.liferay.portal.kernel.exception.SystemException,
253             com.liferay.portlet.asset.NoSuchVocabularyException {
254         return getPersistence()
255                    .findByCompanyId_First(companyId, orderByComparator);
256     }
257 
258     public static com.liferay.portlet.asset.model.AssetVocabulary findByCompanyId_Last(
259         long companyId,
260         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
261         throws com.liferay.portal.kernel.exception.SystemException,
262             com.liferay.portlet.asset.NoSuchVocabularyException {
263         return getPersistence()
264                    .findByCompanyId_Last(companyId, orderByComparator);
265     }
266 
267     public static com.liferay.portlet.asset.model.AssetVocabulary[] findByCompanyId_PrevAndNext(
268         long vocabularyId, long companyId,
269         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
270         throws com.liferay.portal.kernel.exception.SystemException,
271             com.liferay.portlet.asset.NoSuchVocabularyException {
272         return getPersistence()
273                    .findByCompanyId_PrevAndNext(vocabularyId, companyId,
274             orderByComparator);
275     }
276 
277     public static com.liferay.portlet.asset.model.AssetVocabulary findByG_N(
278         long groupId, java.lang.String name)
279         throws com.liferay.portal.kernel.exception.SystemException,
280             com.liferay.portlet.asset.NoSuchVocabularyException {
281         return getPersistence().findByG_N(groupId, name);
282     }
283 
284     public static com.liferay.portlet.asset.model.AssetVocabulary fetchByG_N(
285         long groupId, java.lang.String name)
286         throws com.liferay.portal.kernel.exception.SystemException {
287         return getPersistence().fetchByG_N(groupId, name);
288     }
289 
290     public static com.liferay.portlet.asset.model.AssetVocabulary fetchByG_N(
291         long groupId, java.lang.String name, boolean retrieveFromCache)
292         throws com.liferay.portal.kernel.exception.SystemException {
293         return getPersistence().fetchByG_N(groupId, name, retrieveFromCache);
294     }
295 
296     public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll()
297         throws com.liferay.portal.kernel.exception.SystemException {
298         return getPersistence().findAll();
299     }
300 
301     public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll(
302         int start, int end)
303         throws com.liferay.portal.kernel.exception.SystemException {
304         return getPersistence().findAll(start, end);
305     }
306 
307     public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll(
308         int start, int end,
309         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
310         throws com.liferay.portal.kernel.exception.SystemException {
311         return getPersistence().findAll(start, end, orderByComparator);
312     }
313 
314     public static void removeByUuid(java.lang.String uuid)
315         throws com.liferay.portal.kernel.exception.SystemException {
316         getPersistence().removeByUuid(uuid);
317     }
318 
319     public static void removeByUUID_G(java.lang.String uuid, long groupId)
320         throws com.liferay.portal.kernel.exception.SystemException,
321             com.liferay.portlet.asset.NoSuchVocabularyException {
322         getPersistence().removeByUUID_G(uuid, groupId);
323     }
324 
325     public static void removeByGroupId(long groupId)
326         throws com.liferay.portal.kernel.exception.SystemException {
327         getPersistence().removeByGroupId(groupId);
328     }
329 
330     public static void removeByCompanyId(long companyId)
331         throws com.liferay.portal.kernel.exception.SystemException {
332         getPersistence().removeByCompanyId(companyId);
333     }
334 
335     public static void removeByG_N(long groupId, java.lang.String name)
336         throws com.liferay.portal.kernel.exception.SystemException,
337             com.liferay.portlet.asset.NoSuchVocabularyException {
338         getPersistence().removeByG_N(groupId, name);
339     }
340 
341     public static void removeAll()
342         throws com.liferay.portal.kernel.exception.SystemException {
343         getPersistence().removeAll();
344     }
345 
346     public static int countByUuid(java.lang.String uuid)
347         throws com.liferay.portal.kernel.exception.SystemException {
348         return getPersistence().countByUuid(uuid);
349     }
350 
351     public static int countByUUID_G(java.lang.String uuid, long groupId)
352         throws com.liferay.portal.kernel.exception.SystemException {
353         return getPersistence().countByUUID_G(uuid, groupId);
354     }
355 
356     public static int countByGroupId(long groupId)
357         throws com.liferay.portal.kernel.exception.SystemException {
358         return getPersistence().countByGroupId(groupId);
359     }
360 
361     public static int countByCompanyId(long companyId)
362         throws com.liferay.portal.kernel.exception.SystemException {
363         return getPersistence().countByCompanyId(companyId);
364     }
365 
366     public static int countByG_N(long groupId, java.lang.String name)
367         throws com.liferay.portal.kernel.exception.SystemException {
368         return getPersistence().countByG_N(groupId, name);
369     }
370 
371     public static int countAll()
372         throws com.liferay.portal.kernel.exception.SystemException {
373         return getPersistence().countAll();
374     }
375 
376     public static AssetVocabularyPersistence getPersistence() {
377         if (_persistence == null) {
378             _persistence = (AssetVocabularyPersistence)PortalBeanLocatorUtil.locate(AssetVocabularyPersistence.class.getName());
379         }
380 
381         return _persistence;
382     }
383 
384     public void setPersistence(AssetVocabularyPersistence persistence) {
385         _persistence = persistence;
386     }
387 
388     private static AssetVocabularyPersistence _persistence;
389 }