001    /**
002     * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.persistence.BasePersistence;
020    
021    import com.liferay.portlet.asset.model.AssetVocabulary;
022    
023    /**
024     * The persistence interface for the asset vocabulary service.
025     *
026     * <p>
027     * Caching information and settings can be found in <code>portal.properties</code>
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see AssetVocabularyPersistenceImpl
032     * @see AssetVocabularyUtil
033     * @generated
034     */
035    @ProviderType
036    public interface AssetVocabularyPersistence extends BasePersistence<AssetVocabulary> {
037            /*
038             * NOTE FOR DEVELOPERS:
039             *
040             * 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.
041             */
042    
043            /**
044            * Returns all the asset vocabularies where uuid = &#63;.
045            *
046            * @param uuid the uuid
047            * @return the matching asset vocabularies
048            */
049            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByUuid(
050                    java.lang.String uuid);
051    
052            /**
053            * Returns a range of all the asset vocabularies where uuid = &#63;.
054            *
055            * <p>
056            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetVocabularyModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
057            * </p>
058            *
059            * @param uuid the uuid
060            * @param start the lower bound of the range of asset vocabularies
061            * @param end the upper bound of the range of asset vocabularies (not inclusive)
062            * @return the range of matching asset vocabularies
063            */
064            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByUuid(
065                    java.lang.String uuid, int start, int end);
066    
067            /**
068            * Returns an ordered range of all the asset vocabularies where uuid = &#63;.
069            *
070            * <p>
071            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetVocabularyModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
072            * </p>
073            *
074            * @param uuid the uuid
075            * @param start the lower bound of the range of asset vocabularies
076            * @param end the upper bound of the range of asset vocabularies (not inclusive)
077            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
078            * @return the ordered range of matching asset vocabularies
079            */
080            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByUuid(
081                    java.lang.String uuid, int start, int end,
082                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> orderByComparator);
083    
084            /**
085            * Returns the first asset vocabulary in the ordered set where uuid = &#63;.
086            *
087            * @param uuid the uuid
088            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
089            * @return the first matching asset vocabulary
090            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
091            */
092            public com.liferay.portlet.asset.model.AssetVocabulary findByUuid_First(
093                    java.lang.String uuid,
094                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> orderByComparator)
095                    throws com.liferay.portlet.asset.NoSuchVocabularyException;
096    
097            /**
098            * Returns the first asset vocabulary in the ordered set where uuid = &#63;.
099            *
100            * @param uuid the uuid
101            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
102            * @return the first matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
103            */
104            public com.liferay.portlet.asset.model.AssetVocabulary fetchByUuid_First(
105                    java.lang.String uuid,
106                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> orderByComparator);
107    
108            /**
109            * Returns the last asset vocabulary in the ordered set where uuid = &#63;.
110            *
111            * @param uuid the uuid
112            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
113            * @return the last matching asset vocabulary
114            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
115            */
116            public com.liferay.portlet.asset.model.AssetVocabulary findByUuid_Last(
117                    java.lang.String uuid,
118                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> orderByComparator)
119                    throws com.liferay.portlet.asset.NoSuchVocabularyException;
120    
121            /**
122            * Returns the last asset vocabulary in the ordered set where uuid = &#63;.
123            *
124            * @param uuid the uuid
125            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
126            * @return the last matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
127            */
128            public com.liferay.portlet.asset.model.AssetVocabulary fetchByUuid_Last(
129                    java.lang.String uuid,
130                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> orderByComparator);
131    
132            /**
133            * Returns the asset vocabularies before and after the current asset vocabulary in the ordered set where uuid = &#63;.
134            *
135            * @param vocabularyId the primary key of the current asset vocabulary
136            * @param uuid the uuid
137            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
138            * @return the previous, current, and next asset vocabulary
139            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found
140            */
141            public com.liferay.portlet.asset.model.AssetVocabulary[] findByUuid_PrevAndNext(
142                    long vocabularyId, java.lang.String uuid,
143                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> orderByComparator)
144                    throws com.liferay.portlet.asset.NoSuchVocabularyException;
145    
146            /**
147            * Removes all the asset vocabularies where uuid = &#63; from the database.
148            *
149            * @param uuid the uuid
150            */
151            public void removeByUuid(java.lang.String uuid);
152    
153            /**
154            * Returns the number of asset vocabularies where uuid = &#63;.
155            *
156            * @param uuid the uuid
157            * @return the number of matching asset vocabularies
158            */
159            public int countByUuid(java.lang.String uuid);
160    
161            /**
162            * 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.
163            *
164            * @param uuid the uuid
165            * @param groupId the group ID
166            * @return the matching asset vocabulary
167            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
168            */
169            public com.liferay.portlet.asset.model.AssetVocabulary findByUUID_G(
170                    java.lang.String uuid, long groupId)
171                    throws com.liferay.portlet.asset.NoSuchVocabularyException;
172    
173            /**
174            * 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.
175            *
176            * @param uuid the uuid
177            * @param groupId the group ID
178            * @return the matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
179            */
180            public com.liferay.portlet.asset.model.AssetVocabulary fetchByUUID_G(
181                    java.lang.String uuid, long groupId);
182    
183            /**
184            * 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.
185            *
186            * @param uuid the uuid
187            * @param groupId the group ID
188            * @param retrieveFromCache whether to use the finder cache
189            * @return the matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
190            */
191            public com.liferay.portlet.asset.model.AssetVocabulary fetchByUUID_G(
192                    java.lang.String uuid, long groupId, boolean retrieveFromCache);
193    
194            /**
195            * Removes the asset vocabulary where uuid = &#63; and groupId = &#63; from the database.
196            *
197            * @param uuid the uuid
198            * @param groupId the group ID
199            * @return the asset vocabulary that was removed
200            */
201            public com.liferay.portlet.asset.model.AssetVocabulary removeByUUID_G(
202                    java.lang.String uuid, long groupId)
203                    throws com.liferay.portlet.asset.NoSuchVocabularyException;
204    
205            /**
206            * Returns the number of asset vocabularies where uuid = &#63; and groupId = &#63;.
207            *
208            * @param uuid the uuid
209            * @param groupId the group ID
210            * @return the number of matching asset vocabularies
211            */
212            public int countByUUID_G(java.lang.String uuid, long groupId);
213    
214            /**
215            * Returns all the asset vocabularies where uuid = &#63; and companyId = &#63;.
216            *
217            * @param uuid the uuid
218            * @param companyId the company ID
219            * @return the matching asset vocabularies
220            */
221            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByUuid_C(
222                    java.lang.String uuid, long companyId);
223    
224            /**
225            * Returns a range of all the asset vocabularies where uuid = &#63; and companyId = &#63;.
226            *
227            * <p>
228            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetVocabularyModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
229            * </p>
230            *
231            * @param uuid the uuid
232            * @param companyId the company ID
233            * @param start the lower bound of the range of asset vocabularies
234            * @param end the upper bound of the range of asset vocabularies (not inclusive)
235            * @return the range of matching asset vocabularies
236            */
237            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByUuid_C(
238                    java.lang.String uuid, long companyId, int start, int end);
239    
240            /**
241            * Returns an ordered range of all the asset vocabularies where uuid = &#63; and companyId = &#63;.
242            *
243            * <p>
244            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetVocabularyModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
245            * </p>
246            *
247            * @param uuid the uuid
248            * @param companyId the company ID
249            * @param start the lower bound of the range of asset vocabularies
250            * @param end the upper bound of the range of asset vocabularies (not inclusive)
251            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
252            * @return the ordered range of matching asset vocabularies
253            */
254            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByUuid_C(
255                    java.lang.String uuid, long companyId, int start, int end,
256                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> orderByComparator);
257    
258            /**
259            * Returns the first asset vocabulary in the ordered set where uuid = &#63; and companyId = &#63;.
260            *
261            * @param uuid the uuid
262            * @param companyId the company ID
263            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
264            * @return the first matching asset vocabulary
265            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
266            */
267            public com.liferay.portlet.asset.model.AssetVocabulary findByUuid_C_First(
268                    java.lang.String uuid, long companyId,
269                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> orderByComparator)
270                    throws com.liferay.portlet.asset.NoSuchVocabularyException;
271    
272            /**
273            * Returns the first asset vocabulary in the ordered set where uuid = &#63; and companyId = &#63;.
274            *
275            * @param uuid the uuid
276            * @param companyId the company ID
277            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
278            * @return the first matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
279            */
280            public com.liferay.portlet.asset.model.AssetVocabulary fetchByUuid_C_First(
281                    java.lang.String uuid, long companyId,
282                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> orderByComparator);
283    
284            /**
285            * Returns the last asset vocabulary in the ordered set where uuid = &#63; and companyId = &#63;.
286            *
287            * @param uuid the uuid
288            * @param companyId the company ID
289            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
290            * @return the last matching asset vocabulary
291            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
292            */
293            public com.liferay.portlet.asset.model.AssetVocabulary findByUuid_C_Last(
294                    java.lang.String uuid, long companyId,
295                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> orderByComparator)
296                    throws com.liferay.portlet.asset.NoSuchVocabularyException;
297    
298            /**
299            * Returns the last asset vocabulary in the ordered set where uuid = &#63; and companyId = &#63;.
300            *
301            * @param uuid the uuid
302            * @param companyId the company ID
303            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
304            * @return the last matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
305            */
306            public com.liferay.portlet.asset.model.AssetVocabulary fetchByUuid_C_Last(
307                    java.lang.String uuid, long companyId,
308                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> orderByComparator);
309    
310            /**
311            * Returns the asset vocabularies before and after the current asset vocabulary in the ordered set where uuid = &#63; and companyId = &#63;.
312            *
313            * @param vocabularyId the primary key of the current asset vocabulary
314            * @param uuid the uuid
315            * @param companyId the company ID
316            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
317            * @return the previous, current, and next asset vocabulary
318            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found
319            */
320            public com.liferay.portlet.asset.model.AssetVocabulary[] findByUuid_C_PrevAndNext(
321                    long vocabularyId, java.lang.String uuid, long companyId,
322                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> orderByComparator)
323                    throws com.liferay.portlet.asset.NoSuchVocabularyException;
324    
325            /**
326            * Removes all the asset vocabularies where uuid = &#63; and companyId = &#63; from the database.
327            *
328            * @param uuid the uuid
329            * @param companyId the company ID
330            */
331            public void removeByUuid_C(java.lang.String uuid, long companyId);
332    
333            /**
334            * Returns the number of asset vocabularies where uuid = &#63; and companyId = &#63;.
335            *
336            * @param uuid the uuid
337            * @param companyId the company ID
338            * @return the number of matching asset vocabularies
339            */
340            public int countByUuid_C(java.lang.String uuid, long companyId);
341    
342            /**
343            * Returns all the asset vocabularies where groupId = &#63;.
344            *
345            * @param groupId the group ID
346            * @return the matching asset vocabularies
347            */
348            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByGroupId(
349                    long groupId);
350    
351            /**
352            * Returns a range of all the asset vocabularies where groupId = &#63;.
353            *
354            * <p>
355            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetVocabularyModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
356            * </p>
357            *
358            * @param groupId the group ID
359            * @param start the lower bound of the range of asset vocabularies
360            * @param end the upper bound of the range of asset vocabularies (not inclusive)
361            * @return the range of matching asset vocabularies
362            */
363            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByGroupId(
364                    long groupId, int start, int end);
365    
366            /**
367            * Returns an ordered range of all the asset vocabularies where groupId = &#63;.
368            *
369            * <p>
370            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetVocabularyModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
371            * </p>
372            *
373            * @param groupId the group ID
374            * @param start the lower bound of the range of asset vocabularies
375            * @param end the upper bound of the range of asset vocabularies (not inclusive)
376            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
377            * @return the ordered range of matching asset vocabularies
378            */
379            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByGroupId(
380                    long groupId, int start, int end,
381                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> orderByComparator);
382    
383            /**
384            * Returns the first asset vocabulary in the ordered set where groupId = &#63;.
385            *
386            * @param groupId the group ID
387            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
388            * @return the first matching asset vocabulary
389            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
390            */
391            public com.liferay.portlet.asset.model.AssetVocabulary findByGroupId_First(
392                    long groupId,
393                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> orderByComparator)
394                    throws com.liferay.portlet.asset.NoSuchVocabularyException;
395    
396            /**
397            * Returns the first asset vocabulary in the ordered set where groupId = &#63;.
398            *
399            * @param groupId the group ID
400            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
401            * @return the first matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
402            */
403            public com.liferay.portlet.asset.model.AssetVocabulary fetchByGroupId_First(
404                    long groupId,
405                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> orderByComparator);
406    
407            /**
408            * Returns the last asset vocabulary in the ordered set where groupId = &#63;.
409            *
410            * @param groupId the group ID
411            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
412            * @return the last matching asset vocabulary
413            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
414            */
415            public com.liferay.portlet.asset.model.AssetVocabulary findByGroupId_Last(
416                    long groupId,
417                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> orderByComparator)
418                    throws com.liferay.portlet.asset.NoSuchVocabularyException;
419    
420            /**
421            * Returns the last asset vocabulary in the ordered set where groupId = &#63;.
422            *
423            * @param groupId the group ID
424            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
425            * @return the last matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
426            */
427            public com.liferay.portlet.asset.model.AssetVocabulary fetchByGroupId_Last(
428                    long groupId,
429                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> orderByComparator);
430    
431            /**
432            * Returns the asset vocabularies before and after the current asset vocabulary in the ordered set where groupId = &#63;.
433            *
434            * @param vocabularyId the primary key of the current asset vocabulary
435            * @param groupId the group ID
436            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
437            * @return the previous, current, and next asset vocabulary
438            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found
439            */
440            public com.liferay.portlet.asset.model.AssetVocabulary[] findByGroupId_PrevAndNext(
441                    long vocabularyId, long groupId,
442                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> orderByComparator)
443                    throws com.liferay.portlet.asset.NoSuchVocabularyException;
444    
445            /**
446            * Returns all the asset vocabularies that the user has permission to view where groupId = &#63;.
447            *
448            * @param groupId the group ID
449            * @return the matching asset vocabularies that the user has permission to view
450            */
451            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> filterFindByGroupId(
452                    long groupId);
453    
454            /**
455            * Returns a range of all the asset vocabularies that the user has permission to view where groupId = &#63;.
456            *
457            * <p>
458            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetVocabularyModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
459            * </p>
460            *
461            * @param groupId the group ID
462            * @param start the lower bound of the range of asset vocabularies
463            * @param end the upper bound of the range of asset vocabularies (not inclusive)
464            * @return the range of matching asset vocabularies that the user has permission to view
465            */
466            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> filterFindByGroupId(
467                    long groupId, int start, int end);
468    
469            /**
470            * Returns an ordered range of all the asset vocabularies that the user has permissions to view where groupId = &#63;.
471            *
472            * <p>
473            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetVocabularyModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
474            * </p>
475            *
476            * @param groupId the group ID
477            * @param start the lower bound of the range of asset vocabularies
478            * @param end the upper bound of the range of asset vocabularies (not inclusive)
479            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
480            * @return the ordered range of matching asset vocabularies that the user has permission to view
481            */
482            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> filterFindByGroupId(
483                    long groupId, int start, int end,
484                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> orderByComparator);
485    
486            /**
487            * 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;.
488            *
489            * @param vocabularyId the primary key of the current asset vocabulary
490            * @param groupId the group ID
491            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
492            * @return the previous, current, and next asset vocabulary
493            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found
494            */
495            public com.liferay.portlet.asset.model.AssetVocabulary[] filterFindByGroupId_PrevAndNext(
496                    long vocabularyId, long groupId,
497                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> orderByComparator)
498                    throws com.liferay.portlet.asset.NoSuchVocabularyException;
499    
500            /**
501            * Returns all the asset vocabularies that the user has permission to view where groupId = any &#63;.
502            *
503            * @param groupIds the group IDs
504            * @return the matching asset vocabularies that the user has permission to view
505            */
506            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> filterFindByGroupId(
507                    long[] groupIds);
508    
509            /**
510            * Returns a range of all the asset vocabularies that the user has permission to view where groupId = any &#63;.
511            *
512            * <p>
513            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetVocabularyModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
514            * </p>
515            *
516            * @param groupIds the group IDs
517            * @param start the lower bound of the range of asset vocabularies
518            * @param end the upper bound of the range of asset vocabularies (not inclusive)
519            * @return the range of matching asset vocabularies that the user has permission to view
520            */
521            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> filterFindByGroupId(
522                    long[] groupIds, int start, int end);
523    
524            /**
525            * Returns an ordered range of all the asset vocabularies that the user has permission to view where groupId = any &#63;.
526            *
527            * <p>
528            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetVocabularyModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
529            * </p>
530            *
531            * @param groupIds the group IDs
532            * @param start the lower bound of the range of asset vocabularies
533            * @param end the upper bound of the range of asset vocabularies (not inclusive)
534            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
535            * @return the ordered range of matching asset vocabularies that the user has permission to view
536            */
537            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> filterFindByGroupId(
538                    long[] groupIds, int start, int end,
539                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> orderByComparator);
540    
541            /**
542            * Returns all the asset vocabularies where groupId = any &#63;.
543            *
544            * <p>
545            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetVocabularyModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
546            * </p>
547            *
548            * @param groupIds the group IDs
549            * @return the matching asset vocabularies
550            */
551            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByGroupId(
552                    long[] groupIds);
553    
554            /**
555            * Returns a range of all the asset vocabularies where groupId = any &#63;.
556            *
557            * <p>
558            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetVocabularyModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
559            * </p>
560            *
561            * @param groupIds the group IDs
562            * @param start the lower bound of the range of asset vocabularies
563            * @param end the upper bound of the range of asset vocabularies (not inclusive)
564            * @return the range of matching asset vocabularies
565            */
566            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByGroupId(
567                    long[] groupIds, int start, int end);
568    
569            /**
570            * Returns an ordered range of all the asset vocabularies where groupId = any &#63;.
571            *
572            * <p>
573            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetVocabularyModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
574            * </p>
575            *
576            * @param groupIds the group IDs
577            * @param start the lower bound of the range of asset vocabularies
578            * @param end the upper bound of the range of asset vocabularies (not inclusive)
579            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
580            * @return the ordered range of matching asset vocabularies
581            */
582            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByGroupId(
583                    long[] groupIds, int start, int end,
584                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> orderByComparator);
585    
586            /**
587            * Removes all the asset vocabularies where groupId = &#63; from the database.
588            *
589            * @param groupId the group ID
590            */
591            public void removeByGroupId(long groupId);
592    
593            /**
594            * Returns the number of asset vocabularies where groupId = &#63;.
595            *
596            * @param groupId the group ID
597            * @return the number of matching asset vocabularies
598            */
599            public int countByGroupId(long groupId);
600    
601            /**
602            * Returns the number of asset vocabularies where groupId = any &#63;.
603            *
604            * @param groupIds the group IDs
605            * @return the number of matching asset vocabularies
606            */
607            public int countByGroupId(long[] groupIds);
608    
609            /**
610            * Returns the number of asset vocabularies that the user has permission to view where groupId = &#63;.
611            *
612            * @param groupId the group ID
613            * @return the number of matching asset vocabularies that the user has permission to view
614            */
615            public int filterCountByGroupId(long groupId);
616    
617            /**
618            * Returns the number of asset vocabularies that the user has permission to view where groupId = any &#63;.
619            *
620            * @param groupIds the group IDs
621            * @return the number of matching asset vocabularies that the user has permission to view
622            */
623            public int filterCountByGroupId(long[] groupIds);
624    
625            /**
626            * Returns all the asset vocabularies where companyId = &#63;.
627            *
628            * @param companyId the company ID
629            * @return the matching asset vocabularies
630            */
631            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId(
632                    long companyId);
633    
634            /**
635            * Returns a range of all the asset vocabularies where companyId = &#63;.
636            *
637            * <p>
638            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetVocabularyModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
639            * </p>
640            *
641            * @param companyId the company ID
642            * @param start the lower bound of the range of asset vocabularies
643            * @param end the upper bound of the range of asset vocabularies (not inclusive)
644            * @return the range of matching asset vocabularies
645            */
646            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId(
647                    long companyId, int start, int end);
648    
649            /**
650            * Returns an ordered range of all the asset vocabularies where companyId = &#63;.
651            *
652            * <p>
653            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetVocabularyModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
654            * </p>
655            *
656            * @param companyId the company ID
657            * @param start the lower bound of the range of asset vocabularies
658            * @param end the upper bound of the range of asset vocabularies (not inclusive)
659            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
660            * @return the ordered range of matching asset vocabularies
661            */
662            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId(
663                    long companyId, int start, int end,
664                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> orderByComparator);
665    
666            /**
667            * Returns the first asset vocabulary in the ordered set where companyId = &#63;.
668            *
669            * @param companyId the company ID
670            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
671            * @return the first matching asset vocabulary
672            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
673            */
674            public com.liferay.portlet.asset.model.AssetVocabulary findByCompanyId_First(
675                    long companyId,
676                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> orderByComparator)
677                    throws com.liferay.portlet.asset.NoSuchVocabularyException;
678    
679            /**
680            * Returns the first asset vocabulary in the ordered set where companyId = &#63;.
681            *
682            * @param companyId the company ID
683            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
684            * @return the first matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
685            */
686            public com.liferay.portlet.asset.model.AssetVocabulary fetchByCompanyId_First(
687                    long companyId,
688                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> orderByComparator);
689    
690            /**
691            * Returns the last asset vocabulary in the ordered set where companyId = &#63;.
692            *
693            * @param companyId the company ID
694            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
695            * @return the last matching asset vocabulary
696            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
697            */
698            public com.liferay.portlet.asset.model.AssetVocabulary findByCompanyId_Last(
699                    long companyId,
700                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> orderByComparator)
701                    throws com.liferay.portlet.asset.NoSuchVocabularyException;
702    
703            /**
704            * Returns the last asset vocabulary in the ordered set where companyId = &#63;.
705            *
706            * @param companyId the company ID
707            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
708            * @return the last matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
709            */
710            public com.liferay.portlet.asset.model.AssetVocabulary fetchByCompanyId_Last(
711                    long companyId,
712                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> orderByComparator);
713    
714            /**
715            * Returns the asset vocabularies before and after the current asset vocabulary in the ordered set where companyId = &#63;.
716            *
717            * @param vocabularyId the primary key of the current asset vocabulary
718            * @param companyId the company ID
719            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
720            * @return the previous, current, and next asset vocabulary
721            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found
722            */
723            public com.liferay.portlet.asset.model.AssetVocabulary[] findByCompanyId_PrevAndNext(
724                    long vocabularyId, long companyId,
725                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> orderByComparator)
726                    throws com.liferay.portlet.asset.NoSuchVocabularyException;
727    
728            /**
729            * Removes all the asset vocabularies where companyId = &#63; from the database.
730            *
731            * @param companyId the company ID
732            */
733            public void removeByCompanyId(long companyId);
734    
735            /**
736            * Returns the number of asset vocabularies where companyId = &#63;.
737            *
738            * @param companyId the company ID
739            * @return the number of matching asset vocabularies
740            */
741            public int countByCompanyId(long companyId);
742    
743            /**
744            * 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.
745            *
746            * @param groupId the group ID
747            * @param name the name
748            * @return the matching asset vocabulary
749            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
750            */
751            public com.liferay.portlet.asset.model.AssetVocabulary findByG_N(
752                    long groupId, java.lang.String name)
753                    throws com.liferay.portlet.asset.NoSuchVocabularyException;
754    
755            /**
756            * 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.
757            *
758            * @param groupId the group ID
759            * @param name the name
760            * @return the matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
761            */
762            public com.liferay.portlet.asset.model.AssetVocabulary fetchByG_N(
763                    long groupId, java.lang.String name);
764    
765            /**
766            * 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.
767            *
768            * @param groupId the group ID
769            * @param name the name
770            * @param retrieveFromCache whether to use the finder cache
771            * @return the matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
772            */
773            public com.liferay.portlet.asset.model.AssetVocabulary fetchByG_N(
774                    long groupId, java.lang.String name, boolean retrieveFromCache);
775    
776            /**
777            * Removes the asset vocabulary where groupId = &#63; and name = &#63; from the database.
778            *
779            * @param groupId the group ID
780            * @param name the name
781            * @return the asset vocabulary that was removed
782            */
783            public com.liferay.portlet.asset.model.AssetVocabulary removeByG_N(
784                    long groupId, java.lang.String name)
785                    throws com.liferay.portlet.asset.NoSuchVocabularyException;
786    
787            /**
788            * Returns the number of asset vocabularies where groupId = &#63; and name = &#63;.
789            *
790            * @param groupId the group ID
791            * @param name the name
792            * @return the number of matching asset vocabularies
793            */
794            public int countByG_N(long groupId, java.lang.String name);
795    
796            /**
797            * Returns all the asset vocabularies where groupId = &#63; and name LIKE &#63;.
798            *
799            * @param groupId the group ID
800            * @param name the name
801            * @return the matching asset vocabularies
802            */
803            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByG_LikeN(
804                    long groupId, java.lang.String name);
805    
806            /**
807            * Returns a range of all the asset vocabularies where groupId = &#63; and name LIKE &#63;.
808            *
809            * <p>
810            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetVocabularyModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
811            * </p>
812            *
813            * @param groupId the group ID
814            * @param name the name
815            * @param start the lower bound of the range of asset vocabularies
816            * @param end the upper bound of the range of asset vocabularies (not inclusive)
817            * @return the range of matching asset vocabularies
818            */
819            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByG_LikeN(
820                    long groupId, java.lang.String name, int start, int end);
821    
822            /**
823            * Returns an ordered range of all the asset vocabularies where groupId = &#63; and name LIKE &#63;.
824            *
825            * <p>
826            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetVocabularyModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
827            * </p>
828            *
829            * @param groupId the group ID
830            * @param name the name
831            * @param start the lower bound of the range of asset vocabularies
832            * @param end the upper bound of the range of asset vocabularies (not inclusive)
833            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
834            * @return the ordered range of matching asset vocabularies
835            */
836            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByG_LikeN(
837                    long groupId, java.lang.String name, int start, int end,
838                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> orderByComparator);
839    
840            /**
841            * Returns the first asset vocabulary in the ordered set where groupId = &#63; and name LIKE &#63;.
842            *
843            * @param groupId the group ID
844            * @param name the name
845            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
846            * @return the first matching asset vocabulary
847            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
848            */
849            public com.liferay.portlet.asset.model.AssetVocabulary findByG_LikeN_First(
850                    long groupId, java.lang.String name,
851                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> orderByComparator)
852                    throws com.liferay.portlet.asset.NoSuchVocabularyException;
853    
854            /**
855            * Returns the first asset vocabulary in the ordered set where groupId = &#63; and name LIKE &#63;.
856            *
857            * @param groupId the group ID
858            * @param name the name
859            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
860            * @return the first matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
861            */
862            public com.liferay.portlet.asset.model.AssetVocabulary fetchByG_LikeN_First(
863                    long groupId, java.lang.String name,
864                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> orderByComparator);
865    
866            /**
867            * Returns the last asset vocabulary in the ordered set where groupId = &#63; and name LIKE &#63;.
868            *
869            * @param groupId the group ID
870            * @param name the name
871            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
872            * @return the last matching asset vocabulary
873            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
874            */
875            public com.liferay.portlet.asset.model.AssetVocabulary findByG_LikeN_Last(
876                    long groupId, java.lang.String name,
877                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> orderByComparator)
878                    throws com.liferay.portlet.asset.NoSuchVocabularyException;
879    
880            /**
881            * Returns the last asset vocabulary in the ordered set where groupId = &#63; and name LIKE &#63;.
882            *
883            * @param groupId the group ID
884            * @param name the name
885            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
886            * @return the last matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
887            */
888            public com.liferay.portlet.asset.model.AssetVocabulary fetchByG_LikeN_Last(
889                    long groupId, java.lang.String name,
890                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> orderByComparator);
891    
892            /**
893            * Returns the asset vocabularies before and after the current asset vocabulary in the ordered set where groupId = &#63; and name LIKE &#63;.
894            *
895            * @param vocabularyId the primary key of the current asset vocabulary
896            * @param groupId the group ID
897            * @param name the name
898            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
899            * @return the previous, current, and next asset vocabulary
900            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found
901            */
902            public com.liferay.portlet.asset.model.AssetVocabulary[] findByG_LikeN_PrevAndNext(
903                    long vocabularyId, long groupId, java.lang.String name,
904                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> orderByComparator)
905                    throws com.liferay.portlet.asset.NoSuchVocabularyException;
906    
907            /**
908            * Returns all the asset vocabularies that the user has permission to view where groupId = &#63; and name LIKE &#63;.
909            *
910            * @param groupId the group ID
911            * @param name the name
912            * @return the matching asset vocabularies that the user has permission to view
913            */
914            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> filterFindByG_LikeN(
915                    long groupId, java.lang.String name);
916    
917            /**
918            * Returns a range of all the asset vocabularies that the user has permission to view where groupId = &#63; and name LIKE &#63;.
919            *
920            * <p>
921            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetVocabularyModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
922            * </p>
923            *
924            * @param groupId the group ID
925            * @param name the name
926            * @param start the lower bound of the range of asset vocabularies
927            * @param end the upper bound of the range of asset vocabularies (not inclusive)
928            * @return the range of matching asset vocabularies that the user has permission to view
929            */
930            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> filterFindByG_LikeN(
931                    long groupId, java.lang.String name, int start, int end);
932    
933            /**
934            * Returns an ordered range of all the asset vocabularies that the user has permissions to view where groupId = &#63; and name LIKE &#63;.
935            *
936            * <p>
937            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetVocabularyModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
938            * </p>
939            *
940            * @param groupId the group ID
941            * @param name the name
942            * @param start the lower bound of the range of asset vocabularies
943            * @param end the upper bound of the range of asset vocabularies (not inclusive)
944            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
945            * @return the ordered range of matching asset vocabularies that the user has permission to view
946            */
947            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> filterFindByG_LikeN(
948                    long groupId, java.lang.String name, int start, int end,
949                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> orderByComparator);
950    
951            /**
952            * 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; and name LIKE &#63;.
953            *
954            * @param vocabularyId the primary key of the current asset vocabulary
955            * @param groupId the group ID
956            * @param name the name
957            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
958            * @return the previous, current, and next asset vocabulary
959            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found
960            */
961            public com.liferay.portlet.asset.model.AssetVocabulary[] filterFindByG_LikeN_PrevAndNext(
962                    long vocabularyId, long groupId, java.lang.String name,
963                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> orderByComparator)
964                    throws com.liferay.portlet.asset.NoSuchVocabularyException;
965    
966            /**
967            * Removes all the asset vocabularies where groupId = &#63; and name LIKE &#63; from the database.
968            *
969            * @param groupId the group ID
970            * @param name the name
971            */
972            public void removeByG_LikeN(long groupId, java.lang.String name);
973    
974            /**
975            * Returns the number of asset vocabularies where groupId = &#63; and name LIKE &#63;.
976            *
977            * @param groupId the group ID
978            * @param name the name
979            * @return the number of matching asset vocabularies
980            */
981            public int countByG_LikeN(long groupId, java.lang.String name);
982    
983            /**
984            * Returns the number of asset vocabularies that the user has permission to view where groupId = &#63; and name LIKE &#63;.
985            *
986            * @param groupId the group ID
987            * @param name the name
988            * @return the number of matching asset vocabularies that the user has permission to view
989            */
990            public int filterCountByG_LikeN(long groupId, java.lang.String name);
991    
992            /**
993            * Caches the asset vocabulary in the entity cache if it is enabled.
994            *
995            * @param assetVocabulary the asset vocabulary
996            */
997            public void cacheResult(
998                    com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary);
999    
1000            /**
1001            * Caches the asset vocabularies in the entity cache if it is enabled.
1002            *
1003            * @param assetVocabularies the asset vocabularies
1004            */
1005            public void cacheResult(
1006                    java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> assetVocabularies);
1007    
1008            /**
1009            * Creates a new asset vocabulary with the primary key. Does not add the asset vocabulary to the database.
1010            *
1011            * @param vocabularyId the primary key for the new asset vocabulary
1012            * @return the new asset vocabulary
1013            */
1014            public com.liferay.portlet.asset.model.AssetVocabulary create(
1015                    long vocabularyId);
1016    
1017            /**
1018            * Removes the asset vocabulary with the primary key from the database. Also notifies the appropriate model listeners.
1019            *
1020            * @param vocabularyId the primary key of the asset vocabulary
1021            * @return the asset vocabulary that was removed
1022            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found
1023            */
1024            public com.liferay.portlet.asset.model.AssetVocabulary remove(
1025                    long vocabularyId)
1026                    throws com.liferay.portlet.asset.NoSuchVocabularyException;
1027    
1028            public com.liferay.portlet.asset.model.AssetVocabulary updateImpl(
1029                    com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary);
1030    
1031            /**
1032            * Returns the asset vocabulary with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchVocabularyException} if it could not be found.
1033            *
1034            * @param vocabularyId the primary key of the asset vocabulary
1035            * @return the asset vocabulary
1036            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found
1037            */
1038            public com.liferay.portlet.asset.model.AssetVocabulary findByPrimaryKey(
1039                    long vocabularyId)
1040                    throws com.liferay.portlet.asset.NoSuchVocabularyException;
1041    
1042            /**
1043            * Returns the asset vocabulary with the primary key or returns <code>null</code> if it could not be found.
1044            *
1045            * @param vocabularyId the primary key of the asset vocabulary
1046            * @return the asset vocabulary, or <code>null</code> if a asset vocabulary with the primary key could not be found
1047            */
1048            public com.liferay.portlet.asset.model.AssetVocabulary fetchByPrimaryKey(
1049                    long vocabularyId);
1050    
1051            @Override
1052            public java.util.Map<java.io.Serializable, com.liferay.portlet.asset.model.AssetVocabulary> fetchByPrimaryKeys(
1053                    java.util.Set<java.io.Serializable> primaryKeys);
1054    
1055            /**
1056            * Returns all the asset vocabularies.
1057            *
1058            * @return the asset vocabularies
1059            */
1060            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll();
1061    
1062            /**
1063            * Returns a range of all the asset vocabularies.
1064            *
1065            * <p>
1066            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetVocabularyModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1067            * </p>
1068            *
1069            * @param start the lower bound of the range of asset vocabularies
1070            * @param end the upper bound of the range of asset vocabularies (not inclusive)
1071            * @return the range of asset vocabularies
1072            */
1073            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll(
1074                    int start, int end);
1075    
1076            /**
1077            * Returns an ordered range of all the asset vocabularies.
1078            *
1079            * <p>
1080            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetVocabularyModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1081            * </p>
1082            *
1083            * @param start the lower bound of the range of asset vocabularies
1084            * @param end the upper bound of the range of asset vocabularies (not inclusive)
1085            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1086            * @return the ordered range of asset vocabularies
1087            */
1088            public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll(
1089                    int start, int end,
1090                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetVocabulary> orderByComparator);
1091    
1092            /**
1093            * Removes all the asset vocabularies from the database.
1094            */
1095            public void removeAll();
1096    
1097            /**
1098            * Returns the number of asset vocabularies.
1099            *
1100            * @return the number of asset vocabularies
1101            */
1102            public int countAll();
1103    }