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