001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portlet.asset.service.persistence;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019    import com.liferay.portal.kernel.exception.SystemException;
020    import com.liferay.portal.kernel.util.OrderByComparator;
021    import com.liferay.portal.kernel.util.ReferenceRegistry;
022    import com.liferay.portal.service.ServiceContext;
023    
024    import com.liferay.portlet.asset.model.AssetVocabulary;
025    
026    import java.util.List;
027    
028    /**
029     * The persistence utility for the asset vocabulary service. This utility wraps {@link AssetVocabularyPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
030     *
031     * <p>
032     * Caching information and settings can be found in <code>portal.properties</code>
033     * </p>
034     *
035     * @author Brian Wing Shun Chan
036     * @see AssetVocabularyPersistence
037     * @see AssetVocabularyPersistenceImpl
038     * @generated
039     */
040    public class AssetVocabularyUtil {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
045             */
046    
047            /**
048             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
049             */
050            public static void clearCache() {
051                    getPersistence().clearCache();
052            }
053    
054            /**
055             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
056             */
057            public static void clearCache(AssetVocabulary assetVocabulary) {
058                    getPersistence().clearCache(assetVocabulary);
059            }
060    
061            /**
062             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
063             */
064            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
065                    throws SystemException {
066                    return getPersistence().countWithDynamicQuery(dynamicQuery);
067            }
068    
069            /**
070             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
071             */
072            public static List<AssetVocabulary> findWithDynamicQuery(
073                    DynamicQuery dynamicQuery) throws SystemException {
074                    return getPersistence().findWithDynamicQuery(dynamicQuery);
075            }
076    
077            /**
078             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
079             */
080            public static List<AssetVocabulary> findWithDynamicQuery(
081                    DynamicQuery dynamicQuery, int start, int end)
082                    throws SystemException {
083                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
084            }
085    
086            /**
087             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
088             */
089            public static List<AssetVocabulary> findWithDynamicQuery(
090                    DynamicQuery dynamicQuery, int start, int end,
091                    OrderByComparator orderByComparator) throws SystemException {
092                    return getPersistence()
093                                       .findWithDynamicQuery(dynamicQuery, start, end,
094                            orderByComparator);
095            }
096    
097            /**
098             * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
099             */
100            public static AssetVocabulary remove(AssetVocabulary assetVocabulary)
101                    throws SystemException {
102                    return getPersistence().remove(assetVocabulary);
103            }
104    
105            /**
106             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
107             */
108            public static AssetVocabulary update(AssetVocabulary assetVocabulary,
109                    boolean merge) throws SystemException {
110                    return getPersistence().update(assetVocabulary, merge);
111            }
112    
113            /**
114             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
115             */
116            public static AssetVocabulary update(AssetVocabulary assetVocabulary,
117                    boolean merge, ServiceContext serviceContext) throws SystemException {
118                    return getPersistence().update(assetVocabulary, merge, serviceContext);
119            }
120    
121            /**
122            * Caches the asset vocabulary in the entity cache if it is enabled.
123            *
124            * @param assetVocabulary the asset vocabulary
125            */
126            public static void cacheResult(
127                    com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary) {
128                    getPersistence().cacheResult(assetVocabulary);
129            }
130    
131            /**
132            * Caches the asset vocabularies in the entity cache if it is enabled.
133            *
134            * @param assetVocabularies the asset vocabularies
135            */
136            public static void cacheResult(
137                    java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> assetVocabularies) {
138                    getPersistence().cacheResult(assetVocabularies);
139            }
140    
141            /**
142            * Creates a new asset vocabulary with the primary key. Does not add the asset vocabulary to the database.
143            *
144            * @param vocabularyId the primary key for the new asset vocabulary
145            * @return the new asset vocabulary
146            */
147            public static com.liferay.portlet.asset.model.AssetVocabulary create(
148                    long vocabularyId) {
149                    return getPersistence().create(vocabularyId);
150            }
151    
152            /**
153            * Removes the asset vocabulary with the primary key from the database. Also notifies the appropriate model listeners.
154            *
155            * @param vocabularyId the primary key of the asset vocabulary
156            * @return the asset vocabulary that was removed
157            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found
158            * @throws SystemException if a system exception occurred
159            */
160            public static com.liferay.portlet.asset.model.AssetVocabulary remove(
161                    long vocabularyId)
162                    throws com.liferay.portal.kernel.exception.SystemException,
163                            com.liferay.portlet.asset.NoSuchVocabularyException {
164                    return getPersistence().remove(vocabularyId);
165            }
166    
167            public static com.liferay.portlet.asset.model.AssetVocabulary updateImpl(
168                    com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary,
169                    boolean merge)
170                    throws com.liferay.portal.kernel.exception.SystemException {
171                    return getPersistence().updateImpl(assetVocabulary, merge);
172            }
173    
174            /**
175            * Returns the asset vocabulary with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchVocabularyException} if it could not be found.
176            *
177            * @param vocabularyId the primary key of the asset vocabulary
178            * @return the asset vocabulary
179            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found
180            * @throws SystemException if a system exception occurred
181            */
182            public static com.liferay.portlet.asset.model.AssetVocabulary findByPrimaryKey(
183                    long vocabularyId)
184                    throws com.liferay.portal.kernel.exception.SystemException,
185                            com.liferay.portlet.asset.NoSuchVocabularyException {
186                    return getPersistence().findByPrimaryKey(vocabularyId);
187            }
188    
189            /**
190            * Returns the asset vocabulary with the primary key or returns <code>null</code> if it could not be found.
191            *
192            * @param vocabularyId the primary key of the asset vocabulary
193            * @return the asset vocabulary, or <code>null</code> if a asset vocabulary with the primary key could not be found
194            * @throws SystemException if a system exception occurred
195            */
196            public static com.liferay.portlet.asset.model.AssetVocabulary fetchByPrimaryKey(
197                    long vocabularyId)
198                    throws com.liferay.portal.kernel.exception.SystemException {
199                    return getPersistence().fetchByPrimaryKey(vocabularyId);
200            }
201    
202            /**
203            * Returns all the asset vocabularies where uuid = &#63;.
204            *
205            * @param uuid the uuid
206            * @return the matching asset vocabularies
207            * @throws SystemException if a system exception occurred
208            */
209            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByUuid(
210                    java.lang.String uuid)
211                    throws com.liferay.portal.kernel.exception.SystemException {
212                    return getPersistence().findByUuid(uuid);
213            }
214    
215            /**
216            * Returns a range of all the asset vocabularies where uuid = &#63;.
217            *
218            * <p>
219            * 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.
220            * </p>
221            *
222            * @param uuid the uuid
223            * @param start the lower bound of the range of asset vocabularies
224            * @param end the upper bound of the range of asset vocabularies (not inclusive)
225            * @return the range of matching asset vocabularies
226            * @throws SystemException if a system exception occurred
227            */
228            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByUuid(
229                    java.lang.String uuid, int start, int end)
230                    throws com.liferay.portal.kernel.exception.SystemException {
231                    return getPersistence().findByUuid(uuid, start, end);
232            }
233    
234            /**
235            * Returns an ordered range of all the asset vocabularies where uuid = &#63;.
236            *
237            * <p>
238            * 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.
239            * </p>
240            *
241            * @param uuid the uuid
242            * @param start the lower bound of the range of asset vocabularies
243            * @param end the upper bound of the range of asset vocabularies (not inclusive)
244            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
245            * @return the ordered range of matching asset vocabularies
246            * @throws SystemException if a system exception occurred
247            */
248            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByUuid(
249                    java.lang.String uuid, int start, int end,
250                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
251                    throws com.liferay.portal.kernel.exception.SystemException {
252                    return getPersistence().findByUuid(uuid, start, end, orderByComparator);
253            }
254    
255            /**
256            * Returns the first asset vocabulary in the ordered set where uuid = &#63;.
257            *
258            * <p>
259            * 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.
260            * </p>
261            *
262            * @param uuid the uuid
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            * @throws SystemException if a system exception occurred
267            */
268            public static com.liferay.portlet.asset.model.AssetVocabulary findByUuid_First(
269                    java.lang.String uuid,
270                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
271                    throws com.liferay.portal.kernel.exception.SystemException,
272                            com.liferay.portlet.asset.NoSuchVocabularyException {
273                    return getPersistence().findByUuid_First(uuid, orderByComparator);
274            }
275    
276            /**
277            * Returns the last asset vocabulary in the ordered set where uuid = &#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 orderByComparator the comparator to order the set by (optionally <code>null</code>)
285            * @return the last matching asset vocabulary
286            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
287            * @throws SystemException if a system exception occurred
288            */
289            public static com.liferay.portlet.asset.model.AssetVocabulary findByUuid_Last(
290                    java.lang.String uuid,
291                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
292                    throws com.liferay.portal.kernel.exception.SystemException,
293                            com.liferay.portlet.asset.NoSuchVocabularyException {
294                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
295            }
296    
297            /**
298            * Returns the asset vocabularies before and after the current asset vocabulary in the ordered set where uuid = &#63;.
299            *
300            * <p>
301            * 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.
302            * </p>
303            *
304            * @param vocabularyId the primary key of the current asset vocabulary
305            * @param uuid the uuid
306            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
307            * @return the previous, current, and next asset vocabulary
308            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found
309            * @throws SystemException if a system exception occurred
310            */
311            public static com.liferay.portlet.asset.model.AssetVocabulary[] findByUuid_PrevAndNext(
312                    long vocabularyId, java.lang.String uuid,
313                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
314                    throws com.liferay.portal.kernel.exception.SystemException,
315                            com.liferay.portlet.asset.NoSuchVocabularyException {
316                    return getPersistence()
317                                       .findByUuid_PrevAndNext(vocabularyId, uuid, orderByComparator);
318            }
319    
320            /**
321            * 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.
322            *
323            * @param uuid the uuid
324            * @param groupId the group ID
325            * @return the matching asset vocabulary
326            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
327            * @throws SystemException if a system exception occurred
328            */
329            public static com.liferay.portlet.asset.model.AssetVocabulary findByUUID_G(
330                    java.lang.String uuid, long groupId)
331                    throws com.liferay.portal.kernel.exception.SystemException,
332                            com.liferay.portlet.asset.NoSuchVocabularyException {
333                    return getPersistence().findByUUID_G(uuid, groupId);
334            }
335    
336            /**
337            * 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.
338            *
339            * @param uuid the uuid
340            * @param groupId the group ID
341            * @return the matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
342            * @throws SystemException if a system exception occurred
343            */
344            public static com.liferay.portlet.asset.model.AssetVocabulary fetchByUUID_G(
345                    java.lang.String uuid, long groupId)
346                    throws com.liferay.portal.kernel.exception.SystemException {
347                    return getPersistence().fetchByUUID_G(uuid, groupId);
348            }
349    
350            /**
351            * 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.
352            *
353            * @param uuid the uuid
354            * @param groupId the group ID
355            * @param retrieveFromCache whether to use the finder cache
356            * @return the matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
357            * @throws SystemException if a system exception occurred
358            */
359            public static com.liferay.portlet.asset.model.AssetVocabulary fetchByUUID_G(
360                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
361                    throws com.liferay.portal.kernel.exception.SystemException {
362                    return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
363            }
364    
365            /**
366            * Returns all the asset vocabularies where groupId = &#63;.
367            *
368            * @param groupId the group ID
369            * @return the matching asset vocabularies
370            * @throws SystemException if a system exception occurred
371            */
372            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByGroupId(
373                    long groupId)
374                    throws com.liferay.portal.kernel.exception.SystemException {
375                    return getPersistence().findByGroupId(groupId);
376            }
377    
378            /**
379            * Returns a range of all the asset vocabularies where groupId = &#63;.
380            *
381            * <p>
382            * 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.
383            * </p>
384            *
385            * @param groupId the group ID
386            * @param start the lower bound of the range of asset vocabularies
387            * @param end the upper bound of the range of asset vocabularies (not inclusive)
388            * @return the range of matching asset vocabularies
389            * @throws SystemException if a system exception occurred
390            */
391            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByGroupId(
392                    long groupId, int start, int end)
393                    throws com.liferay.portal.kernel.exception.SystemException {
394                    return getPersistence().findByGroupId(groupId, start, end);
395            }
396    
397            /**
398            * Returns an ordered range of all the asset vocabularies where groupId = &#63;.
399            *
400            * <p>
401            * 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.
402            * </p>
403            *
404            * @param groupId the group ID
405            * @param start the lower bound of the range of asset vocabularies
406            * @param end the upper bound of the range of asset vocabularies (not inclusive)
407            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
408            * @return the ordered range of matching asset vocabularies
409            * @throws SystemException if a system exception occurred
410            */
411            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByGroupId(
412                    long groupId, int start, int end,
413                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
414                    throws com.liferay.portal.kernel.exception.SystemException {
415                    return getPersistence()
416                                       .findByGroupId(groupId, start, end, orderByComparator);
417            }
418    
419            /**
420            * Returns the first asset vocabulary in the ordered set 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 orderByComparator the comparator to order the set by (optionally <code>null</code>)
428            * @return the first matching asset vocabulary
429            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
430            * @throws SystemException if a system exception occurred
431            */
432            public static com.liferay.portlet.asset.model.AssetVocabulary findByGroupId_First(
433                    long groupId,
434                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
435                    throws com.liferay.portal.kernel.exception.SystemException,
436                            com.liferay.portlet.asset.NoSuchVocabularyException {
437                    return getPersistence().findByGroupId_First(groupId, orderByComparator);
438            }
439    
440            /**
441            * Returns the last asset vocabulary in the ordered set where groupId = &#63;.
442            *
443            * <p>
444            * 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.
445            * </p>
446            *
447            * @param groupId the group ID
448            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
449            * @return the last matching asset vocabulary
450            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
451            * @throws SystemException if a system exception occurred
452            */
453            public static com.liferay.portlet.asset.model.AssetVocabulary findByGroupId_Last(
454                    long groupId,
455                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
456                    throws com.liferay.portal.kernel.exception.SystemException,
457                            com.liferay.portlet.asset.NoSuchVocabularyException {
458                    return getPersistence().findByGroupId_Last(groupId, orderByComparator);
459            }
460    
461            /**
462            * Returns the asset vocabularies before and after the current asset vocabulary in the ordered set where groupId = &#63;.
463            *
464            * <p>
465            * 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.
466            * </p>
467            *
468            * @param vocabularyId the primary key of the current asset vocabulary
469            * @param groupId the group ID
470            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
471            * @return the previous, current, and next asset vocabulary
472            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found
473            * @throws SystemException if a system exception occurred
474            */
475            public static com.liferay.portlet.asset.model.AssetVocabulary[] findByGroupId_PrevAndNext(
476                    long vocabularyId, 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                    return getPersistence()
481                                       .findByGroupId_PrevAndNext(vocabularyId, groupId,
482                            orderByComparator);
483            }
484    
485            /**
486            * Returns all the asset vocabularies that the user has permission to view where groupId = &#63;.
487            *
488            * @param groupId the group ID
489            * @return the matching asset vocabularies that the user has permission to view
490            * @throws SystemException if a system exception occurred
491            */
492            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> filterFindByGroupId(
493                    long groupId)
494                    throws com.liferay.portal.kernel.exception.SystemException {
495                    return getPersistence().filterFindByGroupId(groupId);
496            }
497    
498            /**
499            * Returns a range of all the asset vocabularies that the user has permission to view where groupId = &#63;.
500            *
501            * <p>
502            * 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.
503            * </p>
504            *
505            * @param groupId the group ID
506            * @param start the lower bound of the range of asset vocabularies
507            * @param end the upper bound of the range of asset vocabularies (not inclusive)
508            * @return the range of matching asset vocabularies that the user has permission to view
509            * @throws SystemException if a system exception occurred
510            */
511            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> filterFindByGroupId(
512                    long groupId, int start, int end)
513                    throws com.liferay.portal.kernel.exception.SystemException {
514                    return getPersistence().filterFindByGroupId(groupId, start, end);
515            }
516    
517            /**
518            * Returns an ordered range of all the asset vocabularies that the user has permissions to view where groupId = &#63;.
519            *
520            * <p>
521            * 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.
522            * </p>
523            *
524            * @param groupId the group ID
525            * @param start the lower bound of the range of asset vocabularies
526            * @param end the upper bound of the range of asset vocabularies (not inclusive)
527            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
528            * @return the ordered range of matching asset vocabularies that the user has permission to view
529            * @throws SystemException if a system exception occurred
530            */
531            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> filterFindByGroupId(
532                    long groupId, int start, int end,
533                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
534                    throws com.liferay.portal.kernel.exception.SystemException {
535                    return getPersistence()
536                                       .filterFindByGroupId(groupId, start, end, orderByComparator);
537            }
538    
539            /**
540            * 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;.
541            *
542            * @param vocabularyId the primary key of the current asset vocabulary
543            * @param groupId the group ID
544            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
545            * @return the previous, current, and next asset vocabulary
546            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found
547            * @throws SystemException if a system exception occurred
548            */
549            public static com.liferay.portlet.asset.model.AssetVocabulary[] filterFindByGroupId_PrevAndNext(
550                    long vocabularyId, long groupId,
551                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
552                    throws com.liferay.portal.kernel.exception.SystemException,
553                            com.liferay.portlet.asset.NoSuchVocabularyException {
554                    return getPersistence()
555                                       .filterFindByGroupId_PrevAndNext(vocabularyId, groupId,
556                            orderByComparator);
557            }
558    
559            /**
560            * Returns all the asset vocabularies where companyId = &#63;.
561            *
562            * @param companyId the company ID
563            * @return the matching asset vocabularies
564            * @throws SystemException if a system exception occurred
565            */
566            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId(
567                    long companyId)
568                    throws com.liferay.portal.kernel.exception.SystemException {
569                    return getPersistence().findByCompanyId(companyId);
570            }
571    
572            /**
573            * Returns a range of all the asset vocabularies where companyId = &#63;.
574            *
575            * <p>
576            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
577            * </p>
578            *
579            * @param companyId the company ID
580            * @param start the lower bound of the range of asset vocabularies
581            * @param end the upper bound of the range of asset vocabularies (not inclusive)
582            * @return the range of matching asset vocabularies
583            * @throws SystemException if a system exception occurred
584            */
585            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId(
586                    long companyId, int start, int end)
587                    throws com.liferay.portal.kernel.exception.SystemException {
588                    return getPersistence().findByCompanyId(companyId, start, end);
589            }
590    
591            /**
592            * Returns an ordered range of all the asset vocabularies where companyId = &#63;.
593            *
594            * <p>
595            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
596            * </p>
597            *
598            * @param companyId the company ID
599            * @param start the lower bound of the range of asset vocabularies
600            * @param end the upper bound of the range of asset vocabularies (not inclusive)
601            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
602            * @return the ordered range of matching asset vocabularies
603            * @throws SystemException if a system exception occurred
604            */
605            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findByCompanyId(
606                    long companyId, int start, int end,
607                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
608                    throws com.liferay.portal.kernel.exception.SystemException {
609                    return getPersistence()
610                                       .findByCompanyId(companyId, start, end, orderByComparator);
611            }
612    
613            /**
614            * Returns the first asset vocabulary in the ordered set where companyId = &#63;.
615            *
616            * <p>
617            * 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.
618            * </p>
619            *
620            * @param companyId the company ID
621            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
622            * @return the first matching asset vocabulary
623            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
624            * @throws SystemException if a system exception occurred
625            */
626            public static com.liferay.portlet.asset.model.AssetVocabulary findByCompanyId_First(
627                    long companyId,
628                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
629                    throws com.liferay.portal.kernel.exception.SystemException,
630                            com.liferay.portlet.asset.NoSuchVocabularyException {
631                    return getPersistence()
632                                       .findByCompanyId_First(companyId, orderByComparator);
633            }
634    
635            /**
636            * Returns the last asset vocabulary in the ordered set where companyId = &#63;.
637            *
638            * <p>
639            * 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.
640            * </p>
641            *
642            * @param companyId the company ID
643            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
644            * @return the last matching asset vocabulary
645            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
646            * @throws SystemException if a system exception occurred
647            */
648            public static com.liferay.portlet.asset.model.AssetVocabulary findByCompanyId_Last(
649                    long companyId,
650                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
651                    throws com.liferay.portal.kernel.exception.SystemException,
652                            com.liferay.portlet.asset.NoSuchVocabularyException {
653                    return getPersistence()
654                                       .findByCompanyId_Last(companyId, orderByComparator);
655            }
656    
657            /**
658            * Returns the asset vocabularies before and after the current asset vocabulary in the ordered set where companyId = &#63;.
659            *
660            * <p>
661            * 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.
662            * </p>
663            *
664            * @param vocabularyId the primary key of the current asset vocabulary
665            * @param companyId the company ID
666            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
667            * @return the previous, current, and next asset vocabulary
668            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a asset vocabulary with the primary key could not be found
669            * @throws SystemException if a system exception occurred
670            */
671            public static com.liferay.portlet.asset.model.AssetVocabulary[] findByCompanyId_PrevAndNext(
672                    long vocabularyId, long companyId,
673                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
674                    throws com.liferay.portal.kernel.exception.SystemException,
675                            com.liferay.portlet.asset.NoSuchVocabularyException {
676                    return getPersistence()
677                                       .findByCompanyId_PrevAndNext(vocabularyId, companyId,
678                            orderByComparator);
679            }
680    
681            /**
682            * 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.
683            *
684            * @param groupId the group ID
685            * @param name the name
686            * @return the matching asset vocabulary
687            * @throws com.liferay.portlet.asset.NoSuchVocabularyException if a matching asset vocabulary could not be found
688            * @throws SystemException if a system exception occurred
689            */
690            public static com.liferay.portlet.asset.model.AssetVocabulary findByG_N(
691                    long groupId, java.lang.String name)
692                    throws com.liferay.portal.kernel.exception.SystemException,
693                            com.liferay.portlet.asset.NoSuchVocabularyException {
694                    return getPersistence().findByG_N(groupId, name);
695            }
696    
697            /**
698            * 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.
699            *
700            * @param groupId the group ID
701            * @param name the name
702            * @return the matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
703            * @throws SystemException if a system exception occurred
704            */
705            public static com.liferay.portlet.asset.model.AssetVocabulary fetchByG_N(
706                    long groupId, java.lang.String name)
707                    throws com.liferay.portal.kernel.exception.SystemException {
708                    return getPersistence().fetchByG_N(groupId, name);
709            }
710    
711            /**
712            * 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.
713            *
714            * @param groupId the group ID
715            * @param name the name
716            * @param retrieveFromCache whether to use the finder cache
717            * @return the matching asset vocabulary, or <code>null</code> if a matching asset vocabulary could not be found
718            * @throws SystemException if a system exception occurred
719            */
720            public static com.liferay.portlet.asset.model.AssetVocabulary fetchByG_N(
721                    long groupId, java.lang.String name, boolean retrieveFromCache)
722                    throws com.liferay.portal.kernel.exception.SystemException {
723                    return getPersistence().fetchByG_N(groupId, name, retrieveFromCache);
724            }
725    
726            /**
727            * Returns all the asset vocabularies.
728            *
729            * @return the asset vocabularies
730            * @throws SystemException if a system exception occurred
731            */
732            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll()
733                    throws com.liferay.portal.kernel.exception.SystemException {
734                    return getPersistence().findAll();
735            }
736    
737            /**
738            * Returns a range of all the asset vocabularies.
739            *
740            * <p>
741            * 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.
742            * </p>
743            *
744            * @param start the lower bound of the range of asset vocabularies
745            * @param end the upper bound of the range of asset vocabularies (not inclusive)
746            * @return the range of asset vocabularies
747            * @throws SystemException if a system exception occurred
748            */
749            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll(
750                    int start, int end)
751                    throws com.liferay.portal.kernel.exception.SystemException {
752                    return getPersistence().findAll(start, end);
753            }
754    
755            /**
756            * Returns an ordered range of all the asset vocabularies.
757            *
758            * <p>
759            * 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.
760            * </p>
761            *
762            * @param start the lower bound of the range of asset vocabularies
763            * @param end the upper bound of the range of asset vocabularies (not inclusive)
764            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
765            * @return the ordered range of asset vocabularies
766            * @throws SystemException if a system exception occurred
767            */
768            public static java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> findAll(
769                    int start, int end,
770                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
771                    throws com.liferay.portal.kernel.exception.SystemException {
772                    return getPersistence().findAll(start, end, orderByComparator);
773            }
774    
775            /**
776            * Removes all the asset vocabularies where uuid = &#63; from the database.
777            *
778            * @param uuid the uuid
779            * @throws SystemException if a system exception occurred
780            */
781            public static void removeByUuid(java.lang.String uuid)
782                    throws com.liferay.portal.kernel.exception.SystemException {
783                    getPersistence().removeByUuid(uuid);
784            }
785    
786            /**
787            * Removes the asset vocabulary where uuid = &#63; and groupId = &#63; from the database.
788            *
789            * @param uuid the uuid
790            * @param groupId the group ID
791            * @throws SystemException if a system exception occurred
792            */
793            public static void removeByUUID_G(java.lang.String uuid, long groupId)
794                    throws com.liferay.portal.kernel.exception.SystemException,
795                            com.liferay.portlet.asset.NoSuchVocabularyException {
796                    getPersistence().removeByUUID_G(uuid, groupId);
797            }
798    
799            /**
800            * Removes all the asset vocabularies where groupId = &#63; from the database.
801            *
802            * @param groupId the group ID
803            * @throws SystemException if a system exception occurred
804            */
805            public static void removeByGroupId(long groupId)
806                    throws com.liferay.portal.kernel.exception.SystemException {
807                    getPersistence().removeByGroupId(groupId);
808            }
809    
810            /**
811            * Removes all the asset vocabularies where companyId = &#63; from the database.
812            *
813            * @param companyId the company ID
814            * @throws SystemException if a system exception occurred
815            */
816            public static void removeByCompanyId(long companyId)
817                    throws com.liferay.portal.kernel.exception.SystemException {
818                    getPersistence().removeByCompanyId(companyId);
819            }
820    
821            /**
822            * Removes the asset vocabulary where groupId = &#63; and name = &#63; from the database.
823            *
824            * @param groupId the group ID
825            * @param name the name
826            * @throws SystemException if a system exception occurred
827            */
828            public static void removeByG_N(long groupId, java.lang.String name)
829                    throws com.liferay.portal.kernel.exception.SystemException,
830                            com.liferay.portlet.asset.NoSuchVocabularyException {
831                    getPersistence().removeByG_N(groupId, name);
832            }
833    
834            /**
835            * Removes all the asset vocabularies from the database.
836            *
837            * @throws SystemException if a system exception occurred
838            */
839            public static void removeAll()
840                    throws com.liferay.portal.kernel.exception.SystemException {
841                    getPersistence().removeAll();
842            }
843    
844            /**
845            * Returns the number of asset vocabularies where uuid = &#63;.
846            *
847            * @param uuid the uuid
848            * @return the number of matching asset vocabularies
849            * @throws SystemException if a system exception occurred
850            */
851            public static int countByUuid(java.lang.String uuid)
852                    throws com.liferay.portal.kernel.exception.SystemException {
853                    return getPersistence().countByUuid(uuid);
854            }
855    
856            /**
857            * Returns the number of asset vocabularies where uuid = &#63; and groupId = &#63;.
858            *
859            * @param uuid the uuid
860            * @param groupId the group ID
861            * @return the number of matching asset vocabularies
862            * @throws SystemException if a system exception occurred
863            */
864            public static int countByUUID_G(java.lang.String uuid, long groupId)
865                    throws com.liferay.portal.kernel.exception.SystemException {
866                    return getPersistence().countByUUID_G(uuid, groupId);
867            }
868    
869            /**
870            * Returns the number of asset vocabularies where groupId = &#63;.
871            *
872            * @param groupId the group ID
873            * @return the number of matching asset vocabularies
874            * @throws SystemException if a system exception occurred
875            */
876            public static int countByGroupId(long groupId)
877                    throws com.liferay.portal.kernel.exception.SystemException {
878                    return getPersistence().countByGroupId(groupId);
879            }
880    
881            /**
882            * Returns the number of asset vocabularies that the user has permission to view where groupId = &#63;.
883            *
884            * @param groupId the group ID
885            * @return the number of matching asset vocabularies that the user has permission to view
886            * @throws SystemException if a system exception occurred
887            */
888            public static int filterCountByGroupId(long groupId)
889                    throws com.liferay.portal.kernel.exception.SystemException {
890                    return getPersistence().filterCountByGroupId(groupId);
891            }
892    
893            /**
894            * Returns the number of asset vocabularies where companyId = &#63;.
895            *
896            * @param companyId the company ID
897            * @return the number of matching asset vocabularies
898            * @throws SystemException if a system exception occurred
899            */
900            public static int countByCompanyId(long companyId)
901                    throws com.liferay.portal.kernel.exception.SystemException {
902                    return getPersistence().countByCompanyId(companyId);
903            }
904    
905            /**
906            * Returns the number of asset vocabularies where groupId = &#63; and name = &#63;.
907            *
908            * @param groupId the group ID
909            * @param name the name
910            * @return the number of matching asset vocabularies
911            * @throws SystemException if a system exception occurred
912            */
913            public static int countByG_N(long groupId, java.lang.String name)
914                    throws com.liferay.portal.kernel.exception.SystemException {
915                    return getPersistence().countByG_N(groupId, name);
916            }
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 static int countAll()
925                    throws com.liferay.portal.kernel.exception.SystemException {
926                    return getPersistence().countAll();
927            }
928    
929            public static AssetVocabularyPersistence getPersistence() {
930                    if (_persistence == null) {
931                            _persistence = (AssetVocabularyPersistence)PortalBeanLocatorUtil.locate(AssetVocabularyPersistence.class.getName());
932    
933                            ReferenceRegistry.registerReference(AssetVocabularyUtil.class,
934                                    "_persistence");
935                    }
936    
937                    return _persistence;
938            }
939    
940            public void setPersistence(AssetVocabularyPersistence persistence) {
941                    _persistence = persistence;
942    
943                    ReferenceRegistry.registerReference(AssetVocabularyUtil.class,
944                            "_persistence");
945            }
946    
947            private static AssetVocabularyPersistence _persistence;
948    }