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