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