001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.asset.service.persistence;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019    import com.liferay.portal.kernel.exception.SystemException;
020    import com.liferay.portal.kernel.util.OrderByComparator;
021    import com.liferay.portal.kernel.util.ReferenceRegistry;
022    import com.liferay.portal.service.ServiceContext;
023    
024    import com.liferay.portlet.asset.model.AssetVocabulary;
025    
026    import java.util.List;
027    
028    /**
029     * The persistence utility for the asset vocabulary service. This utility wraps {@link AssetVocabularyPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
030     *
031     * <p>
032     * Caching information and settings can be found in <code>portal.properties</code>
033     * </p>
034     *
035     * @author Brian Wing Shun Chan
036     * @see AssetVocabularyPersistence
037     * @see AssetVocabularyPersistenceImpl
038     * @generated
039     */
040    public class AssetVocabularyUtil {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
045             */
046    
047            /**
048             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
049             */
050            public static void clearCache() {
051                    getPersistence().clearCache();
052            }
053    
054            /**
055             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
056             */
057            public static void clearCache(AssetVocabulary assetVocabulary) {
058                    getPersistence().clearCache(assetVocabulary);
059            }
060    
061            /**
062             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
063             */
064            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
065                    throws SystemException {
066                    return getPersistence().countWithDynamicQuery(dynamicQuery);
067            }
068    
069            /**
070             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
071             */
072            public static List<AssetVocabulary> findWithDynamicQuery(
073                    DynamicQuery dynamicQuery) throws SystemException {
074                    return getPersistence().findWithDynamicQuery(dynamicQuery);
075            }
076    
077            /**
078             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
079             */
080            public static List<AssetVocabulary> findWithDynamicQuery(
081                    DynamicQuery dynamicQuery, int start, int end)
082                    throws SystemException {
083                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
084            }
085    
086            /**
087             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
088             */
089            public static List<AssetVocabulary> findWithDynamicQuery(
090                    DynamicQuery dynamicQuery, int start, int end,
091                    OrderByComparator orderByComparator) throws SystemException {
092                    return getPersistence()
093                                       .findWithDynamicQuery(dynamicQuery, start, end,
094                            orderByComparator);
095            }
096    
097            /**
098             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
099             */
100            public static AssetVocabulary update(AssetVocabulary assetVocabulary,
101                    boolean merge) throws SystemException {
102                    return getPersistence().update(assetVocabulary, merge);
103            }
104    
105            /**
106             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
107             */
108            public static AssetVocabulary update(AssetVocabulary assetVocabulary,
109                    boolean merge, ServiceContext serviceContext) throws SystemException {
110                    return getPersistence().update(assetVocabulary, merge, serviceContext);
111            }
112    
113            /**
114            * Caches the asset vocabulary in the entity cache if it is enabled.
115            *
116            * @param assetVocabulary the asset vocabulary
117            */
118            public static void cacheResult(
119                    com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary) {
120                    getPersistence().cacheResult(assetVocabulary);
121            }
122    
123            /**
124            * Caches the asset vocabularies in the entity cache if it is enabled.
125            *
126            * @param assetVocabularies the asset vocabularies
127            */
128            public static void cacheResult(
129                    java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> assetVocabularies) {
130                    getPersistence().cacheResult(assetVocabularies);
131            }
132    
133            /**
134            * Creates a new asset vocabulary with the primary key. Does not add the asset vocabulary to the database.
135            *
136            * @param vocabularyId the primary key for the new asset vocabulary
137            * @return the new asset vocabulary
138            */
139            public static com.liferay.portlet.asset.model.AssetVocabulary create(
140                    long vocabularyId) {
141                    return getPersistence().create(vocabularyId);
142            }
143    
144            /**
145            * Removes the asset vocabulary with the primary key from the database. Also notifies the appropriate model listeners.
146            *
147            * @param vocabularyId the primary key of the asset vocabulary
148            * @return the asset vocabulary that was removed
149            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found
150            * @throws SystemException if a system exception occurred
151            */
152            public static com.liferay.portlet.asset.model.AssetVocabulary remove(
153                    long vocabularyId)
154                    throws com.liferay.portal.kernel.exception.SystemException,
155                            com.liferay.portlet.asset.NoSuchVocabularyException {
156                    return getPersistence().remove(vocabularyId);
157            }
158    
159            public static com.liferay.portlet.asset.model.AssetVocabulary updateImpl(
160                    com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary,
161                    boolean merge)
162                    throws com.liferay.portal.kernel.exception.SystemException {
163                    return getPersistence().updateImpl(assetVocabulary, merge);
164            }
165    
166            /**
167            * Returns the asset vocabulary with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchVocabularyException} if it could not be found.
168            *
169            * @param vocabularyId the primary key of the asset vocabulary
170            * @return the asset vocabulary
171            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found
172            * @throws SystemException if a system exception occurred
173            */
174            public static com.liferay.portlet.asset.model.AssetVocabulary findByPrimaryKey(
175                    long vocabularyId)
176                    throws com.liferay.portal.kernel.exception.SystemException,
177                            com.liferay.portlet.asset.NoSuchVocabularyException {
178                    return getPersistence().findByPrimaryKey(vocabularyId);
179            }
180    
181            /**
182            * Returns the asset vocabulary with the primary key or returns <code>null</code> if it could not be found.
183            *
184            * @param vocabularyId the primary key of the asset vocabulary
185            * @return the asset vocabulary, or <code>null</code> if a asset vocabulary with the primary key could not be found
186            * @throws SystemException if a system exception occurred
187            */
188            public static com.liferay.portlet.asset.model.AssetVocabulary fetchByPrimaryKey(
189                    long vocabularyId)
190                    throws com.liferay.portal.kernel.exception.SystemException {
191                    return getPersistence().fetchByPrimaryKey(vocabularyId);
192            }
193    
194            /**
195            * Returns all the asset vocabularies where uuid = &#63;.
196            *
197            * @param uuid the uuid
198            * @return the matching asset vocabularies
199            * @throws SystemException if a system exception occurred
200            */
201            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByUuid(
202                    java.lang.String uuid)
203                    throws com.liferay.portal.kernel.exception.SystemException {
204                    return getPersistence().findByUuid(uuid);
205            }
206    
207            /**
208            * Returns a range of all the asset vocabularies where uuid = &#63;.
209            *
210            * <p>
211            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
212            * </p>
213            *
214            * @param uuid the uuid
215            * @param start the lower bound of the range of asset vocabularies
216            * @param end the upper bound of the range of asset vocabularies (not inclusive)
217            * @return the range of matching asset vocabularies
218            * @throws SystemException if a system exception occurred
219            */
220            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByUuid(
221                    java.lang.String uuid, int start, int end)
222                    throws com.liferay.portal.kernel.exception.SystemException {
223                    return getPersistence().findByUuid(uuid, start, end);
224            }
225    
226            /**
227            * Returns an ordered range of all the asset vocabularies where uuid = &#63;.
228            *
229            * <p>
230            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
231            * </p>
232            *
233            * @param uuid the uuid
234            * @param start the lower bound of the range of asset vocabularies
235            * @param end the upper bound of the range of asset vocabularies (not inclusive)
236            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
237            * @return the ordered range of matching asset vocabularies
238            * @throws SystemException if a system exception occurred
239            */
240            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByUuid(
241                    java.lang.String uuid, int start, int end,
242                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
243                    throws com.liferay.portal.kernel.exception.SystemException {
244                    return getPersistence().findByUuid(uuid, start, end, orderByComparator);
245            }
246    
247            /**
248            * Returns the first asset vocabulary in the ordered set where uuid = &#63;.
249            *
250            * @param uuid the uuid
251            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
252            * @return the first matching asset vocabulary
253            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
254            * @throws SystemException if a system exception occurred
255            */
256            public static com.liferay.portlet.asset.model.AssetVocabulary findByUuid_First(
257                    java.lang.String uuid,
258                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
259                    throws com.liferay.portal.kernel.exception.SystemException,
260                            com.liferay.portlet.asset.NoSuchVocabularyException {
261                    return getPersistence().findByUuid_First(uuid, orderByComparator);
262            }
263    
264            /**
265            * Returns the first asset vocabulary in the ordered set where uuid = &#63;.
266            *
267            * @param uuid the uuid
268            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
269            * @return the first matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
270            * @throws SystemException if a system exception occurred
271            */
272            public static com.liferay.portlet.asset.model.AssetVocabulary fetchByUuid_First(
273                    java.lang.String uuid,
274                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
275                    throws com.liferay.portal.kernel.exception.SystemException {
276                    return getPersistence().fetchByUuid_First(uuid, orderByComparator);
277            }
278    
279            /**
280            * Returns the last asset vocabulary in the ordered set where uuid = &#63;.
281            *
282            * @param uuid the uuid
283            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
284            * @return the last matching asset vocabulary
285            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
286            * @throws SystemException if a system exception occurred
287            */
288            public static com.liferay.portlet.asset.model.AssetVocabulary findByUuid_Last(
289                    java.lang.String uuid,
290                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
291                    throws com.liferay.portal.kernel.exception.SystemException,
292                            com.liferay.portlet.asset.NoSuchVocabularyException {
293                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
294            }
295    
296            /**
297            * Returns the last asset vocabulary in the ordered set where uuid = &#63;.
298            *
299            * @param uuid the uuid
300            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
301            * @return the last matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
302            * @throws SystemException if a system exception occurred
303            */
304            public static com.liferay.portlet.asset.model.AssetVocabulary fetchByUuid_Last(
305                    java.lang.String uuid,
306                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
307                    throws com.liferay.portal.kernel.exception.SystemException {
308                    return getPersistence().fetchByUuid_Last(uuid, orderByComparator);
309            }
310    
311            /**
312            * Returns the asset vocabularies before and after the current asset vocabulary in the ordered set where uuid = &#63;.
313            *
314            * @param vocabularyId the primary key of the current asset vocabulary
315            * @param uuid the uuid
316            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
317            * @return the previous, current, and next asset vocabulary
318            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found
319            * @throws SystemException if a system exception occurred
320            */
321            public static com.liferay.portlet.asset.model.AssetVocabulary[] findByUuid_PrevAndNext(
322                    long vocabularyId, java.lang.String uuid,
323                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
324                    throws com.liferay.portal.kernel.exception.SystemException,
325                            com.liferay.portlet.asset.NoSuchVocabularyException {
326                    return getPersistence()
327                                       .findByUuid_PrevAndNext(vocabularyId, uuid, orderByComparator);
328            }
329    
330            /**
331            * Returns the asset vocabulary where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portlet.asset.NoSuchVocabularyException} if it could not be found.
332            *
333            * @param uuid the uuid
334            * @param groupId the group ID
335            * @return the matching asset vocabulary
336            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
337            * @throws SystemException if a system exception occurred
338            */
339            public static com.liferay.portlet.asset.model.AssetVocabulary findByUUID_G(
340                    java.lang.String uuid, long groupId)
341                    throws com.liferay.portal.kernel.exception.SystemException,
342                            com.liferay.portlet.asset.NoSuchVocabularyException {
343                    return getPersistence().findByUUID_G(uuid, groupId);
344            }
345    
346            /**
347            * Returns the asset vocabulary where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
348            *
349            * @param uuid the uuid
350            * @param groupId the group ID
351            * @return the matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
352            * @throws SystemException if a system exception occurred
353            */
354            public static com.liferay.portlet.asset.model.AssetVocabulary fetchByUUID_G(
355                    java.lang.String uuid, long groupId)
356                    throws com.liferay.portal.kernel.exception.SystemException {
357                    return getPersistence().fetchByUUID_G(uuid, groupId);
358            }
359    
360            /**
361            * Returns the asset vocabulary where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
362            *
363            * @param uuid the uuid
364            * @param groupId the group ID
365            * @param retrieveFromCache whether to use the finder cache
366            * @return the matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
367            * @throws SystemException if a system exception occurred
368            */
369            public static com.liferay.portlet.asset.model.AssetVocabulary fetchByUUID_G(
370                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
371                    throws com.liferay.portal.kernel.exception.SystemException {
372                    return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
373            }
374    
375            /**
376            * Returns all the asset vocabularies where groupId = &#63;.
377            *
378            * @param groupId the group ID
379            * @return the matching asset vocabularies
380            * @throws SystemException if a system exception occurred
381            */
382            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByGroupId(
383                    long groupId)
384                    throws com.liferay.portal.kernel.exception.SystemException {
385                    return getPersistence().findByGroupId(groupId);
386            }
387    
388            /**
389            * Returns a range of all the asset vocabularies where groupId = &#63;.
390            *
391            * <p>
392            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
393            * </p>
394            *
395            * @param groupId the group ID
396            * @param start the lower bound of the range of asset vocabularies
397            * @param end the upper bound of the range of asset vocabularies (not inclusive)
398            * @return the range of matching asset vocabularies
399            * @throws SystemException if a system exception occurred
400            */
401            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByGroupId(
402                    long groupId, int start, int end)
403                    throws com.liferay.portal.kernel.exception.SystemException {
404                    return getPersistence().findByGroupId(groupId, start, end);
405            }
406    
407            /**
408            * Returns an ordered range of all the asset vocabularies where groupId = &#63;.
409            *
410            * <p>
411            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
412            * </p>
413            *
414            * @param groupId the group ID
415            * @param start the lower bound of the range of asset vocabularies
416            * @param end the upper bound of the range of asset vocabularies (not inclusive)
417            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
418            * @return the ordered range of matching asset vocabularies
419            * @throws SystemException if a system exception occurred
420            */
421            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByGroupId(
422                    long groupId, int start, int end,
423                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
424                    throws com.liferay.portal.kernel.exception.SystemException {
425                    return getPersistence()
426                                       .findByGroupId(groupId, start, end, orderByComparator);
427            }
428    
429            /**
430            * Returns the first asset vocabulary in the ordered set where groupId = &#63;.
431            *
432            * @param groupId the group ID
433            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
434            * @return the first matching asset vocabulary
435            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
436            * @throws SystemException if a system exception occurred
437            */
438            public static com.liferay.portlet.asset.model.AssetVocabulary findByGroupId_First(
439                    long groupId,
440                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
441                    throws com.liferay.portal.kernel.exception.SystemException,
442                            com.liferay.portlet.asset.NoSuchVocabularyException {
443                    return getPersistence().findByGroupId_First(groupId, orderByComparator);
444            }
445    
446            /**
447            * Returns the first asset vocabulary in the ordered set where groupId = &#63;.
448            *
449            * @param groupId the group ID
450            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
451            * @return the first matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
452            * @throws SystemException if a system exception occurred
453            */
454            public static com.liferay.portlet.asset.model.AssetVocabulary fetchByGroupId_First(
455                    long groupId,
456                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
457                    throws com.liferay.portal.kernel.exception.SystemException {
458                    return getPersistence().fetchByGroupId_First(groupId, orderByComparator);
459            }
460    
461            /**
462            * Returns the last asset vocabulary in the ordered set where groupId = &#63;.
463            *
464            * @param groupId the group ID
465            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
466            * @return the last matching asset vocabulary
467            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
468            * @throws SystemException if a system exception occurred
469            */
470            public static com.liferay.portlet.asset.model.AssetVocabulary findByGroupId_Last(
471                    long groupId,
472                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
473                    throws com.liferay.portal.kernel.exception.SystemException,
474                            com.liferay.portlet.asset.NoSuchVocabularyException {
475                    return getPersistence().findByGroupId_Last(groupId, orderByComparator);
476            }
477    
478            /**
479            * Returns the last asset vocabulary in the ordered set where groupId = &#63;.
480            *
481            * @param groupId the group ID
482            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
483            * @return the last matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
484            * @throws SystemException if a system exception occurred
485            */
486            public static com.liferay.portlet.asset.model.AssetVocabulary fetchByGroupId_Last(
487                    long groupId,
488                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
489                    throws com.liferay.portal.kernel.exception.SystemException {
490                    return getPersistence().fetchByGroupId_Last(groupId, orderByComparator);
491            }
492    
493            /**
494            * Returns the asset vocabularies before and after the current asset vocabulary in the ordered set where groupId = &#63;.
495            *
496            * @param vocabularyId the primary key of the current asset vocabulary
497            * @param groupId the group ID
498            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
499            * @return the previous, current, and next asset vocabulary
500            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found
501            * @throws SystemException if a system exception occurred
502            */
503            public static com.liferay.portlet.asset.model.AssetVocabulary[] findByGroupId_PrevAndNext(
504                    long vocabularyId, long groupId,
505                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
506                    throws com.liferay.portal.kernel.exception.SystemException,
507                            com.liferay.portlet.asset.NoSuchVocabularyException {
508                    return getPersistence()
509                                       .findByGroupId_PrevAndNext(vocabularyId, groupId,
510                            orderByComparator);
511            }
512    
513            /**
514            * Returns all the asset vocabularies that the user has permission to view where groupId = &#63;.
515            *
516            * @param groupId the group ID
517            * @return the matching asset vocabularies that the user has permission to view
518            * @throws SystemException if a system exception occurred
519            */
520            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> filterFindByGroupId(
521                    long groupId)
522                    throws com.liferay.portal.kernel.exception.SystemException {
523                    return getPersistence().filterFindByGroupId(groupId);
524            }
525    
526            /**
527            * Returns a range of all the asset vocabularies that the user has permission to view where groupId = &#63;.
528            *
529            * <p>
530            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
531            * </p>
532            *
533            * @param groupId the group ID
534            * @param start the lower bound of the range of asset vocabularies
535            * @param end the upper bound of the range of asset vocabularies (not inclusive)
536            * @return the range of matching asset vocabularies that the user has permission to view
537            * @throws SystemException if a system exception occurred
538            */
539            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> filterFindByGroupId(
540                    long groupId, int start, int end)
541                    throws com.liferay.portal.kernel.exception.SystemException {
542                    return getPersistence().filterFindByGroupId(groupId, start, end);
543            }
544    
545            /**
546            * Returns an ordered range of all the asset vocabularies that the user has permissions to view where groupId = &#63;.
547            *
548            * <p>
549            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
550            * </p>
551            *
552            * @param groupId the group ID
553            * @param start the lower bound of the range of asset vocabularies
554            * @param end the upper bound of the range of asset vocabularies (not inclusive)
555            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
556            * @return the ordered range of matching asset vocabularies that the user has permission to view
557            * @throws SystemException if a system exception occurred
558            */
559            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> filterFindByGroupId(
560                    long groupId, int start, int end,
561                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
562                    throws com.liferay.portal.kernel.exception.SystemException {
563                    return getPersistence()
564                                       .filterFindByGroupId(groupId, start, end, orderByComparator);
565            }
566    
567            /**
568            * Returns the asset vocabularies before and after the current asset vocabulary in the ordered set of asset vocabularies that the user has permission to view where groupId = &#63;.
569            *
570            * @param vocabularyId the primary key of the current asset vocabulary
571            * @param groupId the group ID
572            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
573            * @return the previous, current, and next asset vocabulary
574            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found
575            * @throws SystemException if a system exception occurred
576            */
577            public static com.liferay.portlet.asset.model.AssetVocabulary[] filterFindByGroupId_PrevAndNext(
578                    long vocabularyId, long groupId,
579                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
580                    throws com.liferay.portal.kernel.exception.SystemException,
581                            com.liferay.portlet.asset.NoSuchVocabularyException {
582                    return getPersistence()
583                                       .filterFindByGroupId_PrevAndNext(vocabularyId, groupId,
584                            orderByComparator);
585            }
586    
587            /**
588            * Returns all the asset vocabularies where companyId = &#63;.
589            *
590            * @param companyId the company ID
591            * @return the matching asset vocabularies
592            * @throws SystemException if a system exception occurred
593            */
594            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId(
595                    long companyId)
596                    throws com.liferay.portal.kernel.exception.SystemException {
597                    return getPersistence().findByCompanyId(companyId);
598            }
599    
600            /**
601            * Returns a range of all the asset vocabularies where companyId = &#63;.
602            *
603            * <p>
604            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
605            * </p>
606            *
607            * @param companyId the company ID
608            * @param start the lower bound of the range of asset vocabularies
609            * @param end the upper bound of the range of asset vocabularies (not inclusive)
610            * @return the range of matching asset vocabularies
611            * @throws SystemException if a system exception occurred
612            */
613            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId(
614                    long companyId, int start, int end)
615                    throws com.liferay.portal.kernel.exception.SystemException {
616                    return getPersistence().findByCompanyId(companyId, start, end);
617            }
618    
619            /**
620            * Returns an ordered range of all the asset vocabularies where companyId = &#63;.
621            *
622            * <p>
623            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
624            * </p>
625            *
626            * @param companyId the company ID
627            * @param start the lower bound of the range of asset vocabularies
628            * @param end the upper bound of the range of asset vocabularies (not inclusive)
629            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
630            * @return the ordered range of matching asset vocabularies
631            * @throws SystemException if a system exception occurred
632            */
633            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId(
634                    long companyId, int start, int end,
635                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
636                    throws com.liferay.portal.kernel.exception.SystemException {
637                    return getPersistence()
638                                       .findByCompanyId(companyId, start, end, orderByComparator);
639            }
640    
641            /**
642            * Returns the first asset vocabulary in the ordered set where companyId = &#63;.
643            *
644            * @param companyId the company ID
645            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
646            * @return the first matching asset vocabulary
647            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
648            * @throws SystemException if a system exception occurred
649            */
650            public static com.liferay.portlet.asset.model.AssetVocabulary findByCompanyId_First(
651                    long companyId,
652                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
653                    throws com.liferay.portal.kernel.exception.SystemException,
654                            com.liferay.portlet.asset.NoSuchVocabularyException {
655                    return getPersistence()
656                                       .findByCompanyId_First(companyId, orderByComparator);
657            }
658    
659            /**
660            * Returns the first asset vocabulary in the ordered set where companyId = &#63;.
661            *
662            * @param companyId the company ID
663            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
664            * @return the first matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
665            * @throws SystemException if a system exception occurred
666            */
667            public static com.liferay.portlet.asset.model.AssetVocabulary fetchByCompanyId_First(
668                    long companyId,
669                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
670                    throws com.liferay.portal.kernel.exception.SystemException {
671                    return getPersistence()
672                                       .fetchByCompanyId_First(companyId, orderByComparator);
673            }
674    
675            /**
676            * Returns the last asset vocabulary in the ordered set where companyId = &#63;.
677            *
678            * @param companyId the company ID
679            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
680            * @return the last matching asset vocabulary
681            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
682            * @throws SystemException if a system exception occurred
683            */
684            public static com.liferay.portlet.asset.model.AssetVocabulary findByCompanyId_Last(
685                    long companyId,
686                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
687                    throws com.liferay.portal.kernel.exception.SystemException,
688                            com.liferay.portlet.asset.NoSuchVocabularyException {
689                    return getPersistence()
690                                       .findByCompanyId_Last(companyId, orderByComparator);
691            }
692    
693            /**
694            * Returns the last asset vocabulary in the ordered set where companyId = &#63;.
695            *
696            * @param companyId the company ID
697            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
698            * @return the last matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
699            * @throws SystemException if a system exception occurred
700            */
701            public static com.liferay.portlet.asset.model.AssetVocabulary fetchByCompanyId_Last(
702                    long companyId,
703                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
704                    throws com.liferay.portal.kernel.exception.SystemException {
705                    return getPersistence()
706                                       .fetchByCompanyId_Last(companyId, orderByComparator);
707            }
708    
709            /**
710            * Returns the asset vocabularies before and after the current asset vocabulary in the ordered set where companyId = &#63;.
711            *
712            * @param vocabularyId the primary key of the current asset vocabulary
713            * @param companyId the company ID
714            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
715            * @return the previous, current, and next asset vocabulary
716            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found
717            * @throws SystemException if a system exception occurred
718            */
719            public static com.liferay.portlet.asset.model.AssetVocabulary[] findByCompanyId_PrevAndNext(
720                    long vocabularyId, long companyId,
721                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
722                    throws com.liferay.portal.kernel.exception.SystemException,
723                            com.liferay.portlet.asset.NoSuchVocabularyException {
724                    return getPersistence()
725                                       .findByCompanyId_PrevAndNext(vocabularyId, companyId,
726                            orderByComparator);
727            }
728    
729            /**
730            * Returns the asset vocabulary where groupId = &#63; and name = &#63; or throws a {@link com.liferay.portlet.asset.NoSuchVocabularyException} if it could not be found.
731            *
732            * @param groupId the group ID
733            * @param name the name
734            * @return the matching asset vocabulary
735            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
736            * @throws SystemException if a system exception occurred
737            */
738            public static com.liferay.portlet.asset.model.AssetVocabulary findByG_N(
739                    long groupId, java.lang.String name)
740                    throws com.liferay.portal.kernel.exception.SystemException,
741                            com.liferay.portlet.asset.NoSuchVocabularyException {
742                    return getPersistence().findByG_N(groupId, name);
743            }
744    
745            /**
746            * Returns the asset vocabulary where groupId = &#63; and name = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
747            *
748            * @param groupId the group ID
749            * @param name the name
750            * @return the matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
751            * @throws SystemException if a system exception occurred
752            */
753            public static com.liferay.portlet.asset.model.AssetVocabulary fetchByG_N(
754                    long groupId, java.lang.String name)
755                    throws com.liferay.portal.kernel.exception.SystemException {
756                    return getPersistence().fetchByG_N(groupId, name);
757            }
758    
759            /**
760            * Returns the asset vocabulary where groupId = &#63; and name = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
761            *
762            * @param groupId the group ID
763            * @param name the name
764            * @param retrieveFromCache whether to use the finder cache
765            * @return the matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
766            * @throws SystemException if a system exception occurred
767            */
768            public static com.liferay.portlet.asset.model.AssetVocabulary fetchByG_N(
769                    long groupId, java.lang.String name, boolean retrieveFromCache)
770                    throws com.liferay.portal.kernel.exception.SystemException {
771                    return getPersistence().fetchByG_N(groupId, name, retrieveFromCache);
772            }
773    
774            /**
775            * Returns all the asset vocabularies.
776            *
777            * @return the asset vocabularies
778            * @throws SystemException if a system exception occurred
779            */
780            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll()
781                    throws com.liferay.portal.kernel.exception.SystemException {
782                    return getPersistence().findAll();
783            }
784    
785            /**
786            * Returns a range of all the asset vocabularies.
787            *
788            * <p>
789            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
790            * </p>
791            *
792            * @param start the lower bound of the range of asset vocabularies
793            * @param end the upper bound of the range of asset vocabularies (not inclusive)
794            * @return the range of asset vocabularies
795            * @throws SystemException if a system exception occurred
796            */
797            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll(
798                    int start, int end)
799                    throws com.liferay.portal.kernel.exception.SystemException {
800                    return getPersistence().findAll(start, end);
801            }
802    
803            /**
804            * Returns an ordered range of all the asset vocabularies.
805            *
806            * <p>
807            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
808            * </p>
809            *
810            * @param start the lower bound of the range of asset vocabularies
811            * @param end the upper bound of the range of asset vocabularies (not inclusive)
812            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
813            * @return the ordered range of asset vocabularies
814            * @throws SystemException if a system exception occurred
815            */
816            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll(
817                    int start, int end,
818                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
819                    throws com.liferay.portal.kernel.exception.SystemException {
820                    return getPersistence().findAll(start, end, orderByComparator);
821            }
822    
823            /**
824            * Removes all the asset vocabularies where uuid = &#63; from the database.
825            *
826            * @param uuid the uuid
827            * @throws SystemException if a system exception occurred
828            */
829            public static void removeByUuid(java.lang.String uuid)
830                    throws com.liferay.portal.kernel.exception.SystemException {
831                    getPersistence().removeByUuid(uuid);
832            }
833    
834            /**
835            * Removes the asset vocabulary where uuid = &#63; and groupId = &#63; from the database.
836            *
837            * @param uuid the uuid
838            * @param groupId the group ID
839            * @return the asset vocabulary that was removed
840            * @throws SystemException if a system exception occurred
841            */
842            public static com.liferay.portlet.asset.model.AssetVocabulary removeByUUID_G(
843                    java.lang.String uuid, long groupId)
844                    throws com.liferay.portal.kernel.exception.SystemException,
845                            com.liferay.portlet.asset.NoSuchVocabularyException {
846                    return getPersistence().removeByUUID_G(uuid, groupId);
847            }
848    
849            /**
850            * Removes all the asset vocabularies where groupId = &#63; from the database.
851            *
852            * @param groupId the group ID
853            * @throws SystemException if a system exception occurred
854            */
855            public static void removeByGroupId(long groupId)
856                    throws com.liferay.portal.kernel.exception.SystemException {
857                    getPersistence().removeByGroupId(groupId);
858            }
859    
860            /**
861            * Removes all the asset vocabularies where companyId = &#63; from the database.
862            *
863            * @param companyId the company ID
864            * @throws SystemException if a system exception occurred
865            */
866            public static void removeByCompanyId(long companyId)
867                    throws com.liferay.portal.kernel.exception.SystemException {
868                    getPersistence().removeByCompanyId(companyId);
869            }
870    
871            /**
872            * Removes the asset vocabulary where groupId = &#63; and name = &#63; from the database.
873            *
874            * @param groupId the group ID
875            * @param name the name
876            * @return the asset vocabulary that was removed
877            * @throws SystemException if a system exception occurred
878            */
879            public static com.liferay.portlet.asset.model.AssetVocabulary removeByG_N(
880                    long groupId, java.lang.String name)
881                    throws com.liferay.portal.kernel.exception.SystemException,
882                            com.liferay.portlet.asset.NoSuchVocabularyException {
883                    return getPersistence().removeByG_N(groupId, name);
884            }
885    
886            /**
887            * Removes all the asset vocabularies from the database.
888            *
889            * @throws SystemException if a system exception occurred
890            */
891            public static void removeAll()
892                    throws com.liferay.portal.kernel.exception.SystemException {
893                    getPersistence().removeAll();
894            }
895    
896            /**
897            * Returns the number of asset vocabularies where uuid = &#63;.
898            *
899            * @param uuid the uuid
900            * @return the number of matching asset vocabularies
901            * @throws SystemException if a system exception occurred
902            */
903            public static int countByUuid(java.lang.String uuid)
904                    throws com.liferay.portal.kernel.exception.SystemException {
905                    return getPersistence().countByUuid(uuid);
906            }
907    
908            /**
909            * Returns the number of asset vocabularies where uuid = &#63; and groupId = &#63;.
910            *
911            * @param uuid the uuid
912            * @param groupId the group ID
913            * @return the number of matching asset vocabularies
914            * @throws SystemException if a system exception occurred
915            */
916            public static int countByUUID_G(java.lang.String uuid, long groupId)
917                    throws com.liferay.portal.kernel.exception.SystemException {
918                    return getPersistence().countByUUID_G(uuid, groupId);
919            }
920    
921            /**
922            * Returns the number of asset vocabularies where groupId = &#63;.
923            *
924            * @param groupId the group ID
925            * @return the number of matching asset vocabularies
926            * @throws SystemException if a system exception occurred
927            */
928            public static int countByGroupId(long groupId)
929                    throws com.liferay.portal.kernel.exception.SystemException {
930                    return getPersistence().countByGroupId(groupId);
931            }
932    
933            /**
934            * Returns the number of asset vocabularies that the user has permission to view where groupId = &#63;.
935            *
936            * @param groupId the group ID
937            * @return the number of matching asset vocabularies that the user has permission to view
938            * @throws SystemException if a system exception occurred
939            */
940            public static int filterCountByGroupId(long groupId)
941                    throws com.liferay.portal.kernel.exception.SystemException {
942                    return getPersistence().filterCountByGroupId(groupId);
943            }
944    
945            /**
946            * Returns the number of asset vocabularies where companyId = &#63;.
947            *
948            * @param companyId the company ID
949            * @return the number of matching asset vocabularies
950            * @throws SystemException if a system exception occurred
951            */
952            public static int countByCompanyId(long companyId)
953                    throws com.liferay.portal.kernel.exception.SystemException {
954                    return getPersistence().countByCompanyId(companyId);
955            }
956    
957            /**
958            * Returns the number of asset vocabularies where groupId = &#63; and name = &#63;.
959            *
960            * @param groupId the group ID
961            * @param name the name
962            * @return the number of matching asset vocabularies
963            * @throws SystemException if a system exception occurred
964            */
965            public static int countByG_N(long groupId, java.lang.String name)
966                    throws com.liferay.portal.kernel.exception.SystemException {
967                    return getPersistence().countByG_N(groupId, name);
968            }
969    
970            /**
971            * Returns the number of asset vocabularies.
972            *
973            * @return the number of asset vocabularies
974            * @throws SystemException if a system exception occurred
975            */
976            public static int countAll()
977                    throws com.liferay.portal.kernel.exception.SystemException {
978                    return getPersistence().countAll();
979            }
980    
981            public static AssetVocabularyPersistence getPersistence() {
982                    if (_persistence == null) {
983                            _persistence = (AssetVocabularyPersistence)PortalBeanLocatorUtil.locate(AssetVocabularyPersistence.class.getName());
984    
985                            ReferenceRegistry.registerReference(AssetVocabularyUtil.class,
986                                    "_persistence");
987                    }
988    
989                    return _persistence;
990            }
991    
992            /**
993             * @deprecated
994             */
995            public void setPersistence(AssetVocabularyPersistence persistence) {
996            }
997    
998            private static AssetVocabularyPersistence _persistence;
999    }