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