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