001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.asset.service.persistence;
016    
017    import com.liferay.portal.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.service.ServiceContext;
022    
023    import com.liferay.portlet.asset.model.AssetCategory;
024    
025    import java.util.List;
026    
027    /**
028     * @author    Brian Wing Shun Chan
029     * @see       AssetCategoryPersistence
030     * @see       AssetCategoryPersistenceImpl
031     * @generated
032     */
033    public class AssetCategoryUtil {
034            /**
035             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
036             */
037            public static void clearCache() {
038                    getPersistence().clearCache();
039            }
040    
041            /**
042             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
043             */
044            public static void clearCache(AssetCategory assetCategory) {
045                    getPersistence().clearCache(assetCategory);
046            }
047    
048            /**
049             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
050             */
051            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
052                    throws SystemException {
053                    return getPersistence().countWithDynamicQuery(dynamicQuery);
054            }
055    
056            /**
057             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
058             */
059            public static List<AssetCategory> findWithDynamicQuery(
060                    DynamicQuery dynamicQuery) throws SystemException {
061                    return getPersistence().findWithDynamicQuery(dynamicQuery);
062            }
063    
064            /**
065             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
066             */
067            public static List<AssetCategory> findWithDynamicQuery(
068                    DynamicQuery dynamicQuery, int start, int end)
069                    throws SystemException {
070                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
071            }
072    
073            /**
074             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
075             */
076            public static List<AssetCategory> findWithDynamicQuery(
077                    DynamicQuery dynamicQuery, int start, int end,
078                    OrderByComparator orderByComparator) throws SystemException {
079                    return getPersistence()
080                                       .findWithDynamicQuery(dynamicQuery, start, end,
081                            orderByComparator);
082            }
083    
084            /**
085             * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
086             */
087            public static AssetCategory remove(AssetCategory assetCategory)
088                    throws SystemException {
089                    return getPersistence().remove(assetCategory);
090            }
091    
092            /**
093             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
094             */
095            public static AssetCategory update(AssetCategory assetCategory,
096                    boolean merge) throws SystemException {
097                    return getPersistence().update(assetCategory, merge);
098            }
099    
100            /**
101             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
102             */
103            public static AssetCategory update(AssetCategory assetCategory,
104                    boolean merge, ServiceContext serviceContext) throws SystemException {
105                    return getPersistence().update(assetCategory, merge, serviceContext);
106            }
107    
108            public static void cacheResult(
109                    com.liferay.portlet.asset.model.AssetCategory assetCategory) {
110                    getPersistence().cacheResult(assetCategory);
111            }
112    
113            public static void cacheResult(
114                    java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories) {
115                    getPersistence().cacheResult(assetCategories);
116            }
117    
118            public static com.liferay.portlet.asset.model.AssetCategory create(
119                    long categoryId) {
120                    return getPersistence().create(categoryId);
121            }
122    
123            public static com.liferay.portlet.asset.model.AssetCategory remove(
124                    long categoryId)
125                    throws com.liferay.portal.kernel.exception.SystemException,
126                            com.liferay.portlet.asset.NoSuchCategoryException {
127                    return getPersistence().remove(categoryId);
128            }
129    
130            public static com.liferay.portlet.asset.model.AssetCategory updateImpl(
131                    com.liferay.portlet.asset.model.AssetCategory assetCategory,
132                    boolean merge)
133                    throws com.liferay.portal.kernel.exception.SystemException {
134                    return getPersistence().updateImpl(assetCategory, merge);
135            }
136    
137            public static com.liferay.portlet.asset.model.AssetCategory findByPrimaryKey(
138                    long categoryId)
139                    throws com.liferay.portal.kernel.exception.SystemException,
140                            com.liferay.portlet.asset.NoSuchCategoryException {
141                    return getPersistence().findByPrimaryKey(categoryId);
142            }
143    
144            public static com.liferay.portlet.asset.model.AssetCategory fetchByPrimaryKey(
145                    long categoryId)
146                    throws com.liferay.portal.kernel.exception.SystemException {
147                    return getPersistence().fetchByPrimaryKey(categoryId);
148            }
149    
150            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByUuid(
151                    java.lang.String uuid)
152                    throws com.liferay.portal.kernel.exception.SystemException {
153                    return getPersistence().findByUuid(uuid);
154            }
155    
156            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByUuid(
157                    java.lang.String uuid, int start, int end)
158                    throws com.liferay.portal.kernel.exception.SystemException {
159                    return getPersistence().findByUuid(uuid, start, end);
160            }
161    
162            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByUuid(
163                    java.lang.String uuid, int start, int end,
164                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165                    throws com.liferay.portal.kernel.exception.SystemException {
166                    return getPersistence().findByUuid(uuid, start, end, orderByComparator);
167            }
168    
169            public static com.liferay.portlet.asset.model.AssetCategory findByUuid_First(
170                    java.lang.String uuid,
171                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
172                    throws com.liferay.portal.kernel.exception.SystemException,
173                            com.liferay.portlet.asset.NoSuchCategoryException {
174                    return getPersistence().findByUuid_First(uuid, orderByComparator);
175            }
176    
177            public static com.liferay.portlet.asset.model.AssetCategory findByUuid_Last(
178                    java.lang.String uuid,
179                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
180                    throws com.liferay.portal.kernel.exception.SystemException,
181                            com.liferay.portlet.asset.NoSuchCategoryException {
182                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
183            }
184    
185            public static com.liferay.portlet.asset.model.AssetCategory[] findByUuid_PrevAndNext(
186                    long categoryId, java.lang.String uuid,
187                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
188                    throws com.liferay.portal.kernel.exception.SystemException,
189                            com.liferay.portlet.asset.NoSuchCategoryException {
190                    return getPersistence()
191                                       .findByUuid_PrevAndNext(categoryId, uuid, orderByComparator);
192            }
193    
194            public static com.liferay.portlet.asset.model.AssetCategory findByUUID_G(
195                    java.lang.String uuid, long groupId)
196                    throws com.liferay.portal.kernel.exception.SystemException,
197                            com.liferay.portlet.asset.NoSuchCategoryException {
198                    return getPersistence().findByUUID_G(uuid, groupId);
199            }
200    
201            public static com.liferay.portlet.asset.model.AssetCategory fetchByUUID_G(
202                    java.lang.String uuid, long groupId)
203                    throws com.liferay.portal.kernel.exception.SystemException {
204                    return getPersistence().fetchByUUID_G(uuid, groupId);
205            }
206    
207            public static com.liferay.portlet.asset.model.AssetCategory fetchByUUID_G(
208                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
209                    throws com.liferay.portal.kernel.exception.SystemException {
210                    return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
211            }
212    
213            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByGroupId(
214                    long groupId)
215                    throws com.liferay.portal.kernel.exception.SystemException {
216                    return getPersistence().findByGroupId(groupId);
217            }
218    
219            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByGroupId(
220                    long groupId, int start, int end)
221                    throws com.liferay.portal.kernel.exception.SystemException {
222                    return getPersistence().findByGroupId(groupId, start, end);
223            }
224    
225            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByGroupId(
226                    long groupId, int start, int end,
227                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
228                    throws com.liferay.portal.kernel.exception.SystemException {
229                    return getPersistence()
230                                       .findByGroupId(groupId, start, end, orderByComparator);
231            }
232    
233            public static com.liferay.portlet.asset.model.AssetCategory findByGroupId_First(
234                    long groupId,
235                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
236                    throws com.liferay.portal.kernel.exception.SystemException,
237                            com.liferay.portlet.asset.NoSuchCategoryException {
238                    return getPersistence().findByGroupId_First(groupId, orderByComparator);
239            }
240    
241            public static com.liferay.portlet.asset.model.AssetCategory findByGroupId_Last(
242                    long groupId,
243                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
244                    throws com.liferay.portal.kernel.exception.SystemException,
245                            com.liferay.portlet.asset.NoSuchCategoryException {
246                    return getPersistence().findByGroupId_Last(groupId, orderByComparator);
247            }
248    
249            public static com.liferay.portlet.asset.model.AssetCategory[] findByGroupId_PrevAndNext(
250                    long categoryId, long groupId,
251                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
252                    throws com.liferay.portal.kernel.exception.SystemException,
253                            com.liferay.portlet.asset.NoSuchCategoryException {
254                    return getPersistence()
255                                       .findByGroupId_PrevAndNext(categoryId, groupId,
256                            orderByComparator);
257            }
258    
259            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByGroupId(
260                    long groupId)
261                    throws com.liferay.portal.kernel.exception.SystemException {
262                    return getPersistence().filterFindByGroupId(groupId);
263            }
264    
265            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByGroupId(
266                    long groupId, int start, int end)
267                    throws com.liferay.portal.kernel.exception.SystemException {
268                    return getPersistence().filterFindByGroupId(groupId, start, end);
269            }
270    
271            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByGroupId(
272                    long groupId, int start, int end,
273                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
274                    throws com.liferay.portal.kernel.exception.SystemException {
275                    return getPersistence()
276                                       .filterFindByGroupId(groupId, start, end, orderByComparator);
277            }
278    
279            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByParentCategoryId(
280                    long parentCategoryId)
281                    throws com.liferay.portal.kernel.exception.SystemException {
282                    return getPersistence().findByParentCategoryId(parentCategoryId);
283            }
284    
285            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByParentCategoryId(
286                    long parentCategoryId, int start, int end)
287                    throws com.liferay.portal.kernel.exception.SystemException {
288                    return getPersistence()
289                                       .findByParentCategoryId(parentCategoryId, start, end);
290            }
291    
292            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByParentCategoryId(
293                    long parentCategoryId, int start, int end,
294                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
295                    throws com.liferay.portal.kernel.exception.SystemException {
296                    return getPersistence()
297                                       .findByParentCategoryId(parentCategoryId, start, end,
298                            orderByComparator);
299            }
300    
301            public static com.liferay.portlet.asset.model.AssetCategory findByParentCategoryId_First(
302                    long parentCategoryId,
303                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
304                    throws com.liferay.portal.kernel.exception.SystemException,
305                            com.liferay.portlet.asset.NoSuchCategoryException {
306                    return getPersistence()
307                                       .findByParentCategoryId_First(parentCategoryId,
308                            orderByComparator);
309            }
310    
311            public static com.liferay.portlet.asset.model.AssetCategory findByParentCategoryId_Last(
312                    long parentCategoryId,
313                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
314                    throws com.liferay.portal.kernel.exception.SystemException,
315                            com.liferay.portlet.asset.NoSuchCategoryException {
316                    return getPersistence()
317                                       .findByParentCategoryId_Last(parentCategoryId,
318                            orderByComparator);
319            }
320    
321            public static com.liferay.portlet.asset.model.AssetCategory[] findByParentCategoryId_PrevAndNext(
322                    long categoryId, long parentCategoryId,
323                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
324                    throws com.liferay.portal.kernel.exception.SystemException,
325                            com.liferay.portlet.asset.NoSuchCategoryException {
326                    return getPersistence()
327                                       .findByParentCategoryId_PrevAndNext(categoryId,
328                            parentCategoryId, orderByComparator);
329            }
330    
331            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByVocabularyId(
332                    long vocabularyId)
333                    throws com.liferay.portal.kernel.exception.SystemException {
334                    return getPersistence().findByVocabularyId(vocabularyId);
335            }
336    
337            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByVocabularyId(
338                    long vocabularyId, int start, int end)
339                    throws com.liferay.portal.kernel.exception.SystemException {
340                    return getPersistence().findByVocabularyId(vocabularyId, start, end);
341            }
342    
343            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByVocabularyId(
344                    long vocabularyId, int start, int end,
345                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
346                    throws com.liferay.portal.kernel.exception.SystemException {
347                    return getPersistence()
348                                       .findByVocabularyId(vocabularyId, start, end,
349                            orderByComparator);
350            }
351    
352            public static com.liferay.portlet.asset.model.AssetCategory findByVocabularyId_First(
353                    long vocabularyId,
354                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
355                    throws com.liferay.portal.kernel.exception.SystemException,
356                            com.liferay.portlet.asset.NoSuchCategoryException {
357                    return getPersistence()
358                                       .findByVocabularyId_First(vocabularyId, orderByComparator);
359            }
360    
361            public static com.liferay.portlet.asset.model.AssetCategory findByVocabularyId_Last(
362                    long vocabularyId,
363                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
364                    throws com.liferay.portal.kernel.exception.SystemException,
365                            com.liferay.portlet.asset.NoSuchCategoryException {
366                    return getPersistence()
367                                       .findByVocabularyId_Last(vocabularyId, orderByComparator);
368            }
369    
370            public static com.liferay.portlet.asset.model.AssetCategory[] findByVocabularyId_PrevAndNext(
371                    long categoryId, long vocabularyId,
372                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
373                    throws com.liferay.portal.kernel.exception.SystemException,
374                            com.liferay.portlet.asset.NoSuchCategoryException {
375                    return getPersistence()
376                                       .findByVocabularyId_PrevAndNext(categoryId, vocabularyId,
377                            orderByComparator);
378            }
379    
380            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_N(
381                    long parentCategoryId, java.lang.String name)
382                    throws com.liferay.portal.kernel.exception.SystemException {
383                    return getPersistence().findByP_N(parentCategoryId, name);
384            }
385    
386            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_N(
387                    long parentCategoryId, java.lang.String name, int start, int end)
388                    throws com.liferay.portal.kernel.exception.SystemException {
389                    return getPersistence().findByP_N(parentCategoryId, name, start, end);
390            }
391    
392            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_N(
393                    long parentCategoryId, java.lang.String name, int start, int end,
394                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
395                    throws com.liferay.portal.kernel.exception.SystemException {
396                    return getPersistence()
397                                       .findByP_N(parentCategoryId, name, start, end,
398                            orderByComparator);
399            }
400    
401            public static com.liferay.portlet.asset.model.AssetCategory findByP_N_First(
402                    long parentCategoryId, java.lang.String name,
403                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
404                    throws com.liferay.portal.kernel.exception.SystemException,
405                            com.liferay.portlet.asset.NoSuchCategoryException {
406                    return getPersistence()
407                                       .findByP_N_First(parentCategoryId, name, orderByComparator);
408            }
409    
410            public static com.liferay.portlet.asset.model.AssetCategory findByP_N_Last(
411                    long parentCategoryId, java.lang.String name,
412                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
413                    throws com.liferay.portal.kernel.exception.SystemException,
414                            com.liferay.portlet.asset.NoSuchCategoryException {
415                    return getPersistence()
416                                       .findByP_N_Last(parentCategoryId, name, orderByComparator);
417            }
418    
419            public static com.liferay.portlet.asset.model.AssetCategory[] findByP_N_PrevAndNext(
420                    long categoryId, long parentCategoryId, java.lang.String name,
421                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
422                    throws com.liferay.portal.kernel.exception.SystemException,
423                            com.liferay.portlet.asset.NoSuchCategoryException {
424                    return getPersistence()
425                                       .findByP_N_PrevAndNext(categoryId, parentCategoryId, name,
426                            orderByComparator);
427            }
428    
429            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_V(
430                    long parentCategoryId, long vocabularyId)
431                    throws com.liferay.portal.kernel.exception.SystemException {
432                    return getPersistence().findByP_V(parentCategoryId, vocabularyId);
433            }
434    
435            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_V(
436                    long parentCategoryId, long vocabularyId, int start, int end)
437                    throws com.liferay.portal.kernel.exception.SystemException {
438                    return getPersistence()
439                                       .findByP_V(parentCategoryId, vocabularyId, start, end);
440            }
441    
442            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_V(
443                    long parentCategoryId, long vocabularyId, int start, int end,
444                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
445                    throws com.liferay.portal.kernel.exception.SystemException {
446                    return getPersistence()
447                                       .findByP_V(parentCategoryId, vocabularyId, start, end,
448                            orderByComparator);
449            }
450    
451            public static com.liferay.portlet.asset.model.AssetCategory findByP_V_First(
452                    long parentCategoryId, long vocabularyId,
453                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
454                    throws com.liferay.portal.kernel.exception.SystemException,
455                            com.liferay.portlet.asset.NoSuchCategoryException {
456                    return getPersistence()
457                                       .findByP_V_First(parentCategoryId, vocabularyId,
458                            orderByComparator);
459            }
460    
461            public static com.liferay.portlet.asset.model.AssetCategory findByP_V_Last(
462                    long parentCategoryId, long vocabularyId,
463                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
464                    throws com.liferay.portal.kernel.exception.SystemException,
465                            com.liferay.portlet.asset.NoSuchCategoryException {
466                    return getPersistence()
467                                       .findByP_V_Last(parentCategoryId, vocabularyId,
468                            orderByComparator);
469            }
470    
471            public static com.liferay.portlet.asset.model.AssetCategory[] findByP_V_PrevAndNext(
472                    long categoryId, long parentCategoryId, long vocabularyId,
473                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
474                    throws com.liferay.portal.kernel.exception.SystemException,
475                            com.liferay.portlet.asset.NoSuchCategoryException {
476                    return getPersistence()
477                                       .findByP_V_PrevAndNext(categoryId, parentCategoryId,
478                            vocabularyId, orderByComparator);
479            }
480    
481            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByN_V(
482                    java.lang.String name, long vocabularyId)
483                    throws com.liferay.portal.kernel.exception.SystemException {
484                    return getPersistence().findByN_V(name, vocabularyId);
485            }
486    
487            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByN_V(
488                    java.lang.String name, long vocabularyId, int start, int end)
489                    throws com.liferay.portal.kernel.exception.SystemException {
490                    return getPersistence().findByN_V(name, vocabularyId, start, end);
491            }
492    
493            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByN_V(
494                    java.lang.String name, long vocabularyId, int start, int end,
495                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
496                    throws com.liferay.portal.kernel.exception.SystemException {
497                    return getPersistence()
498                                       .findByN_V(name, vocabularyId, start, end, orderByComparator);
499            }
500    
501            public static com.liferay.portlet.asset.model.AssetCategory findByN_V_First(
502                    java.lang.String name, long vocabularyId,
503                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
504                    throws com.liferay.portal.kernel.exception.SystemException,
505                            com.liferay.portlet.asset.NoSuchCategoryException {
506                    return getPersistence()
507                                       .findByN_V_First(name, vocabularyId, orderByComparator);
508            }
509    
510            public static com.liferay.portlet.asset.model.AssetCategory findByN_V_Last(
511                    java.lang.String name, long vocabularyId,
512                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
513                    throws com.liferay.portal.kernel.exception.SystemException,
514                            com.liferay.portlet.asset.NoSuchCategoryException {
515                    return getPersistence()
516                                       .findByN_V_Last(name, vocabularyId, orderByComparator);
517            }
518    
519            public static com.liferay.portlet.asset.model.AssetCategory[] findByN_V_PrevAndNext(
520                    long categoryId, java.lang.String name, long vocabularyId,
521                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
522                    throws com.liferay.portal.kernel.exception.SystemException,
523                            com.liferay.portlet.asset.NoSuchCategoryException {
524                    return getPersistence()
525                                       .findByN_V_PrevAndNext(categoryId, name, vocabularyId,
526                            orderByComparator);
527            }
528    
529            public static com.liferay.portlet.asset.model.AssetCategory findByP_N_V(
530                    long parentCategoryId, java.lang.String name, long vocabularyId)
531                    throws com.liferay.portal.kernel.exception.SystemException,
532                            com.liferay.portlet.asset.NoSuchCategoryException {
533                    return getPersistence().findByP_N_V(parentCategoryId, name, vocabularyId);
534            }
535    
536            public static com.liferay.portlet.asset.model.AssetCategory fetchByP_N_V(
537                    long parentCategoryId, java.lang.String name, long vocabularyId)
538                    throws com.liferay.portal.kernel.exception.SystemException {
539                    return getPersistence()
540                                       .fetchByP_N_V(parentCategoryId, name, vocabularyId);
541            }
542    
543            public static com.liferay.portlet.asset.model.AssetCategory fetchByP_N_V(
544                    long parentCategoryId, java.lang.String name, long vocabularyId,
545                    boolean retrieveFromCache)
546                    throws com.liferay.portal.kernel.exception.SystemException {
547                    return getPersistence()
548                                       .fetchByP_N_V(parentCategoryId, name, vocabularyId,
549                            retrieveFromCache);
550            }
551    
552            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findAll()
553                    throws com.liferay.portal.kernel.exception.SystemException {
554                    return getPersistence().findAll();
555            }
556    
557            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findAll(
558                    int start, int end)
559                    throws com.liferay.portal.kernel.exception.SystemException {
560                    return getPersistence().findAll(start, end);
561            }
562    
563            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findAll(
564                    int start, int end,
565                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
566                    throws com.liferay.portal.kernel.exception.SystemException {
567                    return getPersistence().findAll(start, end, orderByComparator);
568            }
569    
570            public static void removeByUuid(java.lang.String uuid)
571                    throws com.liferay.portal.kernel.exception.SystemException {
572                    getPersistence().removeByUuid(uuid);
573            }
574    
575            public static void removeByUUID_G(java.lang.String uuid, long groupId)
576                    throws com.liferay.portal.kernel.exception.SystemException,
577                            com.liferay.portlet.asset.NoSuchCategoryException {
578                    getPersistence().removeByUUID_G(uuid, groupId);
579            }
580    
581            public static void removeByGroupId(long groupId)
582                    throws com.liferay.portal.kernel.exception.SystemException {
583                    getPersistence().removeByGroupId(groupId);
584            }
585    
586            public static void removeByParentCategoryId(long parentCategoryId)
587                    throws com.liferay.portal.kernel.exception.SystemException {
588                    getPersistence().removeByParentCategoryId(parentCategoryId);
589            }
590    
591            public static void removeByVocabularyId(long vocabularyId)
592                    throws com.liferay.portal.kernel.exception.SystemException {
593                    getPersistence().removeByVocabularyId(vocabularyId);
594            }
595    
596            public static void removeByP_N(long parentCategoryId, java.lang.String name)
597                    throws com.liferay.portal.kernel.exception.SystemException {
598                    getPersistence().removeByP_N(parentCategoryId, name);
599            }
600    
601            public static void removeByP_V(long parentCategoryId, long vocabularyId)
602                    throws com.liferay.portal.kernel.exception.SystemException {
603                    getPersistence().removeByP_V(parentCategoryId, vocabularyId);
604            }
605    
606            public static void removeByN_V(java.lang.String name, long vocabularyId)
607                    throws com.liferay.portal.kernel.exception.SystemException {
608                    getPersistence().removeByN_V(name, vocabularyId);
609            }
610    
611            public static void removeByP_N_V(long parentCategoryId,
612                    java.lang.String name, long vocabularyId)
613                    throws com.liferay.portal.kernel.exception.SystemException,
614                            com.liferay.portlet.asset.NoSuchCategoryException {
615                    getPersistence().removeByP_N_V(parentCategoryId, name, vocabularyId);
616            }
617    
618            public static void removeAll()
619                    throws com.liferay.portal.kernel.exception.SystemException {
620                    getPersistence().removeAll();
621            }
622    
623            public static int countByUuid(java.lang.String uuid)
624                    throws com.liferay.portal.kernel.exception.SystemException {
625                    return getPersistence().countByUuid(uuid);
626            }
627    
628            public static int countByUUID_G(java.lang.String uuid, long groupId)
629                    throws com.liferay.portal.kernel.exception.SystemException {
630                    return getPersistence().countByUUID_G(uuid, groupId);
631            }
632    
633            public static int countByGroupId(long groupId)
634                    throws com.liferay.portal.kernel.exception.SystemException {
635                    return getPersistence().countByGroupId(groupId);
636            }
637    
638            public static int filterCountByGroupId(long groupId)
639                    throws com.liferay.portal.kernel.exception.SystemException {
640                    return getPersistence().filterCountByGroupId(groupId);
641            }
642    
643            public static int countByParentCategoryId(long parentCategoryId)
644                    throws com.liferay.portal.kernel.exception.SystemException {
645                    return getPersistence().countByParentCategoryId(parentCategoryId);
646            }
647    
648            public static int countByVocabularyId(long vocabularyId)
649                    throws com.liferay.portal.kernel.exception.SystemException {
650                    return getPersistence().countByVocabularyId(vocabularyId);
651            }
652    
653            public static int countByP_N(long parentCategoryId, java.lang.String name)
654                    throws com.liferay.portal.kernel.exception.SystemException {
655                    return getPersistence().countByP_N(parentCategoryId, name);
656            }
657    
658            public static int countByP_V(long parentCategoryId, long vocabularyId)
659                    throws com.liferay.portal.kernel.exception.SystemException {
660                    return getPersistence().countByP_V(parentCategoryId, vocabularyId);
661            }
662    
663            public static int countByN_V(java.lang.String name, long vocabularyId)
664                    throws com.liferay.portal.kernel.exception.SystemException {
665                    return getPersistence().countByN_V(name, vocabularyId);
666            }
667    
668            public static int countByP_N_V(long parentCategoryId,
669                    java.lang.String name, long vocabularyId)
670                    throws com.liferay.portal.kernel.exception.SystemException {
671                    return getPersistence()
672                                       .countByP_N_V(parentCategoryId, name, vocabularyId);
673            }
674    
675            public static int countAll()
676                    throws com.liferay.portal.kernel.exception.SystemException {
677                    return getPersistence().countAll();
678            }
679    
680            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
681                    long pk) throws com.liferay.portal.kernel.exception.SystemException {
682                    return getPersistence().getAssetEntries(pk);
683            }
684    
685            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
686                    long pk, int start, int end)
687                    throws com.liferay.portal.kernel.exception.SystemException {
688                    return getPersistence().getAssetEntries(pk, start, end);
689            }
690    
691            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
692                    long pk, int start, int end,
693                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
694                    throws com.liferay.portal.kernel.exception.SystemException {
695                    return getPersistence()
696                                       .getAssetEntries(pk, start, end, orderByComparator);
697            }
698    
699            public static int getAssetEntriesSize(long pk)
700                    throws com.liferay.portal.kernel.exception.SystemException {
701                    return getPersistence().getAssetEntriesSize(pk);
702            }
703    
704            public static boolean containsAssetEntry(long pk, long assetEntryPK)
705                    throws com.liferay.portal.kernel.exception.SystemException {
706                    return getPersistence().containsAssetEntry(pk, assetEntryPK);
707            }
708    
709            public static boolean containsAssetEntries(long pk)
710                    throws com.liferay.portal.kernel.exception.SystemException {
711                    return getPersistence().containsAssetEntries(pk);
712            }
713    
714            public static void addAssetEntry(long pk, long assetEntryPK)
715                    throws com.liferay.portal.kernel.exception.SystemException {
716                    getPersistence().addAssetEntry(pk, assetEntryPK);
717            }
718    
719            public static void addAssetEntry(long pk,
720                    com.liferay.portlet.asset.model.AssetEntry assetEntry)
721                    throws com.liferay.portal.kernel.exception.SystemException {
722                    getPersistence().addAssetEntry(pk, assetEntry);
723            }
724    
725            public static void addAssetEntries(long pk, long[] assetEntryPKs)
726                    throws com.liferay.portal.kernel.exception.SystemException {
727                    getPersistence().addAssetEntries(pk, assetEntryPKs);
728            }
729    
730            public static void addAssetEntries(long pk,
731                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
732                    throws com.liferay.portal.kernel.exception.SystemException {
733                    getPersistence().addAssetEntries(pk, assetEntries);
734            }
735    
736            public static void clearAssetEntries(long pk)
737                    throws com.liferay.portal.kernel.exception.SystemException {
738                    getPersistence().clearAssetEntries(pk);
739            }
740    
741            public static void removeAssetEntry(long pk, long assetEntryPK)
742                    throws com.liferay.portal.kernel.exception.SystemException {
743                    getPersistence().removeAssetEntry(pk, assetEntryPK);
744            }
745    
746            public static void removeAssetEntry(long pk,
747                    com.liferay.portlet.asset.model.AssetEntry assetEntry)
748                    throws com.liferay.portal.kernel.exception.SystemException {
749                    getPersistence().removeAssetEntry(pk, assetEntry);
750            }
751    
752            public static void removeAssetEntries(long pk, long[] assetEntryPKs)
753                    throws com.liferay.portal.kernel.exception.SystemException {
754                    getPersistence().removeAssetEntries(pk, assetEntryPKs);
755            }
756    
757            public static void removeAssetEntries(long pk,
758                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
759                    throws com.liferay.portal.kernel.exception.SystemException {
760                    getPersistence().removeAssetEntries(pk, assetEntries);
761            }
762    
763            public static void setAssetEntries(long pk, long[] assetEntryPKs)
764                    throws com.liferay.portal.kernel.exception.SystemException {
765                    getPersistence().setAssetEntries(pk, assetEntryPKs);
766            }
767    
768            public static void setAssetEntries(long pk,
769                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
770                    throws com.liferay.portal.kernel.exception.SystemException {
771                    getPersistence().setAssetEntries(pk, assetEntries);
772            }
773    
774            public static void rebuildTree(long groupId, boolean force)
775                    throws com.liferay.portal.kernel.exception.SystemException {
776                    getPersistence().rebuildTree(groupId, force);
777            }
778    
779            public static AssetCategoryPersistence getPersistence() {
780                    if (_persistence == null) {
781                            _persistence = (AssetCategoryPersistence)PortalBeanLocatorUtil.locate(AssetCategoryPersistence.class.getName());
782                    }
783    
784                    return _persistence;
785            }
786    
787            public void setPersistence(AssetCategoryPersistence persistence) {
788                    _persistence = persistence;
789            }
790    
791            private static AssetCategoryPersistence _persistence;
792    }