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