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                    throws com.liferay.portal.kernel.exception.SystemException;
081    
082            /**
083            * Returns the asset vocabulary with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchVocabularyException} if it could not be found.
084            *
085            * @param vocabularyId the primary key of the asset vocabulary
086            * @return the asset vocabulary
087            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found
088            * @throws SystemException if a system exception occurred
089            */
090            public com.liferay.portlet.asset.model.AssetVocabulary findByPrimaryKey(
091                    long vocabularyId)
092                    throws com.liferay.portal.kernel.exception.SystemException,
093                            com.liferay.portlet.asset.NoSuchVocabularyException;
094    
095            /**
096            * Returns the asset vocabulary with the primary key or returns <code>null</code> if it could not be found.
097            *
098            * @param vocabularyId the primary key of the asset vocabulary
099            * @return the asset vocabulary, or <code>null</code> if a asset vocabulary with the primary key could not be found
100            * @throws SystemException if a system exception occurred
101            */
102            public com.liferay.portlet.asset.model.AssetVocabulary fetchByPrimaryKey(
103                    long vocabularyId)
104                    throws com.liferay.portal.kernel.exception.SystemException;
105    
106            /**
107            * Returns all the asset vocabularies where uuid = &#63;.
108            *
109            * @param uuid the uuid
110            * @return the matching asset vocabularies
111            * @throws SystemException if a system exception occurred
112            */
113            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByUuid(
114                    java.lang.String uuid)
115                    throws com.liferay.portal.kernel.exception.SystemException;
116    
117            /**
118            * Returns a range of all the asset vocabularies where uuid = &#63;.
119            *
120            * <p>
121            * 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.
122            * </p>
123            *
124            * @param uuid the uuid
125            * @param start the lower bound of the range of asset vocabularies
126            * @param end the upper bound of the range of asset vocabularies (not inclusive)
127            * @return the range of matching asset vocabularies
128            * @throws SystemException if a system exception occurred
129            */
130            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByUuid(
131                    java.lang.String uuid, int start, int end)
132                    throws com.liferay.portal.kernel.exception.SystemException;
133    
134            /**
135            * Returns an ordered range of all the asset vocabularies where uuid = &#63;.
136            *
137            * <p>
138            * 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.
139            * </p>
140            *
141            * @param uuid the uuid
142            * @param start the lower bound of the range of asset vocabularies
143            * @param end the upper bound of the range of asset vocabularies (not inclusive)
144            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
145            * @return the ordered range of matching asset vocabularies
146            * @throws SystemException if a system exception occurred
147            */
148            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByUuid(
149                    java.lang.String uuid, int start, int end,
150                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151                    throws com.liferay.portal.kernel.exception.SystemException;
152    
153            /**
154            * Returns the first asset vocabulary in the ordered set where uuid = &#63;.
155            *
156            * @param uuid the uuid
157            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
158            * @return the first matching asset vocabulary
159            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
160            * @throws SystemException if a system exception occurred
161            */
162            public com.liferay.portlet.asset.model.AssetVocabulary findByUuid_First(
163                    java.lang.String uuid,
164                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165                    throws com.liferay.portal.kernel.exception.SystemException,
166                            com.liferay.portlet.asset.NoSuchVocabularyException;
167    
168            /**
169            * Returns the first asset vocabulary in the ordered set where uuid = &#63;.
170            *
171            * @param uuid the uuid
172            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
173            * @return the first matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
174            * @throws SystemException if a system exception occurred
175            */
176            public com.liferay.portlet.asset.model.AssetVocabulary fetchByUuid_First(
177                    java.lang.String uuid,
178                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
179                    throws com.liferay.portal.kernel.exception.SystemException;
180    
181            /**
182            * Returns the last asset vocabulary in the ordered set where uuid = &#63;.
183            *
184            * @param uuid the uuid
185            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
186            * @return the last matching asset vocabulary
187            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
188            * @throws SystemException if a system exception occurred
189            */
190            public com.liferay.portlet.asset.model.AssetVocabulary findByUuid_Last(
191                    java.lang.String uuid,
192                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
193                    throws com.liferay.portal.kernel.exception.SystemException,
194                            com.liferay.portlet.asset.NoSuchVocabularyException;
195    
196            /**
197            * Returns the last asset vocabulary in the ordered set where uuid = &#63;.
198            *
199            * @param uuid the uuid
200            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
201            * @return the last matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
202            * @throws SystemException if a system exception occurred
203            */
204            public com.liferay.portlet.asset.model.AssetVocabulary fetchByUuid_Last(
205                    java.lang.String uuid,
206                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
207                    throws com.liferay.portal.kernel.exception.SystemException;
208    
209            /**
210            * Returns the asset vocabularies before and after the current asset vocabulary in the ordered set where uuid = &#63;.
211            *
212            * @param vocabularyId the primary key of the current asset vocabulary
213            * @param uuid the uuid
214            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
215            * @return the previous, current, and next asset vocabulary
216            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found
217            * @throws SystemException if a system exception occurred
218            */
219            public com.liferay.portlet.asset.model.AssetVocabulary[] findByUuid_PrevAndNext(
220                    long vocabularyId, java.lang.String uuid,
221                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
222                    throws com.liferay.portal.kernel.exception.SystemException,
223                            com.liferay.portlet.asset.NoSuchVocabularyException;
224    
225            /**
226            * 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.
227            *
228            * @param uuid the uuid
229            * @param groupId the group ID
230            * @return the matching asset vocabulary
231            * @throws com.liferay.portlet.asset.NoSuchVocabularyException 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 findByUUID_G(
235                    java.lang.String uuid, long groupId)
236                    throws com.liferay.portal.kernel.exception.SystemException,
237                            com.liferay.portlet.asset.NoSuchVocabularyException;
238    
239            /**
240            * 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.
241            *
242            * @param uuid the uuid
243            * @param groupId the group ID
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)
249                    throws com.liferay.portal.kernel.exception.SystemException;
250    
251            /**
252            * 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.
253            *
254            * @param uuid the uuid
255            * @param groupId the group ID
256            * @param retrieveFromCache whether to use the finder cache
257            * @return the matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
258            * @throws SystemException if a system exception occurred
259            */
260            public com.liferay.portlet.asset.model.AssetVocabulary fetchByUUID_G(
261                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
262                    throws com.liferay.portal.kernel.exception.SystemException;
263    
264            /**
265            * Returns all the asset vocabularies where uuid = &#63; and companyId = &#63;.
266            *
267            * @param uuid the uuid
268            * @param companyId the company ID
269            * @return the matching asset vocabularies
270            * @throws SystemException if a system exception occurred
271            */
272            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByUuid_C(
273                    java.lang.String uuid, long companyId)
274                    throws com.liferay.portal.kernel.exception.SystemException;
275    
276            /**
277            * Returns a range of all the asset vocabularies where uuid = &#63; and companyId = &#63;.
278            *
279            * <p>
280            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
281            * </p>
282            *
283            * @param uuid the uuid
284            * @param companyId the company ID
285            * @param start the lower bound of the range of asset vocabularies
286            * @param end the upper bound of the range of asset vocabularies (not inclusive)
287            * @return the range of matching asset vocabularies
288            * @throws SystemException if a system exception occurred
289            */
290            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByUuid_C(
291                    java.lang.String uuid, long companyId, int start, int end)
292                    throws com.liferay.portal.kernel.exception.SystemException;
293    
294            /**
295            * Returns an ordered range of all the asset vocabularies where uuid = &#63; and companyId = &#63;.
296            *
297            * <p>
298            * 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.
299            * </p>
300            *
301            * @param uuid the uuid
302            * @param companyId the company ID
303            * @param start the lower bound of the range of asset vocabularies
304            * @param end the upper bound of the range of asset vocabularies (not inclusive)
305            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
306            * @return the ordered range of matching asset vocabularies
307            * @throws SystemException if a system exception occurred
308            */
309            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByUuid_C(
310                    java.lang.String uuid, long companyId, int start, int end,
311                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
312                    throws com.liferay.portal.kernel.exception.SystemException;
313    
314            /**
315            * Returns the first asset vocabulary in the ordered set where uuid = &#63; and companyId = &#63;.
316            *
317            * @param uuid the uuid
318            * @param companyId the company ID
319            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
320            * @return the first matching asset vocabulary
321            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
322            * @throws SystemException if a system exception occurred
323            */
324            public com.liferay.portlet.asset.model.AssetVocabulary findByUuid_C_First(
325                    java.lang.String uuid, long companyId,
326                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
327                    throws com.liferay.portal.kernel.exception.SystemException,
328                            com.liferay.portlet.asset.NoSuchVocabularyException;
329    
330            /**
331            * Returns the first asset vocabulary in the ordered set where uuid = &#63; and companyId = &#63;.
332            *
333            * @param uuid the uuid
334            * @param companyId the company ID
335            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
336            * @return the first matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
337            * @throws SystemException if a system exception occurred
338            */
339            public com.liferay.portlet.asset.model.AssetVocabulary fetchByUuid_C_First(
340                    java.lang.String uuid, long companyId,
341                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
342                    throws com.liferay.portal.kernel.exception.SystemException;
343    
344            /**
345            * Returns the last asset vocabulary in the ordered set where uuid = &#63; and companyId = &#63;.
346            *
347            * @param uuid the uuid
348            * @param companyId the company ID
349            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
350            * @return the last matching asset vocabulary
351            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
352            * @throws SystemException if a system exception occurred
353            */
354            public com.liferay.portlet.asset.model.AssetVocabulary findByUuid_C_Last(
355                    java.lang.String uuid, long companyId,
356                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
357                    throws com.liferay.portal.kernel.exception.SystemException,
358                            com.liferay.portlet.asset.NoSuchVocabularyException;
359    
360            /**
361            * Returns the last asset vocabulary in the ordered set where uuid = &#63; and companyId = &#63;.
362            *
363            * @param uuid the uuid
364            * @param companyId the company ID
365            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
366            * @return the last matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
367            * @throws SystemException if a system exception occurred
368            */
369            public com.liferay.portlet.asset.model.AssetVocabulary fetchByUuid_C_Last(
370                    java.lang.String uuid, long companyId,
371                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
372                    throws com.liferay.portal.kernel.exception.SystemException;
373    
374            /**
375            * Returns the asset vocabularies before and after the current asset vocabulary in the ordered set where uuid = &#63; and companyId = &#63;.
376            *
377            * @param vocabularyId the primary key of the current asset vocabulary
378            * @param uuid the uuid
379            * @param companyId the company ID
380            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
381            * @return the previous, current, and next asset vocabulary
382            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found
383            * @throws SystemException if a system exception occurred
384            */
385            public com.liferay.portlet.asset.model.AssetVocabulary[] findByUuid_C_PrevAndNext(
386                    long vocabularyId, java.lang.String uuid, long companyId,
387                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
388                    throws com.liferay.portal.kernel.exception.SystemException,
389                            com.liferay.portlet.asset.NoSuchVocabularyException;
390    
391            /**
392            * Returns all the asset vocabularies where groupId = &#63;.
393            *
394            * @param groupId the group ID
395            * @return the matching asset vocabularies
396            * @throws SystemException if a system exception occurred
397            */
398            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByGroupId(
399                    long groupId)
400                    throws com.liferay.portal.kernel.exception.SystemException;
401    
402            /**
403            * Returns a range of all the asset vocabularies where groupId = &#63;.
404            *
405            * <p>
406            * 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.
407            * </p>
408            *
409            * @param groupId the group ID
410            * @param start the lower bound of the range of asset vocabularies
411            * @param end the upper bound of the range of asset vocabularies (not inclusive)
412            * @return the range of matching asset vocabularies
413            * @throws SystemException if a system exception occurred
414            */
415            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByGroupId(
416                    long groupId, int start, int end)
417                    throws com.liferay.portal.kernel.exception.SystemException;
418    
419            /**
420            * Returns an ordered range of all the asset vocabularies where groupId = &#63;.
421            *
422            * <p>
423            * 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.
424            * </p>
425            *
426            * @param groupId the group ID
427            * @param start the lower bound of the range of asset vocabularies
428            * @param end the upper bound of the range of asset vocabularies (not inclusive)
429            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
430            * @return the ordered range of matching asset vocabularies
431            * @throws SystemException if a system exception occurred
432            */
433            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByGroupId(
434                    long groupId, int start, int end,
435                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
436                    throws com.liferay.portal.kernel.exception.SystemException;
437    
438            /**
439            * Returns the first asset vocabulary in the ordered set where groupId = &#63;.
440            *
441            * @param groupId the group ID
442            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
443            * @return the first matching asset vocabulary
444            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
445            * @throws SystemException if a system exception occurred
446            */
447            public com.liferay.portlet.asset.model.AssetVocabulary findByGroupId_First(
448                    long groupId,
449                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
450                    throws com.liferay.portal.kernel.exception.SystemException,
451                            com.liferay.portlet.asset.NoSuchVocabularyException;
452    
453            /**
454            * Returns the first asset vocabulary in the ordered set where groupId = &#63;.
455            *
456            * @param groupId the group ID
457            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
458            * @return the first matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
459            * @throws SystemException if a system exception occurred
460            */
461            public com.liferay.portlet.asset.model.AssetVocabulary fetchByGroupId_First(
462                    long groupId,
463                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
464                    throws com.liferay.portal.kernel.exception.SystemException;
465    
466            /**
467            * Returns the last asset vocabulary in the ordered set where groupId = &#63;.
468            *
469            * @param groupId the group ID
470            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
471            * @return the last matching asset vocabulary
472            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
473            * @throws SystemException if a system exception occurred
474            */
475            public com.liferay.portlet.asset.model.AssetVocabulary findByGroupId_Last(
476                    long groupId,
477                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
478                    throws com.liferay.portal.kernel.exception.SystemException,
479                            com.liferay.portlet.asset.NoSuchVocabularyException;
480    
481            /**
482            * Returns the last asset vocabulary in the ordered set where groupId = &#63;.
483            *
484            * @param groupId the group ID
485            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
486            * @return the last matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
487            * @throws SystemException if a system exception occurred
488            */
489            public com.liferay.portlet.asset.model.AssetVocabulary fetchByGroupId_Last(
490                    long groupId,
491                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
492                    throws com.liferay.portal.kernel.exception.SystemException;
493    
494            /**
495            * Returns the asset vocabularies before and after the current asset vocabulary in the ordered set where groupId = &#63;.
496            *
497            * @param vocabularyId the primary key of the current asset vocabulary
498            * @param groupId the group ID
499            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
500            * @return the previous, current, and next asset vocabulary
501            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found
502            * @throws SystemException if a system exception occurred
503            */
504            public com.liferay.portlet.asset.model.AssetVocabulary[] findByGroupId_PrevAndNext(
505                    long vocabularyId, long groupId,
506                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
507                    throws com.liferay.portal.kernel.exception.SystemException,
508                            com.liferay.portlet.asset.NoSuchVocabularyException;
509    
510            /**
511            * Returns all the asset vocabularies that the user has permission to view where groupId = &#63;.
512            *
513            * @param groupId the group ID
514            * @return the matching asset vocabularies that the user has permission to view
515            * @throws SystemException if a system exception occurred
516            */
517            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> filterFindByGroupId(
518                    long groupId)
519                    throws com.liferay.portal.kernel.exception.SystemException;
520    
521            /**
522            * Returns a range of all the asset vocabularies that the user has permission to view where groupId = &#63;.
523            *
524            * <p>
525            * 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.
526            * </p>
527            *
528            * @param groupId the group ID
529            * @param start the lower bound of the range of asset vocabularies
530            * @param end the upper bound of the range of asset vocabularies (not inclusive)
531            * @return the range of matching asset vocabularies that the user has permission to view
532            * @throws SystemException if a system exception occurred
533            */
534            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> filterFindByGroupId(
535                    long groupId, int start, int end)
536                    throws com.liferay.portal.kernel.exception.SystemException;
537    
538            /**
539            * Returns an ordered range of all the asset vocabularies that the user has permissions to view where groupId = &#63;.
540            *
541            * <p>
542            * 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.
543            * </p>
544            *
545            * @param groupId the group ID
546            * @param start the lower bound of the range of asset vocabularies
547            * @param end the upper bound of the range of asset vocabularies (not inclusive)
548            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
549            * @return the ordered range of matching asset vocabularies that the user has permission to view
550            * @throws SystemException if a system exception occurred
551            */
552            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> filterFindByGroupId(
553                    long groupId, int start, int end,
554                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
555                    throws com.liferay.portal.kernel.exception.SystemException;
556    
557            /**
558            * 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;.
559            *
560            * @param vocabularyId the primary key of the current asset vocabulary
561            * @param groupId the group ID
562            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
563            * @return the previous, current, and next asset vocabulary
564            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found
565            * @throws SystemException if a system exception occurred
566            */
567            public com.liferay.portlet.asset.model.AssetVocabulary[] filterFindByGroupId_PrevAndNext(
568                    long vocabularyId, long groupId,
569                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
570                    throws com.liferay.portal.kernel.exception.SystemException,
571                            com.liferay.portlet.asset.NoSuchVocabularyException;
572    
573            /**
574            * Returns all the asset vocabularies where companyId = &#63;.
575            *
576            * @param companyId the company ID
577            * @return the matching asset vocabularies
578            * @throws SystemException if a system exception occurred
579            */
580            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId(
581                    long companyId)
582                    throws com.liferay.portal.kernel.exception.SystemException;
583    
584            /**
585            * Returns a range of all the asset vocabularies where companyId = &#63;.
586            *
587            * <p>
588            * 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.
589            * </p>
590            *
591            * @param companyId the company ID
592            * @param start the lower bound of the range of asset vocabularies
593            * @param end the upper bound of the range of asset vocabularies (not inclusive)
594            * @return the range of matching asset vocabularies
595            * @throws SystemException if a system exception occurred
596            */
597            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId(
598                    long companyId, int start, int end)
599                    throws com.liferay.portal.kernel.exception.SystemException;
600    
601            /**
602            * Returns an ordered range of all the asset vocabularies where companyId = &#63;.
603            *
604            * <p>
605            * 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.
606            * </p>
607            *
608            * @param companyId the company ID
609            * @param start the lower bound of the range of asset vocabularies
610            * @param end the upper bound of the range of asset vocabularies (not inclusive)
611            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
612            * @return the ordered range of matching asset vocabularies
613            * @throws SystemException if a system exception occurred
614            */
615            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId(
616                    long companyId, int start, int end,
617                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
618                    throws com.liferay.portal.kernel.exception.SystemException;
619    
620            /**
621            * Returns the first asset vocabulary in the ordered set where companyId = &#63;.
622            *
623            * @param companyId the company ID
624            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
625            * @return the first matching asset vocabulary
626            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
627            * @throws SystemException if a system exception occurred
628            */
629            public com.liferay.portlet.asset.model.AssetVocabulary findByCompanyId_First(
630                    long companyId,
631                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
632                    throws com.liferay.portal.kernel.exception.SystemException,
633                            com.liferay.portlet.asset.NoSuchVocabularyException;
634    
635            /**
636            * Returns the first asset vocabulary in the ordered set where companyId = &#63;.
637            *
638            * @param companyId the company ID
639            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
640            * @return the first matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
641            * @throws SystemException if a system exception occurred
642            */
643            public com.liferay.portlet.asset.model.AssetVocabulary fetchByCompanyId_First(
644                    long companyId,
645                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
646                    throws com.liferay.portal.kernel.exception.SystemException;
647    
648            /**
649            * Returns the last asset vocabulary in the ordered set where companyId = &#63;.
650            *
651            * @param companyId the company ID
652            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
653            * @return the last matching asset vocabulary
654            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
655            * @throws SystemException if a system exception occurred
656            */
657            public com.liferay.portlet.asset.model.AssetVocabulary findByCompanyId_Last(
658                    long companyId,
659                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
660                    throws com.liferay.portal.kernel.exception.SystemException,
661                            com.liferay.portlet.asset.NoSuchVocabularyException;
662    
663            /**
664            * Returns the last asset vocabulary in the ordered set where companyId = &#63;.
665            *
666            * @param companyId the company ID
667            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
668            * @return the last matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
669            * @throws SystemException if a system exception occurred
670            */
671            public com.liferay.portlet.asset.model.AssetVocabulary fetchByCompanyId_Last(
672                    long companyId,
673                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
674                    throws com.liferay.portal.kernel.exception.SystemException;
675    
676            /**
677            * Returns the asset vocabularies before and after the current asset vocabulary in the ordered set where companyId = &#63;.
678            *
679            * @param vocabularyId the primary key of the current asset vocabulary
680            * @param companyId the company ID
681            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
682            * @return the previous, current, and next asset vocabulary
683            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found
684            * @throws SystemException if a system exception occurred
685            */
686            public com.liferay.portlet.asset.model.AssetVocabulary[] findByCompanyId_PrevAndNext(
687                    long vocabularyId, long companyId,
688                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
689                    throws com.liferay.portal.kernel.exception.SystemException,
690                            com.liferay.portlet.asset.NoSuchVocabularyException;
691    
692            /**
693            * 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.
694            *
695            * @param groupId the group ID
696            * @param name the name
697            * @return the matching asset vocabulary
698            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
699            * @throws SystemException if a system exception occurred
700            */
701            public com.liferay.portlet.asset.model.AssetVocabulary findByG_N(
702                    long groupId, java.lang.String name)
703                    throws com.liferay.portal.kernel.exception.SystemException,
704                            com.liferay.portlet.asset.NoSuchVocabularyException;
705    
706            /**
707            * 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.
708            *
709            * @param groupId the group ID
710            * @param name the name
711            * @return the matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
712            * @throws SystemException if a system exception occurred
713            */
714            public com.liferay.portlet.asset.model.AssetVocabulary fetchByG_N(
715                    long groupId, java.lang.String name)
716                    throws com.liferay.portal.kernel.exception.SystemException;
717    
718            /**
719            * 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.
720            *
721            * @param groupId the group ID
722            * @param name the name
723            * @param retrieveFromCache whether to use the finder cache
724            * @return the matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
725            * @throws SystemException if a system exception occurred
726            */
727            public com.liferay.portlet.asset.model.AssetVocabulary fetchByG_N(
728                    long groupId, java.lang.String name, boolean retrieveFromCache)
729                    throws com.liferay.portal.kernel.exception.SystemException;
730    
731            /**
732            * Returns all the asset vocabularies.
733            *
734            * @return the asset vocabularies
735            * @throws SystemException if a system exception occurred
736            */
737            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll()
738                    throws com.liferay.portal.kernel.exception.SystemException;
739    
740            /**
741            * Returns a range of all the asset vocabularies.
742            *
743            * <p>
744            * 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.
745            * </p>
746            *
747            * @param start the lower bound of the range of asset vocabularies
748            * @param end the upper bound of the range of asset vocabularies (not inclusive)
749            * @return the range of asset vocabularies
750            * @throws SystemException if a system exception occurred
751            */
752            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll(
753                    int start, int end)
754                    throws com.liferay.portal.kernel.exception.SystemException;
755    
756            /**
757            * Returns an ordered range of all the asset vocabularies.
758            *
759            * <p>
760            * 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.
761            * </p>
762            *
763            * @param start the lower bound of the range of asset vocabularies
764            * @param end the upper bound of the range of asset vocabularies (not inclusive)
765            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
766            * @return the ordered range of asset vocabularies
767            * @throws SystemException if a system exception occurred
768            */
769            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll(
770                    int start, int end,
771                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
772                    throws com.liferay.portal.kernel.exception.SystemException;
773    
774            /**
775            * Removes all the asset vocabularies where uuid = &#63; from the database.
776            *
777            * @param uuid the uuid
778            * @throws SystemException if a system exception occurred
779            */
780            public void removeByUuid(java.lang.String uuid)
781                    throws com.liferay.portal.kernel.exception.SystemException;
782    
783            /**
784            * Removes the asset vocabulary where uuid = &#63; and groupId = &#63; from the database.
785            *
786            * @param uuid the uuid
787            * @param groupId the group ID
788            * @return the asset vocabulary that was removed
789            * @throws SystemException if a system exception occurred
790            */
791            public com.liferay.portlet.asset.model.AssetVocabulary removeByUUID_G(
792                    java.lang.String uuid, long groupId)
793                    throws com.liferay.portal.kernel.exception.SystemException,
794                            com.liferay.portlet.asset.NoSuchVocabularyException;
795    
796            /**
797            * Removes all the asset vocabularies where uuid = &#63; and companyId = &#63; from the database.
798            *
799            * @param uuid the uuid
800            * @param companyId the company ID
801            * @throws SystemException if a system exception occurred
802            */
803            public void removeByUuid_C(java.lang.String uuid, long companyId)
804                    throws com.liferay.portal.kernel.exception.SystemException;
805    
806            /**
807            * Removes all the asset vocabularies where groupId = &#63; from the database.
808            *
809            * @param groupId the group ID
810            * @throws SystemException if a system exception occurred
811            */
812            public void removeByGroupId(long groupId)
813                    throws com.liferay.portal.kernel.exception.SystemException;
814    
815            /**
816            * Removes all the asset vocabularies where companyId = &#63; from the database.
817            *
818            * @param companyId the company ID
819            * @throws SystemException if a system exception occurred
820            */
821            public void removeByCompanyId(long companyId)
822                    throws com.liferay.portal.kernel.exception.SystemException;
823    
824            /**
825            * Removes the asset vocabulary where groupId = &#63; and name = &#63; from the database.
826            *
827            * @param groupId the group ID
828            * @param name the name
829            * @return the asset vocabulary that was removed
830            * @throws SystemException if a system exception occurred
831            */
832            public com.liferay.portlet.asset.model.AssetVocabulary removeByG_N(
833                    long groupId, java.lang.String name)
834                    throws com.liferay.portal.kernel.exception.SystemException,
835                            com.liferay.portlet.asset.NoSuchVocabularyException;
836    
837            /**
838            * Removes all the asset vocabularies from the database.
839            *
840            * @throws SystemException if a system exception occurred
841            */
842            public void removeAll()
843                    throws com.liferay.portal.kernel.exception.SystemException;
844    
845            /**
846            * Returns the number of asset vocabularies where uuid = &#63;.
847            *
848            * @param uuid the uuid
849            * @return the number of matching asset vocabularies
850            * @throws SystemException if a system exception occurred
851            */
852            public int countByUuid(java.lang.String uuid)
853                    throws com.liferay.portal.kernel.exception.SystemException;
854    
855            /**
856            * Returns the number of asset vocabularies where uuid = &#63; and groupId = &#63;.
857            *
858            * @param uuid the uuid
859            * @param groupId the group ID
860            * @return the number of matching asset vocabularies
861            * @throws SystemException if a system exception occurred
862            */
863            public int countByUUID_G(java.lang.String uuid, long groupId)
864                    throws com.liferay.portal.kernel.exception.SystemException;
865    
866            /**
867            * Returns the number of asset vocabularies where uuid = &#63; and companyId = &#63;.
868            *
869            * @param uuid the uuid
870            * @param companyId the company ID
871            * @return the number of matching asset vocabularies
872            * @throws SystemException if a system exception occurred
873            */
874            public int countByUuid_C(java.lang.String uuid, long companyId)
875                    throws com.liferay.portal.kernel.exception.SystemException;
876    
877            /**
878            * Returns the number of asset vocabularies where groupId = &#63;.
879            *
880            * @param groupId the group ID
881            * @return the number of matching asset vocabularies
882            * @throws SystemException if a system exception occurred
883            */
884            public int countByGroupId(long groupId)
885                    throws com.liferay.portal.kernel.exception.SystemException;
886    
887            /**
888            * Returns the number of asset vocabularies that the user has permission to view where groupId = &#63;.
889            *
890            * @param groupId the group ID
891            * @return the number of matching asset vocabularies that the user has permission to view
892            * @throws SystemException if a system exception occurred
893            */
894            public int filterCountByGroupId(long groupId)
895                    throws com.liferay.portal.kernel.exception.SystemException;
896    
897            /**
898            * Returns the number of asset vocabularies where companyId = &#63;.
899            *
900            * @param companyId the company ID
901            * @return the number of matching asset vocabularies
902            * @throws SystemException if a system exception occurred
903            */
904            public int countByCompanyId(long companyId)
905                    throws com.liferay.portal.kernel.exception.SystemException;
906    
907            /**
908            * Returns the number of asset vocabularies where groupId = &#63; and name = &#63;.
909            *
910            * @param groupId the group ID
911            * @param name the name
912            * @return the number of matching asset vocabularies
913            * @throws SystemException if a system exception occurred
914            */
915            public int countByG_N(long groupId, java.lang.String name)
916                    throws com.liferay.portal.kernel.exception.SystemException;
917    
918            /**
919            * Returns the number of asset vocabularies.
920            *
921            * @return the number of asset vocabularies
922            * @throws SystemException if a system exception occurred
923            */
924            public int countAll()
925                    throws com.liferay.portal.kernel.exception.SystemException;
926    }