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