001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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 to cache
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 to cache
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 to remove
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            * Finds 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 to find
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            * Finds 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 to find
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            * Finds all the asset vocabularies where uuid = &#63;.
110            *
111            * @param uuid the uuid to search with
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            * Finds 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 to search with
127            * @param start the lower bound of the range of asset vocabularies to return
128            * @param end the upper bound of the range of asset vocabularies to return (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            * Finds 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 to search with
144            * @param start the lower bound of the range of asset vocabularies to return
145            * @param end the upper bound of the range of asset vocabularies to return (not inclusive)
146            * @param orderByComparator the comparator to order the results by
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            * Finds 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 to search with
163            * @param orderByComparator the comparator to order the set by
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            * Finds 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 to search with
182            * @param orderByComparator the comparator to order the set by
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            * Finds 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 to search with
202            * @param orderByComparator the comparator to order the set by
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            * Finds the asset vocabulary where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portlet.asset.NoSuchVocabularyException} if it could not be found.
215            *
216            * @param uuid the uuid to search with
217            * @param groupId the group ID to search with
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            * Finds the asset vocabulary where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
229            *
230            * @param uuid the uuid to search with
231            * @param groupId the group ID to search with
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            * Finds the asset vocabulary where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
241            *
242            * @param uuid the uuid to search with
243            * @param groupId the group ID to search with
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            * Finds all the asset vocabularies where groupId = &#63;.
253            *
254            * @param groupId the group ID to search with
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            * Finds 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 to search with
270            * @param start the lower bound of the range of asset vocabularies to return
271            * @param end the upper bound of the range of asset vocabularies to return (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            * Finds 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 to search with
287            * @param start the lower bound of the range of asset vocabularies to return
288            * @param end the upper bound of the range of asset vocabularies to return (not inclusive)
289            * @param orderByComparator the comparator to order the results by
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            * Finds 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 to search with
306            * @param orderByComparator the comparator to order the set by
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            * Finds 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 to search with
325            * @param orderByComparator the comparator to order the set by
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            * Finds 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 to search with
345            * @param orderByComparator the comparator to order the set by
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            * Filters by the user's permissions and finds all the asset vocabularies where groupId = &#63;.
358            *
359            * @param groupId the group ID to search with
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            * Filters by the user's permissions and finds a range of all the asset vocabularies 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 to search with
375            * @param start the lower bound of the range of asset vocabularies to return
376            * @param end the upper bound of the range of asset vocabularies to return (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            * Filters by the user's permissions and finds an ordered range of all the asset vocabularies 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 to search with
392            * @param start the lower bound of the range of asset vocabularies to return
393            * @param end the upper bound of the range of asset vocabularies to return (not inclusive)
394            * @param orderByComparator the comparator to order the results by
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            * Filters the asset vocabularies before and after the current asset vocabulary in the ordered set where groupId = &#63;.
405            *
406            * <p>
407            * 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.
408            * </p>
409            *
410            * @param vocabularyId the primary key of the current asset vocabulary
411            * @param groupId the group ID to search with
412            * @param orderByComparator the comparator to order the set by
413            * @return the previous, current, and next asset vocabulary
414            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found
415            * @throws SystemException if a system exception occurred
416            */
417            public com.liferay.portlet.asset.model.AssetVocabulary[] filterFindByGroupId_PrevAndNext(
418                    long vocabularyId, long groupId,
419                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
420                    throws com.liferay.portal.kernel.exception.SystemException,
421                            com.liferay.portlet.asset.NoSuchVocabularyException;
422    
423            /**
424            * Finds all the asset vocabularies where companyId = &#63;.
425            *
426            * @param companyId the company ID to search with
427            * @return the matching asset vocabularies
428            * @throws SystemException if a system exception occurred
429            */
430            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId(
431                    long companyId)
432                    throws com.liferay.portal.kernel.exception.SystemException;
433    
434            /**
435            * Finds a range of all the asset vocabularies where companyId = &#63;.
436            *
437            * <p>
438            * 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.
439            * </p>
440            *
441            * @param companyId the company ID to search with
442            * @param start the lower bound of the range of asset vocabularies to return
443            * @param end the upper bound of the range of asset vocabularies to return (not inclusive)
444            * @return the range of matching asset vocabularies
445            * @throws SystemException if a system exception occurred
446            */
447            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId(
448                    long companyId, int start, int end)
449                    throws com.liferay.portal.kernel.exception.SystemException;
450    
451            /**
452            * Finds an ordered range of all the asset vocabularies where companyId = &#63;.
453            *
454            * <p>
455            * 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.
456            * </p>
457            *
458            * @param companyId the company ID to search with
459            * @param start the lower bound of the range of asset vocabularies to return
460            * @param end the upper bound of the range of asset vocabularies to return (not inclusive)
461            * @param orderByComparator the comparator to order the results by
462            * @return the ordered range of matching asset vocabularies
463            * @throws SystemException if a system exception occurred
464            */
465            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId(
466                    long companyId, int start, int end,
467                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
468                    throws com.liferay.portal.kernel.exception.SystemException;
469    
470            /**
471            * Finds the first asset vocabulary in the ordered set where companyId = &#63;.
472            *
473            * <p>
474            * 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.
475            * </p>
476            *
477            * @param companyId the company ID to search with
478            * @param orderByComparator the comparator to order the set by
479            * @return the first matching asset vocabulary
480            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
481            * @throws SystemException if a system exception occurred
482            */
483            public com.liferay.portlet.asset.model.AssetVocabulary findByCompanyId_First(
484                    long companyId,
485                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
486                    throws com.liferay.portal.kernel.exception.SystemException,
487                            com.liferay.portlet.asset.NoSuchVocabularyException;
488    
489            /**
490            * Finds the last asset vocabulary in the ordered set where companyId = &#63;.
491            *
492            * <p>
493            * 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.
494            * </p>
495            *
496            * @param companyId the company ID to search with
497            * @param orderByComparator the comparator to order the set by
498            * @return the last matching asset vocabulary
499            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
500            * @throws SystemException if a system exception occurred
501            */
502            public com.liferay.portlet.asset.model.AssetVocabulary findByCompanyId_Last(
503                    long companyId,
504                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
505                    throws com.liferay.portal.kernel.exception.SystemException,
506                            com.liferay.portlet.asset.NoSuchVocabularyException;
507    
508            /**
509            * Finds the asset vocabularies before and after the current asset vocabulary in the ordered set where companyId = &#63;.
510            *
511            * <p>
512            * 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.
513            * </p>
514            *
515            * @param vocabularyId the primary key of the current asset vocabulary
516            * @param companyId the company ID to search with
517            * @param orderByComparator the comparator to order the set by
518            * @return the previous, current, and next asset vocabulary
519            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found
520            * @throws SystemException if a system exception occurred
521            */
522            public com.liferay.portlet.asset.model.AssetVocabulary[] findByCompanyId_PrevAndNext(
523                    long vocabularyId, long companyId,
524                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
525                    throws com.liferay.portal.kernel.exception.SystemException,
526                            com.liferay.portlet.asset.NoSuchVocabularyException;
527    
528            /**
529            * Finds the asset vocabulary where groupId = &#63; and name = &#63; or throws a {@link com.liferay.portlet.asset.NoSuchVocabularyException} if it could not be found.
530            *
531            * @param groupId the group ID to search with
532            * @param name the name to search with
533            * @return the matching asset vocabulary
534            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
535            * @throws SystemException if a system exception occurred
536            */
537            public com.liferay.portlet.asset.model.AssetVocabulary findByG_N(
538                    long groupId, java.lang.String name)
539                    throws com.liferay.portal.kernel.exception.SystemException,
540                            com.liferay.portlet.asset.NoSuchVocabularyException;
541    
542            /**
543            * Finds the asset vocabulary where groupId = &#63; and name = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
544            *
545            * @param groupId the group ID to search with
546            * @param name the name to search with
547            * @return the matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
548            * @throws SystemException if a system exception occurred
549            */
550            public com.liferay.portlet.asset.model.AssetVocabulary fetchByG_N(
551                    long groupId, java.lang.String name)
552                    throws com.liferay.portal.kernel.exception.SystemException;
553    
554            /**
555            * Finds the asset vocabulary where groupId = &#63; and name = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
556            *
557            * @param groupId the group ID to search with
558            * @param name the name to search with
559            * @return the matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
560            * @throws SystemException if a system exception occurred
561            */
562            public com.liferay.portlet.asset.model.AssetVocabulary fetchByG_N(
563                    long groupId, java.lang.String name, boolean retrieveFromCache)
564                    throws com.liferay.portal.kernel.exception.SystemException;
565    
566            /**
567            * Finds all the asset vocabularies.
568            *
569            * @return the asset vocabularies
570            * @throws SystemException if a system exception occurred
571            */
572            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll()
573                    throws com.liferay.portal.kernel.exception.SystemException;
574    
575            /**
576            * Finds a range of all the asset vocabularies.
577            *
578            * <p>
579            * 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.
580            * </p>
581            *
582            * @param start the lower bound of the range of asset vocabularies to return
583            * @param end the upper bound of the range of asset vocabularies to return (not inclusive)
584            * @return the range of asset vocabularies
585            * @throws SystemException if a system exception occurred
586            */
587            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll(
588                    int start, int end)
589                    throws com.liferay.portal.kernel.exception.SystemException;
590    
591            /**
592            * Finds an ordered range of all the asset vocabularies.
593            *
594            * <p>
595            * 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.
596            * </p>
597            *
598            * @param start the lower bound of the range of asset vocabularies to return
599            * @param end the upper bound of the range of asset vocabularies to return (not inclusive)
600            * @param orderByComparator the comparator to order the results by
601            * @return the ordered range of asset vocabularies
602            * @throws SystemException if a system exception occurred
603            */
604            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll(
605                    int start, int end,
606                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
607                    throws com.liferay.portal.kernel.exception.SystemException;
608    
609            /**
610            * Removes all the asset vocabularies where uuid = &#63; from the database.
611            *
612            * @param uuid the uuid to search with
613            * @throws SystemException if a system exception occurred
614            */
615            public void removeByUuid(java.lang.String uuid)
616                    throws com.liferay.portal.kernel.exception.SystemException;
617    
618            /**
619            * Removes the asset vocabulary where uuid = &#63; and groupId = &#63; from the database.
620            *
621            * @param uuid the uuid to search with
622            * @param groupId the group ID to search with
623            * @throws SystemException if a system exception occurred
624            */
625            public void removeByUUID_G(java.lang.String uuid, long groupId)
626                    throws com.liferay.portal.kernel.exception.SystemException,
627                            com.liferay.portlet.asset.NoSuchVocabularyException;
628    
629            /**
630            * Removes all the asset vocabularies where groupId = &#63; from the database.
631            *
632            * @param groupId the group ID to search with
633            * @throws SystemException if a system exception occurred
634            */
635            public void removeByGroupId(long groupId)
636                    throws com.liferay.portal.kernel.exception.SystemException;
637    
638            /**
639            * Removes all the asset vocabularies where companyId = &#63; from the database.
640            *
641            * @param companyId the company ID to search with
642            * @throws SystemException if a system exception occurred
643            */
644            public void removeByCompanyId(long companyId)
645                    throws com.liferay.portal.kernel.exception.SystemException;
646    
647            /**
648            * Removes the asset vocabulary where groupId = &#63; and name = &#63; from the database.
649            *
650            * @param groupId the group ID to search with
651            * @param name the name to search with
652            * @throws SystemException if a system exception occurred
653            */
654            public void removeByG_N(long groupId, java.lang.String name)
655                    throws com.liferay.portal.kernel.exception.SystemException,
656                            com.liferay.portlet.asset.NoSuchVocabularyException;
657    
658            /**
659            * Removes all the asset vocabularies from the database.
660            *
661            * @throws SystemException if a system exception occurred
662            */
663            public void removeAll()
664                    throws com.liferay.portal.kernel.exception.SystemException;
665    
666            /**
667            * Counts all the asset vocabularies where uuid = &#63;.
668            *
669            * @param uuid the uuid to search with
670            * @return the number of matching asset vocabularies
671            * @throws SystemException if a system exception occurred
672            */
673            public int countByUuid(java.lang.String uuid)
674                    throws com.liferay.portal.kernel.exception.SystemException;
675    
676            /**
677            * Counts all the asset vocabularies where uuid = &#63; and groupId = &#63;.
678            *
679            * @param uuid the uuid to search with
680            * @param groupId the group ID to search with
681            * @return the number of matching asset vocabularies
682            * @throws SystemException if a system exception occurred
683            */
684            public int countByUUID_G(java.lang.String uuid, long groupId)
685                    throws com.liferay.portal.kernel.exception.SystemException;
686    
687            /**
688            * Counts all the asset vocabularies where groupId = &#63;.
689            *
690            * @param groupId the group ID to search with
691            * @return the number of matching asset vocabularies
692            * @throws SystemException if a system exception occurred
693            */
694            public int countByGroupId(long groupId)
695                    throws com.liferay.portal.kernel.exception.SystemException;
696    
697            /**
698            * Filters by the user's permissions and counts all the asset vocabularies where groupId = &#63;.
699            *
700            * @param groupId the group ID to search with
701            * @return the number of matching asset vocabularies that the user has permission to view
702            * @throws SystemException if a system exception occurred
703            */
704            public int filterCountByGroupId(long groupId)
705                    throws com.liferay.portal.kernel.exception.SystemException;
706    
707            /**
708            * Counts all the asset vocabularies where companyId = &#63;.
709            *
710            * @param companyId the company ID to search with
711            * @return the number of matching asset vocabularies
712            * @throws SystemException if a system exception occurred
713            */
714            public int countByCompanyId(long companyId)
715                    throws com.liferay.portal.kernel.exception.SystemException;
716    
717            /**
718            * Counts all the asset vocabularies where groupId = &#63; and name = &#63;.
719            *
720            * @param groupId the group ID to search with
721            * @param name the name to search with
722            * @return the number of matching asset vocabularies
723            * @throws SystemException if a system exception occurred
724            */
725            public int countByG_N(long groupId, java.lang.String name)
726                    throws com.liferay.portal.kernel.exception.SystemException;
727    
728            /**
729            * Counts all the asset vocabularies.
730            *
731            * @return the number of asset vocabularies
732            * @throws SystemException if a system exception occurred
733            */
734            public int countAll()
735                    throws com.liferay.portal.kernel.exception.SystemException;
736    
737            public AssetVocabulary remove(AssetVocabulary assetVocabulary)
738                    throws SystemException;
739    }