1
14
15 package com.liferay.portlet.asset.service.persistence;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19 import com.liferay.portal.kernel.exception.SystemException;
20
21 import com.liferay.portlet.asset.model.AssetCategory;
22
23 import java.util.List;
24
25
38 public class AssetCategoryUtil {
39
42 public static void clearCache() {
43 getPersistence().clearCache();
44 }
45
46
49 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
50 throws SystemException {
51 return getPersistence().findWithDynamicQuery(dynamicQuery);
52 }
53
54
57 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
58 int start, int end) throws SystemException {
59 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
60 }
61
62
65 public static AssetCategory remove(AssetCategory assetCategory)
66 throws SystemException {
67 return getPersistence().remove(assetCategory);
68 }
69
70
73 public static AssetCategory update(AssetCategory assetCategory,
74 boolean merge) throws SystemException {
75 return getPersistence().update(assetCategory, merge);
76 }
77
78 public static void cacheResult(
79 com.liferay.portlet.asset.model.AssetCategory assetCategory) {
80 getPersistence().cacheResult(assetCategory);
81 }
82
83 public static void cacheResult(
84 java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories) {
85 getPersistence().cacheResult(assetCategories);
86 }
87
88 public static com.liferay.portlet.asset.model.AssetCategory create(
89 long categoryId) {
90 return getPersistence().create(categoryId);
91 }
92
93 public static com.liferay.portlet.asset.model.AssetCategory remove(
94 long categoryId)
95 throws com.liferay.portal.kernel.exception.SystemException,
96 com.liferay.portlet.asset.NoSuchCategoryException {
97 return getPersistence().remove(categoryId);
98 }
99
100 public static com.liferay.portlet.asset.model.AssetCategory updateImpl(
101 com.liferay.portlet.asset.model.AssetCategory assetCategory,
102 boolean merge)
103 throws com.liferay.portal.kernel.exception.SystemException {
104 return getPersistence().updateImpl(assetCategory, merge);
105 }
106
107 public static com.liferay.portlet.asset.model.AssetCategory findByPrimaryKey(
108 long categoryId)
109 throws com.liferay.portal.kernel.exception.SystemException,
110 com.liferay.portlet.asset.NoSuchCategoryException {
111 return getPersistence().findByPrimaryKey(categoryId);
112 }
113
114 public static com.liferay.portlet.asset.model.AssetCategory fetchByPrimaryKey(
115 long categoryId)
116 throws com.liferay.portal.kernel.exception.SystemException {
117 return getPersistence().fetchByPrimaryKey(categoryId);
118 }
119
120 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByUuid(
121 java.lang.String uuid)
122 throws com.liferay.portal.kernel.exception.SystemException {
123 return getPersistence().findByUuid(uuid);
124 }
125
126 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByUuid(
127 java.lang.String uuid, int start, int end)
128 throws com.liferay.portal.kernel.exception.SystemException {
129 return getPersistence().findByUuid(uuid, start, end);
130 }
131
132 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByUuid(
133 java.lang.String uuid, int start, int end,
134 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135 throws com.liferay.portal.kernel.exception.SystemException {
136 return getPersistence().findByUuid(uuid, start, end, orderByComparator);
137 }
138
139 public static com.liferay.portlet.asset.model.AssetCategory findByUuid_First(
140 java.lang.String uuid,
141 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142 throws com.liferay.portal.kernel.exception.SystemException,
143 com.liferay.portlet.asset.NoSuchCategoryException {
144 return getPersistence().findByUuid_First(uuid, orderByComparator);
145 }
146
147 public static com.liferay.portlet.asset.model.AssetCategory findByUuid_Last(
148 java.lang.String uuid,
149 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150 throws com.liferay.portal.kernel.exception.SystemException,
151 com.liferay.portlet.asset.NoSuchCategoryException {
152 return getPersistence().findByUuid_Last(uuid, orderByComparator);
153 }
154
155 public static com.liferay.portlet.asset.model.AssetCategory[] findByUuid_PrevAndNext(
156 long categoryId, java.lang.String uuid,
157 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
158 throws com.liferay.portal.kernel.exception.SystemException,
159 com.liferay.portlet.asset.NoSuchCategoryException {
160 return getPersistence()
161 .findByUuid_PrevAndNext(categoryId, uuid, orderByComparator);
162 }
163
164 public static com.liferay.portlet.asset.model.AssetCategory findByUUID_G(
165 java.lang.String uuid, long groupId)
166 throws com.liferay.portal.kernel.exception.SystemException,
167 com.liferay.portlet.asset.NoSuchCategoryException {
168 return getPersistence().findByUUID_G(uuid, groupId);
169 }
170
171 public static com.liferay.portlet.asset.model.AssetCategory fetchByUUID_G(
172 java.lang.String uuid, long groupId)
173 throws com.liferay.portal.kernel.exception.SystemException {
174 return getPersistence().fetchByUUID_G(uuid, groupId);
175 }
176
177 public static com.liferay.portlet.asset.model.AssetCategory fetchByUUID_G(
178 java.lang.String uuid, long groupId, boolean retrieveFromCache)
179 throws com.liferay.portal.kernel.exception.SystemException {
180 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
181 }
182
183 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByParentCategoryId(
184 long parentCategoryId)
185 throws com.liferay.portal.kernel.exception.SystemException {
186 return getPersistence().findByParentCategoryId(parentCategoryId);
187 }
188
189 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByParentCategoryId(
190 long parentCategoryId, int start, int end)
191 throws com.liferay.portal.kernel.exception.SystemException {
192 return getPersistence()
193 .findByParentCategoryId(parentCategoryId, start, end);
194 }
195
196 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByParentCategoryId(
197 long parentCategoryId, int start, int end,
198 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
199 throws com.liferay.portal.kernel.exception.SystemException {
200 return getPersistence()
201 .findByParentCategoryId(parentCategoryId, start, end,
202 orderByComparator);
203 }
204
205 public static com.liferay.portlet.asset.model.AssetCategory findByParentCategoryId_First(
206 long parentCategoryId,
207 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
208 throws com.liferay.portal.kernel.exception.SystemException,
209 com.liferay.portlet.asset.NoSuchCategoryException {
210 return getPersistence()
211 .findByParentCategoryId_First(parentCategoryId,
212 orderByComparator);
213 }
214
215 public static com.liferay.portlet.asset.model.AssetCategory findByParentCategoryId_Last(
216 long parentCategoryId,
217 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
218 throws com.liferay.portal.kernel.exception.SystemException,
219 com.liferay.portlet.asset.NoSuchCategoryException {
220 return getPersistence()
221 .findByParentCategoryId_Last(parentCategoryId,
222 orderByComparator);
223 }
224
225 public static com.liferay.portlet.asset.model.AssetCategory[] findByParentCategoryId_PrevAndNext(
226 long categoryId, long parentCategoryId,
227 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
228 throws com.liferay.portal.kernel.exception.SystemException,
229 com.liferay.portlet.asset.NoSuchCategoryException {
230 return getPersistence()
231 .findByParentCategoryId_PrevAndNext(categoryId,
232 parentCategoryId, orderByComparator);
233 }
234
235 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByVocabularyId(
236 long vocabularyId)
237 throws com.liferay.portal.kernel.exception.SystemException {
238 return getPersistence().findByVocabularyId(vocabularyId);
239 }
240
241 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByVocabularyId(
242 long vocabularyId, int start, int end)
243 throws com.liferay.portal.kernel.exception.SystemException {
244 return getPersistence().findByVocabularyId(vocabularyId, start, end);
245 }
246
247 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByVocabularyId(
248 long vocabularyId, int start, int end,
249 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
250 throws com.liferay.portal.kernel.exception.SystemException {
251 return getPersistence()
252 .findByVocabularyId(vocabularyId, start, end,
253 orderByComparator);
254 }
255
256 public static com.liferay.portlet.asset.model.AssetCategory findByVocabularyId_First(
257 long vocabularyId,
258 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
259 throws com.liferay.portal.kernel.exception.SystemException,
260 com.liferay.portlet.asset.NoSuchCategoryException {
261 return getPersistence()
262 .findByVocabularyId_First(vocabularyId, orderByComparator);
263 }
264
265 public static com.liferay.portlet.asset.model.AssetCategory findByVocabularyId_Last(
266 long vocabularyId,
267 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
268 throws com.liferay.portal.kernel.exception.SystemException,
269 com.liferay.portlet.asset.NoSuchCategoryException {
270 return getPersistence()
271 .findByVocabularyId_Last(vocabularyId, orderByComparator);
272 }
273
274 public static com.liferay.portlet.asset.model.AssetCategory[] findByVocabularyId_PrevAndNext(
275 long categoryId, long vocabularyId,
276 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
277 throws com.liferay.portal.kernel.exception.SystemException,
278 com.liferay.portlet.asset.NoSuchCategoryException {
279 return getPersistence()
280 .findByVocabularyId_PrevAndNext(categoryId, vocabularyId,
281 orderByComparator);
282 }
283
284 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_N(
285 long parentCategoryId, java.lang.String name)
286 throws com.liferay.portal.kernel.exception.SystemException {
287 return getPersistence().findByP_N(parentCategoryId, name);
288 }
289
290 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_N(
291 long parentCategoryId, java.lang.String name, int start, int end)
292 throws com.liferay.portal.kernel.exception.SystemException {
293 return getPersistence().findByP_N(parentCategoryId, name, start, end);
294 }
295
296 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_N(
297 long parentCategoryId, java.lang.String name, int start, int end,
298 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
299 throws com.liferay.portal.kernel.exception.SystemException {
300 return getPersistence()
301 .findByP_N(parentCategoryId, name, start, end,
302 orderByComparator);
303 }
304
305 public static com.liferay.portlet.asset.model.AssetCategory findByP_N_First(
306 long parentCategoryId, java.lang.String name,
307 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
308 throws com.liferay.portal.kernel.exception.SystemException,
309 com.liferay.portlet.asset.NoSuchCategoryException {
310 return getPersistence()
311 .findByP_N_First(parentCategoryId, name, orderByComparator);
312 }
313
314 public static com.liferay.portlet.asset.model.AssetCategory findByP_N_Last(
315 long parentCategoryId, java.lang.String name,
316 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
317 throws com.liferay.portal.kernel.exception.SystemException,
318 com.liferay.portlet.asset.NoSuchCategoryException {
319 return getPersistence()
320 .findByP_N_Last(parentCategoryId, name, orderByComparator);
321 }
322
323 public static com.liferay.portlet.asset.model.AssetCategory[] findByP_N_PrevAndNext(
324 long categoryId, long parentCategoryId, java.lang.String name,
325 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
326 throws com.liferay.portal.kernel.exception.SystemException,
327 com.liferay.portlet.asset.NoSuchCategoryException {
328 return getPersistence()
329 .findByP_N_PrevAndNext(categoryId, parentCategoryId, name,
330 orderByComparator);
331 }
332
333 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_V(
334 long parentCategoryId, long vocabularyId)
335 throws com.liferay.portal.kernel.exception.SystemException {
336 return getPersistence().findByP_V(parentCategoryId, vocabularyId);
337 }
338
339 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_V(
340 long parentCategoryId, long vocabularyId, int start, int end)
341 throws com.liferay.portal.kernel.exception.SystemException {
342 return getPersistence()
343 .findByP_V(parentCategoryId, vocabularyId, start, end);
344 }
345
346 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_V(
347 long parentCategoryId, long vocabularyId, int start, int end,
348 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
349 throws com.liferay.portal.kernel.exception.SystemException {
350 return getPersistence()
351 .findByP_V(parentCategoryId, vocabularyId, start, end,
352 orderByComparator);
353 }
354
355 public static com.liferay.portlet.asset.model.AssetCategory findByP_V_First(
356 long parentCategoryId, long vocabularyId,
357 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
358 throws com.liferay.portal.kernel.exception.SystemException,
359 com.liferay.portlet.asset.NoSuchCategoryException {
360 return getPersistence()
361 .findByP_V_First(parentCategoryId, vocabularyId,
362 orderByComparator);
363 }
364
365 public static com.liferay.portlet.asset.model.AssetCategory findByP_V_Last(
366 long parentCategoryId, long vocabularyId,
367 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
368 throws com.liferay.portal.kernel.exception.SystemException,
369 com.liferay.portlet.asset.NoSuchCategoryException {
370 return getPersistence()
371 .findByP_V_Last(parentCategoryId, vocabularyId,
372 orderByComparator);
373 }
374
375 public static com.liferay.portlet.asset.model.AssetCategory[] findByP_V_PrevAndNext(
376 long categoryId, long parentCategoryId, long vocabularyId,
377 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
378 throws com.liferay.portal.kernel.exception.SystemException,
379 com.liferay.portlet.asset.NoSuchCategoryException {
380 return getPersistence()
381 .findByP_V_PrevAndNext(categoryId, parentCategoryId,
382 vocabularyId, orderByComparator);
383 }
384
385 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByN_V(
386 java.lang.String name, long vocabularyId)
387 throws com.liferay.portal.kernel.exception.SystemException {
388 return getPersistence().findByN_V(name, vocabularyId);
389 }
390
391 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByN_V(
392 java.lang.String name, long vocabularyId, int start, int end)
393 throws com.liferay.portal.kernel.exception.SystemException {
394 return getPersistence().findByN_V(name, vocabularyId, start, end);
395 }
396
397 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByN_V(
398 java.lang.String name, long vocabularyId, int start, int end,
399 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
400 throws com.liferay.portal.kernel.exception.SystemException {
401 return getPersistence()
402 .findByN_V(name, vocabularyId, start, end, orderByComparator);
403 }
404
405 public static com.liferay.portlet.asset.model.AssetCategory findByN_V_First(
406 java.lang.String name, long vocabularyId,
407 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
408 throws com.liferay.portal.kernel.exception.SystemException,
409 com.liferay.portlet.asset.NoSuchCategoryException {
410 return getPersistence()
411 .findByN_V_First(name, vocabularyId, orderByComparator);
412 }
413
414 public static com.liferay.portlet.asset.model.AssetCategory findByN_V_Last(
415 java.lang.String name, long vocabularyId,
416 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
417 throws com.liferay.portal.kernel.exception.SystemException,
418 com.liferay.portlet.asset.NoSuchCategoryException {
419 return getPersistence()
420 .findByN_V_Last(name, vocabularyId, orderByComparator);
421 }
422
423 public static com.liferay.portlet.asset.model.AssetCategory[] findByN_V_PrevAndNext(
424 long categoryId, java.lang.String name, long vocabularyId,
425 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
426 throws com.liferay.portal.kernel.exception.SystemException,
427 com.liferay.portlet.asset.NoSuchCategoryException {
428 return getPersistence()
429 .findByN_V_PrevAndNext(categoryId, name, vocabularyId,
430 orderByComparator);
431 }
432
433 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findAll()
434 throws com.liferay.portal.kernel.exception.SystemException {
435 return getPersistence().findAll();
436 }
437
438 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findAll(
439 int start, int end)
440 throws com.liferay.portal.kernel.exception.SystemException {
441 return getPersistence().findAll(start, end);
442 }
443
444 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> findAll(
445 int start, int end,
446 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
447 throws com.liferay.portal.kernel.exception.SystemException {
448 return getPersistence().findAll(start, end, orderByComparator);
449 }
450
451 public static void removeByUuid(java.lang.String uuid)
452 throws com.liferay.portal.kernel.exception.SystemException {
453 getPersistence().removeByUuid(uuid);
454 }
455
456 public static void removeByUUID_G(java.lang.String uuid, long groupId)
457 throws com.liferay.portal.kernel.exception.SystemException,
458 com.liferay.portlet.asset.NoSuchCategoryException {
459 getPersistence().removeByUUID_G(uuid, groupId);
460 }
461
462 public static void removeByParentCategoryId(long parentCategoryId)
463 throws com.liferay.portal.kernel.exception.SystemException {
464 getPersistence().removeByParentCategoryId(parentCategoryId);
465 }
466
467 public static void removeByVocabularyId(long vocabularyId)
468 throws com.liferay.portal.kernel.exception.SystemException {
469 getPersistence().removeByVocabularyId(vocabularyId);
470 }
471
472 public static void removeByP_N(long parentCategoryId, java.lang.String name)
473 throws com.liferay.portal.kernel.exception.SystemException {
474 getPersistence().removeByP_N(parentCategoryId, name);
475 }
476
477 public static void removeByP_V(long parentCategoryId, long vocabularyId)
478 throws com.liferay.portal.kernel.exception.SystemException {
479 getPersistence().removeByP_V(parentCategoryId, vocabularyId);
480 }
481
482 public static void removeByN_V(java.lang.String name, long vocabularyId)
483 throws com.liferay.portal.kernel.exception.SystemException {
484 getPersistence().removeByN_V(name, vocabularyId);
485 }
486
487 public static void removeAll()
488 throws com.liferay.portal.kernel.exception.SystemException {
489 getPersistence().removeAll();
490 }
491
492 public static int countByUuid(java.lang.String uuid)
493 throws com.liferay.portal.kernel.exception.SystemException {
494 return getPersistence().countByUuid(uuid);
495 }
496
497 public static int countByUUID_G(java.lang.String uuid, long groupId)
498 throws com.liferay.portal.kernel.exception.SystemException {
499 return getPersistence().countByUUID_G(uuid, groupId);
500 }
501
502 public static int countByParentCategoryId(long parentCategoryId)
503 throws com.liferay.portal.kernel.exception.SystemException {
504 return getPersistence().countByParentCategoryId(parentCategoryId);
505 }
506
507 public static int countByVocabularyId(long vocabularyId)
508 throws com.liferay.portal.kernel.exception.SystemException {
509 return getPersistence().countByVocabularyId(vocabularyId);
510 }
511
512 public static int countByP_N(long parentCategoryId, java.lang.String name)
513 throws com.liferay.portal.kernel.exception.SystemException {
514 return getPersistence().countByP_N(parentCategoryId, name);
515 }
516
517 public static int countByP_V(long parentCategoryId, long vocabularyId)
518 throws com.liferay.portal.kernel.exception.SystemException {
519 return getPersistence().countByP_V(parentCategoryId, vocabularyId);
520 }
521
522 public static int countByN_V(java.lang.String name, long vocabularyId)
523 throws com.liferay.portal.kernel.exception.SystemException {
524 return getPersistence().countByN_V(name, vocabularyId);
525 }
526
527 public static int countAll()
528 throws com.liferay.portal.kernel.exception.SystemException {
529 return getPersistence().countAll();
530 }
531
532 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
533 long pk) throws com.liferay.portal.kernel.exception.SystemException {
534 return getPersistence().getAssetEntries(pk);
535 }
536
537 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
538 long pk, int start, int end)
539 throws com.liferay.portal.kernel.exception.SystemException {
540 return getPersistence().getAssetEntries(pk, start, end);
541 }
542
543 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
544 long pk, int start, int end,
545 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
546 throws com.liferay.portal.kernel.exception.SystemException {
547 return getPersistence()
548 .getAssetEntries(pk, start, end, orderByComparator);
549 }
550
551 public static int getAssetEntriesSize(long pk)
552 throws com.liferay.portal.kernel.exception.SystemException {
553 return getPersistence().getAssetEntriesSize(pk);
554 }
555
556 public static boolean containsAssetEntry(long pk, long assetEntryPK)
557 throws com.liferay.portal.kernel.exception.SystemException {
558 return getPersistence().containsAssetEntry(pk, assetEntryPK);
559 }
560
561 public static boolean containsAssetEntries(long pk)
562 throws com.liferay.portal.kernel.exception.SystemException {
563 return getPersistence().containsAssetEntries(pk);
564 }
565
566 public static void addAssetEntry(long pk, long assetEntryPK)
567 throws com.liferay.portal.kernel.exception.SystemException {
568 getPersistence().addAssetEntry(pk, assetEntryPK);
569 }
570
571 public static void addAssetEntry(long pk,
572 com.liferay.portlet.asset.model.AssetEntry assetEntry)
573 throws com.liferay.portal.kernel.exception.SystemException {
574 getPersistence().addAssetEntry(pk, assetEntry);
575 }
576
577 public static void addAssetEntries(long pk, long[] assetEntryPKs)
578 throws com.liferay.portal.kernel.exception.SystemException {
579 getPersistence().addAssetEntries(pk, assetEntryPKs);
580 }
581
582 public static void addAssetEntries(long pk,
583 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
584 throws com.liferay.portal.kernel.exception.SystemException {
585 getPersistence().addAssetEntries(pk, assetEntries);
586 }
587
588 public static void clearAssetEntries(long pk)
589 throws com.liferay.portal.kernel.exception.SystemException {
590 getPersistence().clearAssetEntries(pk);
591 }
592
593 public static void removeAssetEntry(long pk, long assetEntryPK)
594 throws com.liferay.portal.kernel.exception.SystemException {
595 getPersistence().removeAssetEntry(pk, assetEntryPK);
596 }
597
598 public static void removeAssetEntry(long pk,
599 com.liferay.portlet.asset.model.AssetEntry assetEntry)
600 throws com.liferay.portal.kernel.exception.SystemException {
601 getPersistence().removeAssetEntry(pk, assetEntry);
602 }
603
604 public static void removeAssetEntries(long pk, long[] assetEntryPKs)
605 throws com.liferay.portal.kernel.exception.SystemException {
606 getPersistence().removeAssetEntries(pk, assetEntryPKs);
607 }
608
609 public static void removeAssetEntries(long pk,
610 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
611 throws com.liferay.portal.kernel.exception.SystemException {
612 getPersistence().removeAssetEntries(pk, assetEntries);
613 }
614
615 public static void setAssetEntries(long pk, long[] assetEntryPKs)
616 throws com.liferay.portal.kernel.exception.SystemException {
617 getPersistence().setAssetEntries(pk, assetEntryPKs);
618 }
619
620 public static void setAssetEntries(long pk,
621 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
622 throws com.liferay.portal.kernel.exception.SystemException {
623 getPersistence().setAssetEntries(pk, assetEntries);
624 }
625
626 public static void rebuildTree(long groupId, boolean force)
627 throws com.liferay.portal.kernel.exception.SystemException {
628 getPersistence().rebuildTree(groupId, force);
629 }
630
631 public static AssetCategoryPersistence getPersistence() {
632 if (_persistence == null) {
633 _persistence = (AssetCategoryPersistence)PortalBeanLocatorUtil.locate(AssetCategoryPersistence.class.getName());
634 }
635
636 return _persistence;
637 }
638
639 public void setPersistence(AssetCategoryPersistence persistence) {
640 _persistence = persistence;
641 }
642
643 private static AssetCategoryPersistence _persistence;
644 }