001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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#remove(com.liferay.portal.model.BaseModel)
099             */
100            public static AssetVocabulary remove(AssetVocabulary assetVocabulary)
101                    throws SystemException {
102                    return getPersistence().remove(assetVocabulary);
103            }
104    
105            /**
106             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
107             */
108            public static AssetVocabulary update(AssetVocabulary assetVocabulary,
109                    boolean merge) throws SystemException {
110                    return getPersistence().update(assetVocabulary, merge);
111            }
112    
113            /**
114             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
115             */
116            public static AssetVocabulary update(AssetVocabulary assetVocabulary,
117                    boolean merge, ServiceContext serviceContext) throws SystemException {
118                    return getPersistence().update(assetVocabulary, merge, serviceContext);
119            }
120    
121            /**
122            * Caches the asset vocabulary in the entity cache if it is enabled.
123            *
124            * @param assetVocabulary the asset vocabulary to cache
125            */
126            public static void cacheResult(
127                    com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary) {
128                    getPersistence().cacheResult(assetVocabulary);
129            }
130    
131            /**
132            * Caches the asset vocabularies in the entity cache if it is enabled.
133            *
134            * @param assetVocabularies the asset vocabularies to cache
135            */
136            public static void cacheResult(
137                    java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> assetVocabularies) {
138                    getPersistence().cacheResult(assetVocabularies);
139            }
140    
141            /**
142            * Creates a new asset vocabulary with the primary key. Does not add the asset vocabulary to the database.
143            *
144            * @param vocabularyId the primary key for the new asset vocabulary
145            * @return the new asset vocabulary
146            */
147            public static com.liferay.portlet.asset.model.AssetVocabulary create(
148                    long vocabularyId) {
149                    return getPersistence().create(vocabularyId);
150            }
151    
152            /**
153            * Removes the asset vocabulary with the primary key from the database. Also notifies the appropriate model listeners.
154            *
155            * @param vocabularyId the primary key of the asset vocabulary to remove
156            * @return the asset vocabulary that was removed
157            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found
158            * @throws SystemException if a system exception occurred
159            */
160            public static com.liferay.portlet.asset.model.AssetVocabulary remove(
161                    long vocabularyId)
162                    throws com.liferay.portal.kernel.exception.SystemException,
163                            com.liferay.portlet.asset.NoSuchVocabularyException {
164                    return getPersistence().remove(vocabularyId);
165            }
166    
167            public static com.liferay.portlet.asset.model.AssetVocabulary updateImpl(
168                    com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary,
169                    boolean merge)
170                    throws com.liferay.portal.kernel.exception.SystemException {
171                    return getPersistence().updateImpl(assetVocabulary, merge);
172            }
173    
174            /**
175            * Finds the asset vocabulary with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchVocabularyException} if it could not be found.
176            *
177            * @param vocabularyId the primary key of the asset vocabulary to find
178            * @return the asset vocabulary
179            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found
180            * @throws SystemException if a system exception occurred
181            */
182            public static com.liferay.portlet.asset.model.AssetVocabulary findByPrimaryKey(
183                    long vocabularyId)
184                    throws com.liferay.portal.kernel.exception.SystemException,
185                            com.liferay.portlet.asset.NoSuchVocabularyException {
186                    return getPersistence().findByPrimaryKey(vocabularyId);
187            }
188    
189            /**
190            * Finds the asset vocabulary with the primary key or returns <code>null</code> if it could not be found.
191            *
192            * @param vocabularyId the primary key of the asset vocabulary to find
193            * @return the asset vocabulary, or <code>null</code> if a asset vocabulary with the primary key could not be found
194            * @throws SystemException if a system exception occurred
195            */
196            public static com.liferay.portlet.asset.model.AssetVocabulary fetchByPrimaryKey(
197                    long vocabularyId)
198                    throws com.liferay.portal.kernel.exception.SystemException {
199                    return getPersistence().fetchByPrimaryKey(vocabularyId);
200            }
201    
202            /**
203            * Finds all the asset vocabularies where uuid = &#63;.
204            *
205            * @param uuid the uuid to search with
206            * @return the matching asset vocabularies
207            * @throws SystemException if a system exception occurred
208            */
209            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByUuid(
210                    java.lang.String uuid)
211                    throws com.liferay.portal.kernel.exception.SystemException {
212                    return getPersistence().findByUuid(uuid);
213            }
214    
215            /**
216            * Finds a range of all the asset vocabularies where uuid = &#63;.
217            *
218            * <p>
219            * 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.
220            * </p>
221            *
222            * @param uuid the uuid to search with
223            * @param start the lower bound of the range of asset vocabularies to return
224            * @param end the upper bound of the range of asset vocabularies to return (not inclusive)
225            * @return the range of matching asset vocabularies
226            * @throws SystemException if a system exception occurred
227            */
228            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByUuid(
229                    java.lang.String uuid, int start, int end)
230                    throws com.liferay.portal.kernel.exception.SystemException {
231                    return getPersistence().findByUuid(uuid, start, end);
232            }
233    
234            /**
235            * Finds an ordered range of all the asset vocabularies where uuid = &#63;.
236            *
237            * <p>
238            * 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.
239            * </p>
240            *
241            * @param uuid the uuid to search with
242            * @param start the lower bound of the range of asset vocabularies to return
243            * @param end the upper bound of the range of asset vocabularies to return (not inclusive)
244            * @param orderByComparator the comparator to order the results by
245            * @return the ordered range of matching asset vocabularies
246            * @throws SystemException if a system exception occurred
247            */
248            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByUuid(
249                    java.lang.String uuid, int start, int end,
250                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
251                    throws com.liferay.portal.kernel.exception.SystemException {
252                    return getPersistence().findByUuid(uuid, start, end, orderByComparator);
253            }
254    
255            /**
256            * Finds the first asset vocabulary in the ordered set where uuid = &#63;.
257            *
258            * <p>
259            * 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.
260            * </p>
261            *
262            * @param uuid the uuid to search with
263            * @param orderByComparator the comparator to order the set by
264            * @return the first matching asset vocabulary
265            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
266            * @throws SystemException if a system exception occurred
267            */
268            public static com.liferay.portlet.asset.model.AssetVocabulary findByUuid_First(
269                    java.lang.String uuid,
270                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
271                    throws com.liferay.portal.kernel.exception.SystemException,
272                            com.liferay.portlet.asset.NoSuchVocabularyException {
273                    return getPersistence().findByUuid_First(uuid, orderByComparator);
274            }
275    
276            /**
277            * Finds the last asset vocabulary in the ordered set where uuid = &#63;.
278            *
279            * <p>
280            * 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.
281            * </p>
282            *
283            * @param uuid the uuid to search with
284            * @param orderByComparator the comparator to order the set by
285            * @return the last matching asset vocabulary
286            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
287            * @throws SystemException if a system exception occurred
288            */
289            public static com.liferay.portlet.asset.model.AssetVocabulary findByUuid_Last(
290                    java.lang.String uuid,
291                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
292                    throws com.liferay.portal.kernel.exception.SystemException,
293                            com.liferay.portlet.asset.NoSuchVocabularyException {
294                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
295            }
296    
297            /**
298            * Finds the asset vocabularies before and after the current asset vocabulary in the ordered set where uuid = &#63;.
299            *
300            * <p>
301            * 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.
302            * </p>
303            *
304            * @param vocabularyId the primary key of the current asset vocabulary
305            * @param uuid the uuid to search with
306            * @param orderByComparator the comparator to order the set by
307            * @return the previous, current, and next asset vocabulary
308            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found
309            * @throws SystemException if a system exception occurred
310            */
311            public static com.liferay.portlet.asset.model.AssetVocabulary[] findByUuid_PrevAndNext(
312                    long vocabularyId, java.lang.String uuid,
313                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
314                    throws com.liferay.portal.kernel.exception.SystemException,
315                            com.liferay.portlet.asset.NoSuchVocabularyException {
316                    return getPersistence()
317                                       .findByUuid_PrevAndNext(vocabularyId, uuid, orderByComparator);
318            }
319    
320            /**
321            * Finds the asset vocabulary where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portlet.asset.NoSuchVocabularyException} if it could not be found.
322            *
323            * @param uuid the uuid to search with
324            * @param groupId the group ID to search with
325            * @return the matching asset vocabulary
326            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
327            * @throws SystemException if a system exception occurred
328            */
329            public static com.liferay.portlet.asset.model.AssetVocabulary findByUUID_G(
330                    java.lang.String uuid, long groupId)
331                    throws com.liferay.portal.kernel.exception.SystemException,
332                            com.liferay.portlet.asset.NoSuchVocabularyException {
333                    return getPersistence().findByUUID_G(uuid, groupId);
334            }
335    
336            /**
337            * Finds the asset vocabulary where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
338            *
339            * @param uuid the uuid to search with
340            * @param groupId the group ID to search with
341            * @return the matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
342            * @throws SystemException if a system exception occurred
343            */
344            public static com.liferay.portlet.asset.model.AssetVocabulary fetchByUUID_G(
345                    java.lang.String uuid, long groupId)
346                    throws com.liferay.portal.kernel.exception.SystemException {
347                    return getPersistence().fetchByUUID_G(uuid, groupId);
348            }
349    
350            /**
351            * Finds 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.
352            *
353            * @param uuid the uuid to search with
354            * @param groupId the group ID to search with
355            * @return the matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
356            * @throws SystemException if a system exception occurred
357            */
358            public static com.liferay.portlet.asset.model.AssetVocabulary fetchByUUID_G(
359                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
360                    throws com.liferay.portal.kernel.exception.SystemException {
361                    return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
362            }
363    
364            /**
365            * Finds all the asset vocabularies where groupId = &#63;.
366            *
367            * @param groupId the group ID to search with
368            * @return the matching asset vocabularies
369            * @throws SystemException if a system exception occurred
370            */
371            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByGroupId(
372                    long groupId)
373                    throws com.liferay.portal.kernel.exception.SystemException {
374                    return getPersistence().findByGroupId(groupId);
375            }
376    
377            /**
378            * Finds a range of all the asset vocabularies where groupId = &#63;.
379            *
380            * <p>
381            * 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.
382            * </p>
383            *
384            * @param groupId the group ID to search with
385            * @param start the lower bound of the range of asset vocabularies to return
386            * @param end the upper bound of the range of asset vocabularies to return (not inclusive)
387            * @return the range of matching asset vocabularies
388            * @throws SystemException if a system exception occurred
389            */
390            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByGroupId(
391                    long groupId, int start, int end)
392                    throws com.liferay.portal.kernel.exception.SystemException {
393                    return getPersistence().findByGroupId(groupId, start, end);
394            }
395    
396            /**
397            * Finds an ordered range of all the asset vocabularies where groupId = &#63;.
398            *
399            * <p>
400            * 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.
401            * </p>
402            *
403            * @param groupId the group ID to search with
404            * @param start the lower bound of the range of asset vocabularies to return
405            * @param end the upper bound of the range of asset vocabularies to return (not inclusive)
406            * @param orderByComparator the comparator to order the results by
407            * @return the ordered range of matching asset vocabularies
408            * @throws SystemException if a system exception occurred
409            */
410            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByGroupId(
411                    long groupId, int start, int end,
412                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
413                    throws com.liferay.portal.kernel.exception.SystemException {
414                    return getPersistence()
415                                       .findByGroupId(groupId, start, end, orderByComparator);
416            }
417    
418            /**
419            * Finds the first asset vocabulary in the ordered set where groupId = &#63;.
420            *
421            * <p>
422            * 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.
423            * </p>
424            *
425            * @param groupId the group ID to search with
426            * @param orderByComparator the comparator to order the set by
427            * @return the first matching asset vocabulary
428            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
429            * @throws SystemException if a system exception occurred
430            */
431            public static com.liferay.portlet.asset.model.AssetVocabulary findByGroupId_First(
432                    long groupId,
433                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
434                    throws com.liferay.portal.kernel.exception.SystemException,
435                            com.liferay.portlet.asset.NoSuchVocabularyException {
436                    return getPersistence().findByGroupId_First(groupId, orderByComparator);
437            }
438    
439            /**
440            * Finds the last asset vocabulary in the ordered set where groupId = &#63;.
441            *
442            * <p>
443            * 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.
444            * </p>
445            *
446            * @param groupId the group ID to search with
447            * @param orderByComparator the comparator to order the set by
448            * @return the last matching asset vocabulary
449            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
450            * @throws SystemException if a system exception occurred
451            */
452            public static com.liferay.portlet.asset.model.AssetVocabulary findByGroupId_Last(
453                    long groupId,
454                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
455                    throws com.liferay.portal.kernel.exception.SystemException,
456                            com.liferay.portlet.asset.NoSuchVocabularyException {
457                    return getPersistence().findByGroupId_Last(groupId, orderByComparator);
458            }
459    
460            /**
461            * Finds the asset vocabularies before and after the current asset vocabulary in the ordered set where groupId = &#63;.
462            *
463            * <p>
464            * 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.
465            * </p>
466            *
467            * @param vocabularyId the primary key of the current asset vocabulary
468            * @param groupId the group ID to search with
469            * @param orderByComparator the comparator to order the set by
470            * @return the previous, current, and next asset vocabulary
471            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found
472            * @throws SystemException if a system exception occurred
473            */
474            public static com.liferay.portlet.asset.model.AssetVocabulary[] findByGroupId_PrevAndNext(
475                    long vocabularyId, long groupId,
476                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
477                    throws com.liferay.portal.kernel.exception.SystemException,
478                            com.liferay.portlet.asset.NoSuchVocabularyException {
479                    return getPersistence()
480                                       .findByGroupId_PrevAndNext(vocabularyId, groupId,
481                            orderByComparator);
482            }
483    
484            /**
485            * Filters by the user's permissions and finds all the asset vocabularies where groupId = &#63;.
486            *
487            * @param groupId the group ID to search with
488            * @return the matching asset vocabularies that the user has permission to view
489            * @throws SystemException if a system exception occurred
490            */
491            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> filterFindByGroupId(
492                    long groupId)
493                    throws com.liferay.portal.kernel.exception.SystemException {
494                    return getPersistence().filterFindByGroupId(groupId);
495            }
496    
497            /**
498            * Filters by the user's permissions and finds a range of all the asset vocabularies where groupId = &#63;.
499            *
500            * <p>
501            * 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.
502            * </p>
503            *
504            * @param groupId the group ID to search with
505            * @param start the lower bound of the range of asset vocabularies to return
506            * @param end the upper bound of the range of asset vocabularies to return (not inclusive)
507            * @return the range of matching asset vocabularies that the user has permission to view
508            * @throws SystemException if a system exception occurred
509            */
510            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> filterFindByGroupId(
511                    long groupId, int start, int end)
512                    throws com.liferay.portal.kernel.exception.SystemException {
513                    return getPersistence().filterFindByGroupId(groupId, start, end);
514            }
515    
516            /**
517            * Filters by the user's permissions and finds an ordered range of all the asset vocabularies where groupId = &#63;.
518            *
519            * <p>
520            * 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.
521            * </p>
522            *
523            * @param groupId the group ID to search with
524            * @param start the lower bound of the range of asset vocabularies to return
525            * @param end the upper bound of the range of asset vocabularies to return (not inclusive)
526            * @param orderByComparator the comparator to order the results by
527            * @return the ordered range of matching asset vocabularies that the user has permission to view
528            * @throws SystemException if a system exception occurred
529            */
530            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> filterFindByGroupId(
531                    long groupId, int start, int end,
532                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
533                    throws com.liferay.portal.kernel.exception.SystemException {
534                    return getPersistence()
535                                       .filterFindByGroupId(groupId, start, end, orderByComparator);
536            }
537    
538            /**
539            * Filters the asset vocabularies before and after the current asset vocabulary in the ordered set where groupId = &#63;.
540            *
541            * <p>
542            * 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.
543            * </p>
544            *
545            * @param vocabularyId the primary key of the current asset vocabulary
546            * @param groupId the group ID to search with
547            * @param orderByComparator the comparator to order the set by
548            * @return the previous, current, and next asset vocabulary
549            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found
550            * @throws SystemException if a system exception occurred
551            */
552            public static com.liferay.portlet.asset.model.AssetVocabulary[] filterFindByGroupId_PrevAndNext(
553                    long vocabularyId, long groupId,
554                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
555                    throws com.liferay.portal.kernel.exception.SystemException,
556                            com.liferay.portlet.asset.NoSuchVocabularyException {
557                    return getPersistence()
558                                       .filterFindByGroupId_PrevAndNext(vocabularyId, groupId,
559                            orderByComparator);
560            }
561    
562            /**
563            * Finds all the asset vocabularies where companyId = &#63;.
564            *
565            * @param companyId the company ID to search with
566            * @return the matching asset vocabularies
567            * @throws SystemException if a system exception occurred
568            */
569            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId(
570                    long companyId)
571                    throws com.liferay.portal.kernel.exception.SystemException {
572                    return getPersistence().findByCompanyId(companyId);
573            }
574    
575            /**
576            * Finds a range of all the asset vocabularies where companyId = &#63;.
577            *
578            * <p>
579            * 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.
580            * </p>
581            *
582            * @param companyId the company ID to search with
583            * @param start the lower bound of the range of asset vocabularies to return
584            * @param end the upper bound of the range of asset vocabularies to return (not inclusive)
585            * @return the range of matching asset vocabularies
586            * @throws SystemException if a system exception occurred
587            */
588            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId(
589                    long companyId, int start, int end)
590                    throws com.liferay.portal.kernel.exception.SystemException {
591                    return getPersistence().findByCompanyId(companyId, start, end);
592            }
593    
594            /**
595            * Finds an ordered range of all the asset vocabularies where companyId = &#63;.
596            *
597            * <p>
598            * 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.
599            * </p>
600            *
601            * @param companyId the company ID to search with
602            * @param start the lower bound of the range of asset vocabularies to return
603            * @param end the upper bound of the range of asset vocabularies to return (not inclusive)
604            * @param orderByComparator the comparator to order the results by
605            * @return the ordered range of matching asset vocabularies
606            * @throws SystemException if a system exception occurred
607            */
608            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId(
609                    long companyId, int start, int end,
610                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
611                    throws com.liferay.portal.kernel.exception.SystemException {
612                    return getPersistence()
613                                       .findByCompanyId(companyId, start, end, orderByComparator);
614            }
615    
616            /**
617            * Finds the first asset vocabulary in the ordered set where companyId = &#63;.
618            *
619            * <p>
620            * 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.
621            * </p>
622            *
623            * @param companyId the company ID to search with
624            * @param orderByComparator the comparator to order the set by
625            * @return the first matching asset vocabulary
626            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
627            * @throws SystemException if a system exception occurred
628            */
629            public static com.liferay.portlet.asset.model.AssetVocabulary findByCompanyId_First(
630                    long companyId,
631                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
632                    throws com.liferay.portal.kernel.exception.SystemException,
633                            com.liferay.portlet.asset.NoSuchVocabularyException {
634                    return getPersistence()
635                                       .findByCompanyId_First(companyId, orderByComparator);
636            }
637    
638            /**
639            * Finds the last asset vocabulary in the ordered set where companyId = &#63;.
640            *
641            * <p>
642            * 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.
643            * </p>
644            *
645            * @param companyId the company ID to search with
646            * @param orderByComparator the comparator to order the set by
647            * @return the last matching asset vocabulary
648            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
649            * @throws SystemException if a system exception occurred
650            */
651            public static com.liferay.portlet.asset.model.AssetVocabulary findByCompanyId_Last(
652                    long companyId,
653                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
654                    throws com.liferay.portal.kernel.exception.SystemException,
655                            com.liferay.portlet.asset.NoSuchVocabularyException {
656                    return getPersistence()
657                                       .findByCompanyId_Last(companyId, orderByComparator);
658            }
659    
660            /**
661            * Finds the asset vocabularies before and after the current asset vocabulary in the ordered set where companyId = &#63;.
662            *
663            * <p>
664            * 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.
665            * </p>
666            *
667            * @param vocabularyId the primary key of the current asset vocabulary
668            * @param companyId the company ID to search with
669            * @param orderByComparator the comparator to order the set by
670            * @return the previous, current, and next asset vocabulary
671            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found
672            * @throws SystemException if a system exception occurred
673            */
674            public static com.liferay.portlet.asset.model.AssetVocabulary[] findByCompanyId_PrevAndNext(
675                    long vocabularyId, long companyId,
676                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
677                    throws com.liferay.portal.kernel.exception.SystemException,
678                            com.liferay.portlet.asset.NoSuchVocabularyException {
679                    return getPersistence()
680                                       .findByCompanyId_PrevAndNext(vocabularyId, companyId,
681                            orderByComparator);
682            }
683    
684            /**
685            * Finds the asset vocabulary where groupId = &#63; and name = &#63; or throws a {@link com.liferay.portlet.asset.NoSuchVocabularyException} if it could not be found.
686            *
687            * @param groupId the group ID to search with
688            * @param name the name to search with
689            * @return the matching asset vocabulary
690            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
691            * @throws SystemException if a system exception occurred
692            */
693            public static com.liferay.portlet.asset.model.AssetVocabulary findByG_N(
694                    long groupId, java.lang.String name)
695                    throws com.liferay.portal.kernel.exception.SystemException,
696                            com.liferay.portlet.asset.NoSuchVocabularyException {
697                    return getPersistence().findByG_N(groupId, name);
698            }
699    
700            /**
701            * Finds the asset vocabulary where groupId = &#63; and name = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
702            *
703            * @param groupId the group ID to search with
704            * @param name the name to search with
705            * @return the matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
706            * @throws SystemException if a system exception occurred
707            */
708            public static com.liferay.portlet.asset.model.AssetVocabulary fetchByG_N(
709                    long groupId, java.lang.String name)
710                    throws com.liferay.portal.kernel.exception.SystemException {
711                    return getPersistence().fetchByG_N(groupId, name);
712            }
713    
714            /**
715            * Finds 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.
716            *
717            * @param groupId the group ID to search with
718            * @param name the name to search with
719            * @return the matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
720            * @throws SystemException if a system exception occurred
721            */
722            public static com.liferay.portlet.asset.model.AssetVocabulary fetchByG_N(
723                    long groupId, java.lang.String name, boolean retrieveFromCache)
724                    throws com.liferay.portal.kernel.exception.SystemException {
725                    return getPersistence().fetchByG_N(groupId, name, retrieveFromCache);
726            }
727    
728            /**
729            * Finds all the asset vocabularies.
730            *
731            * @return the asset vocabularies
732            * @throws SystemException if a system exception occurred
733            */
734            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll()
735                    throws com.liferay.portal.kernel.exception.SystemException {
736                    return getPersistence().findAll();
737            }
738    
739            /**
740            * Finds a range of all the asset vocabularies.
741            *
742            * <p>
743            * 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.
744            * </p>
745            *
746            * @param start the lower bound of the range of asset vocabularies to return
747            * @param end the upper bound of the range of asset vocabularies to return (not inclusive)
748            * @return the range of asset vocabularies
749            * @throws SystemException if a system exception occurred
750            */
751            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll(
752                    int start, int end)
753                    throws com.liferay.portal.kernel.exception.SystemException {
754                    return getPersistence().findAll(start, end);
755            }
756    
757            /**
758            * Finds an ordered range of all the asset vocabularies.
759            *
760            * <p>
761            * 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.
762            * </p>
763            *
764            * @param start the lower bound of the range of asset vocabularies to return
765            * @param end the upper bound of the range of asset vocabularies to return (not inclusive)
766            * @param orderByComparator the comparator to order the results by
767            * @return the ordered range of asset vocabularies
768            * @throws SystemException if a system exception occurred
769            */
770            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll(
771                    int start, int end,
772                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
773                    throws com.liferay.portal.kernel.exception.SystemException {
774                    return getPersistence().findAll(start, end, orderByComparator);
775            }
776    
777            /**
778            * Removes all the asset vocabularies where uuid = &#63; from the database.
779            *
780            * @param uuid the uuid to search with
781            * @throws SystemException if a system exception occurred
782            */
783            public static void removeByUuid(java.lang.String uuid)
784                    throws com.liferay.portal.kernel.exception.SystemException {
785                    getPersistence().removeByUuid(uuid);
786            }
787    
788            /**
789            * Removes the asset vocabulary where uuid = &#63; and groupId = &#63; from the database.
790            *
791            * @param uuid the uuid to search with
792            * @param groupId the group ID to search with
793            * @throws SystemException if a system exception occurred
794            */
795            public static void removeByUUID_G(java.lang.String uuid, long groupId)
796                    throws com.liferay.portal.kernel.exception.SystemException,
797                            com.liferay.portlet.asset.NoSuchVocabularyException {
798                    getPersistence().removeByUUID_G(uuid, groupId);
799            }
800    
801            /**
802            * Removes all the asset vocabularies where groupId = &#63; from the database.
803            *
804            * @param groupId the group ID to search with
805            * @throws SystemException if a system exception occurred
806            */
807            public static void removeByGroupId(long groupId)
808                    throws com.liferay.portal.kernel.exception.SystemException {
809                    getPersistence().removeByGroupId(groupId);
810            }
811    
812            /**
813            * Removes all the asset vocabularies where companyId = &#63; from the database.
814            *
815            * @param companyId the company ID to search with
816            * @throws SystemException if a system exception occurred
817            */
818            public static void removeByCompanyId(long companyId)
819                    throws com.liferay.portal.kernel.exception.SystemException {
820                    getPersistence().removeByCompanyId(companyId);
821            }
822    
823            /**
824            * Removes the asset vocabulary where groupId = &#63; and name = &#63; from the database.
825            *
826            * @param groupId the group ID to search with
827            * @param name the name to search with
828            * @throws SystemException if a system exception occurred
829            */
830            public static void removeByG_N(long groupId, java.lang.String name)
831                    throws com.liferay.portal.kernel.exception.SystemException,
832                            com.liferay.portlet.asset.NoSuchVocabularyException {
833                    getPersistence().removeByG_N(groupId, name);
834            }
835    
836            /**
837            * Removes all the asset vocabularies from the database.
838            *
839            * @throws SystemException if a system exception occurred
840            */
841            public static void removeAll()
842                    throws com.liferay.portal.kernel.exception.SystemException {
843                    getPersistence().removeAll();
844            }
845    
846            /**
847            * Counts all the asset vocabularies where uuid = &#63;.
848            *
849            * @param uuid the uuid to search with
850            * @return the number of matching asset vocabularies
851            * @throws SystemException if a system exception occurred
852            */
853            public static int countByUuid(java.lang.String uuid)
854                    throws com.liferay.portal.kernel.exception.SystemException {
855                    return getPersistence().countByUuid(uuid);
856            }
857    
858            /**
859            * Counts all the asset vocabularies where uuid = &#63; and groupId = &#63;.
860            *
861            * @param uuid the uuid to search with
862            * @param groupId the group ID to search with
863            * @return the number of matching asset vocabularies
864            * @throws SystemException if a system exception occurred
865            */
866            public static int countByUUID_G(java.lang.String uuid, long groupId)
867                    throws com.liferay.portal.kernel.exception.SystemException {
868                    return getPersistence().countByUUID_G(uuid, groupId);
869            }
870    
871            /**
872            * Counts all the asset vocabularies where groupId = &#63;.
873            *
874            * @param groupId the group ID to search with
875            * @return the number of matching asset vocabularies
876            * @throws SystemException if a system exception occurred
877            */
878            public static int countByGroupId(long groupId)
879                    throws com.liferay.portal.kernel.exception.SystemException {
880                    return getPersistence().countByGroupId(groupId);
881            }
882    
883            /**
884            * Filters by the user's permissions and counts all the asset vocabularies where groupId = &#63;.
885            *
886            * @param groupId the group ID to search with
887            * @return the number of matching asset vocabularies that the user has permission to view
888            * @throws SystemException if a system exception occurred
889            */
890            public static int filterCountByGroupId(long groupId)
891                    throws com.liferay.portal.kernel.exception.SystemException {
892                    return getPersistence().filterCountByGroupId(groupId);
893            }
894    
895            /**
896            * Counts all the asset vocabularies where companyId = &#63;.
897            *
898            * @param companyId the company ID to search with
899            * @return the number of matching asset vocabularies
900            * @throws SystemException if a system exception occurred
901            */
902            public static int countByCompanyId(long companyId)
903                    throws com.liferay.portal.kernel.exception.SystemException {
904                    return getPersistence().countByCompanyId(companyId);
905            }
906    
907            /**
908            * Counts all the asset vocabularies where groupId = &#63; and name = &#63;.
909            *
910            * @param groupId the group ID to search with
911            * @param name the name to search with
912            * @return the number of matching asset vocabularies
913            * @throws SystemException if a system exception occurred
914            */
915            public static int countByG_N(long groupId, java.lang.String name)
916                    throws com.liferay.portal.kernel.exception.SystemException {
917                    return getPersistence().countByG_N(groupId, name);
918            }
919    
920            /**
921            * Counts all the asset vocabularies.
922            *
923            * @return the number of asset vocabularies
924            * @throws SystemException if a system exception occurred
925            */
926            public static int countAll()
927                    throws com.liferay.portal.kernel.exception.SystemException {
928                    return getPersistence().countAll();
929            }
930    
931            public static AssetVocabularyPersistence getPersistence() {
932                    if (_persistence == null) {
933                            _persistence = (AssetVocabularyPersistence)PortalBeanLocatorUtil.locate(AssetVocabularyPersistence.class.getName());
934    
935                            ReferenceRegistry.registerReference(AssetVocabularyUtil.class,
936                                    "_persistence");
937                    }
938    
939                    return _persistence;
940            }
941    
942            public void setPersistence(AssetVocabularyPersistence persistence) {
943                    _persistence = persistence;
944    
945                    ReferenceRegistry.registerReference(AssetVocabularyUtil.class,
946                            "_persistence");
947            }
948    
949            private static AssetVocabularyPersistence _persistence;
950    }