001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portlet.asset.service.persistence;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019    import com.liferay.portal.kernel.exception.SystemException;
020    import com.liferay.portal.kernel.util.OrderByComparator;
021    import com.liferay.portal.kernel.util.ReferenceRegistry;
022    import com.liferay.portal.service.ServiceContext;
023    
024    import com.liferay.portlet.asset.model.AssetCategory;
025    
026    import java.util.List;
027    
028    /**
029     * The persistence utility for the asset category service. This utility wraps {@link AssetCategoryPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
030     *
031     * <p>
032     * Caching information and settings can be found in <code>portal.properties</code>
033     * </p>
034     *
035     * @author Brian Wing Shun Chan
036     * @see AssetCategoryPersistence
037     * @see AssetCategoryPersistenceImpl
038     * @generated
039     */
040    public class AssetCategoryUtil {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
045             */
046    
047            /**
048             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
049             */
050            public static void clearCache() {
051                    getPersistence().clearCache();
052            }
053    
054            /**
055             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
056             */
057            public static void clearCache(AssetCategory assetCategory) {
058                    getPersistence().clearCache(assetCategory);
059            }
060    
061            /**
062             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
063             */
064            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
065                    throws SystemException {
066                    return getPersistence().countWithDynamicQuery(dynamicQuery);
067            }
068    
069            /**
070             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
071             */
072            public static List<AssetCategory> findWithDynamicQuery(
073                    DynamicQuery dynamicQuery) throws SystemException {
074                    return getPersistence().findWithDynamicQuery(dynamicQuery);
075            }
076    
077            /**
078             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
079             */
080            public static List<AssetCategory> findWithDynamicQuery(
081                    DynamicQuery dynamicQuery, int start, int end)
082                    throws SystemException {
083                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
084            }
085    
086            /**
087             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
088             */
089            public static List<AssetCategory> findWithDynamicQuery(
090                    DynamicQuery dynamicQuery, int start, int end,
091                    OrderByComparator orderByComparator) throws SystemException {
092                    return getPersistence()
093                                       .findWithDynamicQuery(dynamicQuery, start, end,
094                            orderByComparator);
095            }
096    
097            /**
098             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
099             */
100            public static AssetCategory update(AssetCategory assetCategory,
101                    boolean merge) throws SystemException {
102                    return getPersistence().update(assetCategory, merge);
103            }
104    
105            /**
106             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
107             */
108            public static AssetCategory update(AssetCategory assetCategory,
109                    boolean merge, ServiceContext serviceContext) throws SystemException {
110                    return getPersistence().update(assetCategory, merge, serviceContext);
111            }
112    
113            /**
114            * Caches the asset category in the entity cache if it is enabled.
115            *
116            * @param assetCategory the asset category
117            */
118            public static void cacheResult(
119                    com.liferay.portlet.asset.model.AssetCategory assetCategory) {
120                    getPersistence().cacheResult(assetCategory);
121            }
122    
123            /**
124            * Caches the asset categories in the entity cache if it is enabled.
125            *
126            * @param assetCategories the asset categories
127            */
128            public static void cacheResult(
129                    java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories) {
130                    getPersistence().cacheResult(assetCategories);
131            }
132    
133            /**
134            * Creates a new asset category with the primary key. Does not add the asset category to the database.
135            *
136            * @param categoryId the primary key for the new asset category
137            * @return the new asset category
138            */
139            public static com.liferay.portlet.asset.model.AssetCategory create(
140                    long categoryId) {
141                    return getPersistence().create(categoryId);
142            }
143    
144            /**
145            * Removes the asset category with the primary key from the database. Also notifies the appropriate model listeners.
146            *
147            * @param categoryId the primary key of the asset category
148            * @return the asset category that was removed
149            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found
150            * @throws SystemException if a system exception occurred
151            */
152            public static com.liferay.portlet.asset.model.AssetCategory remove(
153                    long categoryId)
154                    throws com.liferay.portal.kernel.exception.SystemException,
155                            com.liferay.portlet.asset.NoSuchCategoryException {
156                    return getPersistence().remove(categoryId);
157            }
158    
159            public static com.liferay.portlet.asset.model.AssetCategory updateImpl(
160                    com.liferay.portlet.asset.model.AssetCategory assetCategory,
161                    boolean merge)
162                    throws com.liferay.portal.kernel.exception.SystemException {
163                    return getPersistence().updateImpl(assetCategory, merge);
164            }
165    
166            /**
167            * Returns the asset category with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchCategoryException} if it could not be found.
168            *
169            * @param categoryId the primary key of the asset category
170            * @return the asset category
171            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found
172            * @throws SystemException if a system exception occurred
173            */
174            public static com.liferay.portlet.asset.model.AssetCategory findByPrimaryKey(
175                    long categoryId)
176                    throws com.liferay.portal.kernel.exception.SystemException,
177                            com.liferay.portlet.asset.NoSuchCategoryException {
178                    return getPersistence().findByPrimaryKey(categoryId);
179            }
180    
181            /**
182            * Returns the asset category with the primary key or returns <code>null</code> if it could not be found.
183            *
184            * @param categoryId the primary key of the asset category
185            * @return the asset category, or <code>null</code> if a asset category with the primary key could not be found
186            * @throws SystemException if a system exception occurred
187            */
188            public static com.liferay.portlet.asset.model.AssetCategory fetchByPrimaryKey(
189                    long categoryId)
190                    throws com.liferay.portal.kernel.exception.SystemException {
191                    return getPersistence().fetchByPrimaryKey(categoryId);
192            }
193    
194            /**
195            * Returns all the asset categories where uuid = &#63;.
196            *
197            * @param uuid the uuid
198            * @return the matching asset categories
199            * @throws SystemException if a system exception occurred
200            */
201            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByUuid(
202                    java.lang.String uuid)
203                    throws com.liferay.portal.kernel.exception.SystemException {
204                    return getPersistence().findByUuid(uuid);
205            }
206    
207            /**
208            * Returns a range of all the asset categories where uuid = &#63;.
209            *
210            * <p>
211            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
212            * </p>
213            *
214            * @param uuid the uuid
215            * @param start the lower bound of the range of asset categories
216            * @param end the upper bound of the range of asset categories (not inclusive)
217            * @return the range of matching asset categories
218            * @throws SystemException if a system exception occurred
219            */
220            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByUuid(
221                    java.lang.String uuid, int start, int end)
222                    throws com.liferay.portal.kernel.exception.SystemException {
223                    return getPersistence().findByUuid(uuid, start, end);
224            }
225    
226            /**
227            * Returns an ordered range of all the asset categories where uuid = &#63;.
228            *
229            * <p>
230            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
231            * </p>
232            *
233            * @param uuid the uuid
234            * @param start the lower bound of the range of asset categories
235            * @param end the upper bound of the range of asset categories (not inclusive)
236            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
237            * @return the ordered range of matching asset categories
238            * @throws SystemException if a system exception occurred
239            */
240            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByUuid(
241                    java.lang.String uuid, int start, int end,
242                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
243                    throws com.liferay.portal.kernel.exception.SystemException {
244                    return getPersistence().findByUuid(uuid, start, end, orderByComparator);
245            }
246    
247            /**
248            * Returns the first asset category in the ordered set where uuid = &#63;.
249            *
250            * @param uuid the uuid
251            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
252            * @return the first matching asset category
253            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
254            * @throws SystemException if a system exception occurred
255            */
256            public static com.liferay.portlet.asset.model.AssetCategory findByUuid_First(
257                    java.lang.String uuid,
258                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
259                    throws com.liferay.portal.kernel.exception.SystemException,
260                            com.liferay.portlet.asset.NoSuchCategoryException {
261                    return getPersistence().findByUuid_First(uuid, orderByComparator);
262            }
263    
264            /**
265            * Returns the first asset category in the ordered set where uuid = &#63;.
266            *
267            * @param uuid the uuid
268            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
269            * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found
270            * @throws SystemException if a system exception occurred
271            */
272            public static com.liferay.portlet.asset.model.AssetCategory fetchByUuid_First(
273                    java.lang.String uuid,
274                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
275                    throws com.liferay.portal.kernel.exception.SystemException {
276                    return getPersistence().fetchByUuid_First(uuid, orderByComparator);
277            }
278    
279            /**
280            * Returns the last asset category in the ordered set where uuid = &#63;.
281            *
282            * @param uuid the uuid
283            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
284            * @return the last matching asset category
285            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
286            * @throws SystemException if a system exception occurred
287            */
288            public static com.liferay.portlet.asset.model.AssetCategory findByUuid_Last(
289                    java.lang.String uuid,
290                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
291                    throws com.liferay.portal.kernel.exception.SystemException,
292                            com.liferay.portlet.asset.NoSuchCategoryException {
293                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
294            }
295    
296            /**
297            * Returns the last asset category in the ordered set where uuid = &#63;.
298            *
299            * @param uuid the uuid
300            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
301            * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found
302            * @throws SystemException if a system exception occurred
303            */
304            public static com.liferay.portlet.asset.model.AssetCategory fetchByUuid_Last(
305                    java.lang.String uuid,
306                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
307                    throws com.liferay.portal.kernel.exception.SystemException {
308                    return getPersistence().fetchByUuid_Last(uuid, orderByComparator);
309            }
310    
311            /**
312            * Returns the asset categories before and after the current asset category in the ordered set where uuid = &#63;.
313            *
314            * @param categoryId the primary key of the current asset category
315            * @param uuid the uuid
316            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
317            * @return the previous, current, and next asset category
318            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found
319            * @throws SystemException if a system exception occurred
320            */
321            public static com.liferay.portlet.asset.model.AssetCategory[] findByUuid_PrevAndNext(
322                    long categoryId, java.lang.String uuid,
323                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
324                    throws com.liferay.portal.kernel.exception.SystemException,
325                            com.liferay.portlet.asset.NoSuchCategoryException {
326                    return getPersistence()
327                                       .findByUuid_PrevAndNext(categoryId, uuid, orderByComparator);
328            }
329    
330            /**
331            * 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.
332            *
333            * @param uuid the uuid
334            * @param groupId the group ID
335            * @return the matching asset category
336            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
337            * @throws SystemException if a system exception occurred
338            */
339            public static com.liferay.portlet.asset.model.AssetCategory findByUUID_G(
340                    java.lang.String uuid, long groupId)
341                    throws com.liferay.portal.kernel.exception.SystemException,
342                            com.liferay.portlet.asset.NoSuchCategoryException {
343                    return getPersistence().findByUUID_G(uuid, groupId);
344            }
345    
346            /**
347            * 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.
348            *
349            * @param uuid the uuid
350            * @param groupId the group ID
351            * @return the matching asset category, or <code>null</code> if a matching asset category could not be found
352            * @throws SystemException if a system exception occurred
353            */
354            public static com.liferay.portlet.asset.model.AssetCategory fetchByUUID_G(
355                    java.lang.String uuid, long groupId)
356                    throws com.liferay.portal.kernel.exception.SystemException {
357                    return getPersistence().fetchByUUID_G(uuid, groupId);
358            }
359    
360            /**
361            * Returns the asset category where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
362            *
363            * @param uuid the uuid
364            * @param groupId the group ID
365            * @param retrieveFromCache whether to use the finder cache
366            * @return the matching asset category, or <code>null</code> if a matching asset category could not be found
367            * @throws SystemException if a system exception occurred
368            */
369            public static com.liferay.portlet.asset.model.AssetCategory fetchByUUID_G(
370                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
371                    throws com.liferay.portal.kernel.exception.SystemException {
372                    return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
373            }
374    
375            /**
376            * Returns all the asset categories where groupId = &#63;.
377            *
378            * @param groupId the group ID
379            * @return the matching asset categories
380            * @throws SystemException if a system exception occurred
381            */
382            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByGroupId(
383                    long groupId)
384                    throws com.liferay.portal.kernel.exception.SystemException {
385                    return getPersistence().findByGroupId(groupId);
386            }
387    
388            /**
389            * Returns a range of all the asset categories where groupId = &#63;.
390            *
391            * <p>
392            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
393            * </p>
394            *
395            * @param groupId the group ID
396            * @param start the lower bound of the range of asset categories
397            * @param end the upper bound of the range of asset categories (not inclusive)
398            * @return the range of matching asset categories
399            * @throws SystemException if a system exception occurred
400            */
401            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByGroupId(
402                    long groupId, int start, int end)
403                    throws com.liferay.portal.kernel.exception.SystemException {
404                    return getPersistence().findByGroupId(groupId, start, end);
405            }
406    
407            /**
408            * Returns an ordered range of all the asset categories where groupId = &#63;.
409            *
410            * <p>
411            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
412            * </p>
413            *
414            * @param groupId the group ID
415            * @param start the lower bound of the range of asset categories
416            * @param end the upper bound of the range of asset categories (not inclusive)
417            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
418            * @return the ordered range of matching asset categories
419            * @throws SystemException if a system exception occurred
420            */
421            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByGroupId(
422                    long groupId, int start, int end,
423                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
424                    throws com.liferay.portal.kernel.exception.SystemException {
425                    return getPersistence()
426                                       .findByGroupId(groupId, start, end, orderByComparator);
427            }
428    
429            /**
430            * Returns the first asset category in the ordered set where groupId = &#63;.
431            *
432            * @param groupId the group ID
433            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
434            * @return the first matching asset category
435            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
436            * @throws SystemException if a system exception occurred
437            */
438            public static com.liferay.portlet.asset.model.AssetCategory findByGroupId_First(
439                    long groupId,
440                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
441                    throws com.liferay.portal.kernel.exception.SystemException,
442                            com.liferay.portlet.asset.NoSuchCategoryException {
443                    return getPersistence().findByGroupId_First(groupId, orderByComparator);
444            }
445    
446            /**
447            * Returns the first asset category in the ordered set where groupId = &#63;.
448            *
449            * @param groupId the group ID
450            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
451            * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found
452            * @throws SystemException if a system exception occurred
453            */
454            public static com.liferay.portlet.asset.model.AssetCategory fetchByGroupId_First(
455                    long groupId,
456                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
457                    throws com.liferay.portal.kernel.exception.SystemException {
458                    return getPersistence().fetchByGroupId_First(groupId, orderByComparator);
459            }
460    
461            /**
462            * Returns the last asset category in the ordered set where groupId = &#63;.
463            *
464            * @param groupId the group ID
465            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
466            * @return the last matching asset category
467            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
468            * @throws SystemException if a system exception occurred
469            */
470            public static com.liferay.portlet.asset.model.AssetCategory findByGroupId_Last(
471                    long groupId,
472                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
473                    throws com.liferay.portal.kernel.exception.SystemException,
474                            com.liferay.portlet.asset.NoSuchCategoryException {
475                    return getPersistence().findByGroupId_Last(groupId, orderByComparator);
476            }
477    
478            /**
479            * Returns the last asset category in the ordered set where groupId = &#63;.
480            *
481            * @param groupId the group ID
482            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
483            * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found
484            * @throws SystemException if a system exception occurred
485            */
486            public static com.liferay.portlet.asset.model.AssetCategory fetchByGroupId_Last(
487                    long groupId,
488                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
489                    throws com.liferay.portal.kernel.exception.SystemException {
490                    return getPersistence().fetchByGroupId_Last(groupId, orderByComparator);
491            }
492    
493            /**
494            * Returns the asset categories before and after the current asset category in the ordered set where groupId = &#63;.
495            *
496            * @param categoryId the primary key of the current asset category
497            * @param groupId the group ID
498            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
499            * @return the previous, current, and next asset category
500            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found
501            * @throws SystemException if a system exception occurred
502            */
503            public static com.liferay.portlet.asset.model.AssetCategory[] findByGroupId_PrevAndNext(
504                    long categoryId, long groupId,
505                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
506                    throws com.liferay.portal.kernel.exception.SystemException,
507                            com.liferay.portlet.asset.NoSuchCategoryException {
508                    return getPersistence()
509                                       .findByGroupId_PrevAndNext(categoryId, groupId,
510                            orderByComparator);
511            }
512    
513            /**
514            * Returns all the asset categories that the user has permission to view where groupId = &#63;.
515            *
516            * @param groupId the group ID
517            * @return the matching asset categories that the user has permission to view
518            * @throws SystemException if a system exception occurred
519            */
520            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByGroupId(
521                    long groupId)
522                    throws com.liferay.portal.kernel.exception.SystemException {
523                    return getPersistence().filterFindByGroupId(groupId);
524            }
525    
526            /**
527            * Returns a range of all the asset categories that the user has permission to view where groupId = &#63;.
528            *
529            * <p>
530            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
531            * </p>
532            *
533            * @param groupId the group ID
534            * @param start the lower bound of the range of asset categories
535            * @param end the upper bound of the range of asset categories (not inclusive)
536            * @return the range of matching asset categories that the user has permission to view
537            * @throws SystemException if a system exception occurred
538            */
539            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByGroupId(
540                    long groupId, int start, int end)
541                    throws com.liferay.portal.kernel.exception.SystemException {
542                    return getPersistence().filterFindByGroupId(groupId, start, end);
543            }
544    
545            /**
546            * Returns an ordered range of all the asset categories that the user has permissions to view where groupId = &#63;.
547            *
548            * <p>
549            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
550            * </p>
551            *
552            * @param groupId the group ID
553            * @param start the lower bound of the range of asset categories
554            * @param end the upper bound of the range of asset categories (not inclusive)
555            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
556            * @return the ordered range of matching asset categories that the user has permission to view
557            * @throws SystemException if a system exception occurred
558            */
559            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByGroupId(
560                    long groupId, int start, int end,
561                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
562                    throws com.liferay.portal.kernel.exception.SystemException {
563                    return getPersistence()
564                                       .filterFindByGroupId(groupId, start, end, orderByComparator);
565            }
566    
567            /**
568            * Returns the asset 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;.
569            *
570            * @param categoryId the primary key of the current asset category
571            * @param groupId the group ID
572            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
573            * @return the previous, current, and next asset category
574            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found
575            * @throws SystemException if a system exception occurred
576            */
577            public static com.liferay.portlet.asset.model.AssetCategory[] filterFindByGroupId_PrevAndNext(
578                    long categoryId, long groupId,
579                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
580                    throws com.liferay.portal.kernel.exception.SystemException,
581                            com.liferay.portlet.asset.NoSuchCategoryException {
582                    return getPersistence()
583                                       .filterFindByGroupId_PrevAndNext(categoryId, groupId,
584                            orderByComparator);
585            }
586    
587            /**
588            * Returns all the asset categories where parentCategoryId = &#63;.
589            *
590            * @param parentCategoryId the parent category ID
591            * @return the matching asset categories
592            * @throws SystemException if a system exception occurred
593            */
594            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByParentCategoryId(
595                    long parentCategoryId)
596                    throws com.liferay.portal.kernel.exception.SystemException {
597                    return getPersistence().findByParentCategoryId(parentCategoryId);
598            }
599    
600            /**
601            * Returns a range of all the asset categories where parentCategoryId = &#63;.
602            *
603            * <p>
604            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
605            * </p>
606            *
607            * @param parentCategoryId the parent category ID
608            * @param start the lower bound of the range of asset categories
609            * @param end the upper bound of the range of asset categories (not inclusive)
610            * @return the range of matching asset categories
611            * @throws SystemException if a system exception occurred
612            */
613            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByParentCategoryId(
614                    long parentCategoryId, int start, int end)
615                    throws com.liferay.portal.kernel.exception.SystemException {
616                    return getPersistence()
617                                       .findByParentCategoryId(parentCategoryId, start, end);
618            }
619    
620            /**
621            * Returns an ordered range of all the asset categories where parentCategoryId = &#63;.
622            *
623            * <p>
624            * 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.
625            * </p>
626            *
627            * @param parentCategoryId the parent category ID
628            * @param start the lower bound of the range of asset categories
629            * @param end the upper bound of the range of asset categories (not inclusive)
630            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
631            * @return the ordered range of matching asset categories
632            * @throws SystemException if a system exception occurred
633            */
634            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByParentCategoryId(
635                    long parentCategoryId, int start, int end,
636                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
637                    throws com.liferay.portal.kernel.exception.SystemException {
638                    return getPersistence()
639                                       .findByParentCategoryId(parentCategoryId, start, end,
640                            orderByComparator);
641            }
642    
643            /**
644            * Returns the first asset category in the ordered set where parentCategoryId = &#63;.
645            *
646            * @param parentCategoryId the parent category ID
647            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
648            * @return the first matching asset category
649            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
650            * @throws SystemException if a system exception occurred
651            */
652            public static com.liferay.portlet.asset.model.AssetCategory findByParentCategoryId_First(
653                    long parentCategoryId,
654                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
655                    throws com.liferay.portal.kernel.exception.SystemException,
656                            com.liferay.portlet.asset.NoSuchCategoryException {
657                    return getPersistence()
658                                       .findByParentCategoryId_First(parentCategoryId,
659                            orderByComparator);
660            }
661    
662            /**
663            * Returns the first asset category in the ordered set where parentCategoryId = &#63;.
664            *
665            * @param parentCategoryId the parent category ID
666            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
667            * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found
668            * @throws SystemException if a system exception occurred
669            */
670            public static com.liferay.portlet.asset.model.AssetCategory fetchByParentCategoryId_First(
671                    long parentCategoryId,
672                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
673                    throws com.liferay.portal.kernel.exception.SystemException {
674                    return getPersistence()
675                                       .fetchByParentCategoryId_First(parentCategoryId,
676                            orderByComparator);
677            }
678    
679            /**
680            * Returns the last asset category in the ordered set where parentCategoryId = &#63;.
681            *
682            * @param parentCategoryId the parent category ID
683            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
684            * @return the last matching asset category
685            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
686            * @throws SystemException if a system exception occurred
687            */
688            public static com.liferay.portlet.asset.model.AssetCategory findByParentCategoryId_Last(
689                    long parentCategoryId,
690                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
691                    throws com.liferay.portal.kernel.exception.SystemException,
692                            com.liferay.portlet.asset.NoSuchCategoryException {
693                    return getPersistence()
694                                       .findByParentCategoryId_Last(parentCategoryId,
695                            orderByComparator);
696            }
697    
698            /**
699            * Returns the last asset category in the ordered set where parentCategoryId = &#63;.
700            *
701            * @param parentCategoryId the parent category ID
702            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
703            * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found
704            * @throws SystemException if a system exception occurred
705            */
706            public static com.liferay.portlet.asset.model.AssetCategory fetchByParentCategoryId_Last(
707                    long parentCategoryId,
708                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
709                    throws com.liferay.portal.kernel.exception.SystemException {
710                    return getPersistence()
711                                       .fetchByParentCategoryId_Last(parentCategoryId,
712                            orderByComparator);
713            }
714    
715            /**
716            * Returns the asset categories before and after the current asset category in the ordered set where parentCategoryId = &#63;.
717            *
718            * @param categoryId the primary key of the current asset category
719            * @param parentCategoryId the parent category ID
720            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
721            * @return the previous, current, and next asset category
722            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found
723            * @throws SystemException if a system exception occurred
724            */
725            public static com.liferay.portlet.asset.model.AssetCategory[] findByParentCategoryId_PrevAndNext(
726                    long categoryId, long parentCategoryId,
727                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
728                    throws com.liferay.portal.kernel.exception.SystemException,
729                            com.liferay.portlet.asset.NoSuchCategoryException {
730                    return getPersistence()
731                                       .findByParentCategoryId_PrevAndNext(categoryId,
732                            parentCategoryId, orderByComparator);
733            }
734    
735            /**
736            * Returns all the asset categories where vocabularyId = &#63;.
737            *
738            * @param vocabularyId the vocabulary ID
739            * @return the matching asset categories
740            * @throws SystemException if a system exception occurred
741            */
742            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByVocabularyId(
743                    long vocabularyId)
744                    throws com.liferay.portal.kernel.exception.SystemException {
745                    return getPersistence().findByVocabularyId(vocabularyId);
746            }
747    
748            /**
749            * Returns a range of all the asset categories where vocabularyId = &#63;.
750            *
751            * <p>
752            * 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.
753            * </p>
754            *
755            * @param vocabularyId the vocabulary ID
756            * @param start the lower bound of the range of asset categories
757            * @param end the upper bound of the range of asset categories (not inclusive)
758            * @return the range of matching asset categories
759            * @throws SystemException if a system exception occurred
760            */
761            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByVocabularyId(
762                    long vocabularyId, int start, int end)
763                    throws com.liferay.portal.kernel.exception.SystemException {
764                    return getPersistence().findByVocabularyId(vocabularyId, start, end);
765            }
766    
767            /**
768            * Returns an ordered range of all the asset categories where vocabularyId = &#63;.
769            *
770            * <p>
771            * 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.
772            * </p>
773            *
774            * @param vocabularyId the vocabulary ID
775            * @param start the lower bound of the range of asset categories
776            * @param end the upper bound of the range of asset categories (not inclusive)
777            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
778            * @return the ordered range of matching asset categories
779            * @throws SystemException if a system exception occurred
780            */
781            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByVocabularyId(
782                    long vocabularyId, int start, int end,
783                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
784                    throws com.liferay.portal.kernel.exception.SystemException {
785                    return getPersistence()
786                                       .findByVocabularyId(vocabularyId, start, end,
787                            orderByComparator);
788            }
789    
790            /**
791            * Returns the first asset category in the ordered set where vocabularyId = &#63;.
792            *
793            * @param vocabularyId the vocabulary ID
794            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
795            * @return the first matching asset category
796            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
797            * @throws SystemException if a system exception occurred
798            */
799            public static com.liferay.portlet.asset.model.AssetCategory findByVocabularyId_First(
800                    long vocabularyId,
801                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
802                    throws com.liferay.portal.kernel.exception.SystemException,
803                            com.liferay.portlet.asset.NoSuchCategoryException {
804                    return getPersistence()
805                                       .findByVocabularyId_First(vocabularyId, orderByComparator);
806            }
807    
808            /**
809            * Returns the first asset category in the ordered set where vocabularyId = &#63;.
810            *
811            * @param vocabularyId the vocabulary ID
812            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
813            * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found
814            * @throws SystemException if a system exception occurred
815            */
816            public static com.liferay.portlet.asset.model.AssetCategory fetchByVocabularyId_First(
817                    long vocabularyId,
818                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
819                    throws com.liferay.portal.kernel.exception.SystemException {
820                    return getPersistence()
821                                       .fetchByVocabularyId_First(vocabularyId, orderByComparator);
822            }
823    
824            /**
825            * Returns the last asset category in the ordered set where vocabularyId = &#63;.
826            *
827            * @param vocabularyId the vocabulary ID
828            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
829            * @return the last matching asset category
830            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
831            * @throws SystemException if a system exception occurred
832            */
833            public static com.liferay.portlet.asset.model.AssetCategory findByVocabularyId_Last(
834                    long vocabularyId,
835                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
836                    throws com.liferay.portal.kernel.exception.SystemException,
837                            com.liferay.portlet.asset.NoSuchCategoryException {
838                    return getPersistence()
839                                       .findByVocabularyId_Last(vocabularyId, orderByComparator);
840            }
841    
842            /**
843            * Returns the last asset category in the ordered set where vocabularyId = &#63;.
844            *
845            * @param vocabularyId the vocabulary ID
846            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
847            * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found
848            * @throws SystemException if a system exception occurred
849            */
850            public static com.liferay.portlet.asset.model.AssetCategory fetchByVocabularyId_Last(
851                    long vocabularyId,
852                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
853                    throws com.liferay.portal.kernel.exception.SystemException {
854                    return getPersistence()
855                                       .fetchByVocabularyId_Last(vocabularyId, orderByComparator);
856            }
857    
858            /**
859            * Returns the asset categories before and after the current asset category in the ordered set where vocabularyId = &#63;.
860            *
861            * @param categoryId the primary key of the current asset category
862            * @param vocabularyId the vocabulary ID
863            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
864            * @return the previous, current, and next asset category
865            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found
866            * @throws SystemException if a system exception occurred
867            */
868            public static com.liferay.portlet.asset.model.AssetCategory[] findByVocabularyId_PrevAndNext(
869                    long categoryId, long vocabularyId,
870                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
871                    throws com.liferay.portal.kernel.exception.SystemException,
872                            com.liferay.portlet.asset.NoSuchCategoryException {
873                    return getPersistence()
874                                       .findByVocabularyId_PrevAndNext(categoryId, vocabularyId,
875                            orderByComparator);
876            }
877    
878            /**
879            * Returns all the asset categories where groupId = &#63; and vocabularyId = &#63;.
880            *
881            * @param groupId the group ID
882            * @param vocabularyId the vocabulary ID
883            * @return the matching asset categories
884            * @throws SystemException if a system exception occurred
885            */
886            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_V(
887                    long groupId, long vocabularyId)
888                    throws com.liferay.portal.kernel.exception.SystemException {
889                    return getPersistence().findByG_V(groupId, vocabularyId);
890            }
891    
892            /**
893            * Returns a range of all the asset categories where groupId = &#63; and vocabularyId = &#63;.
894            *
895            * <p>
896            * 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.
897            * </p>
898            *
899            * @param groupId the group ID
900            * @param vocabularyId the vocabulary ID
901            * @param start the lower bound of the range of asset categories
902            * @param end the upper bound of the range of asset categories (not inclusive)
903            * @return the range of matching asset categories
904            * @throws SystemException if a system exception occurred
905            */
906            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_V(
907                    long groupId, long vocabularyId, int start, int end)
908                    throws com.liferay.portal.kernel.exception.SystemException {
909                    return getPersistence().findByG_V(groupId, vocabularyId, start, end);
910            }
911    
912            /**
913            * Returns an ordered range of all the asset categories 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 groupId the group ID
920            * @param vocabularyId the vocabulary ID
921            * @param start the lower bound of the range of asset categories
922            * @param end the upper bound of the range of asset categories (not inclusive)
923            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
924            * @return the ordered range of matching asset categories
925            * @throws SystemException if a system exception occurred
926            */
927            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_V(
928                    long groupId, long vocabularyId, int start, int end,
929                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
930                    throws com.liferay.portal.kernel.exception.SystemException {
931                    return getPersistence()
932                                       .findByG_V(groupId, vocabularyId, start, end,
933                            orderByComparator);
934            }
935    
936            /**
937            * Returns the first asset category in the ordered set where groupId = &#63; and vocabularyId = &#63;.
938            *
939            * @param groupId the group ID
940            * @param vocabularyId the vocabulary ID
941            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
942            * @return the first matching asset category
943            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
944            * @throws SystemException if a system exception occurred
945            */
946            public static com.liferay.portlet.asset.model.AssetCategory findByG_V_First(
947                    long groupId, long vocabularyId,
948                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
949                    throws com.liferay.portal.kernel.exception.SystemException,
950                            com.liferay.portlet.asset.NoSuchCategoryException {
951                    return getPersistence()
952                                       .findByG_V_First(groupId, vocabularyId, orderByComparator);
953            }
954    
955            /**
956            * Returns the first asset category in the ordered set where groupId = &#63; and vocabularyId = &#63;.
957            *
958            * @param groupId the group ID
959            * @param vocabularyId the vocabulary ID
960            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
961            * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found
962            * @throws SystemException if a system exception occurred
963            */
964            public static com.liferay.portlet.asset.model.AssetCategory fetchByG_V_First(
965                    long groupId, long vocabularyId,
966                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
967                    throws com.liferay.portal.kernel.exception.SystemException {
968                    return getPersistence()
969                                       .fetchByG_V_First(groupId, vocabularyId, orderByComparator);
970            }
971    
972            /**
973            * Returns the last asset category in the ordered set where groupId = &#63; and vocabularyId = &#63;.
974            *
975            * @param groupId the group ID
976            * @param vocabularyId the vocabulary ID
977            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
978            * @return the last matching asset category
979            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
980            * @throws SystemException if a system exception occurred
981            */
982            public static com.liferay.portlet.asset.model.AssetCategory findByG_V_Last(
983                    long groupId, long vocabularyId,
984                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
985                    throws com.liferay.portal.kernel.exception.SystemException,
986                            com.liferay.portlet.asset.NoSuchCategoryException {
987                    return getPersistence()
988                                       .findByG_V_Last(groupId, vocabularyId, orderByComparator);
989            }
990    
991            /**
992            * Returns the last asset category in the ordered set where groupId = &#63; and vocabularyId = &#63;.
993            *
994            * @param groupId the group ID
995            * @param vocabularyId the vocabulary ID
996            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
997            * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found
998            * @throws SystemException if a system exception occurred
999            */
1000            public static com.liferay.portlet.asset.model.AssetCategory fetchByG_V_Last(
1001                    long groupId, long vocabularyId,
1002                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1003                    throws com.liferay.portal.kernel.exception.SystemException {
1004                    return getPersistence()
1005                                       .fetchByG_V_Last(groupId, vocabularyId, orderByComparator);
1006            }
1007    
1008            /**
1009            * Returns the asset categories before and after the current asset category in the ordered set where groupId = &#63; and vocabularyId = &#63;.
1010            *
1011            * @param categoryId the primary key of the current asset category
1012            * @param groupId the group ID
1013            * @param vocabularyId the vocabulary ID
1014            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1015            * @return the previous, current, and next asset category
1016            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found
1017            * @throws SystemException if a system exception occurred
1018            */
1019            public static com.liferay.portlet.asset.model.AssetCategory[] findByG_V_PrevAndNext(
1020                    long categoryId, long groupId, long vocabularyId,
1021                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1022                    throws com.liferay.portal.kernel.exception.SystemException,
1023                            com.liferay.portlet.asset.NoSuchCategoryException {
1024                    return getPersistence()
1025                                       .findByG_V_PrevAndNext(categoryId, groupId, vocabularyId,
1026                            orderByComparator);
1027            }
1028    
1029            /**
1030            * Returns all the asset categories that the user has permission to view where groupId = &#63; and vocabularyId = &#63;.
1031            *
1032            * @param groupId the group ID
1033            * @param vocabularyId the vocabulary ID
1034            * @return the matching asset categories that the user has permission to view
1035            * @throws SystemException if a system exception occurred
1036            */
1037            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_V(
1038                    long groupId, long vocabularyId)
1039                    throws com.liferay.portal.kernel.exception.SystemException {
1040                    return getPersistence().filterFindByG_V(groupId, vocabularyId);
1041            }
1042    
1043            /**
1044            * Returns a range of all the asset categories that the user has permission to view where groupId = &#63; and vocabularyId = &#63;.
1045            *
1046            * <p>
1047            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
1048            * </p>
1049            *
1050            * @param groupId the group ID
1051            * @param vocabularyId the vocabulary ID
1052            * @param start the lower bound of the range of asset categories
1053            * @param end the upper bound of the range of asset categories (not inclusive)
1054            * @return the range of matching asset categories that the user has permission to view
1055            * @throws SystemException if a system exception occurred
1056            */
1057            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_V(
1058                    long groupId, long vocabularyId, int start, int end)
1059                    throws com.liferay.portal.kernel.exception.SystemException {
1060                    return getPersistence()
1061                                       .filterFindByG_V(groupId, vocabularyId, start, end);
1062            }
1063    
1064            /**
1065            * Returns an ordered range of all the asset categories that the user has permissions to view where groupId = &#63; and vocabularyId = &#63;.
1066            *
1067            * <p>
1068            * 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.
1069            * </p>
1070            *
1071            * @param groupId the group ID
1072            * @param vocabularyId the vocabulary ID
1073            * @param start the lower bound of the range of asset categories
1074            * @param end the upper bound of the range of asset categories (not inclusive)
1075            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1076            * @return the ordered range of matching asset categories that the user has permission to view
1077            * @throws SystemException if a system exception occurred
1078            */
1079            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_V(
1080                    long groupId, long vocabularyId, int start, int end,
1081                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1082                    throws com.liferay.portal.kernel.exception.SystemException {
1083                    return getPersistence()
1084                                       .filterFindByG_V(groupId, vocabularyId, start, end,
1085                            orderByComparator);
1086            }
1087    
1088            /**
1089            * 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;.
1090            *
1091            * @param categoryId the primary key of the current asset category
1092            * @param groupId the group ID
1093            * @param vocabularyId the vocabulary ID
1094            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1095            * @return the previous, current, and next asset category
1096            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found
1097            * @throws SystemException if a system exception occurred
1098            */
1099            public static com.liferay.portlet.asset.model.AssetCategory[] filterFindByG_V_PrevAndNext(
1100                    long categoryId, long groupId, long vocabularyId,
1101                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1102                    throws com.liferay.portal.kernel.exception.SystemException,
1103                            com.liferay.portlet.asset.NoSuchCategoryException {
1104                    return getPersistence()
1105                                       .filterFindByG_V_PrevAndNext(categoryId, groupId,
1106                            vocabularyId, orderByComparator);
1107            }
1108    
1109            /**
1110            * Returns all the asset categories where parentCategoryId = &#63; and name = &#63;.
1111            *
1112            * @param parentCategoryId the parent category ID
1113            * @param name the name
1114            * @return the matching asset categories
1115            * @throws SystemException if a system exception occurred
1116            */
1117            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_N(
1118                    long parentCategoryId, java.lang.String name)
1119                    throws com.liferay.portal.kernel.exception.SystemException {
1120                    return getPersistence().findByP_N(parentCategoryId, name);
1121            }
1122    
1123            /**
1124            * Returns a range of all the asset categories where parentCategoryId = &#63; and name = &#63;.
1125            *
1126            * <p>
1127            * 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.
1128            * </p>
1129            *
1130            * @param parentCategoryId the parent category ID
1131            * @param name the name
1132            * @param start the lower bound of the range of asset categories
1133            * @param end the upper bound of the range of asset categories (not inclusive)
1134            * @return the range of matching asset categories
1135            * @throws SystemException if a system exception occurred
1136            */
1137            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_N(
1138                    long parentCategoryId, java.lang.String name, int start, int end)
1139                    throws com.liferay.portal.kernel.exception.SystemException {
1140                    return getPersistence().findByP_N(parentCategoryId, name, start, end);
1141            }
1142    
1143            /**
1144            * Returns an ordered range of all the asset categories where parentCategoryId = &#63; and name = &#63;.
1145            *
1146            * <p>
1147            * 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.
1148            * </p>
1149            *
1150            * @param parentCategoryId the parent category ID
1151            * @param name the name
1152            * @param start the lower bound of the range of asset categories
1153            * @param end the upper bound of the range of asset categories (not inclusive)
1154            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1155            * @return the ordered range of matching asset categories
1156            * @throws SystemException if a system exception occurred
1157            */
1158            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_N(
1159                    long parentCategoryId, java.lang.String name, int start, int end,
1160                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1161                    throws com.liferay.portal.kernel.exception.SystemException {
1162                    return getPersistence()
1163                                       .findByP_N(parentCategoryId, name, start, end,
1164                            orderByComparator);
1165            }
1166    
1167            /**
1168            * Returns the first asset category in the ordered set where parentCategoryId = &#63; and name = &#63;.
1169            *
1170            * @param parentCategoryId the parent category ID
1171            * @param name the name
1172            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1173            * @return the first matching asset category
1174            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
1175            * @throws SystemException if a system exception occurred
1176            */
1177            public static com.liferay.portlet.asset.model.AssetCategory findByP_N_First(
1178                    long parentCategoryId, java.lang.String name,
1179                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1180                    throws com.liferay.portal.kernel.exception.SystemException,
1181                            com.liferay.portlet.asset.NoSuchCategoryException {
1182                    return getPersistence()
1183                                       .findByP_N_First(parentCategoryId, name, orderByComparator);
1184            }
1185    
1186            /**
1187            * Returns the first asset category in the ordered set where parentCategoryId = &#63; and name = &#63;.
1188            *
1189            * @param parentCategoryId the parent category ID
1190            * @param name the name
1191            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1192            * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found
1193            * @throws SystemException if a system exception occurred
1194            */
1195            public static com.liferay.portlet.asset.model.AssetCategory fetchByP_N_First(
1196                    long parentCategoryId, java.lang.String name,
1197                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1198                    throws com.liferay.portal.kernel.exception.SystemException {
1199                    return getPersistence()
1200                                       .fetchByP_N_First(parentCategoryId, name, orderByComparator);
1201            }
1202    
1203            /**
1204            * Returns the last asset category in the ordered set where parentCategoryId = &#63; and name = &#63;.
1205            *
1206            * @param parentCategoryId the parent category ID
1207            * @param name the name
1208            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1209            * @return the last matching asset category
1210            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
1211            * @throws SystemException if a system exception occurred
1212            */
1213            public static com.liferay.portlet.asset.model.AssetCategory findByP_N_Last(
1214                    long parentCategoryId, java.lang.String name,
1215                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1216                    throws com.liferay.portal.kernel.exception.SystemException,
1217                            com.liferay.portlet.asset.NoSuchCategoryException {
1218                    return getPersistence()
1219                                       .findByP_N_Last(parentCategoryId, name, orderByComparator);
1220            }
1221    
1222            /**
1223            * Returns the last asset category in the ordered set where parentCategoryId = &#63; and name = &#63;.
1224            *
1225            * @param parentCategoryId the parent category ID
1226            * @param name the name
1227            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1228            * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found
1229            * @throws SystemException if a system exception occurred
1230            */
1231            public static com.liferay.portlet.asset.model.AssetCategory fetchByP_N_Last(
1232                    long parentCategoryId, java.lang.String name,
1233                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1234                    throws com.liferay.portal.kernel.exception.SystemException {
1235                    return getPersistence()
1236                                       .fetchByP_N_Last(parentCategoryId, name, orderByComparator);
1237            }
1238    
1239            /**
1240            * Returns the asset categories before and after the current asset category in the ordered set where parentCategoryId = &#63; and name = &#63;.
1241            *
1242            * @param categoryId the primary key of the current asset category
1243            * @param parentCategoryId the parent category ID
1244            * @param name the name
1245            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1246            * @return the previous, current, and next asset category
1247            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found
1248            * @throws SystemException if a system exception occurred
1249            */
1250            public static com.liferay.portlet.asset.model.AssetCategory[] findByP_N_PrevAndNext(
1251                    long categoryId, long parentCategoryId, java.lang.String name,
1252                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1253                    throws com.liferay.portal.kernel.exception.SystemException,
1254                            com.liferay.portlet.asset.NoSuchCategoryException {
1255                    return getPersistence()
1256                                       .findByP_N_PrevAndNext(categoryId, parentCategoryId, name,
1257                            orderByComparator);
1258            }
1259    
1260            /**
1261            * Returns all the asset categories where parentCategoryId = &#63; and vocabularyId = &#63;.
1262            *
1263            * @param parentCategoryId the parent category ID
1264            * @param vocabularyId the vocabulary ID
1265            * @return the matching asset categories
1266            * @throws SystemException if a system exception occurred
1267            */
1268            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_V(
1269                    long parentCategoryId, long vocabularyId)
1270                    throws com.liferay.portal.kernel.exception.SystemException {
1271                    return getPersistence().findByP_V(parentCategoryId, vocabularyId);
1272            }
1273    
1274            /**
1275            * Returns a range of all the asset categories where parentCategoryId = &#63; and vocabularyId = &#63;.
1276            *
1277            * <p>
1278            * 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.
1279            * </p>
1280            *
1281            * @param parentCategoryId the parent category ID
1282            * @param vocabularyId the vocabulary ID
1283            * @param start the lower bound of the range of asset categories
1284            * @param end the upper bound of the range of asset categories (not inclusive)
1285            * @return the range of matching asset categories
1286            * @throws SystemException if a system exception occurred
1287            */
1288            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_V(
1289                    long parentCategoryId, long vocabularyId, int start, int end)
1290                    throws com.liferay.portal.kernel.exception.SystemException {
1291                    return getPersistence()
1292                                       .findByP_V(parentCategoryId, vocabularyId, start, end);
1293            }
1294    
1295            /**
1296            * Returns an ordered range of all the asset categories where parentCategoryId = &#63; and vocabularyId = &#63;.
1297            *
1298            * <p>
1299            * 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.
1300            * </p>
1301            *
1302            * @param parentCategoryId the parent category ID
1303            * @param vocabularyId the vocabulary ID
1304            * @param start the lower bound of the range of asset categories
1305            * @param end the upper bound of the range of asset categories (not inclusive)
1306            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1307            * @return the ordered range of matching asset categories
1308            * @throws SystemException if a system exception occurred
1309            */
1310            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_V(
1311                    long parentCategoryId, long vocabularyId, int start, int end,
1312                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1313                    throws com.liferay.portal.kernel.exception.SystemException {
1314                    return getPersistence()
1315                                       .findByP_V(parentCategoryId, vocabularyId, start, end,
1316                            orderByComparator);
1317            }
1318    
1319            /**
1320            * Returns the first asset category in the ordered set where parentCategoryId = &#63; and vocabularyId = &#63;.
1321            *
1322            * @param parentCategoryId the parent category ID
1323            * @param vocabularyId the vocabulary ID
1324            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1325            * @return the first matching asset category
1326            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
1327            * @throws SystemException if a system exception occurred
1328            */
1329            public static com.liferay.portlet.asset.model.AssetCategory findByP_V_First(
1330                    long parentCategoryId, long vocabularyId,
1331                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1332                    throws com.liferay.portal.kernel.exception.SystemException,
1333                            com.liferay.portlet.asset.NoSuchCategoryException {
1334                    return getPersistence()
1335                                       .findByP_V_First(parentCategoryId, vocabularyId,
1336                            orderByComparator);
1337            }
1338    
1339            /**
1340            * Returns the first asset category in the ordered set where parentCategoryId = &#63; and vocabularyId = &#63;.
1341            *
1342            * @param parentCategoryId the parent category ID
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, or <code>null</code> if a matching asset category could not be found
1346            * @throws SystemException if a system exception occurred
1347            */
1348            public static com.liferay.portlet.asset.model.AssetCategory fetchByP_V_First(
1349                    long parentCategoryId, long vocabularyId,
1350                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1351                    throws com.liferay.portal.kernel.exception.SystemException {
1352                    return getPersistence()
1353                                       .fetchByP_V_First(parentCategoryId, vocabularyId,
1354                            orderByComparator);
1355            }
1356    
1357            /**
1358            * Returns the last asset category in the ordered set where parentCategoryId = &#63; and vocabularyId = &#63;.
1359            *
1360            * @param parentCategoryId the parent category ID
1361            * @param vocabularyId the vocabulary ID
1362            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1363            * @return the last matching asset category
1364            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
1365            * @throws SystemException if a system exception occurred
1366            */
1367            public static com.liferay.portlet.asset.model.AssetCategory findByP_V_Last(
1368                    long parentCategoryId, long vocabularyId,
1369                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1370                    throws com.liferay.portal.kernel.exception.SystemException,
1371                            com.liferay.portlet.asset.NoSuchCategoryException {
1372                    return getPersistence()
1373                                       .findByP_V_Last(parentCategoryId, vocabularyId,
1374                            orderByComparator);
1375            }
1376    
1377            /**
1378            * Returns the last asset category in the ordered set where parentCategoryId = &#63; and vocabularyId = &#63;.
1379            *
1380            * @param parentCategoryId the parent category ID
1381            * @param vocabularyId the vocabulary ID
1382            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1383            * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found
1384            * @throws SystemException if a system exception occurred
1385            */
1386            public static com.liferay.portlet.asset.model.AssetCategory fetchByP_V_Last(
1387                    long parentCategoryId, long vocabularyId,
1388                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1389                    throws com.liferay.portal.kernel.exception.SystemException {
1390                    return getPersistence()
1391                                       .fetchByP_V_Last(parentCategoryId, vocabularyId,
1392                            orderByComparator);
1393            }
1394    
1395            /**
1396            * Returns the asset categories before and after the current asset category in the ordered set where parentCategoryId = &#63; and vocabularyId = &#63;.
1397            *
1398            * @param categoryId the primary key of the current asset category
1399            * @param parentCategoryId the parent category ID
1400            * @param vocabularyId the vocabulary ID
1401            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1402            * @return the previous, current, and next asset category
1403            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found
1404            * @throws SystemException if a system exception occurred
1405            */
1406            public static com.liferay.portlet.asset.model.AssetCategory[] findByP_V_PrevAndNext(
1407                    long categoryId, long parentCategoryId, long vocabularyId,
1408                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1409                    throws com.liferay.portal.kernel.exception.SystemException,
1410                            com.liferay.portlet.asset.NoSuchCategoryException {
1411                    return getPersistence()
1412                                       .findByP_V_PrevAndNext(categoryId, parentCategoryId,
1413                            vocabularyId, orderByComparator);
1414            }
1415    
1416            /**
1417            * Returns all the asset categories where name = &#63; and vocabularyId = &#63;.
1418            *
1419            * @param name the name
1420            * @param vocabularyId the vocabulary ID
1421            * @return the matching asset categories
1422            * @throws SystemException if a system exception occurred
1423            */
1424            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByN_V(
1425                    java.lang.String name, long vocabularyId)
1426                    throws com.liferay.portal.kernel.exception.SystemException {
1427                    return getPersistence().findByN_V(name, vocabularyId);
1428            }
1429    
1430            /**
1431            * Returns a range of all the asset categories where name = &#63; and vocabularyId = &#63;.
1432            *
1433            * <p>
1434            * 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.
1435            * </p>
1436            *
1437            * @param name the name
1438            * @param vocabularyId the vocabulary ID
1439            * @param start the lower bound of the range of asset categories
1440            * @param end the upper bound of the range of asset categories (not inclusive)
1441            * @return the range of matching asset categories
1442            * @throws SystemException if a system exception occurred
1443            */
1444            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByN_V(
1445                    java.lang.String name, long vocabularyId, int start, int end)
1446                    throws com.liferay.portal.kernel.exception.SystemException {
1447                    return getPersistence().findByN_V(name, vocabularyId, start, end);
1448            }
1449    
1450            /**
1451            * Returns an ordered range of all the asset categories where name = &#63; and vocabularyId = &#63;.
1452            *
1453            * <p>
1454            * 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.
1455            * </p>
1456            *
1457            * @param name the name
1458            * @param vocabularyId the vocabulary ID
1459            * @param start the lower bound of the range of asset categories
1460            * @param end the upper bound of the range of asset categories (not inclusive)
1461            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1462            * @return the ordered range of matching asset categories
1463            * @throws SystemException if a system exception occurred
1464            */
1465            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByN_V(
1466                    java.lang.String name, long vocabularyId, int start, int end,
1467                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1468                    throws com.liferay.portal.kernel.exception.SystemException {
1469                    return getPersistence()
1470                                       .findByN_V(name, vocabularyId, start, end, orderByComparator);
1471            }
1472    
1473            /**
1474            * Returns the first asset category in the ordered set where name = &#63; and vocabularyId = &#63;.
1475            *
1476            * @param name the name
1477            * @param vocabularyId the vocabulary ID
1478            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1479            * @return the first matching asset category
1480            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
1481            * @throws SystemException if a system exception occurred
1482            */
1483            public static com.liferay.portlet.asset.model.AssetCategory findByN_V_First(
1484                    java.lang.String name, long vocabularyId,
1485                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1486                    throws com.liferay.portal.kernel.exception.SystemException,
1487                            com.liferay.portlet.asset.NoSuchCategoryException {
1488                    return getPersistence()
1489                                       .findByN_V_First(name, vocabularyId, orderByComparator);
1490            }
1491    
1492            /**
1493            * Returns the first asset category in the ordered set where name = &#63; and vocabularyId = &#63;.
1494            *
1495            * @param name the name
1496            * @param vocabularyId the vocabulary ID
1497            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1498            * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found
1499            * @throws SystemException if a system exception occurred
1500            */
1501            public static com.liferay.portlet.asset.model.AssetCategory fetchByN_V_First(
1502                    java.lang.String name, long vocabularyId,
1503                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1504                    throws com.liferay.portal.kernel.exception.SystemException {
1505                    return getPersistence()
1506                                       .fetchByN_V_First(name, vocabularyId, orderByComparator);
1507            }
1508    
1509            /**
1510            * Returns the last asset category in the ordered set where name = &#63; and vocabularyId = &#63;.
1511            *
1512            * @param name the name
1513            * @param vocabularyId the vocabulary ID
1514            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1515            * @return the last matching asset category
1516            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
1517            * @throws SystemException if a system exception occurred
1518            */
1519            public static com.liferay.portlet.asset.model.AssetCategory findByN_V_Last(
1520                    java.lang.String name, long vocabularyId,
1521                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1522                    throws com.liferay.portal.kernel.exception.SystemException,
1523                            com.liferay.portlet.asset.NoSuchCategoryException {
1524                    return getPersistence()
1525                                       .findByN_V_Last(name, vocabularyId, orderByComparator);
1526            }
1527    
1528            /**
1529            * Returns the last asset category in the ordered set where name = &#63; and vocabularyId = &#63;.
1530            *
1531            * @param name the name
1532            * @param vocabularyId the vocabulary ID
1533            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1534            * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found
1535            * @throws SystemException if a system exception occurred
1536            */
1537            public static com.liferay.portlet.asset.model.AssetCategory fetchByN_V_Last(
1538                    java.lang.String name, long vocabularyId,
1539                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1540                    throws com.liferay.portal.kernel.exception.SystemException {
1541                    return getPersistence()
1542                                       .fetchByN_V_Last(name, vocabularyId, orderByComparator);
1543            }
1544    
1545            /**
1546            * Returns the asset categories before and after the current asset category in the ordered set where name = &#63; and vocabularyId = &#63;.
1547            *
1548            * @param categoryId the primary key of the current asset category
1549            * @param name the name
1550            * @param vocabularyId the vocabulary ID
1551            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1552            * @return the previous, current, and next asset category
1553            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found
1554            * @throws SystemException if a system exception occurred
1555            */
1556            public static com.liferay.portlet.asset.model.AssetCategory[] findByN_V_PrevAndNext(
1557                    long categoryId, java.lang.String name, long vocabularyId,
1558                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1559                    throws com.liferay.portal.kernel.exception.SystemException,
1560                            com.liferay.portlet.asset.NoSuchCategoryException {
1561                    return getPersistence()
1562                                       .findByN_V_PrevAndNext(categoryId, name, vocabularyId,
1563                            orderByComparator);
1564            }
1565    
1566            /**
1567            * Returns all the asset categories where groupId = &#63; and parentCategoryId = &#63; and name = &#63;.
1568            *
1569            * @param groupId the group ID
1570            * @param parentCategoryId the parent category ID
1571            * @param name the name
1572            * @return the matching asset categories
1573            * @throws SystemException if a system exception occurred
1574            */
1575            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_P_N(
1576                    long groupId, long parentCategoryId, java.lang.String name)
1577                    throws com.liferay.portal.kernel.exception.SystemException {
1578                    return getPersistence().findByG_P_N(groupId, parentCategoryId, name);
1579            }
1580    
1581            /**
1582            * Returns a range of all the asset categories where groupId = &#63; and parentCategoryId = &#63; and name = &#63;.
1583            *
1584            * <p>
1585            * 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.
1586            * </p>
1587            *
1588            * @param groupId the group ID
1589            * @param parentCategoryId the parent category ID
1590            * @param name the name
1591            * @param start the lower bound of the range of asset categories
1592            * @param end the upper bound of the range of asset categories (not inclusive)
1593            * @return the range of matching asset categories
1594            * @throws SystemException if a system exception occurred
1595            */
1596            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_P_N(
1597                    long groupId, long parentCategoryId, java.lang.String name, int start,
1598                    int end) throws com.liferay.portal.kernel.exception.SystemException {
1599                    return getPersistence()
1600                                       .findByG_P_N(groupId, parentCategoryId, name, start, end);
1601            }
1602    
1603            /**
1604            * Returns an ordered range of all the asset categories where groupId = &#63; and parentCategoryId = &#63; and name = &#63;.
1605            *
1606            * <p>
1607            * 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.
1608            * </p>
1609            *
1610            * @param groupId the group ID
1611            * @param parentCategoryId the parent category ID
1612            * @param name the name
1613            * @param start the lower bound of the range of asset categories
1614            * @param end the upper bound of the range of asset categories (not inclusive)
1615            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1616            * @return the ordered range of matching asset categories
1617            * @throws SystemException if a system exception occurred
1618            */
1619            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByG_P_N(
1620                    long groupId, long parentCategoryId, java.lang.String name, int start,
1621                    int end,
1622                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1623                    throws com.liferay.portal.kernel.exception.SystemException {
1624                    return getPersistence()
1625                                       .findByG_P_N(groupId, parentCategoryId, name, start, end,
1626                            orderByComparator);
1627            }
1628    
1629            /**
1630            * Returns the first asset category in the ordered set where groupId = &#63; and parentCategoryId = &#63; and name = &#63;.
1631            *
1632            * @param groupId the group ID
1633            * @param parentCategoryId the parent category ID
1634            * @param name the name
1635            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1636            * @return the first matching asset category
1637            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
1638            * @throws SystemException if a system exception occurred
1639            */
1640            public static com.liferay.portlet.asset.model.AssetCategory findByG_P_N_First(
1641                    long groupId, long parentCategoryId, java.lang.String name,
1642                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1643                    throws com.liferay.portal.kernel.exception.SystemException,
1644                            com.liferay.portlet.asset.NoSuchCategoryException {
1645                    return getPersistence()
1646                                       .findByG_P_N_First(groupId, parentCategoryId, name,
1647                            orderByComparator);
1648            }
1649    
1650            /**
1651            * Returns the first asset category in the ordered set where groupId = &#63; and parentCategoryId = &#63; and name = &#63;.
1652            *
1653            * @param groupId the group ID
1654            * @param parentCategoryId the parent category ID
1655            * @param name the name
1656            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1657            * @return the first matching asset category, or <code>null</code> if a matching asset category could not be found
1658            * @throws SystemException if a system exception occurred
1659            */
1660            public static com.liferay.portlet.asset.model.AssetCategory fetchByG_P_N_First(
1661                    long groupId, long parentCategoryId, java.lang.String name,
1662                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1663                    throws com.liferay.portal.kernel.exception.SystemException {
1664                    return getPersistence()
1665                                       .fetchByG_P_N_First(groupId, parentCategoryId, name,
1666                            orderByComparator);
1667            }
1668    
1669            /**
1670            * Returns the last asset category in the ordered set where groupId = &#63; and parentCategoryId = &#63; and name = &#63;.
1671            *
1672            * @param groupId the group ID
1673            * @param parentCategoryId the parent category ID
1674            * @param name the name
1675            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1676            * @return the last matching asset category
1677            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
1678            * @throws SystemException if a system exception occurred
1679            */
1680            public static com.liferay.portlet.asset.model.AssetCategory findByG_P_N_Last(
1681                    long groupId, long parentCategoryId, java.lang.String name,
1682                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1683                    throws com.liferay.portal.kernel.exception.SystemException,
1684                            com.liferay.portlet.asset.NoSuchCategoryException {
1685                    return getPersistence()
1686                                       .findByG_P_N_Last(groupId, parentCategoryId, name,
1687                            orderByComparator);
1688            }
1689    
1690            /**
1691            * Returns the last asset category in the ordered set where groupId = &#63; and parentCategoryId = &#63; and name = &#63;.
1692            *
1693            * @param groupId the group ID
1694            * @param parentCategoryId the parent category ID
1695            * @param name the name
1696            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1697            * @return the last matching asset category, or <code>null</code> if a matching asset category could not be found
1698            * @throws SystemException if a system exception occurred
1699            */
1700            public static com.liferay.portlet.asset.model.AssetCategory fetchByG_P_N_Last(
1701                    long groupId, long parentCategoryId, java.lang.String name,
1702                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1703                    throws com.liferay.portal.kernel.exception.SystemException {
1704                    return getPersistence()
1705                                       .fetchByG_P_N_Last(groupId, parentCategoryId, name,
1706                            orderByComparator);
1707            }
1708    
1709            /**
1710            * Returns the asset categories before and after the current asset category in the ordered set where groupId = &#63; and parentCategoryId = &#63; and name = &#63;.
1711            *
1712            * @param categoryId the primary key of the current asset category
1713            * @param groupId the group ID
1714            * @param parentCategoryId the parent category ID
1715            * @param name the name
1716            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1717            * @return the previous, current, and next asset category
1718            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found
1719            * @throws SystemException if a system exception occurred
1720            */
1721            public static com.liferay.portlet.asset.model.AssetCategory[] findByG_P_N_PrevAndNext(
1722                    long categoryId, long groupId, long parentCategoryId,
1723                    java.lang.String name,
1724                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1725                    throws com.liferay.portal.kernel.exception.SystemException,
1726                            com.liferay.portlet.asset.NoSuchCategoryException {
1727                    return getPersistence()
1728                                       .findByG_P_N_PrevAndNext(categoryId, groupId,
1729                            parentCategoryId, name, orderByComparator);
1730            }
1731    
1732            /**
1733            * Returns all the asset categories that the user has permission to view where groupId = &#63; and parentCategoryId = &#63; and name = &#63;.
1734            *
1735            * @param groupId the group ID
1736            * @param parentCategoryId the parent category ID
1737            * @param name the name
1738            * @return the matching asset categories that the user has permission to view
1739            * @throws SystemException if a system exception occurred
1740            */
1741            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_P_N(
1742                    long groupId, long parentCategoryId, java.lang.String name)
1743                    throws com.liferay.portal.kernel.exception.SystemException {
1744                    return getPersistence()
1745                                       .filterFindByG_P_N(groupId, parentCategoryId, name);
1746            }
1747    
1748            /**
1749            * Returns a range of all the asset categories that the user has permission to view where groupId = &#63; and parentCategoryId = &#63; and name = &#63;.
1750            *
1751            * <p>
1752            * 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.
1753            * </p>
1754            *
1755            * @param groupId the group ID
1756            * @param parentCategoryId the parent category ID
1757            * @param name the name
1758            * @param start the lower bound of the range of asset categories
1759            * @param end the upper bound of the range of asset categories (not inclusive)
1760            * @return the range of matching asset categories that the user has permission to view
1761            * @throws SystemException if a system exception occurred
1762            */
1763            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_P_N(
1764                    long groupId, long parentCategoryId, java.lang.String name, int start,
1765                    int end) throws com.liferay.portal.kernel.exception.SystemException {
1766                    return getPersistence()
1767                                       .filterFindByG_P_N(groupId, parentCategoryId, name, start,
1768                            end);
1769            }
1770    
1771            /**
1772            * Returns an ordered range of all the asset categories that the user has permissions to view where groupId = &#63; and parentCategoryId = &#63; and name = &#63;.
1773            *
1774            * <p>
1775            * 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.
1776            * </p>
1777            *
1778            * @param groupId the group ID
1779            * @param parentCategoryId the parent category ID
1780            * @param name the name
1781            * @param start the lower bound of the range of asset categories
1782            * @param end the upper bound of the range of asset categories (not inclusive)
1783            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1784            * @return the ordered range of matching asset categories that the user has permission to view
1785            * @throws SystemException if a system exception occurred
1786            */
1787            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByG_P_N(
1788                    long groupId, long parentCategoryId, java.lang.String name, int start,
1789                    int end,
1790                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1791                    throws com.liferay.portal.kernel.exception.SystemException {
1792                    return getPersistence()
1793                                       .filterFindByG_P_N(groupId, parentCategoryId, name, start,
1794                            end, orderByComparator);
1795            }
1796    
1797            /**
1798            * 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 parentCategoryId = &#63; and name = &#63;.
1799            *
1800            * @param categoryId the primary key of the current asset category
1801            * @param groupId the group ID
1802            * @param parentCategoryId the parent category ID
1803            * @param name the name
1804            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1805            * @return the previous, current, and next asset category
1806            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found
1807            * @throws SystemException if a system exception occurred
1808            */
1809            public static com.liferay.portlet.asset.model.AssetCategory[] filterFindByG_P_N_PrevAndNext(
1810                    long categoryId, long groupId, long parentCategoryId,
1811                    java.lang.String name,
1812                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1813                    throws com.liferay.portal.kernel.exception.SystemException,
1814                            com.liferay.portlet.asset.NoSuchCategoryException {
1815                    return getPersistence()
1816                                       .filterFindByG_P_N_PrevAndNext(categoryId, groupId,
1817                            parentCategoryId, name, orderByComparator);
1818            }
1819    
1820            /**
1821            * 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.
1822            *
1823            * @param parentCategoryId the parent category ID
1824            * @param name the name
1825            * @param vocabularyId the vocabulary ID
1826            * @return the matching asset category
1827            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
1828            * @throws SystemException if a system exception occurred
1829            */
1830            public static com.liferay.portlet.asset.model.AssetCategory findByP_N_V(
1831                    long parentCategoryId, java.lang.String name, long vocabularyId)
1832                    throws com.liferay.portal.kernel.exception.SystemException,
1833                            com.liferay.portlet.asset.NoSuchCategoryException {
1834                    return getPersistence().findByP_N_V(parentCategoryId, name, vocabularyId);
1835            }
1836    
1837            /**
1838            * 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.
1839            *
1840            * @param parentCategoryId the parent category ID
1841            * @param name the name
1842            * @param vocabularyId the vocabulary ID
1843            * @return the matching asset category, or <code>null</code> if a matching asset category could not be found
1844            * @throws SystemException if a system exception occurred
1845            */
1846            public static com.liferay.portlet.asset.model.AssetCategory fetchByP_N_V(
1847                    long parentCategoryId, java.lang.String name, long vocabularyId)
1848                    throws com.liferay.portal.kernel.exception.SystemException {
1849                    return getPersistence()
1850                                       .fetchByP_N_V(parentCategoryId, name, vocabularyId);
1851            }
1852    
1853            /**
1854            * 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.
1855            *
1856            * @param parentCategoryId the parent category ID
1857            * @param name the name
1858            * @param vocabularyId the vocabulary ID
1859            * @param retrieveFromCache whether to use the finder cache
1860            * @return the matching asset category, or <code>null</code> if a matching asset category could not be found
1861            * @throws SystemException if a system exception occurred
1862            */
1863            public static com.liferay.portlet.asset.model.AssetCategory fetchByP_N_V(
1864                    long parentCategoryId, java.lang.String name, long vocabularyId,
1865                    boolean retrieveFromCache)
1866                    throws com.liferay.portal.kernel.exception.SystemException {
1867                    return getPersistence()
1868                                       .fetchByP_N_V(parentCategoryId, name, vocabularyId,
1869                            retrieveFromCache);
1870            }
1871    
1872            /**
1873            * Returns all the asset categories.
1874            *
1875            * @return the asset categories
1876            * @throws SystemException if a system exception occurred
1877            */
1878            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findAll()
1879                    throws com.liferay.portal.kernel.exception.SystemException {
1880                    return getPersistence().findAll();
1881            }
1882    
1883            /**
1884            * Returns a range of all the asset categories.
1885            *
1886            * <p>
1887            * 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.
1888            * </p>
1889            *
1890            * @param start the lower bound of the range of asset categories
1891            * @param end the upper bound of the range of asset categories (not inclusive)
1892            * @return the range of asset categories
1893            * @throws SystemException if a system exception occurred
1894            */
1895            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findAll(
1896                    int start, int end)
1897                    throws com.liferay.portal.kernel.exception.SystemException {
1898                    return getPersistence().findAll(start, end);
1899            }
1900    
1901            /**
1902            * Returns an ordered range of all the asset categories.
1903            *
1904            * <p>
1905            * 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.
1906            * </p>
1907            *
1908            * @param start the lower bound of the range of asset categories
1909            * @param end the upper bound of the range of asset categories (not inclusive)
1910            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1911            * @return the ordered range of asset categories
1912            * @throws SystemException if a system exception occurred
1913            */
1914            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findAll(
1915                    int start, int end,
1916                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1917                    throws com.liferay.portal.kernel.exception.SystemException {
1918                    return getPersistence().findAll(start, end, orderByComparator);
1919            }
1920    
1921            /**
1922            * Removes all the asset categories where uuid = &#63; from the database.
1923            *
1924            * @param uuid the uuid
1925            * @throws SystemException if a system exception occurred
1926            */
1927            public static void removeByUuid(java.lang.String uuid)
1928                    throws com.liferay.portal.kernel.exception.SystemException {
1929                    getPersistence().removeByUuid(uuid);
1930            }
1931    
1932            /**
1933            * Removes the asset category where uuid = &#63; and groupId = &#63; from the database.
1934            *
1935            * @param uuid the uuid
1936            * @param groupId the group ID
1937            * @return the asset category that was removed
1938            * @throws SystemException if a system exception occurred
1939            */
1940            public static com.liferay.portlet.asset.model.AssetCategory removeByUUID_G(
1941                    java.lang.String uuid, long groupId)
1942                    throws com.liferay.portal.kernel.exception.SystemException,
1943                            com.liferay.portlet.asset.NoSuchCategoryException {
1944                    return getPersistence().removeByUUID_G(uuid, groupId);
1945            }
1946    
1947            /**
1948            * Removes all the asset categories where groupId = &#63; from the database.
1949            *
1950            * @param groupId the group ID
1951            * @throws SystemException if a system exception occurred
1952            */
1953            public static void removeByGroupId(long groupId)
1954                    throws com.liferay.portal.kernel.exception.SystemException {
1955                    getPersistence().removeByGroupId(groupId);
1956            }
1957    
1958            /**
1959            * Removes all the asset categories where parentCategoryId = &#63; from the database.
1960            *
1961            * @param parentCategoryId the parent category ID
1962            * @throws SystemException if a system exception occurred
1963            */
1964            public static void removeByParentCategoryId(long parentCategoryId)
1965                    throws com.liferay.portal.kernel.exception.SystemException {
1966                    getPersistence().removeByParentCategoryId(parentCategoryId);
1967            }
1968    
1969            /**
1970            * Removes all the asset categories where vocabularyId = &#63; from the database.
1971            *
1972            * @param vocabularyId the vocabulary ID
1973            * @throws SystemException if a system exception occurred
1974            */
1975            public static void removeByVocabularyId(long vocabularyId)
1976                    throws com.liferay.portal.kernel.exception.SystemException {
1977                    getPersistence().removeByVocabularyId(vocabularyId);
1978            }
1979    
1980            /**
1981            * Removes all the asset categories where groupId = &#63; and vocabularyId = &#63; from the database.
1982            *
1983            * @param groupId the group ID
1984            * @param vocabularyId the vocabulary ID
1985            * @throws SystemException if a system exception occurred
1986            */
1987            public static void removeByG_V(long groupId, long vocabularyId)
1988                    throws com.liferay.portal.kernel.exception.SystemException {
1989                    getPersistence().removeByG_V(groupId, vocabularyId);
1990            }
1991    
1992            /**
1993            * Removes all the asset categories where parentCategoryId = &#63; and name = &#63; from the database.
1994            *
1995            * @param parentCategoryId the parent category ID
1996            * @param name the name
1997            * @throws SystemException if a system exception occurred
1998            */
1999            public static void removeByP_N(long parentCategoryId, java.lang.String name)
2000                    throws com.liferay.portal.kernel.exception.SystemException {
2001                    getPersistence().removeByP_N(parentCategoryId, name);
2002            }
2003    
2004            /**
2005            * Removes all the asset categories where parentCategoryId = &#63; and vocabularyId = &#63; from the database.
2006            *
2007            * @param parentCategoryId the parent category ID
2008            * @param vocabularyId the vocabulary ID
2009            * @throws SystemException if a system exception occurred
2010            */
2011            public static void removeByP_V(long parentCategoryId, long vocabularyId)
2012                    throws com.liferay.portal.kernel.exception.SystemException {
2013                    getPersistence().removeByP_V(parentCategoryId, vocabularyId);
2014            }
2015    
2016            /**
2017            * Removes all the asset categories where name = &#63; and vocabularyId = &#63; from the database.
2018            *
2019            * @param name the name
2020            * @param vocabularyId the vocabulary ID
2021            * @throws SystemException if a system exception occurred
2022            */
2023            public static void removeByN_V(java.lang.String name, long vocabularyId)
2024                    throws com.liferay.portal.kernel.exception.SystemException {
2025                    getPersistence().removeByN_V(name, vocabularyId);
2026            }
2027    
2028            /**
2029            * Removes all the asset categories where groupId = &#63; and parentCategoryId = &#63; and name = &#63; from the database.
2030            *
2031            * @param groupId the group ID
2032            * @param parentCategoryId the parent category ID
2033            * @param name the name
2034            * @throws SystemException if a system exception occurred
2035            */
2036            public static void removeByG_P_N(long groupId, long parentCategoryId,
2037                    java.lang.String name)
2038                    throws com.liferay.portal.kernel.exception.SystemException {
2039                    getPersistence().removeByG_P_N(groupId, parentCategoryId, name);
2040            }
2041    
2042            /**
2043            * Removes the asset category where parentCategoryId = &#63; and name = &#63; and vocabularyId = &#63; from the database.
2044            *
2045            * @param parentCategoryId the parent category ID
2046            * @param name the name
2047            * @param vocabularyId the vocabulary ID
2048            * @return the asset category that was removed
2049            * @throws SystemException if a system exception occurred
2050            */
2051            public static com.liferay.portlet.asset.model.AssetCategory removeByP_N_V(
2052                    long parentCategoryId, java.lang.String name, long vocabularyId)
2053                    throws com.liferay.portal.kernel.exception.SystemException,
2054                            com.liferay.portlet.asset.NoSuchCategoryException {
2055                    return getPersistence()
2056                                       .removeByP_N_V(parentCategoryId, name, vocabularyId);
2057            }
2058    
2059            /**
2060            * Removes all the asset categories from the database.
2061            *
2062            * @throws SystemException if a system exception occurred
2063            */
2064            public static void removeAll()
2065                    throws com.liferay.portal.kernel.exception.SystemException {
2066                    getPersistence().removeAll();
2067            }
2068    
2069            /**
2070            * Returns the number of asset categories where uuid = &#63;.
2071            *
2072            * @param uuid the uuid
2073            * @return the number of matching asset categories
2074            * @throws SystemException if a system exception occurred
2075            */
2076            public static int countByUuid(java.lang.String uuid)
2077                    throws com.liferay.portal.kernel.exception.SystemException {
2078                    return getPersistence().countByUuid(uuid);
2079            }
2080    
2081            /**
2082            * Returns the number of asset categories where uuid = &#63; and groupId = &#63;.
2083            *
2084            * @param uuid the uuid
2085            * @param groupId the group ID
2086            * @return the number of matching asset categories
2087            * @throws SystemException if a system exception occurred
2088            */
2089            public static int countByUUID_G(java.lang.String uuid, long groupId)
2090                    throws com.liferay.portal.kernel.exception.SystemException {
2091                    return getPersistence().countByUUID_G(uuid, groupId);
2092            }
2093    
2094            /**
2095            * Returns the number of asset categories where groupId = &#63;.
2096            *
2097            * @param groupId the group ID
2098            * @return the number of matching asset categories
2099            * @throws SystemException if a system exception occurred
2100            */
2101            public static int countByGroupId(long groupId)
2102                    throws com.liferay.portal.kernel.exception.SystemException {
2103                    return getPersistence().countByGroupId(groupId);
2104            }
2105    
2106            /**
2107            * Returns the number of asset categories that the user has permission to view where groupId = &#63;.
2108            *
2109            * @param groupId the group ID
2110            * @return the number of matching asset categories that the user has permission to view
2111            * @throws SystemException if a system exception occurred
2112            */
2113            public static int filterCountByGroupId(long groupId)
2114                    throws com.liferay.portal.kernel.exception.SystemException {
2115                    return getPersistence().filterCountByGroupId(groupId);
2116            }
2117    
2118            /**
2119            * Returns the number of asset categories where parentCategoryId = &#63;.
2120            *
2121            * @param parentCategoryId the parent category ID
2122            * @return the number of matching asset categories
2123            * @throws SystemException if a system exception occurred
2124            */
2125            public static int countByParentCategoryId(long parentCategoryId)
2126                    throws com.liferay.portal.kernel.exception.SystemException {
2127                    return getPersistence().countByParentCategoryId(parentCategoryId);
2128            }
2129    
2130            /**
2131            * Returns the number of asset categories where vocabularyId = &#63;.
2132            *
2133            * @param vocabularyId the vocabulary ID
2134            * @return the number of matching asset categories
2135            * @throws SystemException if a system exception occurred
2136            */
2137            public static int countByVocabularyId(long vocabularyId)
2138                    throws com.liferay.portal.kernel.exception.SystemException {
2139                    return getPersistence().countByVocabularyId(vocabularyId);
2140            }
2141    
2142            /**
2143            * Returns the number of asset categories where groupId = &#63; and vocabularyId = &#63;.
2144            *
2145            * @param groupId the group ID
2146            * @param vocabularyId the vocabulary ID
2147            * @return the number of matching asset categories
2148            * @throws SystemException if a system exception occurred
2149            */
2150            public static int countByG_V(long groupId, long vocabularyId)
2151                    throws com.liferay.portal.kernel.exception.SystemException {
2152                    return getPersistence().countByG_V(groupId, vocabularyId);
2153            }
2154    
2155            /**
2156            * Returns the number of asset categories that the user has permission to view where groupId = &#63; and vocabularyId = &#63;.
2157            *
2158            * @param groupId the group ID
2159            * @param vocabularyId the vocabulary ID
2160            * @return the number of matching asset categories that the user has permission to view
2161            * @throws SystemException if a system exception occurred
2162            */
2163            public static int filterCountByG_V(long groupId, long vocabularyId)
2164                    throws com.liferay.portal.kernel.exception.SystemException {
2165                    return getPersistence().filterCountByG_V(groupId, vocabularyId);
2166            }
2167    
2168            /**
2169            * Returns the number of asset categories where parentCategoryId = &#63; and name = &#63;.
2170            *
2171            * @param parentCategoryId the parent category ID
2172            * @param name the name
2173            * @return the number of matching asset categories
2174            * @throws SystemException if a system exception occurred
2175            */
2176            public static int countByP_N(long parentCategoryId, java.lang.String name)
2177                    throws com.liferay.portal.kernel.exception.SystemException {
2178                    return getPersistence().countByP_N(parentCategoryId, name);
2179            }
2180    
2181            /**
2182            * Returns the number of asset categories where parentCategoryId = &#63; and vocabularyId = &#63;.
2183            *
2184            * @param parentCategoryId the parent category ID
2185            * @param vocabularyId the vocabulary ID
2186            * @return the number of matching asset categories
2187            * @throws SystemException if a system exception occurred
2188            */
2189            public static int countByP_V(long parentCategoryId, long vocabularyId)
2190                    throws com.liferay.portal.kernel.exception.SystemException {
2191                    return getPersistence().countByP_V(parentCategoryId, vocabularyId);
2192            }
2193    
2194            /**
2195            * Returns the number of asset categories where name = &#63; and vocabularyId = &#63;.
2196            *
2197            * @param name the name
2198            * @param vocabularyId the vocabulary ID
2199            * @return the number of matching asset categories
2200            * @throws SystemException if a system exception occurred
2201            */
2202            public static int countByN_V(java.lang.String name, long vocabularyId)
2203                    throws com.liferay.portal.kernel.exception.SystemException {
2204                    return getPersistence().countByN_V(name, vocabularyId);
2205            }
2206    
2207            /**
2208            * Returns the number of asset categories where groupId = &#63; and parentCategoryId = &#63; and name = &#63;.
2209            *
2210            * @param groupId the group ID
2211            * @param parentCategoryId the parent category ID
2212            * @param name the name
2213            * @return the number of matching asset categories
2214            * @throws SystemException if a system exception occurred
2215            */
2216            public static int countByG_P_N(long groupId, long parentCategoryId,
2217                    java.lang.String name)
2218                    throws com.liferay.portal.kernel.exception.SystemException {
2219                    return getPersistence().countByG_P_N(groupId, parentCategoryId, name);
2220            }
2221    
2222            /**
2223            * Returns the number of asset categories that the user has permission to view where groupId = &#63; and parentCategoryId = &#63; and name = &#63;.
2224            *
2225            * @param groupId the group ID
2226            * @param parentCategoryId the parent category ID
2227            * @param name the name
2228            * @return the number of matching asset categories that the user has permission to view
2229            * @throws SystemException if a system exception occurred
2230            */
2231            public static int filterCountByG_P_N(long groupId, long parentCategoryId,
2232                    java.lang.String name)
2233                    throws com.liferay.portal.kernel.exception.SystemException {
2234                    return getPersistence()
2235                                       .filterCountByG_P_N(groupId, parentCategoryId, name);
2236            }
2237    
2238            /**
2239            * Returns the number of asset categories where parentCategoryId = &#63; and name = &#63; and vocabularyId = &#63;.
2240            *
2241            * @param parentCategoryId the parent category ID
2242            * @param name the name
2243            * @param vocabularyId the vocabulary ID
2244            * @return the number of matching asset categories
2245            * @throws SystemException if a system exception occurred
2246            */
2247            public static int countByP_N_V(long parentCategoryId,
2248                    java.lang.String name, long vocabularyId)
2249                    throws com.liferay.portal.kernel.exception.SystemException {
2250                    return getPersistence()
2251                                       .countByP_N_V(parentCategoryId, name, vocabularyId);
2252            }
2253    
2254            /**
2255            * Returns the number of asset categories.
2256            *
2257            * @return the number of asset categories
2258            * @throws SystemException if a system exception occurred
2259            */
2260            public static int countAll()
2261                    throws com.liferay.portal.kernel.exception.SystemException {
2262                    return getPersistence().countAll();
2263            }
2264    
2265            /**
2266            * Returns all the asset entries associated with the asset category.
2267            *
2268            * @param pk the primary key of the asset category
2269            * @return the asset entries associated with the asset category
2270            * @throws SystemException if a system exception occurred
2271            */
2272            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
2273                    long pk) throws com.liferay.portal.kernel.exception.SystemException {
2274                    return getPersistence().getAssetEntries(pk);
2275            }
2276    
2277            /**
2278            * Returns a range of all the asset entries associated with the asset category.
2279            *
2280            * <p>
2281            * 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.
2282            * </p>
2283            *
2284            * @param pk the primary key of the asset category
2285            * @param start the lower bound of the range of asset categories
2286            * @param end the upper bound of the range of asset categories (not inclusive)
2287            * @return the range of asset entries associated with the asset category
2288            * @throws SystemException if a system exception occurred
2289            */
2290            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
2291                    long pk, int start, int end)
2292                    throws com.liferay.portal.kernel.exception.SystemException {
2293                    return getPersistence().getAssetEntries(pk, start, end);
2294            }
2295    
2296            /**
2297            * Returns an ordered range of all the asset entries associated with the asset category.
2298            *
2299            * <p>
2300            * 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.
2301            * </p>
2302            *
2303            * @param pk the primary key of the asset category
2304            * @param start the lower bound of the range of asset categories
2305            * @param end the upper bound of the range of asset categories (not inclusive)
2306            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2307            * @return the ordered range of asset entries associated with the asset category
2308            * @throws SystemException if a system exception occurred
2309            */
2310            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
2311                    long pk, int start, int end,
2312                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2313                    throws com.liferay.portal.kernel.exception.SystemException {
2314                    return getPersistence()
2315                                       .getAssetEntries(pk, start, end, orderByComparator);
2316            }
2317    
2318            /**
2319            * Returns the number of asset entries associated with the asset category.
2320            *
2321            * @param pk the primary key of the asset category
2322            * @return the number of asset entries associated with the asset category
2323            * @throws SystemException if a system exception occurred
2324            */
2325            public static int getAssetEntriesSize(long pk)
2326                    throws com.liferay.portal.kernel.exception.SystemException {
2327                    return getPersistence().getAssetEntriesSize(pk);
2328            }
2329    
2330            /**
2331            * Returns <code>true</code> if the asset entry is associated with the asset category.
2332            *
2333            * @param pk the primary key of the asset category
2334            * @param assetEntryPK the primary key of the asset entry
2335            * @return <code>true</code> if the asset entry is associated with the asset category; <code>false</code> otherwise
2336            * @throws SystemException if a system exception occurred
2337            */
2338            public static boolean containsAssetEntry(long pk, long assetEntryPK)
2339                    throws com.liferay.portal.kernel.exception.SystemException {
2340                    return getPersistence().containsAssetEntry(pk, assetEntryPK);
2341            }
2342    
2343            /**
2344            * Returns <code>true</code> if the asset category has any asset entries associated with it.
2345            *
2346            * @param pk the primary key of the asset category to check for associations with asset entries
2347            * @return <code>true</code> if the asset category has any asset entries associated with it; <code>false</code> otherwise
2348            * @throws SystemException if a system exception occurred
2349            */
2350            public static boolean containsAssetEntries(long pk)
2351                    throws com.liferay.portal.kernel.exception.SystemException {
2352                    return getPersistence().containsAssetEntries(pk);
2353            }
2354    
2355            /**
2356            * Adds an association between the asset category and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2357            *
2358            * @param pk the primary key of the asset category
2359            * @param assetEntryPK the primary key of the asset entry
2360            * @throws SystemException if a system exception occurred
2361            */
2362            public static void addAssetEntry(long pk, long assetEntryPK)
2363                    throws com.liferay.portal.kernel.exception.SystemException {
2364                    getPersistence().addAssetEntry(pk, assetEntryPK);
2365            }
2366    
2367            /**
2368            * Adds an association between the asset category and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2369            *
2370            * @param pk the primary key of the asset category
2371            * @param assetEntry the asset entry
2372            * @throws SystemException if a system exception occurred
2373            */
2374            public static void addAssetEntry(long pk,
2375                    com.liferay.portlet.asset.model.AssetEntry assetEntry)
2376                    throws com.liferay.portal.kernel.exception.SystemException {
2377                    getPersistence().addAssetEntry(pk, assetEntry);
2378            }
2379    
2380            /**
2381            * Adds an association between the asset category and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2382            *
2383            * @param pk the primary key of the asset category
2384            * @param assetEntryPKs the primary keys of the asset entries
2385            * @throws SystemException if a system exception occurred
2386            */
2387            public static void addAssetEntries(long pk, long[] assetEntryPKs)
2388                    throws com.liferay.portal.kernel.exception.SystemException {
2389                    getPersistence().addAssetEntries(pk, assetEntryPKs);
2390            }
2391    
2392            /**
2393            * Adds an association between the asset category and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2394            *
2395            * @param pk the primary key of the asset category
2396            * @param assetEntries the asset entries
2397            * @throws SystemException if a system exception occurred
2398            */
2399            public static void addAssetEntries(long pk,
2400                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
2401                    throws com.liferay.portal.kernel.exception.SystemException {
2402                    getPersistence().addAssetEntries(pk, assetEntries);
2403            }
2404    
2405            /**
2406            * Clears all associations between the asset category and its asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2407            *
2408            * @param pk the primary key of the asset category to clear the associated asset entries from
2409            * @throws SystemException if a system exception occurred
2410            */
2411            public static void clearAssetEntries(long pk)
2412                    throws com.liferay.portal.kernel.exception.SystemException {
2413                    getPersistence().clearAssetEntries(pk);
2414            }
2415    
2416            /**
2417            * Removes the association between the asset category and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2418            *
2419            * @param pk the primary key of the asset category
2420            * @param assetEntryPK the primary key of the asset entry
2421            * @throws SystemException if a system exception occurred
2422            */
2423            public static void removeAssetEntry(long pk, long assetEntryPK)
2424                    throws com.liferay.portal.kernel.exception.SystemException {
2425                    getPersistence().removeAssetEntry(pk, assetEntryPK);
2426            }
2427    
2428            /**
2429            * Removes the association between the asset category and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2430            *
2431            * @param pk the primary key of the asset category
2432            * @param assetEntry the asset entry
2433            * @throws SystemException if a system exception occurred
2434            */
2435            public static void removeAssetEntry(long pk,
2436                    com.liferay.portlet.asset.model.AssetEntry assetEntry)
2437                    throws com.liferay.portal.kernel.exception.SystemException {
2438                    getPersistence().removeAssetEntry(pk, assetEntry);
2439            }
2440    
2441            /**
2442            * Removes the association between the asset category and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2443            *
2444            * @param pk the primary key of the asset category
2445            * @param assetEntryPKs the primary keys of the asset entries
2446            * @throws SystemException if a system exception occurred
2447            */
2448            public static void removeAssetEntries(long pk, long[] assetEntryPKs)
2449                    throws com.liferay.portal.kernel.exception.SystemException {
2450                    getPersistence().removeAssetEntries(pk, assetEntryPKs);
2451            }
2452    
2453            /**
2454            * Removes the association between the asset category and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
2455            *
2456            * @param pk the primary key of the asset category
2457            * @param assetEntries the asset entries
2458            * @throws SystemException if a system exception occurred
2459            */
2460            public static void removeAssetEntries(long pk,
2461                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
2462                    throws com.liferay.portal.kernel.exception.SystemException {
2463                    getPersistence().removeAssetEntries(pk, assetEntries);
2464            }
2465    
2466            /**
2467            * 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.
2468            *
2469            * @param pk the primary key of the asset category
2470            * @param assetEntryPKs the primary keys of the asset entries to be associated with the asset category
2471            * @throws SystemException if a system exception occurred
2472            */
2473            public static void setAssetEntries(long pk, long[] assetEntryPKs)
2474                    throws com.liferay.portal.kernel.exception.SystemException {
2475                    getPersistence().setAssetEntries(pk, assetEntryPKs);
2476            }
2477    
2478            /**
2479            * 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.
2480            *
2481            * @param pk the primary key of the asset category
2482            * @param assetEntries the asset entries to be associated with the asset category
2483            * @throws SystemException if a system exception occurred
2484            */
2485            public static void setAssetEntries(long pk,
2486                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
2487                    throws com.liferay.portal.kernel.exception.SystemException {
2488                    getPersistence().setAssetEntries(pk, assetEntries);
2489            }
2490    
2491            /**
2492            * Rebuilds the asset categories tree for the scope using the modified pre-order tree traversal algorithm.
2493            *
2494            * <p>
2495            * 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.
2496            * </p>
2497            *
2498            * @param groupId the ID of the scope
2499            * @param force whether to force the rebuild even if the tree is not stale
2500            */
2501            public static void rebuildTree(long groupId, boolean force)
2502                    throws com.liferay.portal.kernel.exception.SystemException {
2503                    getPersistence().rebuildTree(groupId, force);
2504            }
2505    
2506            public static void setRebuildTreeEnabled(boolean rebuildTreeEnabled) {
2507                    getPersistence().setRebuildTreeEnabled(rebuildTreeEnabled);
2508            }
2509    
2510            public static AssetCategoryPersistence getPersistence() {
2511                    if (_persistence == null) {
2512                            _persistence = (AssetCategoryPersistence)PortalBeanLocatorUtil.locate(AssetCategoryPersistence.class.getName());
2513    
2514                            ReferenceRegistry.registerReference(AssetCategoryUtil.class,
2515                                    "_persistence");
2516                    }
2517    
2518                    return _persistence;
2519            }
2520    
2521            /**
2522             * @deprecated
2523             */
2524            public void setPersistence(AssetCategoryPersistence persistence) {
2525            }
2526    
2527            private static AssetCategoryPersistence _persistence;
2528    }