001    /**
002     * Copyright (c) 2000-2012 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.AssetCategory;
025    
026    import java.util.List;
027    
028    /**
029     * The persistence utility for the asset category service. This utility wraps {@link AssetCategoryPersistenceImpl} 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 AssetCategoryPersistence
037     * @see AssetCategoryPersistenceImpl
038     * @generated
039     */
040    public class AssetCategoryUtil {
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(AssetCategory assetCategory) {
058                    getPersistence().clearCache(assetCategory);
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<AssetCategory> 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<AssetCategory> 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<AssetCategory> 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 AssetCategory update(AssetCategory assetCategory,
101                    boolean merge) throws SystemException {
102                    return getPersistence().update(assetCategory, merge);
103            }
104    
105            /**
106             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
107             */
108            public static AssetCategory update(AssetCategory assetCategory,
109                    boolean merge, ServiceContext serviceContext) throws SystemException {
110                    return getPersistence().update(assetCategory, merge, serviceContext);
111            }
112    
113            /**
114            * Caches the asset category in the entity cache if it is enabled.
115            *
116            * @param assetCategory the asset category
117            */
118            public static void cacheResult(
119                    com.liferay.portlet.asset.model.AssetCategory assetCategory) {
120                    getPersistence().cacheResult(assetCategory);
121            }
122    
123            /**
124            * Caches the asset categories in the entity cache if it is enabled.
125            *
126            * @param assetCategories the asset categories
127            */
128            public static void cacheResult(
129                    java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories) {
130                    getPersistence().cacheResult(assetCategories);
131            }
132    
133            /**
134            * Creates a new asset category with the primary key. Does not add the asset category to the database.
135            *
136            * @param categoryId the primary key for the new asset category
137            * @return the new asset category
138            */
139            public static com.liferay.portlet.asset.model.AssetCategory create(
140                    long categoryId) {
141                    return getPersistence().create(categoryId);
142            }
143    
144            /**
145            * Removes the asset category with the primary key from the database. Also notifies the appropriate model listeners.
146            *
147            * @param categoryId the primary key of the asset category
148            * @return the asset category that was removed
149            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category 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.AssetCategory remove(
153                    long categoryId)
154                    throws com.liferay.portal.kernel.exception.SystemException,
155                            com.liferay.portlet.asset.NoSuchCategoryException {
156                    return getPersistence().remove(categoryId);
157            }
158    
159            public static com.liferay.portlet.asset.model.AssetCategory updateImpl(
160                    com.liferay.portlet.asset.model.AssetCategory assetCategory,
161                    boolean merge)
162                    throws com.liferay.portal.kernel.exception.SystemException {
163                    return getPersistence().updateImpl(assetCategory, merge);
164            }
165    
166            /**
167            * Returns the asset category with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchCategoryException} if it could not be found.
168            *
169            * @param categoryId the primary key of the asset category
170            * @return the asset category
171            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category 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.AssetCategory findByPrimaryKey(
175                    long categoryId)
176                    throws com.liferay.portal.kernel.exception.SystemException,
177                            com.liferay.portlet.asset.NoSuchCategoryException {
178                    return getPersistence().findByPrimaryKey(categoryId);
179            }
180    
181            /**
182            * Returns the asset category with the primary key or returns <code>null</code> if it could not be found.
183            *
184            * @param categoryId the primary key of the asset category
185            * @return the asset category, or <code>null</code> if a asset category 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.AssetCategory fetchByPrimaryKey(
189                    long categoryId)
190                    throws com.liferay.portal.kernel.exception.SystemException {
191                    return getPersistence().fetchByPrimaryKey(categoryId);
192            }
193    
194            /**
195            * Returns all the asset categories where uuid = &#63;.
196            *
197            * @param uuid the uuid
198            * @return the matching asset categories
199            * @throws SystemException if a system exception occurred
200            */
201            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> 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 categories 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 categories
216            * @param end the upper bound of the range of asset categories (not inclusive)
217            * @return the range of matching asset categories
218            * @throws SystemException if a system exception occurred
219            */
220            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> 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 categories 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 categories
235            * @param end the upper bound of the range of asset categories (not inclusive)
236            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
237            * @return the ordered range of matching asset categories
238            * @throws SystemException if a system exception occurred
239            */
240            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> 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 category in the ordered set where uuid = &#63;.
249            *
250            * <p>
251            * 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.
252            * </p>
253            *
254            * @param uuid the uuid
255            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
256            * @return the first matching asset category
257            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
258            * @throws SystemException if a system exception occurred
259            */
260            public static com.liferay.portlet.asset.model.AssetCategory findByUuid_First(
261                    java.lang.String uuid,
262                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
263                    throws com.liferay.portal.kernel.exception.SystemException,
264                            com.liferay.portlet.asset.NoSuchCategoryException {
265                    return getPersistence().findByUuid_First(uuid, orderByComparator);
266            }
267    
268            /**
269            * Returns the last asset category in the ordered set where uuid = &#63;.
270            *
271            * <p>
272            * 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.
273            * </p>
274            *
275            * @param uuid the uuid
276            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
277            * @return the last matching asset category
278            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
279            * @throws SystemException if a system exception occurred
280            */
281            public static com.liferay.portlet.asset.model.AssetCategory findByUuid_Last(
282                    java.lang.String uuid,
283                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
284                    throws com.liferay.portal.kernel.exception.SystemException,
285                            com.liferay.portlet.asset.NoSuchCategoryException {
286                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
287            }
288    
289            /**
290            * Returns the asset categories before and after the current asset category in the ordered set where uuid = &#63;.
291            *
292            * <p>
293            * 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.
294            * </p>
295            *
296            * @param categoryId the primary key of the current asset category
297            * @param uuid the uuid
298            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
299            * @return the previous, current, and next asset category
300            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found
301            * @throws SystemException if a system exception occurred
302            */
303            public static com.liferay.portlet.asset.model.AssetCategory[] findByUuid_PrevAndNext(
304                    long categoryId, java.lang.String uuid,
305                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
306                    throws com.liferay.portal.kernel.exception.SystemException,
307                            com.liferay.portlet.asset.NoSuchCategoryException {
308                    return getPersistence()
309                                       .findByUuid_PrevAndNext(categoryId, uuid, orderByComparator);
310            }
311    
312            /**
313            * Returns the asset category where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portlet.asset.NoSuchCategoryException} if it could not be found.
314            *
315            * @param uuid the uuid
316            * @param groupId the group ID
317            * @return the matching asset category
318            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
319            * @throws SystemException if a system exception occurred
320            */
321            public static com.liferay.portlet.asset.model.AssetCategory findByUUID_G(
322                    java.lang.String uuid, long groupId)
323                    throws com.liferay.portal.kernel.exception.SystemException,
324                            com.liferay.portlet.asset.NoSuchCategoryException {
325                    return getPersistence().findByUUID_G(uuid, groupId);
326            }
327    
328            /**
329            * Returns the asset category where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
330            *
331            * @param uuid the uuid
332            * @param groupId the group ID
333            * @return the matching asset category, or <code>null</code> if a matching asset category could not be found
334            * @throws SystemException if a system exception occurred
335            */
336            public static com.liferay.portlet.asset.model.AssetCategory fetchByUUID_G(
337                    java.lang.String uuid, long groupId)
338                    throws com.liferay.portal.kernel.exception.SystemException {
339                    return getPersistence().fetchByUUID_G(uuid, groupId);
340            }
341    
342            /**
343            * Returns the asset category where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
344            *
345            * @param uuid the uuid
346            * @param groupId the group ID
347            * @param retrieveFromCache whether to use the finder cache
348            * @return the matching asset category, or <code>null</code> if a matching asset category could not be found
349            * @throws SystemException if a system exception occurred
350            */
351            public static com.liferay.portlet.asset.model.AssetCategory fetchByUUID_G(
352                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
353                    throws com.liferay.portal.kernel.exception.SystemException {
354                    return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
355            }
356    
357            /**
358            * Returns all the asset categories where groupId = &#63;.
359            *
360            * @param groupId the group ID
361            * @return the matching asset categories
362            * @throws SystemException if a system exception occurred
363            */
364            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByGroupId(
365                    long groupId)
366                    throws com.liferay.portal.kernel.exception.SystemException {
367                    return getPersistence().findByGroupId(groupId);
368            }
369    
370            /**
371            * Returns a range of all the asset categories where groupId = &#63;.
372            *
373            * <p>
374            * 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.
375            * </p>
376            *
377            * @param groupId the group ID
378            * @param start the lower bound of the range of asset categories
379            * @param end the upper bound of the range of asset categories (not inclusive)
380            * @return the range of matching asset categories
381            * @throws SystemException if a system exception occurred
382            */
383            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByGroupId(
384                    long groupId, int start, int end)
385                    throws com.liferay.portal.kernel.exception.SystemException {
386                    return getPersistence().findByGroupId(groupId, start, end);
387            }
388    
389            /**
390            * Returns an ordered range of all the asset categories where groupId = &#63;.
391            *
392            * <p>
393            * 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.
394            * </p>
395            *
396            * @param groupId the group ID
397            * @param start the lower bound of the range of asset categories
398            * @param end the upper bound of the range of asset categories (not inclusive)
399            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
400            * @return the ordered range of matching asset categories
401            * @throws SystemException if a system exception occurred
402            */
403            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByGroupId(
404                    long groupId, int start, int end,
405                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
406                    throws com.liferay.portal.kernel.exception.SystemException {
407                    return getPersistence()
408                                       .findByGroupId(groupId, start, end, orderByComparator);
409            }
410    
411            /**
412            * Returns the first asset category in the ordered set where groupId = &#63;.
413            *
414            * <p>
415            * 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.
416            * </p>
417            *
418            * @param groupId the group ID
419            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
420            * @return the first matching asset category
421            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
422            * @throws SystemException if a system exception occurred
423            */
424            public static com.liferay.portlet.asset.model.AssetCategory findByGroupId_First(
425                    long groupId,
426                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
427                    throws com.liferay.portal.kernel.exception.SystemException,
428                            com.liferay.portlet.asset.NoSuchCategoryException {
429                    return getPersistence().findByGroupId_First(groupId, orderByComparator);
430            }
431    
432            /**
433            * Returns the last asset category in the ordered set where groupId = &#63;.
434            *
435            * <p>
436            * 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.
437            * </p>
438            *
439            * @param groupId the group ID
440            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
441            * @return the last matching asset category
442            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
443            * @throws SystemException if a system exception occurred
444            */
445            public static com.liferay.portlet.asset.model.AssetCategory findByGroupId_Last(
446                    long groupId,
447                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
448                    throws com.liferay.portal.kernel.exception.SystemException,
449                            com.liferay.portlet.asset.NoSuchCategoryException {
450                    return getPersistence().findByGroupId_Last(groupId, orderByComparator);
451            }
452    
453            /**
454            * Returns the asset categories before and after the current asset category in the ordered set where groupId = &#63;.
455            *
456            * <p>
457            * 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.
458            * </p>
459            *
460            * @param categoryId the primary key of the current asset category
461            * @param groupId the group ID
462            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
463            * @return the previous, current, and next asset category
464            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found
465            * @throws SystemException if a system exception occurred
466            */
467            public static com.liferay.portlet.asset.model.AssetCategory[] findByGroupId_PrevAndNext(
468                    long categoryId, long groupId,
469                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
470                    throws com.liferay.portal.kernel.exception.SystemException,
471                            com.liferay.portlet.asset.NoSuchCategoryException {
472                    return getPersistence()
473                                       .findByGroupId_PrevAndNext(categoryId, groupId,
474                            orderByComparator);
475            }
476    
477            /**
478            * Returns all the asset categories that the user has permission to view where groupId = &#63;.
479            *
480            * @param groupId the group ID
481            * @return the matching asset categories that the user has permission to view
482            * @throws SystemException if a system exception occurred
483            */
484            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByGroupId(
485                    long groupId)
486                    throws com.liferay.portal.kernel.exception.SystemException {
487                    return getPersistence().filterFindByGroupId(groupId);
488            }
489    
490            /**
491            * Returns a range of all the asset categories that the user has permission to view where groupId = &#63;.
492            *
493            * <p>
494            * 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.
495            * </p>
496            *
497            * @param groupId the group ID
498            * @param start the lower bound of the range of asset categories
499            * @param end the upper bound of the range of asset categories (not inclusive)
500            * @return the range of matching asset categories that the user has permission to view
501            * @throws SystemException if a system exception occurred
502            */
503            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByGroupId(
504                    long groupId, int start, int end)
505                    throws com.liferay.portal.kernel.exception.SystemException {
506                    return getPersistence().filterFindByGroupId(groupId, start, end);
507            }
508    
509            /**
510            * Returns an ordered range of all the asset categories that the user has permissions to view where groupId = &#63;.
511            *
512            * <p>
513            * 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.
514            * </p>
515            *
516            * @param groupId the group ID
517            * @param start the lower bound of the range of asset categories
518            * @param end the upper bound of the range of asset categories (not inclusive)
519            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
520            * @return the ordered range of matching asset categories that the user has permission to view
521            * @throws SystemException if a system exception occurred
522            */
523            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByGroupId(
524                    long groupId, int start, int end,
525                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
526                    throws com.liferay.portal.kernel.exception.SystemException {
527                    return getPersistence()
528                                       .filterFindByGroupId(groupId, start, end, orderByComparator);
529            }
530    
531            /**
532            * Returns the asset categories before and after the current asset category in the ordered set of asset categories that the user has permission to view where groupId = &#63;.
533            *
534            * @param categoryId the primary key of the current asset category
535            * @param groupId the group ID
536            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
537            * @return the previous, current, and next asset category
538            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found
539            * @throws SystemException if a system exception occurred
540            */
541            public static com.liferay.portlet.asset.model.AssetCategory[] filterFindByGroupId_PrevAndNext(
542                    long categoryId, long groupId,
543                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
544                    throws com.liferay.portal.kernel.exception.SystemException,
545                            com.liferay.portlet.asset.NoSuchCategoryException {
546                    return getPersistence()
547                                       .filterFindByGroupId_PrevAndNext(categoryId, groupId,
548                            orderByComparator);
549            }
550    
551            /**
552            * Returns all the asset categories where parentCategoryId = &#63;.
553            *
554            * @param parentCategoryId the parent category ID
555            * @return the matching asset categories
556            * @throws SystemException if a system exception occurred
557            */
558            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByParentCategoryId(
559                    long parentCategoryId)
560                    throws com.liferay.portal.kernel.exception.SystemException {
561                    return getPersistence().findByParentCategoryId(parentCategoryId);
562            }
563    
564            /**
565            * Returns a range of all the asset categories where parentCategoryId = &#63;.
566            *
567            * <p>
568            * 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.
569            * </p>
570            *
571            * @param parentCategoryId the parent category ID
572            * @param start the lower bound of the range of asset categories
573            * @param end the upper bound of the range of asset categories (not inclusive)
574            * @return the range of matching asset categories
575            * @throws SystemException if a system exception occurred
576            */
577            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByParentCategoryId(
578                    long parentCategoryId, int start, int end)
579                    throws com.liferay.portal.kernel.exception.SystemException {
580                    return getPersistence()
581                                       .findByParentCategoryId(parentCategoryId, start, end);
582            }
583    
584            /**
585            * Returns an ordered range of all the asset categories where parentCategoryId = &#63;.
586            *
587            * <p>
588            * 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.
589            * </p>
590            *
591            * @param parentCategoryId the parent category ID
592            * @param start the lower bound of the range of asset categories
593            * @param end the upper bound of the range of asset categories (not inclusive)
594            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
595            * @return the ordered range of matching asset categories
596            * @throws SystemException if a system exception occurred
597            */
598            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByParentCategoryId(
599                    long parentCategoryId, int start, int end,
600                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
601                    throws com.liferay.portal.kernel.exception.SystemException {
602                    return getPersistence()
603                                       .findByParentCategoryId(parentCategoryId, start, end,
604                            orderByComparator);
605            }
606    
607            /**
608            * Returns the first asset category in the ordered set where parentCategoryId = &#63;.
609            *
610            * <p>
611            * 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.
612            * </p>
613            *
614            * @param parentCategoryId the parent category ID
615            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
616            * @return the first matching asset category
617            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
618            * @throws SystemException if a system exception occurred
619            */
620            public static com.liferay.portlet.asset.model.AssetCategory findByParentCategoryId_First(
621                    long parentCategoryId,
622                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
623                    throws com.liferay.portal.kernel.exception.SystemException,
624                            com.liferay.portlet.asset.NoSuchCategoryException {
625                    return getPersistence()
626                                       .findByParentCategoryId_First(parentCategoryId,
627                            orderByComparator);
628            }
629    
630            /**
631            * Returns the last asset category in the ordered set where parentCategoryId = &#63;.
632            *
633            * <p>
634            * 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.
635            * </p>
636            *
637            * @param parentCategoryId the parent category ID
638            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
639            * @return the last matching asset category
640            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
641            * @throws SystemException if a system exception occurred
642            */
643            public static com.liferay.portlet.asset.model.AssetCategory findByParentCategoryId_Last(
644                    long parentCategoryId,
645                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
646                    throws com.liferay.portal.kernel.exception.SystemException,
647                            com.liferay.portlet.asset.NoSuchCategoryException {
648                    return getPersistence()
649                                       .findByParentCategoryId_Last(parentCategoryId,
650                            orderByComparator);
651            }
652    
653            /**
654            * Returns the asset categories before and after the current asset category in the ordered set where parentCategoryId = &#63;.
655            *
656            * <p>
657            * 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.
658            * </p>
659            *
660            * @param categoryId the primary key of the current asset category
661            * @param parentCategoryId the parent category ID
662            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
663            * @return the previous, current, and next asset category
664            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found
665            * @throws SystemException if a system exception occurred
666            */
667            public static com.liferay.portlet.asset.model.AssetCategory[] findByParentCategoryId_PrevAndNext(
668                    long categoryId, long parentCategoryId,
669                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
670                    throws com.liferay.portal.kernel.exception.SystemException,
671                            com.liferay.portlet.asset.NoSuchCategoryException {
672                    return getPersistence()
673                                       .findByParentCategoryId_PrevAndNext(categoryId,
674                            parentCategoryId, orderByComparator);
675            }
676    
677            /**
678            * Returns all the asset categories where vocabularyId = &#63;.
679            *
680            * @param vocabularyId the vocabulary ID
681            * @return the matching asset categories
682            * @throws SystemException if a system exception occurred
683            */
684            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByVocabularyId(
685                    long vocabularyId)
686                    throws com.liferay.portal.kernel.exception.SystemException {
687                    return getPersistence().findByVocabularyId(vocabularyId);
688            }
689    
690            /**
691            * Returns a range of all the asset categories where vocabularyId = &#63;.
692            *
693            * <p>
694            * 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.
695            * </p>
696            *
697            * @param vocabularyId the vocabulary ID
698            * @param start the lower bound of the range of asset categories
699            * @param end the upper bound of the range of asset categories (not inclusive)
700            * @return the range of matching asset categories
701            * @throws SystemException if a system exception occurred
702            */
703            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByVocabularyId(
704                    long vocabularyId, int start, int end)
705                    throws com.liferay.portal.kernel.exception.SystemException {
706                    return getPersistence().findByVocabularyId(vocabularyId, start, end);
707            }
708    
709            /**
710            * Returns an ordered range of all the asset categories where vocabularyId = &#63;.
711            *
712            * <p>
713            * 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.
714            * </p>
715            *
716            * @param vocabularyId the vocabulary ID
717            * @param start the lower bound of the range of asset categories
718            * @param end the upper bound of the range of asset categories (not inclusive)
719            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
720            * @return the ordered range of matching asset categories
721            * @throws SystemException if a system exception occurred
722            */
723            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByVocabularyId(
724                    long vocabularyId, int start, int end,
725                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
726                    throws com.liferay.portal.kernel.exception.SystemException {
727                    return getPersistence()
728                                       .findByVocabularyId(vocabularyId, start, end,
729                            orderByComparator);
730            }
731    
732            /**
733            * Returns the first asset category in the ordered set where vocabularyId = &#63;.
734            *
735            * <p>
736            * 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.
737            * </p>
738            *
739            * @param vocabularyId the vocabulary ID
740            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
741            * @return the first matching asset category
742            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
743            * @throws SystemException if a system exception occurred
744            */
745            public static com.liferay.portlet.asset.model.AssetCategory findByVocabularyId_First(
746                    long vocabularyId,
747                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
748                    throws com.liferay.portal.kernel.exception.SystemException,
749                            com.liferay.portlet.asset.NoSuchCategoryException {
750                    return getPersistence()
751                                       .findByVocabularyId_First(vocabularyId, orderByComparator);
752            }
753    
754            /**
755            * Returns the last asset category in the ordered set where vocabularyId = &#63;.
756            *
757            * <p>
758            * 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.
759            * </p>
760            *
761            * @param vocabularyId the vocabulary ID
762            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
763            * @return the last matching asset category
764            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
765            * @throws SystemException if a system exception occurred
766            */
767            public static com.liferay.portlet.asset.model.AssetCategory findByVocabularyId_Last(
768                    long vocabularyId,
769                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
770                    throws com.liferay.portal.kernel.exception.SystemException,
771                            com.liferay.portlet.asset.NoSuchCategoryException {
772                    return getPersistence()
773                                       .findByVocabularyId_Last(vocabularyId, orderByComparator);
774            }
775    
776            /**
777            * Returns the asset categories before and after the current asset category in the ordered set where vocabularyId = &#63;.
778            *
779            * <p>
780            * 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.
781            * </p>
782            *
783            * @param categoryId the primary key of the current asset category
784            * @param vocabularyId the vocabulary ID
785            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
786            * @return the previous, current, and next asset category
787            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found
788            * @throws SystemException if a system exception occurred
789            */
790            public static com.liferay.portlet.asset.model.AssetCategory[] findByVocabularyId_PrevAndNext(
791                    long categoryId, long vocabularyId,
792                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
793                    throws com.liferay.portal.kernel.exception.SystemException,
794                            com.liferay.portlet.asset.NoSuchCategoryException {
795                    return getPersistence()
796                                       .findByVocabularyId_PrevAndNext(categoryId, vocabularyId,
797                            orderByComparator);
798            }
799    
800            /**
801            * Returns all the asset categories where groupId = &#63; and vocabularyId = &#63;.
802            *
803            * @param groupId the group ID
804            * @param vocabularyId the vocabulary ID
805            * @return the matching asset categories
806            * @throws SystemException if a system exception occurred
807            */
808            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_V(
809                    long groupId, long vocabularyId)
810                    throws com.liferay.portal.kernel.exception.SystemException {
811                    return getPersistence().findByG_V(groupId, vocabularyId);
812            }
813    
814            /**
815            * Returns a range of all the asset categories where groupId = &#63; and vocabularyId = &#63;.
816            *
817            * <p>
818            * 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.
819            * </p>
820            *
821            * @param groupId the group ID
822            * @param vocabularyId the vocabulary ID
823            * @param start the lower bound of the range of asset categories
824            * @param end the upper bound of the range of asset categories (not inclusive)
825            * @return the range of matching asset categories
826            * @throws SystemException if a system exception occurred
827            */
828            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_V(
829                    long groupId, long vocabularyId, int start, int end)
830                    throws com.liferay.portal.kernel.exception.SystemException {
831                    return getPersistence().findByG_V(groupId, vocabularyId, start, end);
832            }
833    
834            /**
835            * Returns an ordered range of all the asset categories where groupId = &#63; and vocabularyId = &#63;.
836            *
837            * <p>
838            * 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.
839            * </p>
840            *
841            * @param groupId the group ID
842            * @param vocabularyId the vocabulary ID
843            * @param start the lower bound of the range of asset categories
844            * @param end the upper bound of the range of asset categories (not inclusive)
845            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
846            * @return the ordered range of matching asset categories
847            * @throws SystemException if a system exception occurred
848            */
849            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_V(
850                    long groupId, long vocabularyId, int start, int end,
851                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
852                    throws com.liferay.portal.kernel.exception.SystemException {
853                    return getPersistence()
854                                       .findByG_V(groupId, vocabularyId, start, end,
855                            orderByComparator);
856            }
857    
858            /**
859            * Returns the first asset category in the ordered set where groupId = &#63; and vocabularyId = &#63;.
860            *
861            * <p>
862            * 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.
863            * </p>
864            *
865            * @param groupId the group ID
866            * @param vocabularyId the vocabulary ID
867            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
868            * @return the first matching asset category
869            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
870            * @throws SystemException if a system exception occurred
871            */
872            public static com.liferay.portlet.asset.model.AssetCategory findByG_V_First(
873                    long groupId, long vocabularyId,
874                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
875                    throws com.liferay.portal.kernel.exception.SystemException,
876                            com.liferay.portlet.asset.NoSuchCategoryException {
877                    return getPersistence()
878                                       .findByG_V_First(groupId, vocabularyId, orderByComparator);
879            }
880    
881            /**
882            * Returns the last asset category in the ordered set where groupId = &#63; and vocabularyId = &#63;.
883            *
884            * <p>
885            * 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.
886            * </p>
887            *
888            * @param groupId the group ID
889            * @param vocabularyId the vocabulary ID
890            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
891            * @return the last matching asset category
892            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
893            * @throws SystemException if a system exception occurred
894            */
895            public static com.liferay.portlet.asset.model.AssetCategory findByG_V_Last(
896                    long groupId, long vocabularyId,
897                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
898                    throws com.liferay.portal.kernel.exception.SystemException,
899                            com.liferay.portlet.asset.NoSuchCategoryException {
900                    return getPersistence()
901                                       .findByG_V_Last(groupId, vocabularyId, orderByComparator);
902            }
903    
904            /**
905            * Returns the asset categories before and after the current asset category in the ordered set where groupId = &#63; and vocabularyId = &#63;.
906            *
907            * <p>
908            * 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.
909            * </p>
910            *
911            * @param categoryId the primary key of the current asset category
912            * @param groupId the group ID
913            * @param vocabularyId the vocabulary ID
914            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
915            * @return the previous, current, and next asset category
916            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found
917            * @throws SystemException if a system exception occurred
918            */
919            public static com.liferay.portlet.asset.model.AssetCategory[] findByG_V_PrevAndNext(
920                    long categoryId, long groupId, long vocabularyId,
921                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
922                    throws com.liferay.portal.kernel.exception.SystemException,
923                            com.liferay.portlet.asset.NoSuchCategoryException {
924                    return getPersistence()
925                                       .findByG_V_PrevAndNext(categoryId, groupId, vocabularyId,
926                            orderByComparator);
927            }
928    
929            /**
930            * Returns all the asset categories that the user has permission to view where groupId = &#63; and vocabularyId = &#63;.
931            *
932            * @param groupId the group ID
933            * @param vocabularyId the vocabulary ID
934            * @return the matching asset categories that the user has permission to view
935            * @throws SystemException if a system exception occurred
936            */
937            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_V(
938                    long groupId, long vocabularyId)
939                    throws com.liferay.portal.kernel.exception.SystemException {
940                    return getPersistence().filterFindByG_V(groupId, vocabularyId);
941            }
942    
943            /**
944            * Returns a range of all the asset categories that the user has permission to view where groupId = &#63; and vocabularyId = &#63;.
945            *
946            * <p>
947            * 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.
948            * </p>
949            *
950            * @param groupId the group ID
951            * @param vocabularyId the vocabulary ID
952            * @param start the lower bound of the range of asset categories
953            * @param end the upper bound of the range of asset categories (not inclusive)
954            * @return the range of matching asset categories that the user has permission to view
955            * @throws SystemException if a system exception occurred
956            */
957            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_V(
958                    long groupId, long vocabularyId, int start, int end)
959                    throws com.liferay.portal.kernel.exception.SystemException {
960                    return getPersistence()
961                                       .filterFindByG_V(groupId, vocabularyId, start, end);
962            }
963    
964            /**
965            * Returns an ordered range of all the asset categories that the user has permissions to view where groupId = &#63; and vocabularyId = &#63;.
966            *
967            * <p>
968            * 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.
969            * </p>
970            *
971            * @param groupId the group ID
972            * @param vocabularyId the vocabulary ID
973            * @param start the lower bound of the range of asset categories
974            * @param end the upper bound of the range of asset categories (not inclusive)
975            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
976            * @return the ordered range of matching asset categories that the user has permission to view
977            * @throws SystemException if a system exception occurred
978            */
979            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_V(
980                    long groupId, long vocabularyId, int start, int end,
981                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
982                    throws com.liferay.portal.kernel.exception.SystemException {
983                    return getPersistence()
984                                       .filterFindByG_V(groupId, vocabularyId, start, end,
985                            orderByComparator);
986            }
987    
988            /**
989            * Returns the asset categories before and after the current asset category in the ordered set of asset categories that the user has permission to view where groupId = &#63; and vocabularyId = &#63;.
990            *
991            * @param categoryId the primary key of the current asset category
992            * @param groupId the group ID
993            * @param vocabularyId the vocabulary ID
994            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
995            * @return the previous, current, and next asset category
996            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found
997            * @throws SystemException if a system exception occurred
998            */
999            public static com.liferay.portlet.asset.model.AssetCategory[] filterFindByG_V_PrevAndNext(
1000                    long categoryId, long groupId, long vocabularyId,
1001                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1002                    throws com.liferay.portal.kernel.exception.SystemException,
1003                            com.liferay.portlet.asset.NoSuchCategoryException {
1004                    return getPersistence()
1005                                       .filterFindByG_V_PrevAndNext(categoryId, groupId,
1006                            vocabularyId, orderByComparator);
1007            }
1008    
1009            /**
1010            * Returns all the asset categories where parentCategoryId = &#63; and name = &#63;.
1011            *
1012            * @param parentCategoryId the parent category ID
1013            * @param name the name
1014            * @return the matching asset categories
1015            * @throws SystemException if a system exception occurred
1016            */
1017            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_N(
1018                    long parentCategoryId, java.lang.String name)
1019                    throws com.liferay.portal.kernel.exception.SystemException {
1020                    return getPersistence().findByP_N(parentCategoryId, name);
1021            }
1022    
1023            /**
1024            * Returns a range of all the asset categories where parentCategoryId = &#63; and name = &#63;.
1025            *
1026            * <p>
1027            * 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.
1028            * </p>
1029            *
1030            * @param parentCategoryId the parent category ID
1031            * @param name the name
1032            * @param start the lower bound of the range of asset categories
1033            * @param end the upper bound of the range of asset categories (not inclusive)
1034            * @return the range of matching asset categories
1035            * @throws SystemException if a system exception occurred
1036            */
1037            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_N(
1038                    long parentCategoryId, java.lang.String name, int start, int end)
1039                    throws com.liferay.portal.kernel.exception.SystemException {
1040                    return getPersistence().findByP_N(parentCategoryId, name, start, end);
1041            }
1042    
1043            /**
1044            * Returns an ordered range of all the asset categories where parentCategoryId = &#63; and name = &#63;.
1045            *
1046            * <p>
1047            * 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.
1048            * </p>
1049            *
1050            * @param parentCategoryId the parent category ID
1051            * @param name the name
1052            * @param start the lower bound of the range of asset categories
1053            * @param end the upper bound of the range of asset categories (not inclusive)
1054            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1055            * @return the ordered range of matching asset categories
1056            * @throws SystemException if a system exception occurred
1057            */
1058            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_N(
1059                    long parentCategoryId, java.lang.String name, int start, int end,
1060                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1061                    throws com.liferay.portal.kernel.exception.SystemException {
1062                    return getPersistence()
1063                                       .findByP_N(parentCategoryId, name, start, end,
1064                            orderByComparator);
1065            }
1066    
1067            /**
1068            * Returns the first asset category in the ordered set where parentCategoryId = &#63; and name = &#63;.
1069            *
1070            * <p>
1071            * 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.
1072            * </p>
1073            *
1074            * @param parentCategoryId the parent category ID
1075            * @param name the name
1076            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1077            * @return the first matching asset category
1078            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
1079            * @throws SystemException if a system exception occurred
1080            */
1081            public static com.liferay.portlet.asset.model.AssetCategory findByP_N_First(
1082                    long parentCategoryId, java.lang.String name,
1083                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1084                    throws com.liferay.portal.kernel.exception.SystemException,
1085                            com.liferay.portlet.asset.NoSuchCategoryException {
1086                    return getPersistence()
1087                                       .findByP_N_First(parentCategoryId, name, orderByComparator);
1088            }
1089    
1090            /**
1091            * Returns the last asset category in the ordered set where parentCategoryId = &#63; and name = &#63;.
1092            *
1093            * <p>
1094            * 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.
1095            * </p>
1096            *
1097            * @param parentCategoryId the parent category ID
1098            * @param name the name
1099            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1100            * @return the last matching asset category
1101            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
1102            * @throws SystemException if a system exception occurred
1103            */
1104            public static com.liferay.portlet.asset.model.AssetCategory findByP_N_Last(
1105                    long parentCategoryId, java.lang.String name,
1106                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1107                    throws com.liferay.portal.kernel.exception.SystemException,
1108                            com.liferay.portlet.asset.NoSuchCategoryException {
1109                    return getPersistence()
1110                                       .findByP_N_Last(parentCategoryId, name, orderByComparator);
1111            }
1112    
1113            /**
1114            * Returns the asset categories before and after the current asset category in the ordered set where parentCategoryId = &#63; and name = &#63;.
1115            *
1116            * <p>
1117            * 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.
1118            * </p>
1119            *
1120            * @param categoryId the primary key of the current asset category
1121            * @param parentCategoryId the parent category ID
1122            * @param name the name
1123            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1124            * @return the previous, current, and next asset category
1125            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found
1126            * @throws SystemException if a system exception occurred
1127            */
1128            public static com.liferay.portlet.asset.model.AssetCategory[] findByP_N_PrevAndNext(
1129                    long categoryId, long parentCategoryId, java.lang.String name,
1130                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1131                    throws com.liferay.portal.kernel.exception.SystemException,
1132                            com.liferay.portlet.asset.NoSuchCategoryException {
1133                    return getPersistence()
1134                                       .findByP_N_PrevAndNext(categoryId, parentCategoryId, name,
1135                            orderByComparator);
1136            }
1137    
1138            /**
1139            * Returns all the asset categories where parentCategoryId = &#63; and vocabularyId = &#63;.
1140            *
1141            * @param parentCategoryId the parent category ID
1142            * @param vocabularyId the vocabulary ID
1143            * @return the matching asset categories
1144            * @throws SystemException if a system exception occurred
1145            */
1146            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_V(
1147                    long parentCategoryId, long vocabularyId)
1148                    throws com.liferay.portal.kernel.exception.SystemException {
1149                    return getPersistence().findByP_V(parentCategoryId, vocabularyId);
1150            }
1151    
1152            /**
1153            * Returns a range of all the asset categories where parentCategoryId = &#63; and vocabularyId = &#63;.
1154            *
1155            * <p>
1156            * 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.
1157            * </p>
1158            *
1159            * @param parentCategoryId the parent category ID
1160            * @param vocabularyId the vocabulary ID
1161            * @param start the lower bound of the range of asset categories
1162            * @param end the upper bound of the range of asset categories (not inclusive)
1163            * @return the range of matching asset categories
1164            * @throws SystemException if a system exception occurred
1165            */
1166            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_V(
1167                    long parentCategoryId, long vocabularyId, int start, int end)
1168                    throws com.liferay.portal.kernel.exception.SystemException {
1169                    return getPersistence()
1170                                       .findByP_V(parentCategoryId, vocabularyId, start, end);
1171            }
1172    
1173            /**
1174            * Returns an ordered range of all the asset categories where parentCategoryId = &#63; and vocabularyId = &#63;.
1175            *
1176            * <p>
1177            * 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.
1178            * </p>
1179            *
1180            * @param parentCategoryId the parent category ID
1181            * @param vocabularyId the vocabulary ID
1182            * @param start the lower bound of the range of asset categories
1183            * @param end the upper bound of the range of asset categories (not inclusive)
1184            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1185            * @return the ordered range of matching asset categories
1186            * @throws SystemException if a system exception occurred
1187            */
1188            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_V(
1189                    long parentCategoryId, long vocabularyId, int start, int end,
1190                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1191                    throws com.liferay.portal.kernel.exception.SystemException {
1192                    return getPersistence()
1193                                       .findByP_V(parentCategoryId, vocabularyId, start, end,
1194                            orderByComparator);
1195            }
1196    
1197            /**
1198            * Returns the first asset category in the ordered set where parentCategoryId = &#63; and vocabularyId = &#63;.
1199            *
1200            * <p>
1201            * 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.
1202            * </p>
1203            *
1204            * @param parentCategoryId the parent category ID
1205            * @param vocabularyId the vocabulary ID
1206            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1207            * @return the first matching asset category
1208            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
1209            * @throws SystemException if a system exception occurred
1210            */
1211            public static com.liferay.portlet.asset.model.AssetCategory findByP_V_First(
1212                    long parentCategoryId, long vocabularyId,
1213                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1214                    throws com.liferay.portal.kernel.exception.SystemException,
1215                            com.liferay.portlet.asset.NoSuchCategoryException {
1216                    return getPersistence()
1217                                       .findByP_V_First(parentCategoryId, vocabularyId,
1218                            orderByComparator);
1219            }
1220    
1221            /**
1222            * Returns the last asset category in the ordered set where parentCategoryId = &#63; and vocabularyId = &#63;.
1223            *
1224            * <p>
1225            * 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.
1226            * </p>
1227            *
1228            * @param parentCategoryId the parent category ID
1229            * @param vocabularyId the vocabulary ID
1230            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1231            * @return the last matching asset category
1232            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
1233            * @throws SystemException if a system exception occurred
1234            */
1235            public static com.liferay.portlet.asset.model.AssetCategory findByP_V_Last(
1236                    long parentCategoryId, long vocabularyId,
1237                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1238                    throws com.liferay.portal.kernel.exception.SystemException,
1239                            com.liferay.portlet.asset.NoSuchCategoryException {
1240                    return getPersistence()
1241                                       .findByP_V_Last(parentCategoryId, vocabularyId,
1242                            orderByComparator);
1243            }
1244    
1245            /**
1246            * Returns the asset categories before and after the current asset category in the ordered set where parentCategoryId = &#63; and vocabularyId = &#63;.
1247            *
1248            * <p>
1249            * 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.
1250            * </p>
1251            *
1252            * @param categoryId the primary key of the current asset category
1253            * @param parentCategoryId the parent category ID
1254            * @param vocabularyId the vocabulary ID
1255            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1256            * @return the previous, current, and next asset category
1257            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found
1258            * @throws SystemException if a system exception occurred
1259            */
1260            public static com.liferay.portlet.asset.model.AssetCategory[] findByP_V_PrevAndNext(
1261                    long categoryId, long parentCategoryId, long vocabularyId,
1262                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1263                    throws com.liferay.portal.kernel.exception.SystemException,
1264                            com.liferay.portlet.asset.NoSuchCategoryException {
1265                    return getPersistence()
1266                                       .findByP_V_PrevAndNext(categoryId, parentCategoryId,
1267                            vocabularyId, orderByComparator);
1268            }
1269    
1270            /**
1271            * Returns all the asset categories where name = &#63; and vocabularyId = &#63;.
1272            *
1273            * @param name the name
1274            * @param vocabularyId the vocabulary ID
1275            * @return the matching asset categories
1276            * @throws SystemException if a system exception occurred
1277            */
1278            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByN_V(
1279                    java.lang.String name, long vocabularyId)
1280                    throws com.liferay.portal.kernel.exception.SystemException {
1281                    return getPersistence().findByN_V(name, vocabularyId);
1282            }
1283    
1284            /**
1285            * Returns a range of all the asset categories where name = &#63; and vocabularyId = &#63;.
1286            *
1287            * <p>
1288            * 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.
1289            * </p>
1290            *
1291            * @param name the name
1292            * @param vocabularyId the vocabulary ID
1293            * @param start the lower bound of the range of asset categories
1294            * @param end the upper bound of the range of asset categories (not inclusive)
1295            * @return the range of matching asset categories
1296            * @throws SystemException if a system exception occurred
1297            */
1298            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByN_V(
1299                    java.lang.String name, long vocabularyId, int start, int end)
1300                    throws com.liferay.portal.kernel.exception.SystemException {
1301                    return getPersistence().findByN_V(name, vocabularyId, start, end);
1302            }
1303    
1304            /**
1305            * Returns an ordered range of all the asset categories where name = &#63; and vocabularyId = &#63;.
1306            *
1307            * <p>
1308            * 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.
1309            * </p>
1310            *
1311            * @param name the name
1312            * @param vocabularyId the vocabulary ID
1313            * @param start the lower bound of the range of asset categories
1314            * @param end the upper bound of the range of asset categories (not inclusive)
1315            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1316            * @return the ordered range of matching asset categories
1317            * @throws SystemException if a system exception occurred
1318            */
1319            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByN_V(
1320                    java.lang.String name, long vocabularyId, int start, int end,
1321                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1322                    throws com.liferay.portal.kernel.exception.SystemException {
1323                    return getPersistence()
1324                                       .findByN_V(name, vocabularyId, start, end, orderByComparator);
1325            }
1326    
1327            /**
1328            * Returns the first asset category in the ordered set where name = &#63; and vocabularyId = &#63;.
1329            *
1330            * <p>
1331            * 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.
1332            * </p>
1333            *
1334            * @param name the name
1335            * @param vocabularyId the vocabulary ID
1336            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1337            * @return the first matching asset category
1338            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
1339            * @throws SystemException if a system exception occurred
1340            */
1341            public static com.liferay.portlet.asset.model.AssetCategory findByN_V_First(
1342                    java.lang.String name, long vocabularyId,
1343                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1344                    throws com.liferay.portal.kernel.exception.SystemException,
1345                            com.liferay.portlet.asset.NoSuchCategoryException {
1346                    return getPersistence()
1347                                       .findByN_V_First(name, vocabularyId, orderByComparator);
1348            }
1349    
1350            /**
1351            * Returns the last asset category in the ordered set where name = &#63; and vocabularyId = &#63;.
1352            *
1353            * <p>
1354            * 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.
1355            * </p>
1356            *
1357            * @param name the name
1358            * @param vocabularyId the vocabulary ID
1359            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1360            * @return the last matching asset category
1361            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
1362            * @throws SystemException if a system exception occurred
1363            */
1364            public static com.liferay.portlet.asset.model.AssetCategory findByN_V_Last(
1365                    java.lang.String name, long vocabularyId,
1366                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1367                    throws com.liferay.portal.kernel.exception.SystemException,
1368                            com.liferay.portlet.asset.NoSuchCategoryException {
1369                    return getPersistence()
1370                                       .findByN_V_Last(name, vocabularyId, orderByComparator);
1371            }
1372    
1373            /**
1374            * Returns the asset categories before and after the current asset category in the ordered set where name = &#63; and vocabularyId = &#63;.
1375            *
1376            * <p>
1377            * 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.
1378            * </p>
1379            *
1380            * @param categoryId the primary key of the current asset category
1381            * @param name the name
1382            * @param vocabularyId the vocabulary ID
1383            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1384            * @return the previous, current, and next asset category
1385            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found
1386            * @throws SystemException if a system exception occurred
1387            */
1388            public static com.liferay.portlet.asset.model.AssetCategory[] findByN_V_PrevAndNext(
1389                    long categoryId, java.lang.String name, long vocabularyId,
1390                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1391                    throws com.liferay.portal.kernel.exception.SystemException,
1392                            com.liferay.portlet.asset.NoSuchCategoryException {
1393                    return getPersistence()
1394                                       .findByN_V_PrevAndNext(categoryId, name, vocabularyId,
1395                            orderByComparator);
1396            }
1397    
1398            /**
1399            * Returns the asset category where parentCategoryId = &#63; and name = &#63; and vocabularyId = &#63; or throws a {@link com.liferay.portlet.asset.NoSuchCategoryException} if it could not be found.
1400            *
1401            * @param parentCategoryId the parent category ID
1402            * @param name the name
1403            * @param vocabularyId the vocabulary ID
1404            * @return the matching asset category
1405            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
1406            * @throws SystemException if a system exception occurred
1407            */
1408            public static com.liferay.portlet.asset.model.AssetCategory findByP_N_V(
1409                    long parentCategoryId, java.lang.String name, long vocabularyId)
1410                    throws com.liferay.portal.kernel.exception.SystemException,
1411                            com.liferay.portlet.asset.NoSuchCategoryException {
1412                    return getPersistence().findByP_N_V(parentCategoryId, name, vocabularyId);
1413            }
1414    
1415            /**
1416            * Returns the asset category where parentCategoryId = &#63; and name = &#63; and vocabularyId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
1417            *
1418            * @param parentCategoryId the parent category ID
1419            * @param name the name
1420            * @param vocabularyId the vocabulary ID
1421            * @return the matching asset category, or <code>null</code> if a matching asset category could not be found
1422            * @throws SystemException if a system exception occurred
1423            */
1424            public static com.liferay.portlet.asset.model.AssetCategory fetchByP_N_V(
1425                    long parentCategoryId, java.lang.String name, long vocabularyId)
1426                    throws com.liferay.portal.kernel.exception.SystemException {
1427                    return getPersistence()
1428                                       .fetchByP_N_V(parentCategoryId, name, vocabularyId);
1429            }
1430    
1431            /**
1432            * Returns the asset category where parentCategoryId = &#63; and name = &#63; and vocabularyId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
1433            *
1434            * @param parentCategoryId the parent category ID
1435            * @param name the name
1436            * @param vocabularyId the vocabulary ID
1437            * @param retrieveFromCache whether to use the finder cache
1438            * @return the matching asset category, or <code>null</code> if a matching asset category could not be found
1439            * @throws SystemException if a system exception occurred
1440            */
1441            public static com.liferay.portlet.asset.model.AssetCategory fetchByP_N_V(
1442                    long parentCategoryId, java.lang.String name, long vocabularyId,
1443                    boolean retrieveFromCache)
1444                    throws com.liferay.portal.kernel.exception.SystemException {
1445                    return getPersistence()
1446                                       .fetchByP_N_V(parentCategoryId, name, vocabularyId,
1447                            retrieveFromCache);
1448            }
1449    
1450            /**
1451            * Returns all the asset categories.
1452            *
1453            * @return the asset categories
1454            * @throws SystemException if a system exception occurred
1455            */
1456            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findAll()
1457                    throws com.liferay.portal.kernel.exception.SystemException {
1458                    return getPersistence().findAll();
1459            }
1460    
1461            /**
1462            * Returns a range of all the asset categories.
1463            *
1464            * <p>
1465            * 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.
1466            * </p>
1467            *
1468            * @param start the lower bound of the range of asset categories
1469            * @param end the upper bound of the range of asset categories (not inclusive)
1470            * @return the range of asset categories
1471            * @throws SystemException if a system exception occurred
1472            */
1473            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findAll(
1474                    int start, int end)
1475                    throws com.liferay.portal.kernel.exception.SystemException {
1476                    return getPersistence().findAll(start, end);
1477            }
1478    
1479            /**
1480            * Returns an ordered range of all the asset categories.
1481            *
1482            * <p>
1483            * 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.
1484            * </p>
1485            *
1486            * @param start the lower bound of the range of asset categories
1487            * @param end the upper bound of the range of asset categories (not inclusive)
1488            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1489            * @return the ordered range of asset categories
1490            * @throws SystemException if a system exception occurred
1491            */
1492            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findAll(
1493                    int start, int end,
1494                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1495                    throws com.liferay.portal.kernel.exception.SystemException {
1496                    return getPersistence().findAll(start, end, orderByComparator);
1497            }
1498    
1499            /**
1500            * Removes all the asset categories where uuid = &#63; from the database.
1501            *
1502            * @param uuid the uuid
1503            * @throws SystemException if a system exception occurred
1504            */
1505            public static void removeByUuid(java.lang.String uuid)
1506                    throws com.liferay.portal.kernel.exception.SystemException {
1507                    getPersistence().removeByUuid(uuid);
1508            }
1509    
1510            /**
1511            * Removes the asset category where uuid = &#63; and groupId = &#63; from the database.
1512            *
1513            * @param uuid the uuid
1514            * @param groupId the group ID
1515            * @throws SystemException if a system exception occurred
1516            */
1517            public static void removeByUUID_G(java.lang.String uuid, long groupId)
1518                    throws com.liferay.portal.kernel.exception.SystemException,
1519                            com.liferay.portlet.asset.NoSuchCategoryException {
1520                    getPersistence().removeByUUID_G(uuid, groupId);
1521            }
1522    
1523            /**
1524            * Removes all the asset categories where groupId = &#63; from the database.
1525            *
1526            * @param groupId the group ID
1527            * @throws SystemException if a system exception occurred
1528            */
1529            public static void removeByGroupId(long groupId)
1530                    throws com.liferay.portal.kernel.exception.SystemException {
1531                    getPersistence().removeByGroupId(groupId);
1532            }
1533    
1534            /**
1535            * Removes all the asset categories where parentCategoryId = &#63; from the database.
1536            *
1537            * @param parentCategoryId the parent category ID
1538            * @throws SystemException if a system exception occurred
1539            */
1540            public static void removeByParentCategoryId(long parentCategoryId)
1541                    throws com.liferay.portal.kernel.exception.SystemException {
1542                    getPersistence().removeByParentCategoryId(parentCategoryId);
1543            }
1544    
1545            /**
1546            * Removes all the asset categories where vocabularyId = &#63; from the database.
1547            *
1548            * @param vocabularyId the vocabulary ID
1549            * @throws SystemException if a system exception occurred
1550            */
1551            public static void removeByVocabularyId(long vocabularyId)
1552                    throws com.liferay.portal.kernel.exception.SystemException {
1553                    getPersistence().removeByVocabularyId(vocabularyId);
1554            }
1555    
1556            /**
1557            * Removes all the asset categories where groupId = &#63; and vocabularyId = &#63; from the database.
1558            *
1559            * @param groupId the group ID
1560            * @param vocabularyId the vocabulary ID
1561            * @throws SystemException if a system exception occurred
1562            */
1563            public static void removeByG_V(long groupId, long vocabularyId)
1564                    throws com.liferay.portal.kernel.exception.SystemException {
1565                    getPersistence().removeByG_V(groupId, vocabularyId);
1566            }
1567    
1568            /**
1569            * Removes all the asset categories where parentCategoryId = &#63; and name = &#63; from the database.
1570            *
1571            * @param parentCategoryId the parent category ID
1572            * @param name the name
1573            * @throws SystemException if a system exception occurred
1574            */
1575            public static void removeByP_N(long parentCategoryId, java.lang.String name)
1576                    throws com.liferay.portal.kernel.exception.SystemException {
1577                    getPersistence().removeByP_N(parentCategoryId, name);
1578            }
1579    
1580            /**
1581            * Removes all the asset categories where parentCategoryId = &#63; and vocabularyId = &#63; from the database.
1582            *
1583            * @param parentCategoryId the parent category ID
1584            * @param vocabularyId the vocabulary ID
1585            * @throws SystemException if a system exception occurred
1586            */
1587            public static void removeByP_V(long parentCategoryId, long vocabularyId)
1588                    throws com.liferay.portal.kernel.exception.SystemException {
1589                    getPersistence().removeByP_V(parentCategoryId, vocabularyId);
1590            }
1591    
1592            /**
1593            * Removes all the asset categories where name = &#63; and vocabularyId = &#63; from the database.
1594            *
1595            * @param name the name
1596            * @param vocabularyId the vocabulary ID
1597            * @throws SystemException if a system exception occurred
1598            */
1599            public static void removeByN_V(java.lang.String name, long vocabularyId)
1600                    throws com.liferay.portal.kernel.exception.SystemException {
1601                    getPersistence().removeByN_V(name, vocabularyId);
1602            }
1603    
1604            /**
1605            * Removes the asset category where parentCategoryId = &#63; and name = &#63; and vocabularyId = &#63; from the database.
1606            *
1607            * @param parentCategoryId the parent category ID
1608            * @param name the name
1609            * @param vocabularyId the vocabulary ID
1610            * @throws SystemException if a system exception occurred
1611            */
1612            public static void removeByP_N_V(long parentCategoryId,
1613                    java.lang.String name, long vocabularyId)
1614                    throws com.liferay.portal.kernel.exception.SystemException,
1615                            com.liferay.portlet.asset.NoSuchCategoryException {
1616                    getPersistence().removeByP_N_V(parentCategoryId, name, vocabularyId);
1617            }
1618    
1619            /**
1620            * Removes all the asset categories from the database.
1621            *
1622            * @throws SystemException if a system exception occurred
1623            */
1624            public static void removeAll()
1625                    throws com.liferay.portal.kernel.exception.SystemException {
1626                    getPersistence().removeAll();
1627            }
1628    
1629            /**
1630            * Returns the number of asset categories where uuid = &#63;.
1631            *
1632            * @param uuid the uuid
1633            * @return the number of matching asset categories
1634            * @throws SystemException if a system exception occurred
1635            */
1636            public static int countByUuid(java.lang.String uuid)
1637                    throws com.liferay.portal.kernel.exception.SystemException {
1638                    return getPersistence().countByUuid(uuid);
1639            }
1640    
1641            /**
1642            * Returns the number of asset categories where uuid = &#63; and groupId = &#63;.
1643            *
1644            * @param uuid the uuid
1645            * @param groupId the group ID
1646            * @return the number of matching asset categories
1647            * @throws SystemException if a system exception occurred
1648            */
1649            public static int countByUUID_G(java.lang.String uuid, long groupId)
1650                    throws com.liferay.portal.kernel.exception.SystemException {
1651                    return getPersistence().countByUUID_G(uuid, groupId);
1652            }
1653    
1654            /**
1655            * Returns the number of asset categories where groupId = &#63;.
1656            *
1657            * @param groupId the group ID
1658            * @return the number of matching asset categories
1659            * @throws SystemException if a system exception occurred
1660            */
1661            public static int countByGroupId(long groupId)
1662                    throws com.liferay.portal.kernel.exception.SystemException {
1663                    return getPersistence().countByGroupId(groupId);
1664            }
1665    
1666            /**
1667            * Returns the number of asset categories that the user has permission to view where groupId = &#63;.
1668            *
1669            * @param groupId the group ID
1670            * @return the number of matching asset categories that the user has permission to view
1671            * @throws SystemException if a system exception occurred
1672            */
1673            public static int filterCountByGroupId(long groupId)
1674                    throws com.liferay.portal.kernel.exception.SystemException {
1675                    return getPersistence().filterCountByGroupId(groupId);
1676            }
1677    
1678            /**
1679            * Returns the number of asset categories where parentCategoryId = &#63;.
1680            *
1681            * @param parentCategoryId the parent category ID
1682            * @return the number of matching asset categories
1683            * @throws SystemException if a system exception occurred
1684            */
1685            public static int countByParentCategoryId(long parentCategoryId)
1686                    throws com.liferay.portal.kernel.exception.SystemException {
1687                    return getPersistence().countByParentCategoryId(parentCategoryId);
1688            }
1689    
1690            /**
1691            * Returns the number of asset categories where vocabularyId = &#63;.
1692            *
1693            * @param vocabularyId the vocabulary ID
1694            * @return the number of matching asset categories
1695            * @throws SystemException if a system exception occurred
1696            */
1697            public static int countByVocabularyId(long vocabularyId)
1698                    throws com.liferay.portal.kernel.exception.SystemException {
1699                    return getPersistence().countByVocabularyId(vocabularyId);
1700            }
1701    
1702            /**
1703            * Returns the number of asset categories where groupId = &#63; and vocabularyId = &#63;.
1704            *
1705            * @param groupId the group ID
1706            * @param vocabularyId the vocabulary ID
1707            * @return the number of matching asset categories
1708            * @throws SystemException if a system exception occurred
1709            */
1710            public static int countByG_V(long groupId, long vocabularyId)
1711                    throws com.liferay.portal.kernel.exception.SystemException {
1712                    return getPersistence().countByG_V(groupId, vocabularyId);
1713            }
1714    
1715            /**
1716            * Returns the number of asset categories that the user has permission to view where groupId = &#63; and vocabularyId = &#63;.
1717            *
1718            * @param groupId the group ID
1719            * @param vocabularyId the vocabulary ID
1720            * @return the number of matching asset categories that the user has permission to view
1721            * @throws SystemException if a system exception occurred
1722            */
1723            public static int filterCountByG_V(long groupId, long vocabularyId)
1724                    throws com.liferay.portal.kernel.exception.SystemException {
1725                    return getPersistence().filterCountByG_V(groupId, vocabularyId);
1726            }
1727    
1728            /**
1729            * Returns the number of asset categories where parentCategoryId = &#63; and name = &#63;.
1730            *
1731            * @param parentCategoryId the parent category ID
1732            * @param name the name
1733            * @return the number of matching asset categories
1734            * @throws SystemException if a system exception occurred
1735            */
1736            public static int countByP_N(long parentCategoryId, java.lang.String name)
1737                    throws com.liferay.portal.kernel.exception.SystemException {
1738                    return getPersistence().countByP_N(parentCategoryId, name);
1739            }
1740    
1741            /**
1742            * Returns the number of asset categories where parentCategoryId = &#63; and vocabularyId = &#63;.
1743            *
1744            * @param parentCategoryId the parent category ID
1745            * @param vocabularyId the vocabulary ID
1746            * @return the number of matching asset categories
1747            * @throws SystemException if a system exception occurred
1748            */
1749            public static int countByP_V(long parentCategoryId, long vocabularyId)
1750                    throws com.liferay.portal.kernel.exception.SystemException {
1751                    return getPersistence().countByP_V(parentCategoryId, vocabularyId);
1752            }
1753    
1754            /**
1755            * Returns the number of asset categories where name = &#63; and vocabularyId = &#63;.
1756            *
1757            * @param name the name
1758            * @param vocabularyId the vocabulary ID
1759            * @return the number of matching asset categories
1760            * @throws SystemException if a system exception occurred
1761            */
1762            public static int countByN_V(java.lang.String name, long vocabularyId)
1763                    throws com.liferay.portal.kernel.exception.SystemException {
1764                    return getPersistence().countByN_V(name, vocabularyId);
1765            }
1766    
1767            /**
1768            * Returns the number of asset categories where parentCategoryId = &#63; and name = &#63; and vocabularyId = &#63;.
1769            *
1770            * @param parentCategoryId the parent category ID
1771            * @param name the name
1772            * @param vocabularyId the vocabulary ID
1773            * @return the number of matching asset categories
1774            * @throws SystemException if a system exception occurred
1775            */
1776            public static int countByP_N_V(long parentCategoryId,
1777                    java.lang.String name, long vocabularyId)
1778                    throws com.liferay.portal.kernel.exception.SystemException {
1779                    return getPersistence()
1780                                       .countByP_N_V(parentCategoryId, name, vocabularyId);
1781            }
1782    
1783            /**
1784            * Returns the number of asset categories.
1785            *
1786            * @return the number of asset categories
1787            * @throws SystemException if a system exception occurred
1788            */
1789            public static int countAll()
1790                    throws com.liferay.portal.kernel.exception.SystemException {
1791                    return getPersistence().countAll();
1792            }
1793    
1794            /**
1795            * Returns all the asset entries associated with the asset category.
1796            *
1797            * @param pk the primary key of the asset category
1798            * @return the asset entries associated with the asset category
1799            * @throws SystemException if a system exception occurred
1800            */
1801            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
1802                    long pk) throws com.liferay.portal.kernel.exception.SystemException {
1803                    return getPersistence().getAssetEntries(pk);
1804            }
1805    
1806            /**
1807            * Returns a range of all the asset entries associated with the asset category.
1808            *
1809            * <p>
1810            * 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.
1811            * </p>
1812            *
1813            * @param pk the primary key of the asset category
1814            * @param start the lower bound of the range of asset categories
1815            * @param end the upper bound of the range of asset categories (not inclusive)
1816            * @return the range of asset entries associated with the asset category
1817            * @throws SystemException if a system exception occurred
1818            */
1819            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
1820                    long pk, int start, int end)
1821                    throws com.liferay.portal.kernel.exception.SystemException {
1822                    return getPersistence().getAssetEntries(pk, start, end);
1823            }
1824    
1825            /**
1826            * Returns an ordered range of all the asset entries associated with the asset category.
1827            *
1828            * <p>
1829            * 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.
1830            * </p>
1831            *
1832            * @param pk the primary key of the asset category
1833            * @param start the lower bound of the range of asset categories
1834            * @param end the upper bound of the range of asset categories (not inclusive)
1835            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1836            * @return the ordered range of asset entries associated with the asset category
1837            * @throws SystemException if a system exception occurred
1838            */
1839            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
1840                    long pk, int start, int end,
1841                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1842                    throws com.liferay.portal.kernel.exception.SystemException {
1843                    return getPersistence()
1844                                       .getAssetEntries(pk, start, end, orderByComparator);
1845            }
1846    
1847            /**
1848            * Returns the number of asset entries associated with the asset category.
1849            *
1850            * @param pk the primary key of the asset category
1851            * @return the number of asset entries associated with the asset category
1852            * @throws SystemException if a system exception occurred
1853            */
1854            public static int getAssetEntriesSize(long pk)
1855                    throws com.liferay.portal.kernel.exception.SystemException {
1856                    return getPersistence().getAssetEntriesSize(pk);
1857            }
1858    
1859            /**
1860            * Returns <code>true</code> if the asset entry is associated with the asset category.
1861            *
1862            * @param pk the primary key of the asset category
1863            * @param assetEntryPK the primary key of the asset entry
1864            * @return <code>true</code> if the asset entry is associated with the asset category; <code>false</code> otherwise
1865            * @throws SystemException if a system exception occurred
1866            */
1867            public static boolean containsAssetEntry(long pk, long assetEntryPK)
1868                    throws com.liferay.portal.kernel.exception.SystemException {
1869                    return getPersistence().containsAssetEntry(pk, assetEntryPK);
1870            }
1871    
1872            /**
1873            * Returns <code>true</code> if the asset category has any asset entries associated with it.
1874            *
1875            * @param pk the primary key of the asset category to check for associations with asset entries
1876            * @return <code>true</code> if the asset category has any asset entries associated with it; <code>false</code> otherwise
1877            * @throws SystemException if a system exception occurred
1878            */
1879            public static boolean containsAssetEntries(long pk)
1880                    throws com.liferay.portal.kernel.exception.SystemException {
1881                    return getPersistence().containsAssetEntries(pk);
1882            }
1883    
1884            /**
1885            * Adds an association between the asset category and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1886            *
1887            * @param pk the primary key of the asset category
1888            * @param assetEntryPK the primary key of the asset entry
1889            * @throws SystemException if a system exception occurred
1890            */
1891            public static void addAssetEntry(long pk, long assetEntryPK)
1892                    throws com.liferay.portal.kernel.exception.SystemException {
1893                    getPersistence().addAssetEntry(pk, assetEntryPK);
1894            }
1895    
1896            /**
1897            * Adds an association between the asset category and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1898            *
1899            * @param pk the primary key of the asset category
1900            * @param assetEntry the asset entry
1901            * @throws SystemException if a system exception occurred
1902            */
1903            public static void addAssetEntry(long pk,
1904                    com.liferay.portlet.asset.model.AssetEntry assetEntry)
1905                    throws com.liferay.portal.kernel.exception.SystemException {
1906                    getPersistence().addAssetEntry(pk, assetEntry);
1907            }
1908    
1909            /**
1910            * Adds an association between the asset category and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1911            *
1912            * @param pk the primary key of the asset category
1913            * @param assetEntryPKs the primary keys of the asset entries
1914            * @throws SystemException if a system exception occurred
1915            */
1916            public static void addAssetEntries(long pk, long[] assetEntryPKs)
1917                    throws com.liferay.portal.kernel.exception.SystemException {
1918                    getPersistence().addAssetEntries(pk, assetEntryPKs);
1919            }
1920    
1921            /**
1922            * Adds an association between the asset category and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1923            *
1924            * @param pk the primary key of the asset category
1925            * @param assetEntries the asset entries
1926            * @throws SystemException if a system exception occurred
1927            */
1928            public static void addAssetEntries(long pk,
1929                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
1930                    throws com.liferay.portal.kernel.exception.SystemException {
1931                    getPersistence().addAssetEntries(pk, assetEntries);
1932            }
1933    
1934            /**
1935            * Clears all associations between the asset category and its asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1936            *
1937            * @param pk the primary key of the asset category to clear the associated asset entries from
1938            * @throws SystemException if a system exception occurred
1939            */
1940            public static void clearAssetEntries(long pk)
1941                    throws com.liferay.portal.kernel.exception.SystemException {
1942                    getPersistence().clearAssetEntries(pk);
1943            }
1944    
1945            /**
1946            * Removes the association between the asset category and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1947            *
1948            * @param pk the primary key of the asset category
1949            * @param assetEntryPK the primary key of the asset entry
1950            * @throws SystemException if a system exception occurred
1951            */
1952            public static void removeAssetEntry(long pk, long assetEntryPK)
1953                    throws com.liferay.portal.kernel.exception.SystemException {
1954                    getPersistence().removeAssetEntry(pk, assetEntryPK);
1955            }
1956    
1957            /**
1958            * Removes the association between the asset category and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1959            *
1960            * @param pk the primary key of the asset category
1961            * @param assetEntry the asset entry
1962            * @throws SystemException if a system exception occurred
1963            */
1964            public static void removeAssetEntry(long pk,
1965                    com.liferay.portlet.asset.model.AssetEntry assetEntry)
1966                    throws com.liferay.portal.kernel.exception.SystemException {
1967                    getPersistence().removeAssetEntry(pk, assetEntry);
1968            }
1969    
1970            /**
1971            * Removes the association between the asset category and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1972            *
1973            * @param pk the primary key of the asset category
1974            * @param assetEntryPKs the primary keys of the asset entries
1975            * @throws SystemException if a system exception occurred
1976            */
1977            public static void removeAssetEntries(long pk, long[] assetEntryPKs)
1978                    throws com.liferay.portal.kernel.exception.SystemException {
1979                    getPersistence().removeAssetEntries(pk, assetEntryPKs);
1980            }
1981    
1982            /**
1983            * Removes the association between the asset category and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1984            *
1985            * @param pk the primary key of the asset category
1986            * @param assetEntries the asset entries
1987            * @throws SystemException if a system exception occurred
1988            */
1989            public static void removeAssetEntries(long pk,
1990                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
1991                    throws com.liferay.portal.kernel.exception.SystemException {
1992                    getPersistence().removeAssetEntries(pk, assetEntries);
1993            }
1994    
1995            /**
1996            * Sets the asset entries associated with the asset category, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1997            *
1998            * @param pk the primary key of the asset category
1999            * @param assetEntryPKs the primary keys of the asset entries to be associated with the asset category
2000            * @throws SystemException if a system exception occurred
2001            */
2002            public static void setAssetEntries(long pk, long[] assetEntryPKs)
2003                    throws com.liferay.portal.kernel.exception.SystemException {
2004                    getPersistence().setAssetEntries(pk, assetEntryPKs);
2005            }
2006    
2007            /**
2008            * Sets the asset entries associated with the asset category, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2009            *
2010            * @param pk the primary key of the asset category
2011            * @param assetEntries the asset entries to be associated with the asset category
2012            * @throws SystemException if a system exception occurred
2013            */
2014            public static void setAssetEntries(long pk,
2015                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
2016                    throws com.liferay.portal.kernel.exception.SystemException {
2017                    getPersistence().setAssetEntries(pk, assetEntries);
2018            }
2019    
2020            /**
2021            * Rebuilds the asset categories tree for the scope using the modified pre-order tree traversal algorithm.
2022            *
2023            * <p>
2024            * Only call this method if the tree has become stale through operations other than normal CRUD. Under normal circumstances the tree is automatically rebuilt whenver necessary.
2025            * </p>
2026            *
2027            * @param groupId the ID of the scope
2028            * @param force whether to force the rebuild even if the tree is not stale
2029            */
2030            public static void rebuildTree(long groupId, boolean force)
2031                    throws com.liferay.portal.kernel.exception.SystemException {
2032                    getPersistence().rebuildTree(groupId, force);
2033            }
2034    
2035            public static void setRebuildTreeEnabled(boolean rebuildTreeEnabled) {
2036                    getPersistence().setRebuildTreeEnabled(rebuildTreeEnabled);
2037            }
2038    
2039            public static AssetCategoryPersistence getPersistence() {
2040                    if (_persistence == null) {
2041                            _persistence = (AssetCategoryPersistence)PortalBeanLocatorUtil.locate(AssetCategoryPersistence.class.getName());
2042    
2043                            ReferenceRegistry.registerReference(AssetCategoryUtil.class,
2044                                    "_persistence");
2045                    }
2046    
2047                    return _persistence;
2048            }
2049    
2050            public void setPersistence(AssetCategoryPersistence persistence) {
2051                    _persistence = persistence;
2052    
2053                    ReferenceRegistry.registerReference(AssetCategoryUtil.class,
2054                            "_persistence");
2055            }
2056    
2057            private static AssetCategoryPersistence _persistence;
2058    }