001    /**
002     * Copyright (c) 2000-2010 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.AssetVocabulary;
020    
021    /**
022     * The persistence interface for the asset vocabulary service.
023     *
024     * <p>
025     * Never modify or reference this interface directly. Always use {@link AssetVocabularyUtil} to access the asset vocabulary persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
026     * </p>
027     *
028     * <p>
029     * Caching information and settings can be found in <code>portal.properties</code>
030     * </p>
031     *
032     * @author Brian Wing Shun Chan
033     * @see AssetVocabularyPersistenceImpl
034     * @see AssetVocabularyUtil
035     * @generated
036     */
037    public interface AssetVocabularyPersistence extends BasePersistence<AssetVocabulary> {
038            /**
039            * Caches the asset vocabulary in the entity cache if it is enabled.
040            *
041            * @param assetVocabulary the asset vocabulary to cache
042            */
043            public void cacheResult(
044                    com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary);
045    
046            /**
047            * Caches the asset vocabularies in the entity cache if it is enabled.
048            *
049            * @param assetVocabularies the asset vocabularies to cache
050            */
051            public void cacheResult(
052                    java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> assetVocabularies);
053    
054            /**
055            * Creates a new asset vocabulary with the primary key. Does not add the asset vocabulary to the database.
056            *
057            * @param vocabularyId the primary key for the new asset vocabulary
058            * @return the new asset vocabulary
059            */
060            public com.liferay.portlet.asset.model.AssetVocabulary create(
061                    long vocabularyId);
062    
063            /**
064            * Removes the asset vocabulary with the primary key from the database. Also notifies the appropriate model listeners.
065            *
066            * @param vocabularyId the primary key of the asset vocabulary to remove
067            * @return the asset vocabulary that was removed
068            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found
069            * @throws SystemException if a system exception occurred
070            */
071            public com.liferay.portlet.asset.model.AssetVocabulary remove(
072                    long vocabularyId)
073                    throws com.liferay.portal.kernel.exception.SystemException,
074                            com.liferay.portlet.asset.NoSuchVocabularyException;
075    
076            public com.liferay.portlet.asset.model.AssetVocabulary updateImpl(
077                    com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary,
078                    boolean merge)
079                    throws com.liferay.portal.kernel.exception.SystemException;
080    
081            /**
082            * Finds the asset vocabulary with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchVocabularyException} if it could not be found.
083            *
084            * @param vocabularyId the primary key of the asset vocabulary to find
085            * @return the asset vocabulary
086            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found
087            * @throws SystemException if a system exception occurred
088            */
089            public com.liferay.portlet.asset.model.AssetVocabulary findByPrimaryKey(
090                    long vocabularyId)
091                    throws com.liferay.portal.kernel.exception.SystemException,
092                            com.liferay.portlet.asset.NoSuchVocabularyException;
093    
094            /**
095            * Finds the asset vocabulary with the primary key or returns <code>null</code> if it could not be found.
096            *
097            * @param vocabularyId the primary key of the asset vocabulary to find
098            * @return the asset vocabulary, or <code>null</code> if a asset vocabulary with the primary key could not be found
099            * @throws SystemException if a system exception occurred
100            */
101            public com.liferay.portlet.asset.model.AssetVocabulary fetchByPrimaryKey(
102                    long vocabularyId)
103                    throws com.liferay.portal.kernel.exception.SystemException;
104    
105            /**
106            * Finds all the asset vocabularies where uuid = &#63;.
107            *
108            * @param uuid the uuid to search with
109            * @return the matching asset vocabularies
110            * @throws SystemException if a system exception occurred
111            */
112            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByUuid(
113                    java.lang.String uuid)
114                    throws com.liferay.portal.kernel.exception.SystemException;
115    
116            /**
117            * Finds a range of all the asset vocabularies where uuid = &#63;.
118            *
119            * <p>
120            * 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.
121            * </p>
122            *
123            * @param uuid the uuid to search with
124            * @param start the lower bound of the range of asset vocabularies to return
125            * @param end the upper bound of the range of asset vocabularies to return (not inclusive)
126            * @return the range of matching asset vocabularies
127            * @throws SystemException if a system exception occurred
128            */
129            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByUuid(
130                    java.lang.String uuid, int start, int end)
131                    throws com.liferay.portal.kernel.exception.SystemException;
132    
133            /**
134            * Finds an ordered range of all the asset vocabularies where uuid = &#63;.
135            *
136            * <p>
137            * 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.
138            * </p>
139            *
140            * @param uuid the uuid to search with
141            * @param start the lower bound of the range of asset vocabularies to return
142            * @param end the upper bound of the range of asset vocabularies to return (not inclusive)
143            * @param orderByComparator the comparator to order the results by
144            * @return the ordered range of matching asset vocabularies
145            * @throws SystemException if a system exception occurred
146            */
147            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByUuid(
148                    java.lang.String uuid, int start, int end,
149                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150                    throws com.liferay.portal.kernel.exception.SystemException;
151    
152            /**
153            * Finds the first asset vocabulary in the ordered set where uuid = &#63;.
154            *
155            * <p>
156            * 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.
157            * </p>
158            *
159            * @param uuid the uuid to search with
160            * @param orderByComparator the comparator to order the set by
161            * @return the first matching asset vocabulary
162            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
163            * @throws SystemException if a system exception occurred
164            */
165            public com.liferay.portlet.asset.model.AssetVocabulary findByUuid_First(
166                    java.lang.String uuid,
167                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
168                    throws com.liferay.portal.kernel.exception.SystemException,
169                            com.liferay.portlet.asset.NoSuchVocabularyException;
170    
171            /**
172            * Finds the last asset vocabulary in the ordered set where uuid = &#63;.
173            *
174            * <p>
175            * 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.
176            * </p>
177            *
178            * @param uuid the uuid to search with
179            * @param orderByComparator the comparator to order the set by
180            * @return the last matching asset vocabulary
181            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
182            * @throws SystemException if a system exception occurred
183            */
184            public com.liferay.portlet.asset.model.AssetVocabulary findByUuid_Last(
185                    java.lang.String uuid,
186                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
187                    throws com.liferay.portal.kernel.exception.SystemException,
188                            com.liferay.portlet.asset.NoSuchVocabularyException;
189    
190            /**
191            * Finds the asset vocabularies before and after the current asset vocabulary in the ordered set where uuid = &#63;.
192            *
193            * <p>
194            * 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.
195            * </p>
196            *
197            * @param vocabularyId the primary key of the current asset vocabulary
198            * @param uuid the uuid to search with
199            * @param orderByComparator the comparator to order the set by
200            * @return the previous, current, and next asset vocabulary
201            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found
202            * @throws SystemException if a system exception occurred
203            */
204            public com.liferay.portlet.asset.model.AssetVocabulary[] findByUuid_PrevAndNext(
205                    long vocabularyId, java.lang.String uuid,
206                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
207                    throws com.liferay.portal.kernel.exception.SystemException,
208                            com.liferay.portlet.asset.NoSuchVocabularyException;
209    
210            /**
211            * Finds the asset vocabulary where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portlet.asset.NoSuchVocabularyException} if it could not be found.
212            *
213            * @param uuid the uuid to search with
214            * @param groupId the group id to search with
215            * @return the matching asset vocabulary
216            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
217            * @throws SystemException if a system exception occurred
218            */
219            public com.liferay.portlet.asset.model.AssetVocabulary findByUUID_G(
220                    java.lang.String uuid, long groupId)
221                    throws com.liferay.portal.kernel.exception.SystemException,
222                            com.liferay.portlet.asset.NoSuchVocabularyException;
223    
224            /**
225            * Finds the asset vocabulary where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
226            *
227            * @param uuid the uuid to search with
228            * @param groupId the group id to search with
229            * @return the matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
230            * @throws SystemException if a system exception occurred
231            */
232            public com.liferay.portlet.asset.model.AssetVocabulary fetchByUUID_G(
233                    java.lang.String uuid, long groupId)
234                    throws com.liferay.portal.kernel.exception.SystemException;
235    
236            /**
237            * Finds the asset vocabulary where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
238            *
239            * @param uuid the uuid to search with
240            * @param groupId the group id to search with
241            * @return the matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
242            * @throws SystemException if a system exception occurred
243            */
244            public com.liferay.portlet.asset.model.AssetVocabulary fetchByUUID_G(
245                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
246                    throws com.liferay.portal.kernel.exception.SystemException;
247    
248            /**
249            * Finds all the asset vocabularies where groupId = &#63;.
250            *
251            * @param groupId the group id to search with
252            * @return the matching asset vocabularies
253            * @throws SystemException if a system exception occurred
254            */
255            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByGroupId(
256                    long groupId)
257                    throws com.liferay.portal.kernel.exception.SystemException;
258    
259            /**
260            * Finds a range of all the asset vocabularies where groupId = &#63;.
261            *
262            * <p>
263            * 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.
264            * </p>
265            *
266            * @param groupId the group id to search with
267            * @param start the lower bound of the range of asset vocabularies to return
268            * @param end the upper bound of the range of asset vocabularies to return (not inclusive)
269            * @return the range of matching asset vocabularies
270            * @throws SystemException if a system exception occurred
271            */
272            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByGroupId(
273                    long groupId, int start, int end)
274                    throws com.liferay.portal.kernel.exception.SystemException;
275    
276            /**
277            * Finds an ordered range of all the asset vocabularies where groupId = &#63;.
278            *
279            * <p>
280            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
281            * </p>
282            *
283            * @param groupId the group id to search with
284            * @param start the lower bound of the range of asset vocabularies to return
285            * @param end the upper bound of the range of asset vocabularies to return (not inclusive)
286            * @param orderByComparator the comparator to order the results by
287            * @return the ordered range of matching asset vocabularies
288            * @throws SystemException if a system exception occurred
289            */
290            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByGroupId(
291                    long groupId, int start, int end,
292                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
293                    throws com.liferay.portal.kernel.exception.SystemException;
294    
295            /**
296            * Finds the first asset vocabulary in the ordered set where groupId = &#63;.
297            *
298            * <p>
299            * 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.
300            * </p>
301            *
302            * @param groupId the group id to search with
303            * @param orderByComparator the comparator to order the set by
304            * @return the first matching asset vocabulary
305            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
306            * @throws SystemException if a system exception occurred
307            */
308            public com.liferay.portlet.asset.model.AssetVocabulary findByGroupId_First(
309                    long groupId,
310                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
311                    throws com.liferay.portal.kernel.exception.SystemException,
312                            com.liferay.portlet.asset.NoSuchVocabularyException;
313    
314            /**
315            * Finds the last asset vocabulary in the ordered set where groupId = &#63;.
316            *
317            * <p>
318            * 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.
319            * </p>
320            *
321            * @param groupId the group id to search with
322            * @param orderByComparator the comparator to order the set by
323            * @return the last matching asset vocabulary
324            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
325            * @throws SystemException if a system exception occurred
326            */
327            public com.liferay.portlet.asset.model.AssetVocabulary findByGroupId_Last(
328                    long groupId,
329                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
330                    throws com.liferay.portal.kernel.exception.SystemException,
331                            com.liferay.portlet.asset.NoSuchVocabularyException;
332    
333            /**
334            * Finds the asset vocabularies before and after the current asset vocabulary in the ordered set where groupId = &#63;.
335            *
336            * <p>
337            * 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.
338            * </p>
339            *
340            * @param vocabularyId the primary key of the current asset vocabulary
341            * @param groupId the group id to search with
342            * @param orderByComparator the comparator to order the set by
343            * @return the previous, current, and next asset vocabulary
344            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found
345            * @throws SystemException if a system exception occurred
346            */
347            public com.liferay.portlet.asset.model.AssetVocabulary[] findByGroupId_PrevAndNext(
348                    long vocabularyId, long groupId,
349                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
350                    throws com.liferay.portal.kernel.exception.SystemException,
351                            com.liferay.portlet.asset.NoSuchVocabularyException;
352    
353            /**
354            * Filters by the user's permissions and finds all the asset vocabularies where groupId = &#63;.
355            *
356            * @param groupId the group id to search with
357            * @return the matching asset vocabularies that the user has permission to view
358            * @throws SystemException if a system exception occurred
359            */
360            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> filterFindByGroupId(
361                    long groupId)
362                    throws com.liferay.portal.kernel.exception.SystemException;
363    
364            /**
365            * Filters by the user's permissions and finds a range of all the asset vocabularies where groupId = &#63;.
366            *
367            * <p>
368            * 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.
369            * </p>
370            *
371            * @param groupId the group id to search with
372            * @param start the lower bound of the range of asset vocabularies to return
373            * @param end the upper bound of the range of asset vocabularies to return (not inclusive)
374            * @return the range of matching asset vocabularies that the user has permission to view
375            * @throws SystemException if a system exception occurred
376            */
377            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> filterFindByGroupId(
378                    long groupId, int start, int end)
379                    throws com.liferay.portal.kernel.exception.SystemException;
380    
381            /**
382            * Filters by the user's permissions and finds an ordered range of all the asset vocabularies where groupId = &#63;.
383            *
384            * <p>
385            * 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.
386            * </p>
387            *
388            * @param groupId the group id to search with
389            * @param start the lower bound of the range of asset vocabularies to return
390            * @param end the upper bound of the range of asset vocabularies to return (not inclusive)
391            * @param orderByComparator the comparator to order the results by
392            * @return the ordered range of matching asset vocabularies that the user has permission to view
393            * @throws SystemException if a system exception occurred
394            */
395            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> filterFindByGroupId(
396                    long groupId, int start, int end,
397                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
398                    throws com.liferay.portal.kernel.exception.SystemException;
399    
400            /**
401            * Finds all the asset vocabularies where companyId = &#63;.
402            *
403            * @param companyId the company id to search with
404            * @return the matching asset vocabularies
405            * @throws SystemException if a system exception occurred
406            */
407            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId(
408                    long companyId)
409                    throws com.liferay.portal.kernel.exception.SystemException;
410    
411            /**
412            * Finds a range of all the asset vocabularies where companyId = &#63;.
413            *
414            * <p>
415            * 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.
416            * </p>
417            *
418            * @param companyId the company id to search with
419            * @param start the lower bound of the range of asset vocabularies to return
420            * @param end the upper bound of the range of asset vocabularies to return (not inclusive)
421            * @return the range of matching asset vocabularies
422            * @throws SystemException if a system exception occurred
423            */
424            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId(
425                    long companyId, int start, int end)
426                    throws com.liferay.portal.kernel.exception.SystemException;
427    
428            /**
429            * Finds an ordered range of all the asset vocabularies where companyId = &#63;.
430            *
431            * <p>
432            * 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.
433            * </p>
434            *
435            * @param companyId the company id to search with
436            * @param start the lower bound of the range of asset vocabularies to return
437            * @param end the upper bound of the range of asset vocabularies to return (not inclusive)
438            * @param orderByComparator the comparator to order the results by
439            * @return the ordered range of matching asset vocabularies
440            * @throws SystemException if a system exception occurred
441            */
442            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId(
443                    long companyId, int start, int end,
444                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
445                    throws com.liferay.portal.kernel.exception.SystemException;
446    
447            /**
448            * Finds the first asset vocabulary in the ordered set where companyId = &#63;.
449            *
450            * <p>
451            * 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.
452            * </p>
453            *
454            * @param companyId the company id to search with
455            * @param orderByComparator the comparator to order the set by
456            * @return the first matching asset vocabulary
457            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
458            * @throws SystemException if a system exception occurred
459            */
460            public com.liferay.portlet.asset.model.AssetVocabulary findByCompanyId_First(
461                    long companyId,
462                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
463                    throws com.liferay.portal.kernel.exception.SystemException,
464                            com.liferay.portlet.asset.NoSuchVocabularyException;
465    
466            /**
467            * Finds the last asset vocabulary in the ordered set where companyId = &#63;.
468            *
469            * <p>
470            * 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.
471            * </p>
472            *
473            * @param companyId the company id to search with
474            * @param orderByComparator the comparator to order the set by
475            * @return the last matching asset vocabulary
476            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
477            * @throws SystemException if a system exception occurred
478            */
479            public com.liferay.portlet.asset.model.AssetVocabulary findByCompanyId_Last(
480                    long companyId,
481                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
482                    throws com.liferay.portal.kernel.exception.SystemException,
483                            com.liferay.portlet.asset.NoSuchVocabularyException;
484    
485            /**
486            * Finds the asset vocabularies before and after the current asset vocabulary in the ordered set where companyId = &#63;.
487            *
488            * <p>
489            * 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.
490            * </p>
491            *
492            * @param vocabularyId the primary key of the current asset vocabulary
493            * @param companyId the company id to search with
494            * @param orderByComparator the comparator to order the set by
495            * @return the previous, current, and next asset vocabulary
496            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found
497            * @throws SystemException if a system exception occurred
498            */
499            public com.liferay.portlet.asset.model.AssetVocabulary[] findByCompanyId_PrevAndNext(
500                    long vocabularyId, long companyId,
501                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
502                    throws com.liferay.portal.kernel.exception.SystemException,
503                            com.liferay.portlet.asset.NoSuchVocabularyException;
504    
505            /**
506            * Finds the asset vocabulary where groupId = &#63; and name = &#63; or throws a {@link com.liferay.portlet.asset.NoSuchVocabularyException} if it could not be found.
507            *
508            * @param groupId the group id to search with
509            * @param name the name to search with
510            * @return the matching asset vocabulary
511            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
512            * @throws SystemException if a system exception occurred
513            */
514            public com.liferay.portlet.asset.model.AssetVocabulary findByG_N(
515                    long groupId, java.lang.String name)
516                    throws com.liferay.portal.kernel.exception.SystemException,
517                            com.liferay.portlet.asset.NoSuchVocabularyException;
518    
519            /**
520            * Finds the asset vocabulary where groupId = &#63; and name = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
521            *
522            * @param groupId the group id to search with
523            * @param name the name to search with
524            * @return the matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
525            * @throws SystemException if a system exception occurred
526            */
527            public com.liferay.portlet.asset.model.AssetVocabulary fetchByG_N(
528                    long groupId, java.lang.String name)
529                    throws com.liferay.portal.kernel.exception.SystemException;
530    
531            /**
532            * Finds the asset vocabulary where groupId = &#63; and name = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
533            *
534            * @param groupId the group id to search with
535            * @param name the name to search with
536            * @return the matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
537            * @throws SystemException if a system exception occurred
538            */
539            public com.liferay.portlet.asset.model.AssetVocabulary fetchByG_N(
540                    long groupId, java.lang.String name, boolean retrieveFromCache)
541                    throws com.liferay.portal.kernel.exception.SystemException;
542    
543            /**
544            * Finds all the asset vocabularies.
545            *
546            * @return the asset vocabularies
547            * @throws SystemException if a system exception occurred
548            */
549            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll()
550                    throws com.liferay.portal.kernel.exception.SystemException;
551    
552            /**
553            * Finds a range of all the asset vocabularies.
554            *
555            * <p>
556            * 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.
557            * </p>
558            *
559            * @param start the lower bound of the range of asset vocabularies to return
560            * @param end the upper bound of the range of asset vocabularies to return (not inclusive)
561            * @return the range of asset vocabularies
562            * @throws SystemException if a system exception occurred
563            */
564            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll(
565                    int start, int end)
566                    throws com.liferay.portal.kernel.exception.SystemException;
567    
568            /**
569            * Finds an ordered range of all the asset vocabularies.
570            *
571            * <p>
572            * 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.
573            * </p>
574            *
575            * @param start the lower bound of the range of asset vocabularies to return
576            * @param end the upper bound of the range of asset vocabularies to return (not inclusive)
577            * @param orderByComparator the comparator to order the results by
578            * @return the ordered range of asset vocabularies
579            * @throws SystemException if a system exception occurred
580            */
581            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll(
582                    int start, int end,
583                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
584                    throws com.liferay.portal.kernel.exception.SystemException;
585    
586            /**
587            * Removes all the asset vocabularies where uuid = &#63; from the database.
588            *
589            * @param uuid the uuid to search with
590            * @throws SystemException if a system exception occurred
591            */
592            public void removeByUuid(java.lang.String uuid)
593                    throws com.liferay.portal.kernel.exception.SystemException;
594    
595            /**
596            * Removes the asset vocabulary where uuid = &#63; and groupId = &#63; from the database.
597            *
598            * @param uuid the uuid to search with
599            * @param groupId the group id to search with
600            * @throws SystemException if a system exception occurred
601            */
602            public void removeByUUID_G(java.lang.String uuid, long groupId)
603                    throws com.liferay.portal.kernel.exception.SystemException,
604                            com.liferay.portlet.asset.NoSuchVocabularyException;
605    
606            /**
607            * Removes all the asset vocabularies where groupId = &#63; from the database.
608            *
609            * @param groupId the group id to search with
610            * @throws SystemException if a system exception occurred
611            */
612            public void removeByGroupId(long groupId)
613                    throws com.liferay.portal.kernel.exception.SystemException;
614    
615            /**
616            * Removes all the asset vocabularies where companyId = &#63; from the database.
617            *
618            * @param companyId the company id to search with
619            * @throws SystemException if a system exception occurred
620            */
621            public void removeByCompanyId(long companyId)
622                    throws com.liferay.portal.kernel.exception.SystemException;
623    
624            /**
625            * Removes the asset vocabulary where groupId = &#63; and name = &#63; from the database.
626            *
627            * @param groupId the group id to search with
628            * @param name the name to search with
629            * @throws SystemException if a system exception occurred
630            */
631            public void removeByG_N(long groupId, java.lang.String name)
632                    throws com.liferay.portal.kernel.exception.SystemException,
633                            com.liferay.portlet.asset.NoSuchVocabularyException;
634    
635            /**
636            * Removes all the asset vocabularies from the database.
637            *
638            * @throws SystemException if a system exception occurred
639            */
640            public void removeAll()
641                    throws com.liferay.portal.kernel.exception.SystemException;
642    
643            /**
644            * Counts all the asset vocabularies where uuid = &#63;.
645            *
646            * @param uuid the uuid to search with
647            * @return the number of matching asset vocabularies
648            * @throws SystemException if a system exception occurred
649            */
650            public int countByUuid(java.lang.String uuid)
651                    throws com.liferay.portal.kernel.exception.SystemException;
652    
653            /**
654            * Counts all the asset vocabularies where uuid = &#63; and groupId = &#63;.
655            *
656            * @param uuid the uuid to search with
657            * @param groupId the group id to search with
658            * @return the number of matching asset vocabularies
659            * @throws SystemException if a system exception occurred
660            */
661            public int countByUUID_G(java.lang.String uuid, long groupId)
662                    throws com.liferay.portal.kernel.exception.SystemException;
663    
664            /**
665            * Counts all the asset vocabularies where groupId = &#63;.
666            *
667            * @param groupId the group id to search with
668            * @return the number of matching asset vocabularies
669            * @throws SystemException if a system exception occurred
670            */
671            public int countByGroupId(long groupId)
672                    throws com.liferay.portal.kernel.exception.SystemException;
673    
674            /**
675            * Filters by the user's permissions and counts all the asset vocabularies where groupId = &#63;.
676            *
677            * @param groupId the group id to search with
678            * @return the number of matching asset vocabularies that the user has permission to view
679            * @throws SystemException if a system exception occurred
680            */
681            public int filterCountByGroupId(long groupId)
682                    throws com.liferay.portal.kernel.exception.SystemException;
683    
684            /**
685            * Counts all the asset vocabularies where companyId = &#63;.
686            *
687            * @param companyId the company id to search with
688            * @return the number of matching asset vocabularies
689            * @throws SystemException if a system exception occurred
690            */
691            public int countByCompanyId(long companyId)
692                    throws com.liferay.portal.kernel.exception.SystemException;
693    
694            /**
695            * Counts all the asset vocabularies where groupId = &#63; and name = &#63;.
696            *
697            * @param groupId the group id to search with
698            * @param name the name to search with
699            * @return the number of matching asset vocabularies
700            * @throws SystemException if a system exception occurred
701            */
702            public int countByG_N(long groupId, java.lang.String name)
703                    throws com.liferay.portal.kernel.exception.SystemException;
704    
705            /**
706            * Filters by the user's permissions and counts all the asset vocabularies where groupId = &#63; and name = &#63;.
707            *
708            * @param groupId the group id to search with
709            * @param name the name to search with
710            * @return the number of matching asset vocabularies that the user has permission to view
711            * @throws SystemException if a system exception occurred
712            */
713            public int filterCountByG_N(long groupId, java.lang.String name)
714                    throws com.liferay.portal.kernel.exception.SystemException;
715    
716            /**
717            * Counts all the asset vocabularies.
718            *
719            * @return the number of asset vocabularies
720            * @throws SystemException if a system exception occurred
721            */
722            public int countAll()
723                    throws com.liferay.portal.kernel.exception.SystemException;
724    }