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 to cache
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 to cache
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 to remove
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            * Finds 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 to find
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            * Finds 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 to find
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            * Finds all the asset categories where uuid = &#63;.
108            *
109            * @param uuid the uuid to search with
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            * Finds 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 to search with
125            * @param start the lower bound of the range of asset categories to return
126            * @param end the upper bound of the range of asset categories to return (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            * Finds 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 to search with
142            * @param start the lower bound of the range of asset categories to return
143            * @param end the upper bound of the range of asset categories to return (not inclusive)
144            * @param orderByComparator the comparator to order the results by
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            * Finds 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 to search with
161            * @param orderByComparator the comparator to order the set by
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            * Finds 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 to search with
180            * @param orderByComparator the comparator to order the set by
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            * Finds 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 to search with
200            * @param orderByComparator the comparator to order the set by
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            * Finds the asset category where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portlet.asset.NoSuchCategoryException} if it could not be found.
213            *
214            * @param uuid the uuid to search with
215            * @param groupId the group ID to search with
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            * Finds the asset category where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
227            *
228            * @param uuid the uuid to search with
229            * @param groupId the group ID to search with
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            * Finds the asset category where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
239            *
240            * @param uuid the uuid to search with
241            * @param groupId the group ID to search with
242            * @return the matching asset category, or <code>null</code> if a matching asset category could not be found
243            * @throws SystemException if a system exception occurred
244            */
245            public com.liferay.portlet.asset.model.AssetCategory fetchByUUID_G(
246                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
247                    throws com.liferay.portal.kernel.exception.SystemException;
248    
249            /**
250            * Finds all the asset categories where groupId = &#63;.
251            *
252            * @param groupId the group ID to search with
253            * @return the matching asset categories
254            * @throws SystemException if a system exception occurred
255            */
256            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByGroupId(
257                    long groupId)
258                    throws com.liferay.portal.kernel.exception.SystemException;
259    
260            /**
261            * Finds a range of all the asset categories where groupId = &#63;.
262            *
263            * <p>
264            * 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.
265            * </p>
266            *
267            * @param groupId the group ID to search with
268            * @param start the lower bound of the range of asset categories to return
269            * @param end the upper bound of the range of asset categories to return (not inclusive)
270            * @return the range of matching asset categories
271            * @throws SystemException if a system exception occurred
272            */
273            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByGroupId(
274                    long groupId, int start, int end)
275                    throws com.liferay.portal.kernel.exception.SystemException;
276    
277            /**
278            * Finds an ordered range of all the asset categories where groupId = &#63;.
279            *
280            * <p>
281            * 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.
282            * </p>
283            *
284            * @param groupId the group ID to search with
285            * @param start the lower bound of the range of asset categories to return
286            * @param end the upper bound of the range of asset categories to return (not inclusive)
287            * @param orderByComparator the comparator to order the results by
288            * @return the ordered range of matching asset categories
289            * @throws SystemException if a system exception occurred
290            */
291            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByGroupId(
292                    long groupId, int start, int end,
293                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
294                    throws com.liferay.portal.kernel.exception.SystemException;
295    
296            /**
297            * Finds the first asset category in the ordered set where groupId = &#63;.
298            *
299            * <p>
300            * 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.
301            * </p>
302            *
303            * @param groupId the group ID to search with
304            * @param orderByComparator the comparator to order the set by
305            * @return the first matching asset category
306            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
307            * @throws SystemException if a system exception occurred
308            */
309            public com.liferay.portlet.asset.model.AssetCategory findByGroupId_First(
310                    long groupId,
311                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
312                    throws com.liferay.portal.kernel.exception.SystemException,
313                            com.liferay.portlet.asset.NoSuchCategoryException;
314    
315            /**
316            * Finds the last asset category in the ordered set where groupId = &#63;.
317            *
318            * <p>
319            * 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.
320            * </p>
321            *
322            * @param groupId the group ID to search with
323            * @param orderByComparator the comparator to order the set by
324            * @return the last matching asset category
325            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
326            * @throws SystemException if a system exception occurred
327            */
328            public com.liferay.portlet.asset.model.AssetCategory findByGroupId_Last(
329                    long groupId,
330                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
331                    throws com.liferay.portal.kernel.exception.SystemException,
332                            com.liferay.portlet.asset.NoSuchCategoryException;
333    
334            /**
335            * Finds the asset categories before and after the current asset category in the ordered set where groupId = &#63;.
336            *
337            * <p>
338            * 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.
339            * </p>
340            *
341            * @param categoryId the primary key of the current asset category
342            * @param groupId the group ID to search with
343            * @param orderByComparator the comparator to order the set by
344            * @return the previous, current, and next asset category
345            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found
346            * @throws SystemException if a system exception occurred
347            */
348            public com.liferay.portlet.asset.model.AssetCategory[] findByGroupId_PrevAndNext(
349                    long categoryId, long groupId,
350                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
351                    throws com.liferay.portal.kernel.exception.SystemException,
352                            com.liferay.portlet.asset.NoSuchCategoryException;
353    
354            /**
355            * Filters by the user's permissions and finds all the asset categories where groupId = &#63;.
356            *
357            * @param groupId the group ID to search with
358            * @return the matching asset categories that the user has permission to view
359            * @throws SystemException if a system exception occurred
360            */
361            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByGroupId(
362                    long groupId)
363                    throws com.liferay.portal.kernel.exception.SystemException;
364    
365            /**
366            * Filters by the user's permissions and finds a range of all the asset categories where groupId = &#63;.
367            *
368            * <p>
369            * 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.
370            * </p>
371            *
372            * @param groupId the group ID to search with
373            * @param start the lower bound of the range of asset categories to return
374            * @param end the upper bound of the range of asset categories to return (not inclusive)
375            * @return the range of matching asset categories that the user has permission to view
376            * @throws SystemException if a system exception occurred
377            */
378            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByGroupId(
379                    long groupId, int start, int end)
380                    throws com.liferay.portal.kernel.exception.SystemException;
381    
382            /**
383            * Filters by the user's permissions and finds an ordered range of all the asset categories where groupId = &#63;.
384            *
385            * <p>
386            * 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.
387            * </p>
388            *
389            * @param groupId the group ID to search with
390            * @param start the lower bound of the range of asset categories to return
391            * @param end the upper bound of the range of asset categories to return (not inclusive)
392            * @param orderByComparator the comparator to order the results by
393            * @return the ordered range of matching asset categories that the user has permission to view
394            * @throws SystemException if a system exception occurred
395            */
396            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByGroupId(
397                    long groupId, int start, int end,
398                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
399                    throws com.liferay.portal.kernel.exception.SystemException;
400    
401            /**
402            * Filters the asset categories before and after the current asset category in the ordered set where groupId = &#63;.
403            *
404            * <p>
405            * 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.
406            * </p>
407            *
408            * @param categoryId the primary key of the current asset category
409            * @param groupId the group ID to search with
410            * @param orderByComparator the comparator to order the set by
411            * @return the previous, current, and next asset category
412            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found
413            * @throws SystemException if a system exception occurred
414            */
415            public com.liferay.portlet.asset.model.AssetCategory[] filterFindByGroupId_PrevAndNext(
416                    long categoryId, long groupId,
417                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
418                    throws com.liferay.portal.kernel.exception.SystemException,
419                            com.liferay.portlet.asset.NoSuchCategoryException;
420    
421            /**
422            * Finds all the asset categories where parentCategoryId = &#63;.
423            *
424            * @param parentCategoryId the parent category ID to search with
425            * @return the matching asset categories
426            * @throws SystemException if a system exception occurred
427            */
428            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByParentCategoryId(
429                    long parentCategoryId)
430                    throws com.liferay.portal.kernel.exception.SystemException;
431    
432            /**
433            * Finds a range of all the asset categories where parentCategoryId = &#63;.
434            *
435            * <p>
436            * 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.
437            * </p>
438            *
439            * @param parentCategoryId the parent category ID to search with
440            * @param start the lower bound of the range of asset categories to return
441            * @param end the upper bound of the range of asset categories to return (not inclusive)
442            * @return the range of matching asset categories
443            * @throws SystemException if a system exception occurred
444            */
445            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByParentCategoryId(
446                    long parentCategoryId, int start, int end)
447                    throws com.liferay.portal.kernel.exception.SystemException;
448    
449            /**
450            * Finds an ordered range of all the asset categories where parentCategoryId = &#63;.
451            *
452            * <p>
453            * 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.
454            * </p>
455            *
456            * @param parentCategoryId the parent category ID to search with
457            * @param start the lower bound of the range of asset categories to return
458            * @param end the upper bound of the range of asset categories to return (not inclusive)
459            * @param orderByComparator the comparator to order the results by
460            * @return the ordered range of matching asset categories
461            * @throws SystemException if a system exception occurred
462            */
463            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByParentCategoryId(
464                    long parentCategoryId, int start, int end,
465                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
466                    throws com.liferay.portal.kernel.exception.SystemException;
467    
468            /**
469            * Finds the first asset category in the ordered set where parentCategoryId = &#63;.
470            *
471            * <p>
472            * 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.
473            * </p>
474            *
475            * @param parentCategoryId the parent category ID to search with
476            * @param orderByComparator the comparator to order the set by
477            * @return the first matching asset category
478            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
479            * @throws SystemException if a system exception occurred
480            */
481            public com.liferay.portlet.asset.model.AssetCategory findByParentCategoryId_First(
482                    long parentCategoryId,
483                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
484                    throws com.liferay.portal.kernel.exception.SystemException,
485                            com.liferay.portlet.asset.NoSuchCategoryException;
486    
487            /**
488            * Finds the last asset category in the ordered set where parentCategoryId = &#63;.
489            *
490            * <p>
491            * 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.
492            * </p>
493            *
494            * @param parentCategoryId the parent category ID to search with
495            * @param orderByComparator the comparator to order the set by
496            * @return the last matching asset category
497            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
498            * @throws SystemException if a system exception occurred
499            */
500            public com.liferay.portlet.asset.model.AssetCategory findByParentCategoryId_Last(
501                    long parentCategoryId,
502                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
503                    throws com.liferay.portal.kernel.exception.SystemException,
504                            com.liferay.portlet.asset.NoSuchCategoryException;
505    
506            /**
507            * Finds the asset categories before and after the current asset category in the ordered set where parentCategoryId = &#63;.
508            *
509            * <p>
510            * 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.
511            * </p>
512            *
513            * @param categoryId the primary key of the current asset category
514            * @param parentCategoryId the parent category ID to search with
515            * @param orderByComparator the comparator to order the set by
516            * @return the previous, current, and next asset category
517            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found
518            * @throws SystemException if a system exception occurred
519            */
520            public com.liferay.portlet.asset.model.AssetCategory[] findByParentCategoryId_PrevAndNext(
521                    long categoryId, long parentCategoryId,
522                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
523                    throws com.liferay.portal.kernel.exception.SystemException,
524                            com.liferay.portlet.asset.NoSuchCategoryException;
525    
526            /**
527            * Finds all the asset categories where vocabularyId = &#63;.
528            *
529            * @param vocabularyId the vocabulary ID to search with
530            * @return the matching asset categories
531            * @throws SystemException if a system exception occurred
532            */
533            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByVocabularyId(
534                    long vocabularyId)
535                    throws com.liferay.portal.kernel.exception.SystemException;
536    
537            /**
538            * Finds a range of all the asset categories where vocabularyId = &#63;.
539            *
540            * <p>
541            * 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.
542            * </p>
543            *
544            * @param vocabularyId the vocabulary ID to search with
545            * @param start the lower bound of the range of asset categories to return
546            * @param end the upper bound of the range of asset categories to return (not inclusive)
547            * @return the range of matching asset categories
548            * @throws SystemException if a system exception occurred
549            */
550            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByVocabularyId(
551                    long vocabularyId, int start, int end)
552                    throws com.liferay.portal.kernel.exception.SystemException;
553    
554            /**
555            * Finds an ordered range of all the asset categories where vocabularyId = &#63;.
556            *
557            * <p>
558            * 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.
559            * </p>
560            *
561            * @param vocabularyId the vocabulary ID to search with
562            * @param start the lower bound of the range of asset categories to return
563            * @param end the upper bound of the range of asset categories to return (not inclusive)
564            * @param orderByComparator the comparator to order the results by
565            * @return the ordered range of matching asset categories
566            * @throws SystemException if a system exception occurred
567            */
568            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByVocabularyId(
569                    long vocabularyId, int start, int end,
570                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
571                    throws com.liferay.portal.kernel.exception.SystemException;
572    
573            /**
574            * Finds the first asset category in the ordered set where vocabularyId = &#63;.
575            *
576            * <p>
577            * 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.
578            * </p>
579            *
580            * @param vocabularyId the vocabulary ID to search with
581            * @param orderByComparator the comparator to order the set by
582            * @return the first matching asset category
583            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
584            * @throws SystemException if a system exception occurred
585            */
586            public com.liferay.portlet.asset.model.AssetCategory findByVocabularyId_First(
587                    long vocabularyId,
588                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
589                    throws com.liferay.portal.kernel.exception.SystemException,
590                            com.liferay.portlet.asset.NoSuchCategoryException;
591    
592            /**
593            * Finds the last asset category in the ordered set where vocabularyId = &#63;.
594            *
595            * <p>
596            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
597            * </p>
598            *
599            * @param vocabularyId the vocabulary ID to search with
600            * @param orderByComparator the comparator to order the set by
601            * @return the last matching asset category
602            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
603            * @throws SystemException if a system exception occurred
604            */
605            public com.liferay.portlet.asset.model.AssetCategory findByVocabularyId_Last(
606                    long vocabularyId,
607                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
608                    throws com.liferay.portal.kernel.exception.SystemException,
609                            com.liferay.portlet.asset.NoSuchCategoryException;
610    
611            /**
612            * Finds the asset categories before and after the current asset category in the ordered set where vocabularyId = &#63;.
613            *
614            * <p>
615            * 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.
616            * </p>
617            *
618            * @param categoryId the primary key of the current asset category
619            * @param vocabularyId the vocabulary ID to search with
620            * @param orderByComparator the comparator to order the set by
621            * @return the previous, current, and next asset category
622            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found
623            * @throws SystemException if a system exception occurred
624            */
625            public com.liferay.portlet.asset.model.AssetCategory[] findByVocabularyId_PrevAndNext(
626                    long categoryId, long vocabularyId,
627                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
628                    throws com.liferay.portal.kernel.exception.SystemException,
629                            com.liferay.portlet.asset.NoSuchCategoryException;
630    
631            /**
632            * Finds all the asset categories where parentCategoryId = &#63; and name = &#63;.
633            *
634            * @param parentCategoryId the parent category ID to search with
635            * @param name the name to search with
636            * @return the matching asset categories
637            * @throws SystemException if a system exception occurred
638            */
639            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_N(
640                    long parentCategoryId, java.lang.String name)
641                    throws com.liferay.portal.kernel.exception.SystemException;
642    
643            /**
644            * Finds a range of all the asset categories where parentCategoryId = &#63; and name = &#63;.
645            *
646            * <p>
647            * 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.
648            * </p>
649            *
650            * @param parentCategoryId the parent category ID to search with
651            * @param name the name to search with
652            * @param start the lower bound of the range of asset categories to return
653            * @param end the upper bound of the range of asset categories to return (not inclusive)
654            * @return the range of matching asset categories
655            * @throws SystemException if a system exception occurred
656            */
657            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_N(
658                    long parentCategoryId, java.lang.String name, int start, int end)
659                    throws com.liferay.portal.kernel.exception.SystemException;
660    
661            /**
662            * Finds an ordered range of all the asset categories where parentCategoryId = &#63; and name = &#63;.
663            *
664            * <p>
665            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
666            * </p>
667            *
668            * @param parentCategoryId the parent category ID to search with
669            * @param name the name to search with
670            * @param start the lower bound of the range of asset categories to return
671            * @param end the upper bound of the range of asset categories to return (not inclusive)
672            * @param orderByComparator the comparator to order the results by
673            * @return the ordered range of matching asset categories
674            * @throws SystemException if a system exception occurred
675            */
676            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_N(
677                    long parentCategoryId, java.lang.String name, int start, int end,
678                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
679                    throws com.liferay.portal.kernel.exception.SystemException;
680    
681            /**
682            * Finds the first asset category in the ordered set where parentCategoryId = &#63; and name = &#63;.
683            *
684            * <p>
685            * 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.
686            * </p>
687            *
688            * @param parentCategoryId the parent category ID to search with
689            * @param name the name to search with
690            * @param orderByComparator the comparator to order the set by
691            * @return the first matching asset category
692            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
693            * @throws SystemException if a system exception occurred
694            */
695            public com.liferay.portlet.asset.model.AssetCategory findByP_N_First(
696                    long parentCategoryId, java.lang.String name,
697                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
698                    throws com.liferay.portal.kernel.exception.SystemException,
699                            com.liferay.portlet.asset.NoSuchCategoryException;
700    
701            /**
702            * Finds the last asset category in the ordered set where parentCategoryId = &#63; and name = &#63;.
703            *
704            * <p>
705            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
706            * </p>
707            *
708            * @param parentCategoryId the parent category ID to search with
709            * @param name the name to search with
710            * @param orderByComparator the comparator to order the set by
711            * @return the last matching asset category
712            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
713            * @throws SystemException if a system exception occurred
714            */
715            public com.liferay.portlet.asset.model.AssetCategory findByP_N_Last(
716                    long parentCategoryId, java.lang.String name,
717                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
718                    throws com.liferay.portal.kernel.exception.SystemException,
719                            com.liferay.portlet.asset.NoSuchCategoryException;
720    
721            /**
722            * Finds the asset categories before and after the current asset category in the ordered set where parentCategoryId = &#63; and name = &#63;.
723            *
724            * <p>
725            * 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.
726            * </p>
727            *
728            * @param categoryId the primary key of the current asset category
729            * @param parentCategoryId the parent category ID to search with
730            * @param name the name to search with
731            * @param orderByComparator the comparator to order the set by
732            * @return the previous, current, and next asset category
733            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found
734            * @throws SystemException if a system exception occurred
735            */
736            public com.liferay.portlet.asset.model.AssetCategory[] findByP_N_PrevAndNext(
737                    long categoryId, long parentCategoryId, java.lang.String name,
738                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
739                    throws com.liferay.portal.kernel.exception.SystemException,
740                            com.liferay.portlet.asset.NoSuchCategoryException;
741    
742            /**
743            * Finds all the asset categories where parentCategoryId = &#63; and vocabularyId = &#63;.
744            *
745            * @param parentCategoryId the parent category ID to search with
746            * @param vocabularyId the vocabulary ID to search with
747            * @return the matching asset categories
748            * @throws SystemException if a system exception occurred
749            */
750            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_V(
751                    long parentCategoryId, long vocabularyId)
752                    throws com.liferay.portal.kernel.exception.SystemException;
753    
754            /**
755            * Finds a range of all the asset categories where parentCategoryId = &#63; and vocabularyId = &#63;.
756            *
757            * <p>
758            * 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.
759            * </p>
760            *
761            * @param parentCategoryId the parent category ID to search with
762            * @param vocabularyId the vocabulary ID to search with
763            * @param start the lower bound of the range of asset categories to return
764            * @param end the upper bound of the range of asset categories to return (not inclusive)
765            * @return the range of matching asset categories
766            * @throws SystemException if a system exception occurred
767            */
768            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_V(
769                    long parentCategoryId, long vocabularyId, int start, int end)
770                    throws com.liferay.portal.kernel.exception.SystemException;
771    
772            /**
773            * Finds an ordered range of all the asset categories where parentCategoryId = &#63; and vocabularyId = &#63;.
774            *
775            * <p>
776            * 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.
777            * </p>
778            *
779            * @param parentCategoryId the parent category ID to search with
780            * @param vocabularyId the vocabulary ID to search with
781            * @param start the lower bound of the range of asset categories to return
782            * @param end the upper bound of the range of asset categories to return (not inclusive)
783            * @param orderByComparator the comparator to order the results by
784            * @return the ordered range of matching asset categories
785            * @throws SystemException if a system exception occurred
786            */
787            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_V(
788                    long parentCategoryId, long vocabularyId, int start, int end,
789                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
790                    throws com.liferay.portal.kernel.exception.SystemException;
791    
792            /**
793            * Finds the first asset category in the ordered set where parentCategoryId = &#63; and vocabularyId = &#63;.
794            *
795            * <p>
796            * 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.
797            * </p>
798            *
799            * @param parentCategoryId the parent category ID to search with
800            * @param vocabularyId the vocabulary ID to search with
801            * @param orderByComparator the comparator to order the set by
802            * @return the first matching asset category
803            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
804            * @throws SystemException if a system exception occurred
805            */
806            public com.liferay.portlet.asset.model.AssetCategory findByP_V_First(
807                    long parentCategoryId, long vocabularyId,
808                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
809                    throws com.liferay.portal.kernel.exception.SystemException,
810                            com.liferay.portlet.asset.NoSuchCategoryException;
811    
812            /**
813            * Finds the last asset category in the ordered set where parentCategoryId = &#63; and vocabularyId = &#63;.
814            *
815            * <p>
816            * 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.
817            * </p>
818            *
819            * @param parentCategoryId the parent category ID to search with
820            * @param vocabularyId the vocabulary ID to search with
821            * @param orderByComparator the comparator to order the set by
822            * @return the last matching asset category
823            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
824            * @throws SystemException if a system exception occurred
825            */
826            public com.liferay.portlet.asset.model.AssetCategory findByP_V_Last(
827                    long parentCategoryId, long vocabularyId,
828                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
829                    throws com.liferay.portal.kernel.exception.SystemException,
830                            com.liferay.portlet.asset.NoSuchCategoryException;
831    
832            /**
833            * Finds the asset categories before and after the current asset category in the ordered set where parentCategoryId = &#63; and vocabularyId = &#63;.
834            *
835            * <p>
836            * 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.
837            * </p>
838            *
839            * @param categoryId the primary key of the current asset category
840            * @param parentCategoryId the parent category ID to search with
841            * @param vocabularyId the vocabulary ID to search with
842            * @param orderByComparator the comparator to order the set by
843            * @return the previous, current, and next asset category
844            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found
845            * @throws SystemException if a system exception occurred
846            */
847            public com.liferay.portlet.asset.model.AssetCategory[] findByP_V_PrevAndNext(
848                    long categoryId, long parentCategoryId, long vocabularyId,
849                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
850                    throws com.liferay.portal.kernel.exception.SystemException,
851                            com.liferay.portlet.asset.NoSuchCategoryException;
852    
853            /**
854            * Finds all the asset categories where name = &#63; and vocabularyId = &#63;.
855            *
856            * @param name the name to search with
857            * @param vocabularyId the vocabulary ID to search with
858            * @return the matching asset categories
859            * @throws SystemException if a system exception occurred
860            */
861            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByN_V(
862                    java.lang.String name, long vocabularyId)
863                    throws com.liferay.portal.kernel.exception.SystemException;
864    
865            /**
866            * Finds a range of all the asset categories where name = &#63; and vocabularyId = &#63;.
867            *
868            * <p>
869            * 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.
870            * </p>
871            *
872            * @param name the name to search with
873            * @param vocabularyId the vocabulary ID to search with
874            * @param start the lower bound of the range of asset categories to return
875            * @param end the upper bound of the range of asset categories to return (not inclusive)
876            * @return the range of matching asset categories
877            * @throws SystemException if a system exception occurred
878            */
879            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByN_V(
880                    java.lang.String name, long vocabularyId, int start, int end)
881                    throws com.liferay.portal.kernel.exception.SystemException;
882    
883            /**
884            * Finds an ordered range of all the asset categories where name = &#63; and vocabularyId = &#63;.
885            *
886            * <p>
887            * 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.
888            * </p>
889            *
890            * @param name the name to search with
891            * @param vocabularyId the vocabulary ID to search with
892            * @param start the lower bound of the range of asset categories to return
893            * @param end the upper bound of the range of asset categories to return (not inclusive)
894            * @param orderByComparator the comparator to order the results by
895            * @return the ordered range of matching asset categories
896            * @throws SystemException if a system exception occurred
897            */
898            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByN_V(
899                    java.lang.String name, long vocabularyId, int start, int end,
900                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
901                    throws com.liferay.portal.kernel.exception.SystemException;
902    
903            /**
904            * Finds the first asset category in the ordered set where name = &#63; and vocabularyId = &#63;.
905            *
906            * <p>
907            * 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.
908            * </p>
909            *
910            * @param name the name to search with
911            * @param vocabularyId the vocabulary ID to search with
912            * @param orderByComparator the comparator to order the set by
913            * @return the first matching asset category
914            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
915            * @throws SystemException if a system exception occurred
916            */
917            public com.liferay.portlet.asset.model.AssetCategory findByN_V_First(
918                    java.lang.String name, long vocabularyId,
919                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
920                    throws com.liferay.portal.kernel.exception.SystemException,
921                            com.liferay.portlet.asset.NoSuchCategoryException;
922    
923            /**
924            * Finds the last asset category in the ordered set where name = &#63; and vocabularyId = &#63;.
925            *
926            * <p>
927            * 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.
928            * </p>
929            *
930            * @param name the name to search with
931            * @param vocabularyId the vocabulary ID to search with
932            * @param orderByComparator the comparator to order the set by
933            * @return the last matching asset category
934            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
935            * @throws SystemException if a system exception occurred
936            */
937            public com.liferay.portlet.asset.model.AssetCategory findByN_V_Last(
938                    java.lang.String name, long vocabularyId,
939                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
940                    throws com.liferay.portal.kernel.exception.SystemException,
941                            com.liferay.portlet.asset.NoSuchCategoryException;
942    
943            /**
944            * Finds the asset categories before and after the current asset category in the ordered set where name = &#63; and vocabularyId = &#63;.
945            *
946            * <p>
947            * 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.
948            * </p>
949            *
950            * @param categoryId the primary key of the current asset category
951            * @param name the name to search with
952            * @param vocabularyId the vocabulary ID to search with
953            * @param orderByComparator the comparator to order the set by
954            * @return the previous, current, and next asset category
955            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a asset category with the primary key could not be found
956            * @throws SystemException if a system exception occurred
957            */
958            public com.liferay.portlet.asset.model.AssetCategory[] findByN_V_PrevAndNext(
959                    long categoryId, java.lang.String name, long vocabularyId,
960                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
961                    throws com.liferay.portal.kernel.exception.SystemException,
962                            com.liferay.portlet.asset.NoSuchCategoryException;
963    
964            /**
965            * Finds the asset category where parentCategoryId = &#63; and name = &#63; and vocabularyId = &#63; or throws a {@link com.liferay.portlet.asset.NoSuchCategoryException} if it could not be found.
966            *
967            * @param parentCategoryId the parent category ID to search with
968            * @param name the name to search with
969            * @param vocabularyId the vocabulary ID to search with
970            * @return the matching asset category
971            * @throws com.liferay.portlet.asset.NoSuchCategoryException if a matching asset category could not be found
972            * @throws SystemException if a system exception occurred
973            */
974            public com.liferay.portlet.asset.model.AssetCategory findByP_N_V(
975                    long parentCategoryId, java.lang.String name, long vocabularyId)
976                    throws com.liferay.portal.kernel.exception.SystemException,
977                            com.liferay.portlet.asset.NoSuchCategoryException;
978    
979            /**
980            * Finds the asset category where parentCategoryId = &#63; and name = &#63; and vocabularyId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
981            *
982            * @param parentCategoryId the parent category ID to search with
983            * @param name the name to search with
984            * @param vocabularyId the vocabulary ID to search with
985            * @return the matching asset category, or <code>null</code> if a matching asset category could not be found
986            * @throws SystemException if a system exception occurred
987            */
988            public com.liferay.portlet.asset.model.AssetCategory fetchByP_N_V(
989                    long parentCategoryId, java.lang.String name, long vocabularyId)
990                    throws com.liferay.portal.kernel.exception.SystemException;
991    
992            /**
993            * Finds the asset category where parentCategoryId = &#63; and name = &#63; and vocabularyId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
994            *
995            * @param parentCategoryId the parent category ID to search with
996            * @param name the name to search with
997            * @param vocabularyId the vocabulary ID to search with
998            * @return the matching asset category, or <code>null</code> 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 fetchByP_N_V(
1002                    long parentCategoryId, java.lang.String name, long vocabularyId,
1003                    boolean retrieveFromCache)
1004                    throws com.liferay.portal.kernel.exception.SystemException;
1005    
1006            /**
1007            * Finds all the asset categories.
1008            *
1009            * @return the asset categories
1010            * @throws SystemException if a system exception occurred
1011            */
1012            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findAll()
1013                    throws com.liferay.portal.kernel.exception.SystemException;
1014    
1015            /**
1016            * Finds a range of all the asset categories.
1017            *
1018            * <p>
1019            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
1020            * </p>
1021            *
1022            * @param start the lower bound of the range of asset categories to return
1023            * @param end the upper bound of the range of asset categories to return (not inclusive)
1024            * @return the range of asset categories
1025            * @throws SystemException if a system exception occurred
1026            */
1027            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findAll(
1028                    int start, int end)
1029                    throws com.liferay.portal.kernel.exception.SystemException;
1030    
1031            /**
1032            * Finds an ordered range of all the asset categories.
1033            *
1034            * <p>
1035            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
1036            * </p>
1037            *
1038            * @param start the lower bound of the range of asset categories to return
1039            * @param end the upper bound of the range of asset categories to return (not inclusive)
1040            * @param orderByComparator the comparator to order the results by
1041            * @return the ordered range of asset categories
1042            * @throws SystemException if a system exception occurred
1043            */
1044            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findAll(
1045                    int start, int end,
1046                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1047                    throws com.liferay.portal.kernel.exception.SystemException;
1048    
1049            /**
1050            * Removes all the asset categories where uuid = &#63; from the database.
1051            *
1052            * @param uuid the uuid to search with
1053            * @throws SystemException if a system exception occurred
1054            */
1055            public void removeByUuid(java.lang.String uuid)
1056                    throws com.liferay.portal.kernel.exception.SystemException;
1057    
1058            /**
1059            * Removes the asset category where uuid = &#63; and groupId = &#63; from the database.
1060            *
1061            * @param uuid the uuid to search with
1062            * @param groupId the group ID to search with
1063            * @throws SystemException if a system exception occurred
1064            */
1065            public void removeByUUID_G(java.lang.String uuid, long groupId)
1066                    throws com.liferay.portal.kernel.exception.SystemException,
1067                            com.liferay.portlet.asset.NoSuchCategoryException;
1068    
1069            /**
1070            * Removes all the asset categories where groupId = &#63; from the database.
1071            *
1072            * @param groupId the group ID to search with
1073            * @throws SystemException if a system exception occurred
1074            */
1075            public void removeByGroupId(long groupId)
1076                    throws com.liferay.portal.kernel.exception.SystemException;
1077    
1078            /**
1079            * Removes all the asset categories where parentCategoryId = &#63; from the database.
1080            *
1081            * @param parentCategoryId the parent category ID to search with
1082            * @throws SystemException if a system exception occurred
1083            */
1084            public void removeByParentCategoryId(long parentCategoryId)
1085                    throws com.liferay.portal.kernel.exception.SystemException;
1086    
1087            /**
1088            * Removes all the asset categories where vocabularyId = &#63; from the database.
1089            *
1090            * @param vocabularyId the vocabulary ID to search with
1091            * @throws SystemException if a system exception occurred
1092            */
1093            public void removeByVocabularyId(long vocabularyId)
1094                    throws com.liferay.portal.kernel.exception.SystemException;
1095    
1096            /**
1097            * Removes all the asset categories where parentCategoryId = &#63; and name = &#63; from the database.
1098            *
1099            * @param parentCategoryId the parent category ID to search with
1100            * @param name the name to search with
1101            * @throws SystemException if a system exception occurred
1102            */
1103            public void removeByP_N(long parentCategoryId, java.lang.String name)
1104                    throws com.liferay.portal.kernel.exception.SystemException;
1105    
1106            /**
1107            * Removes all the asset categories where parentCategoryId = &#63; and vocabularyId = &#63; from the database.
1108            *
1109            * @param parentCategoryId the parent category ID to search with
1110            * @param vocabularyId the vocabulary ID to search with
1111            * @throws SystemException if a system exception occurred
1112            */
1113            public void removeByP_V(long parentCategoryId, long vocabularyId)
1114                    throws com.liferay.portal.kernel.exception.SystemException;
1115    
1116            /**
1117            * Removes all the asset categories where name = &#63; and vocabularyId = &#63; from the database.
1118            *
1119            * @param name the name to search with
1120            * @param vocabularyId the vocabulary ID to search with
1121            * @throws SystemException if a system exception occurred
1122            */
1123            public void removeByN_V(java.lang.String name, long vocabularyId)
1124                    throws com.liferay.portal.kernel.exception.SystemException;
1125    
1126            /**
1127            * Removes the asset category where parentCategoryId = &#63; and name = &#63; and vocabularyId = &#63; from the database.
1128            *
1129            * @param parentCategoryId the parent category ID to search with
1130            * @param name the name to search with
1131            * @param vocabularyId the vocabulary ID to search with
1132            * @throws SystemException if a system exception occurred
1133            */
1134            public void removeByP_N_V(long parentCategoryId, java.lang.String name,
1135                    long vocabularyId)
1136                    throws com.liferay.portal.kernel.exception.SystemException,
1137                            com.liferay.portlet.asset.NoSuchCategoryException;
1138    
1139            /**
1140            * Removes all the asset categories from the database.
1141            *
1142            * @throws SystemException if a system exception occurred
1143            */
1144            public void removeAll()
1145                    throws com.liferay.portal.kernel.exception.SystemException;
1146    
1147            /**
1148            * Counts all the asset categories where uuid = &#63;.
1149            *
1150            * @param uuid the uuid to search with
1151            * @return the number of matching asset categories
1152            * @throws SystemException if a system exception occurred
1153            */
1154            public int countByUuid(java.lang.String uuid)
1155                    throws com.liferay.portal.kernel.exception.SystemException;
1156    
1157            /**
1158            * Counts all the asset categories where uuid = &#63; and groupId = &#63;.
1159            *
1160            * @param uuid the uuid to search with
1161            * @param groupId the group ID to search with
1162            * @return the number of matching asset categories
1163            * @throws SystemException if a system exception occurred
1164            */
1165            public int countByUUID_G(java.lang.String uuid, long groupId)
1166                    throws com.liferay.portal.kernel.exception.SystemException;
1167    
1168            /**
1169            * Counts all the asset categories where groupId = &#63;.
1170            *
1171            * @param groupId the group ID to search with
1172            * @return the number of matching asset categories
1173            * @throws SystemException if a system exception occurred
1174            */
1175            public int countByGroupId(long groupId)
1176                    throws com.liferay.portal.kernel.exception.SystemException;
1177    
1178            /**
1179            * Filters by the user's permissions and counts all the asset categories where groupId = &#63;.
1180            *
1181            * @param groupId the group ID to search with
1182            * @return the number of matching asset categories that the user has permission to view
1183            * @throws SystemException if a system exception occurred
1184            */
1185            public int filterCountByGroupId(long groupId)
1186                    throws com.liferay.portal.kernel.exception.SystemException;
1187    
1188            /**
1189            * Counts all the asset categories where parentCategoryId = &#63;.
1190            *
1191            * @param parentCategoryId the parent category ID to search with
1192            * @return the number of matching asset categories
1193            * @throws SystemException if a system exception occurred
1194            */
1195            public int countByParentCategoryId(long parentCategoryId)
1196                    throws com.liferay.portal.kernel.exception.SystemException;
1197    
1198            /**
1199            * Counts all the asset categories where vocabularyId = &#63;.
1200            *
1201            * @param vocabularyId the vocabulary ID to search with
1202            * @return the number of matching asset categories
1203            * @throws SystemException if a system exception occurred
1204            */
1205            public int countByVocabularyId(long vocabularyId)
1206                    throws com.liferay.portal.kernel.exception.SystemException;
1207    
1208            /**
1209            * Counts all the asset categories where parentCategoryId = &#63; and name = &#63;.
1210            *
1211            * @param parentCategoryId the parent category ID to search with
1212            * @param name the name to search with
1213            * @return the number of matching asset categories
1214            * @throws SystemException if a system exception occurred
1215            */
1216            public int countByP_N(long parentCategoryId, java.lang.String name)
1217                    throws com.liferay.portal.kernel.exception.SystemException;
1218    
1219            /**
1220            * Counts all the asset categories where parentCategoryId = &#63; and vocabularyId = &#63;.
1221            *
1222            * @param parentCategoryId the parent category ID to search with
1223            * @param vocabularyId the vocabulary ID to search with
1224            * @return the number of matching asset categories
1225            * @throws SystemException if a system exception occurred
1226            */
1227            public int countByP_V(long parentCategoryId, long vocabularyId)
1228                    throws com.liferay.portal.kernel.exception.SystemException;
1229    
1230            /**
1231            * Counts all the asset categories where name = &#63; and vocabularyId = &#63;.
1232            *
1233            * @param name the name to search with
1234            * @param vocabularyId the vocabulary ID to search with
1235            * @return the number of matching asset categories
1236            * @throws SystemException if a system exception occurred
1237            */
1238            public int countByN_V(java.lang.String name, long vocabularyId)
1239                    throws com.liferay.portal.kernel.exception.SystemException;
1240    
1241            /**
1242            * Counts all the asset categories where parentCategoryId = &#63; and name = &#63; and vocabularyId = &#63;.
1243            *
1244            * @param parentCategoryId the parent category ID to search with
1245            * @param name the name to search with
1246            * @param vocabularyId the vocabulary ID to search with
1247            * @return the number of matching asset categories
1248            * @throws SystemException if a system exception occurred
1249            */
1250            public int countByP_N_V(long parentCategoryId, java.lang.String name,
1251                    long vocabularyId)
1252                    throws com.liferay.portal.kernel.exception.SystemException;
1253    
1254            /**
1255            * Counts all the asset categories.
1256            *
1257            * @return the number of asset categories
1258            * @throws SystemException if a system exception occurred
1259            */
1260            public int countAll()
1261                    throws com.liferay.portal.kernel.exception.SystemException;
1262    
1263            /**
1264            * Gets all the asset entries associated with the asset category.
1265            *
1266            * @param pk the primary key of the asset category to get the associated asset entries for
1267            * @return the asset entries associated with the asset category
1268            * @throws SystemException if a system exception occurred
1269            */
1270            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
1271                    long pk) throws com.liferay.portal.kernel.exception.SystemException;
1272    
1273            /**
1274            * Gets a range of all the asset entries associated with the asset category.
1275            *
1276            * <p>
1277            * 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.
1278            * </p>
1279            *
1280            * @param pk the primary key of the asset category to get the associated asset entries for
1281            * @param start the lower bound of the range of asset categories to return
1282            * @param end the upper bound of the range of asset categories to return (not inclusive)
1283            * @return the range of asset entries associated with the asset category
1284            * @throws SystemException if a system exception occurred
1285            */
1286            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
1287                    long pk, int start, int end)
1288                    throws com.liferay.portal.kernel.exception.SystemException;
1289    
1290            /**
1291            * Gets an ordered range of all the asset entries associated with the asset category.
1292            *
1293            * <p>
1294            * 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.
1295            * </p>
1296            *
1297            * @param pk the primary key of the asset category to get the associated asset entries for
1298            * @param start the lower bound of the range of asset categories to return
1299            * @param end the upper bound of the range of asset categories to return (not inclusive)
1300            * @param orderByComparator the comparator to order the results by
1301            * @return the ordered range of asset entries associated with the asset category
1302            * @throws SystemException if a system exception occurred
1303            */
1304            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
1305                    long pk, int start, int end,
1306                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1307                    throws com.liferay.portal.kernel.exception.SystemException;
1308    
1309            /**
1310            * Gets the number of asset entries associated with the asset category.
1311            *
1312            * @param pk the primary key of the asset category to get the number of associated asset entries for
1313            * @return the number of asset entries associated with the asset category
1314            * @throws SystemException if a system exception occurred
1315            */
1316            public int getAssetEntriesSize(long pk)
1317                    throws com.liferay.portal.kernel.exception.SystemException;
1318    
1319            /**
1320            * Determines if the asset entry is associated with the asset category.
1321            *
1322            * @param pk the primary key of the asset category
1323            * @param assetEntryPK the primary key of the asset entry
1324            * @return <code>true</code> if the asset entry is associated with the asset category; <code>false</code> otherwise
1325            * @throws SystemException if a system exception occurred
1326            */
1327            public boolean containsAssetEntry(long pk, long assetEntryPK)
1328                    throws com.liferay.portal.kernel.exception.SystemException;
1329    
1330            /**
1331            * Determines if the asset category has any asset entries associated with it.
1332            *
1333            * @param pk the primary key of the asset category to check for associations with asset entries
1334            * @return <code>true</code> if the asset category has any asset entries associated with it; <code>false</code> otherwise
1335            * @throws SystemException if a system exception occurred
1336            */
1337            public boolean containsAssetEntries(long pk)
1338                    throws com.liferay.portal.kernel.exception.SystemException;
1339    
1340            /**
1341            * Adds an association between the asset category and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1342            *
1343            * @param pk the primary key of the asset category
1344            * @param assetEntryPK the primary key of the asset entry
1345            * @throws SystemException if a system exception occurred
1346            */
1347            public void addAssetEntry(long pk, long assetEntryPK)
1348                    throws com.liferay.portal.kernel.exception.SystemException;
1349    
1350            /**
1351            * Adds an association between the asset category and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1352            *
1353            * @param pk the primary key of the asset category
1354            * @param assetEntry the asset entry
1355            * @throws SystemException if a system exception occurred
1356            */
1357            public void addAssetEntry(long pk,
1358                    com.liferay.portlet.asset.model.AssetEntry assetEntry)
1359                    throws com.liferay.portal.kernel.exception.SystemException;
1360    
1361            /**
1362            * Adds an association between the asset category and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1363            *
1364            * @param pk the primary key of the asset category
1365            * @param assetEntryPKs the primary keys of the asset entries
1366            * @throws SystemException if a system exception occurred
1367            */
1368            public void addAssetEntries(long pk, long[] assetEntryPKs)
1369                    throws com.liferay.portal.kernel.exception.SystemException;
1370    
1371            /**
1372            * Adds an association between the asset category and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1373            *
1374            * @param pk the primary key of the asset category
1375            * @param assetEntries the asset entries
1376            * @throws SystemException if a system exception occurred
1377            */
1378            public void addAssetEntries(long pk,
1379                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
1380                    throws com.liferay.portal.kernel.exception.SystemException;
1381    
1382            /**
1383            * Clears all associations between the asset category and its asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1384            *
1385            * @param pk the primary key of the asset category to clear the associated asset entries from
1386            * @throws SystemException if a system exception occurred
1387            */
1388            public void clearAssetEntries(long pk)
1389                    throws com.liferay.portal.kernel.exception.SystemException;
1390    
1391            /**
1392            * Removes the association between the asset category and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1393            *
1394            * @param pk the primary key of the asset category
1395            * @param assetEntryPK the primary key of the asset entry
1396            * @throws SystemException if a system exception occurred
1397            */
1398            public void removeAssetEntry(long pk, long assetEntryPK)
1399                    throws com.liferay.portal.kernel.exception.SystemException;
1400    
1401            /**
1402            * Removes the association between the asset category and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1403            *
1404            * @param pk the primary key of the asset category
1405            * @param assetEntry the asset entry
1406            * @throws SystemException if a system exception occurred
1407            */
1408            public void removeAssetEntry(long pk,
1409                    com.liferay.portlet.asset.model.AssetEntry assetEntry)
1410                    throws com.liferay.portal.kernel.exception.SystemException;
1411    
1412            /**
1413            * Removes the association between the asset category and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1414            *
1415            * @param pk the primary key of the asset category
1416            * @param assetEntryPKs the primary keys of the asset entries
1417            * @throws SystemException if a system exception occurred
1418            */
1419            public void removeAssetEntries(long pk, long[] assetEntryPKs)
1420                    throws com.liferay.portal.kernel.exception.SystemException;
1421    
1422            /**
1423            * Removes the association between the asset category and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1424            *
1425            * @param pk the primary key of the asset category
1426            * @param assetEntries the asset entries
1427            * @throws SystemException if a system exception occurred
1428            */
1429            public void removeAssetEntries(long pk,
1430                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
1431                    throws com.liferay.portal.kernel.exception.SystemException;
1432    
1433            /**
1434            * 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.
1435            *
1436            * @param pk the primary key of the asset category to set the associations for
1437            * @param assetEntryPKs the primary keys of the asset entries to be associated with the asset category
1438            * @throws SystemException if a system exception occurred
1439            */
1440            public void setAssetEntries(long pk, long[] assetEntryPKs)
1441                    throws com.liferay.portal.kernel.exception.SystemException;
1442    
1443            /**
1444            * 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.
1445            *
1446            * @param pk the primary key of the asset category to set the associations for
1447            * @param assetEntries the asset entries to be associated with the asset category
1448            * @throws SystemException if a system exception occurred
1449            */
1450            public void setAssetEntries(long pk,
1451                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
1452                    throws com.liferay.portal.kernel.exception.SystemException;
1453    
1454            /**
1455            * Rebuilds the asset categories tree for the scope using the modified pre-order tree traversal algorithm.
1456            *
1457            * <p>
1458            * 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.
1459            * </p>
1460            *
1461            * @param groupId the id of the scope to rebuild the tree for
1462            * @param force whether to force the rebuild even if the tree is not stale
1463            */
1464            public void rebuildTree(long groupId, boolean force)
1465                    throws com.liferay.portal.kernel.exception.SystemException;
1466    
1467            public AssetCategory remove(AssetCategory assetCategory)
1468                    throws SystemException;
1469    }