001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.asset.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.asset.model.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            * <p>
158            * 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.
159            * </p>
160            *
161            * @param uuid the uuid
162            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
163            * @return the first matching asset vocabulary
164            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
165            * @throws SystemException if a system exception occurred
166            */
167            public com.liferay.portlet.asset.model.AssetVocabulary findByUuid_First(
168                    java.lang.String uuid,
169                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
170                    throws com.liferay.portal.kernel.exception.SystemException,
171                            com.liferay.portlet.asset.NoSuchVocabularyException;
172    
173            /**
174            * Returns the last asset vocabulary in the ordered set where uuid = &#63;.
175            *
176            * <p>
177            * 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.
178            * </p>
179            *
180            * @param uuid the uuid
181            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
182            * @return the last matching asset vocabulary
183            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
184            * @throws SystemException if a system exception occurred
185            */
186            public com.liferay.portlet.asset.model.AssetVocabulary findByUuid_Last(
187                    java.lang.String uuid,
188                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
189                    throws com.liferay.portal.kernel.exception.SystemException,
190                            com.liferay.portlet.asset.NoSuchVocabularyException;
191    
192            /**
193            * Returns the asset vocabularies before and after the current asset vocabulary in the ordered set where uuid = &#63;.
194            *
195            * <p>
196            * 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.
197            * </p>
198            *
199            * @param vocabularyId the primary key of the current asset vocabulary
200            * @param uuid the uuid
201            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
202            * @return the previous, current, and next asset vocabulary
203            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found
204            * @throws SystemException if a system exception occurred
205            */
206            public com.liferay.portlet.asset.model.AssetVocabulary[] findByUuid_PrevAndNext(
207                    long vocabularyId, java.lang.String uuid,
208                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
209                    throws com.liferay.portal.kernel.exception.SystemException,
210                            com.liferay.portlet.asset.NoSuchVocabularyException;
211    
212            /**
213            * 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.
214            *
215            * @param uuid the uuid
216            * @param groupId the group ID
217            * @return the matching asset vocabulary
218            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
219            * @throws SystemException if a system exception occurred
220            */
221            public com.liferay.portlet.asset.model.AssetVocabulary findByUUID_G(
222                    java.lang.String uuid, long groupId)
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 returns <code>null</code> if it could not be found. Uses the finder cache.
228            *
229            * @param uuid the uuid
230            * @param groupId the group ID
231            * @return the matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
232            * @throws SystemException if a system exception occurred
233            */
234            public com.liferay.portlet.asset.model.AssetVocabulary fetchByUUID_G(
235                    java.lang.String uuid, long groupId)
236                    throws com.liferay.portal.kernel.exception.SystemException;
237    
238            /**
239            * 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.
240            *
241            * @param uuid the uuid
242            * @param groupId the group ID
243            * @param retrieveFromCache whether to use the finder cache
244            * @return the matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
245            * @throws SystemException if a system exception occurred
246            */
247            public com.liferay.portlet.asset.model.AssetVocabulary fetchByUUID_G(
248                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
249                    throws com.liferay.portal.kernel.exception.SystemException;
250    
251            /**
252            * Returns all the asset vocabularies where groupId = &#63;.
253            *
254            * @param groupId the group ID
255            * @return the matching asset vocabularies
256            * @throws SystemException if a system exception occurred
257            */
258            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByGroupId(
259                    long groupId)
260                    throws com.liferay.portal.kernel.exception.SystemException;
261    
262            /**
263            * Returns a range of all the asset vocabularies where groupId = &#63;.
264            *
265            * <p>
266            * 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.
267            * </p>
268            *
269            * @param groupId the group ID
270            * @param start the lower bound of the range of asset vocabularies
271            * @param end the upper bound of the range of asset vocabularies (not inclusive)
272            * @return the range of matching asset vocabularies
273            * @throws SystemException if a system exception occurred
274            */
275            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByGroupId(
276                    long groupId, int start, int end)
277                    throws com.liferay.portal.kernel.exception.SystemException;
278    
279            /**
280            * Returns an ordered range of all the asset vocabularies where groupId = &#63;.
281            *
282            * <p>
283            * 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.
284            * </p>
285            *
286            * @param groupId the group ID
287            * @param start the lower bound of the range of asset vocabularies
288            * @param end the upper bound of the range of asset vocabularies (not inclusive)
289            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
290            * @return the ordered range of matching asset vocabularies
291            * @throws SystemException if a system exception occurred
292            */
293            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByGroupId(
294                    long groupId, int start, int end,
295                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
296                    throws com.liferay.portal.kernel.exception.SystemException;
297    
298            /**
299            * Returns the first asset vocabulary in the ordered set where groupId = &#63;.
300            *
301            * <p>
302            * 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.
303            * </p>
304            *
305            * @param groupId the group ID
306            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
307            * @return the first matching asset vocabulary
308            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
309            * @throws SystemException if a system exception occurred
310            */
311            public com.liferay.portlet.asset.model.AssetVocabulary findByGroupId_First(
312                    long groupId,
313                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
314                    throws com.liferay.portal.kernel.exception.SystemException,
315                            com.liferay.portlet.asset.NoSuchVocabularyException;
316    
317            /**
318            * Returns the last asset vocabulary in the ordered set where groupId = &#63;.
319            *
320            * <p>
321            * 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.
322            * </p>
323            *
324            * @param groupId the group ID
325            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
326            * @return the last matching asset vocabulary
327            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
328            * @throws SystemException if a system exception occurred
329            */
330            public com.liferay.portlet.asset.model.AssetVocabulary findByGroupId_Last(
331                    long groupId,
332                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
333                    throws com.liferay.portal.kernel.exception.SystemException,
334                            com.liferay.portlet.asset.NoSuchVocabularyException;
335    
336            /**
337            * Returns the asset vocabularies before and after the current asset vocabulary in the ordered set where groupId = &#63;.
338            *
339            * <p>
340            * 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.
341            * </p>
342            *
343            * @param vocabularyId the primary key of the current asset vocabulary
344            * @param groupId the group ID
345            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
346            * @return the previous, current, and next asset vocabulary
347            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found
348            * @throws SystemException if a system exception occurred
349            */
350            public com.liferay.portlet.asset.model.AssetVocabulary[] findByGroupId_PrevAndNext(
351                    long vocabularyId, long groupId,
352                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
353                    throws com.liferay.portal.kernel.exception.SystemException,
354                            com.liferay.portlet.asset.NoSuchVocabularyException;
355    
356            /**
357            * Returns all the asset vocabularies that the user has permission to view where groupId = &#63;.
358            *
359            * @param groupId the group ID
360            * @return the matching asset vocabularies that the user has permission to view
361            * @throws SystemException if a system exception occurred
362            */
363            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> filterFindByGroupId(
364                    long groupId)
365                    throws com.liferay.portal.kernel.exception.SystemException;
366    
367            /**
368            * Returns a range of all the asset vocabularies that the user has permission to view where groupId = &#63;.
369            *
370            * <p>
371            * 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.
372            * </p>
373            *
374            * @param groupId the group ID
375            * @param start the lower bound of the range of asset vocabularies
376            * @param end the upper bound of the range of asset vocabularies (not inclusive)
377            * @return the range of matching asset vocabularies that the user has permission to view
378            * @throws SystemException if a system exception occurred
379            */
380            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> filterFindByGroupId(
381                    long groupId, int start, int end)
382                    throws com.liferay.portal.kernel.exception.SystemException;
383    
384            /**
385            * Returns an ordered range of all the asset vocabularies that the user has permissions to view where groupId = &#63;.
386            *
387            * <p>
388            * 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.
389            * </p>
390            *
391            * @param groupId the group ID
392            * @param start the lower bound of the range of asset vocabularies
393            * @param end the upper bound of the range of asset vocabularies (not inclusive)
394            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
395            * @return the ordered range of matching asset vocabularies that the user has permission to view
396            * @throws SystemException if a system exception occurred
397            */
398            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> filterFindByGroupId(
399                    long groupId, int start, int end,
400                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
401                    throws com.liferay.portal.kernel.exception.SystemException;
402    
403            /**
404            * 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;.
405            *
406            * @param vocabularyId the primary key of the current asset vocabulary
407            * @param groupId the group ID
408            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
409            * @return the previous, current, and next asset vocabulary
410            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found
411            * @throws SystemException if a system exception occurred
412            */
413            public com.liferay.portlet.asset.model.AssetVocabulary[] filterFindByGroupId_PrevAndNext(
414                    long vocabularyId, long groupId,
415                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
416                    throws com.liferay.portal.kernel.exception.SystemException,
417                            com.liferay.portlet.asset.NoSuchVocabularyException;
418    
419            /**
420            * Returns all the asset vocabularies where companyId = &#63;.
421            *
422            * @param companyId the company ID
423            * @return the matching asset vocabularies
424            * @throws SystemException if a system exception occurred
425            */
426            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId(
427                    long companyId)
428                    throws com.liferay.portal.kernel.exception.SystemException;
429    
430            /**
431            * Returns a range of all the asset vocabularies where companyId = &#63;.
432            *
433            * <p>
434            * 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.
435            * </p>
436            *
437            * @param companyId the company ID
438            * @param start the lower bound of the range of asset vocabularies
439            * @param end the upper bound of the range of asset vocabularies (not inclusive)
440            * @return the range of matching asset vocabularies
441            * @throws SystemException if a system exception occurred
442            */
443            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId(
444                    long companyId, int start, int end)
445                    throws com.liferay.portal.kernel.exception.SystemException;
446    
447            /**
448            * Returns an ordered range of all the asset vocabularies where companyId = &#63;.
449            *
450            * <p>
451            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
452            * </p>
453            *
454            * @param companyId the company ID
455            * @param start the lower bound of the range of asset vocabularies
456            * @param end the upper bound of the range of asset vocabularies (not inclusive)
457            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
458            * @return the ordered range of matching asset vocabularies
459            * @throws SystemException if a system exception occurred
460            */
461            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId(
462                    long companyId, int start, int end,
463                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
464                    throws com.liferay.portal.kernel.exception.SystemException;
465    
466            /**
467            * Returns the first asset vocabulary in the ordered set where companyId = &#63;.
468            *
469            * <p>
470            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
471            * </p>
472            *
473            * @param companyId the company ID
474            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
475            * @return the first matching asset vocabulary
476            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
477            * @throws SystemException if a system exception occurred
478            */
479            public com.liferay.portlet.asset.model.AssetVocabulary findByCompanyId_First(
480                    long companyId,
481                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
482                    throws com.liferay.portal.kernel.exception.SystemException,
483                            com.liferay.portlet.asset.NoSuchVocabularyException;
484    
485            /**
486            * Returns the last asset vocabulary in the ordered set where companyId = &#63;.
487            *
488            * <p>
489            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
490            * </p>
491            *
492            * @param companyId the company ID
493            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
494            * @return the last matching asset vocabulary
495            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
496            * @throws SystemException if a system exception occurred
497            */
498            public com.liferay.portlet.asset.model.AssetVocabulary findByCompanyId_Last(
499                    long companyId,
500                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
501                    throws com.liferay.portal.kernel.exception.SystemException,
502                            com.liferay.portlet.asset.NoSuchVocabularyException;
503    
504            /**
505            * Returns the asset vocabularies before and after the current asset vocabulary in the ordered set where companyId = &#63;.
506            *
507            * <p>
508            * 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.
509            * </p>
510            *
511            * @param vocabularyId the primary key of the current asset vocabulary
512            * @param companyId the company ID
513            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
514            * @return the previous, current, and next asset vocabulary
515            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found
516            * @throws SystemException if a system exception occurred
517            */
518            public com.liferay.portlet.asset.model.AssetVocabulary[] findByCompanyId_PrevAndNext(
519                    long vocabularyId, long companyId,
520                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
521                    throws com.liferay.portal.kernel.exception.SystemException,
522                            com.liferay.portlet.asset.NoSuchVocabularyException;
523    
524            /**
525            * 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.
526            *
527            * @param groupId the group ID
528            * @param name the name
529            * @return the matching asset vocabulary
530            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
531            * @throws SystemException if a system exception occurred
532            */
533            public com.liferay.portlet.asset.model.AssetVocabulary findByG_N(
534                    long groupId, java.lang.String name)
535                    throws com.liferay.portal.kernel.exception.SystemException,
536                            com.liferay.portlet.asset.NoSuchVocabularyException;
537    
538            /**
539            * 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.
540            *
541            * @param groupId the group ID
542            * @param name the name
543            * @return the matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
544            * @throws SystemException if a system exception occurred
545            */
546            public com.liferay.portlet.asset.model.AssetVocabulary fetchByG_N(
547                    long groupId, java.lang.String name)
548                    throws com.liferay.portal.kernel.exception.SystemException;
549    
550            /**
551            * 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.
552            *
553            * @param groupId the group ID
554            * @param name the name
555            * @param retrieveFromCache whether to use the finder cache
556            * @return the matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
557            * @throws SystemException if a system exception occurred
558            */
559            public com.liferay.portlet.asset.model.AssetVocabulary fetchByG_N(
560                    long groupId, java.lang.String name, boolean retrieveFromCache)
561                    throws com.liferay.portal.kernel.exception.SystemException;
562    
563            /**
564            * Returns all the asset vocabularies.
565            *
566            * @return the asset vocabularies
567            * @throws SystemException if a system exception occurred
568            */
569            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll()
570                    throws com.liferay.portal.kernel.exception.SystemException;
571    
572            /**
573            * Returns a range of all the asset vocabularies.
574            *
575            * <p>
576            * 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.
577            * </p>
578            *
579            * @param start the lower bound of the range of asset vocabularies
580            * @param end the upper bound of the range of asset vocabularies (not inclusive)
581            * @return the range of asset vocabularies
582            * @throws SystemException if a system exception occurred
583            */
584            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll(
585                    int start, int end)
586                    throws com.liferay.portal.kernel.exception.SystemException;
587    
588            /**
589            * Returns an ordered range of all the asset vocabularies.
590            *
591            * <p>
592            * 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.
593            * </p>
594            *
595            * @param start the lower bound of the range of asset vocabularies
596            * @param end the upper bound of the range of asset vocabularies (not inclusive)
597            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
598            * @return the ordered range of asset vocabularies
599            * @throws SystemException if a system exception occurred
600            */
601            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll(
602                    int start, int end,
603                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
604                    throws com.liferay.portal.kernel.exception.SystemException;
605    
606            /**
607            * Removes all the asset vocabularies where uuid = &#63; from the database.
608            *
609            * @param uuid the uuid
610            * @throws SystemException if a system exception occurred
611            */
612            public void removeByUuid(java.lang.String uuid)
613                    throws com.liferay.portal.kernel.exception.SystemException;
614    
615            /**
616            * Removes the asset vocabulary where uuid = &#63; and groupId = &#63; from the database.
617            *
618            * @param uuid the uuid
619            * @param groupId the group ID
620            * @throws SystemException if a system exception occurred
621            */
622            public void removeByUUID_G(java.lang.String uuid, long groupId)
623                    throws com.liferay.portal.kernel.exception.SystemException,
624                            com.liferay.portlet.asset.NoSuchVocabularyException;
625    
626            /**
627            * Removes all the asset vocabularies where groupId = &#63; from the database.
628            *
629            * @param groupId the group ID
630            * @throws SystemException if a system exception occurred
631            */
632            public void removeByGroupId(long groupId)
633                    throws com.liferay.portal.kernel.exception.SystemException;
634    
635            /**
636            * Removes all the asset vocabularies where companyId = &#63; from the database.
637            *
638            * @param companyId the company ID
639            * @throws SystemException if a system exception occurred
640            */
641            public void removeByCompanyId(long companyId)
642                    throws com.liferay.portal.kernel.exception.SystemException;
643    
644            /**
645            * Removes the asset vocabulary where groupId = &#63; and name = &#63; from the database.
646            *
647            * @param groupId the group ID
648            * @param name the name
649            * @throws SystemException if a system exception occurred
650            */
651            public void removeByG_N(long groupId, java.lang.String name)
652                    throws com.liferay.portal.kernel.exception.SystemException,
653                            com.liferay.portlet.asset.NoSuchVocabularyException;
654    
655            /**
656            * Removes all the asset vocabularies from the database.
657            *
658            * @throws SystemException if a system exception occurred
659            */
660            public void removeAll()
661                    throws com.liferay.portal.kernel.exception.SystemException;
662    
663            /**
664            * Returns the number of asset vocabularies where uuid = &#63;.
665            *
666            * @param uuid the uuid
667            * @return the number of matching asset vocabularies
668            * @throws SystemException if a system exception occurred
669            */
670            public int countByUuid(java.lang.String uuid)
671                    throws com.liferay.portal.kernel.exception.SystemException;
672    
673            /**
674            * Returns the number of asset vocabularies where uuid = &#63; and groupId = &#63;.
675            *
676            * @param uuid the uuid
677            * @param groupId the group ID
678            * @return the number of matching asset vocabularies
679            * @throws SystemException if a system exception occurred
680            */
681            public int countByUUID_G(java.lang.String uuid, long groupId)
682                    throws com.liferay.portal.kernel.exception.SystemException;
683    
684            /**
685            * Returns the number of asset vocabularies where groupId = &#63;.
686            *
687            * @param groupId the group ID
688            * @return the number of matching asset vocabularies
689            * @throws SystemException if a system exception occurred
690            */
691            public int countByGroupId(long groupId)
692                    throws com.liferay.portal.kernel.exception.SystemException;
693    
694            /**
695            * Returns the number of asset vocabularies that the user has permission to view where groupId = &#63;.
696            *
697            * @param groupId the group ID
698            * @return the number of matching asset vocabularies that the user has permission to view
699            * @throws SystemException if a system exception occurred
700            */
701            public int filterCountByGroupId(long groupId)
702                    throws com.liferay.portal.kernel.exception.SystemException;
703    
704            /**
705            * Returns the number of asset vocabularies where companyId = &#63;.
706            *
707            * @param companyId the company ID
708            * @return the number of matching asset vocabularies
709            * @throws SystemException if a system exception occurred
710            */
711            public int countByCompanyId(long companyId)
712                    throws com.liferay.portal.kernel.exception.SystemException;
713    
714            /**
715            * Returns the number of asset vocabularies where groupId = &#63; and name = &#63;.
716            *
717            * @param groupId the group ID
718            * @param name the name
719            * @return the number of matching asset vocabularies
720            * @throws SystemException if a system exception occurred
721            */
722            public int countByG_N(long groupId, java.lang.String name)
723                    throws com.liferay.portal.kernel.exception.SystemException;
724    
725            /**
726            * Returns the number of asset vocabularies.
727            *
728            * @return the number of asset vocabularies
729            * @throws SystemException if a system exception occurred
730            */
731            public int countAll()
732                    throws com.liferay.portal.kernel.exception.SystemException;
733    }