001
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.AssetEntry;
024
025 import java.util.List;
026
027
033 public class AssetEntryUtil {
034
037 public static void clearCache() {
038 getPersistence().clearCache();
039 }
040
041
044 public static void clearCache(AssetEntry assetEntry) {
045 getPersistence().clearCache(assetEntry);
046 }
047
048
051 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
052 throws SystemException {
053 return getPersistence().countWithDynamicQuery(dynamicQuery);
054 }
055
056
059 public static List<AssetEntry> findWithDynamicQuery(
060 DynamicQuery dynamicQuery) throws SystemException {
061 return getPersistence().findWithDynamicQuery(dynamicQuery);
062 }
063
064
067 public static List<AssetEntry> findWithDynamicQuery(
068 DynamicQuery dynamicQuery, int start, int end)
069 throws SystemException {
070 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
071 }
072
073
076 public static List<AssetEntry> 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
087 public static AssetEntry remove(AssetEntry assetEntry)
088 throws SystemException {
089 return getPersistence().remove(assetEntry);
090 }
091
092
095 public static AssetEntry update(AssetEntry assetEntry, boolean merge)
096 throws SystemException {
097 return getPersistence().update(assetEntry, merge);
098 }
099
100
103 public static AssetEntry update(AssetEntry assetEntry, boolean merge,
104 ServiceContext serviceContext) throws SystemException {
105 return getPersistence().update(assetEntry, merge, serviceContext);
106 }
107
108 public static void cacheResult(
109 com.liferay.portlet.asset.model.AssetEntry assetEntry) {
110 getPersistence().cacheResult(assetEntry);
111 }
112
113 public static void cacheResult(
114 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries) {
115 getPersistence().cacheResult(assetEntries);
116 }
117
118 public static com.liferay.portlet.asset.model.AssetEntry create(
119 long entryId) {
120 return getPersistence().create(entryId);
121 }
122
123 public static com.liferay.portlet.asset.model.AssetEntry remove(
124 long entryId)
125 throws com.liferay.portal.kernel.exception.SystemException,
126 com.liferay.portlet.asset.NoSuchEntryException {
127 return getPersistence().remove(entryId);
128 }
129
130 public static com.liferay.portlet.asset.model.AssetEntry updateImpl(
131 com.liferay.portlet.asset.model.AssetEntry assetEntry, boolean merge)
132 throws com.liferay.portal.kernel.exception.SystemException {
133 return getPersistence().updateImpl(assetEntry, merge);
134 }
135
136 public static com.liferay.portlet.asset.model.AssetEntry findByPrimaryKey(
137 long entryId)
138 throws com.liferay.portal.kernel.exception.SystemException,
139 com.liferay.portlet.asset.NoSuchEntryException {
140 return getPersistence().findByPrimaryKey(entryId);
141 }
142
143 public static com.liferay.portlet.asset.model.AssetEntry fetchByPrimaryKey(
144 long entryId)
145 throws com.liferay.portal.kernel.exception.SystemException {
146 return getPersistence().fetchByPrimaryKey(entryId);
147 }
148
149 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByCompanyId(
150 long companyId)
151 throws com.liferay.portal.kernel.exception.SystemException {
152 return getPersistence().findByCompanyId(companyId);
153 }
154
155 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByCompanyId(
156 long companyId, int start, int end)
157 throws com.liferay.portal.kernel.exception.SystemException {
158 return getPersistence().findByCompanyId(companyId, start, end);
159 }
160
161 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByCompanyId(
162 long companyId, int start, int end,
163 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
164 throws com.liferay.portal.kernel.exception.SystemException {
165 return getPersistence()
166 .findByCompanyId(companyId, start, end, orderByComparator);
167 }
168
169 public static com.liferay.portlet.asset.model.AssetEntry findByCompanyId_First(
170 long companyId,
171 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
172 throws com.liferay.portal.kernel.exception.SystemException,
173 com.liferay.portlet.asset.NoSuchEntryException {
174 return getPersistence()
175 .findByCompanyId_First(companyId, orderByComparator);
176 }
177
178 public static com.liferay.portlet.asset.model.AssetEntry findByCompanyId_Last(
179 long companyId,
180 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
181 throws com.liferay.portal.kernel.exception.SystemException,
182 com.liferay.portlet.asset.NoSuchEntryException {
183 return getPersistence()
184 .findByCompanyId_Last(companyId, orderByComparator);
185 }
186
187 public static com.liferay.portlet.asset.model.AssetEntry[] findByCompanyId_PrevAndNext(
188 long entryId, long companyId,
189 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
190 throws com.liferay.portal.kernel.exception.SystemException,
191 com.liferay.portlet.asset.NoSuchEntryException {
192 return getPersistence()
193 .findByCompanyId_PrevAndNext(entryId, companyId,
194 orderByComparator);
195 }
196
197 public static com.liferay.portlet.asset.model.AssetEntry findByG_CU(
198 long groupId, java.lang.String classUuid)
199 throws com.liferay.portal.kernel.exception.SystemException,
200 com.liferay.portlet.asset.NoSuchEntryException {
201 return getPersistence().findByG_CU(groupId, classUuid);
202 }
203
204 public static com.liferay.portlet.asset.model.AssetEntry fetchByG_CU(
205 long groupId, java.lang.String classUuid)
206 throws com.liferay.portal.kernel.exception.SystemException {
207 return getPersistence().fetchByG_CU(groupId, classUuid);
208 }
209
210 public static com.liferay.portlet.asset.model.AssetEntry fetchByG_CU(
211 long groupId, java.lang.String classUuid, boolean retrieveFromCache)
212 throws com.liferay.portal.kernel.exception.SystemException {
213 return getPersistence()
214 .fetchByG_CU(groupId, classUuid, retrieveFromCache);
215 }
216
217 public static com.liferay.portlet.asset.model.AssetEntry findByC_C(
218 long classNameId, long classPK)
219 throws com.liferay.portal.kernel.exception.SystemException,
220 com.liferay.portlet.asset.NoSuchEntryException {
221 return getPersistence().findByC_C(classNameId, classPK);
222 }
223
224 public static com.liferay.portlet.asset.model.AssetEntry fetchByC_C(
225 long classNameId, long classPK)
226 throws com.liferay.portal.kernel.exception.SystemException {
227 return getPersistence().fetchByC_C(classNameId, classPK);
228 }
229
230 public static com.liferay.portlet.asset.model.AssetEntry fetchByC_C(
231 long classNameId, long classPK, boolean retrieveFromCache)
232 throws com.liferay.portal.kernel.exception.SystemException {
233 return getPersistence()
234 .fetchByC_C(classNameId, classPK, retrieveFromCache);
235 }
236
237 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll()
238 throws com.liferay.portal.kernel.exception.SystemException {
239 return getPersistence().findAll();
240 }
241
242 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll(
243 int start, int end)
244 throws com.liferay.portal.kernel.exception.SystemException {
245 return getPersistence().findAll(start, end);
246 }
247
248 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll(
249 int start, int end,
250 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
251 throws com.liferay.portal.kernel.exception.SystemException {
252 return getPersistence().findAll(start, end, orderByComparator);
253 }
254
255 public static void removeByCompanyId(long companyId)
256 throws com.liferay.portal.kernel.exception.SystemException {
257 getPersistence().removeByCompanyId(companyId);
258 }
259
260 public static void removeByG_CU(long groupId, java.lang.String classUuid)
261 throws com.liferay.portal.kernel.exception.SystemException,
262 com.liferay.portlet.asset.NoSuchEntryException {
263 getPersistence().removeByG_CU(groupId, classUuid);
264 }
265
266 public static void removeByC_C(long classNameId, long classPK)
267 throws com.liferay.portal.kernel.exception.SystemException,
268 com.liferay.portlet.asset.NoSuchEntryException {
269 getPersistence().removeByC_C(classNameId, classPK);
270 }
271
272 public static void removeAll()
273 throws com.liferay.portal.kernel.exception.SystemException {
274 getPersistence().removeAll();
275 }
276
277 public static int countByCompanyId(long companyId)
278 throws com.liferay.portal.kernel.exception.SystemException {
279 return getPersistence().countByCompanyId(companyId);
280 }
281
282 public static int countByG_CU(long groupId, java.lang.String classUuid)
283 throws com.liferay.portal.kernel.exception.SystemException {
284 return getPersistence().countByG_CU(groupId, classUuid);
285 }
286
287 public static int countByC_C(long classNameId, long classPK)
288 throws com.liferay.portal.kernel.exception.SystemException {
289 return getPersistence().countByC_C(classNameId, classPK);
290 }
291
292 public static int countAll()
293 throws com.liferay.portal.kernel.exception.SystemException {
294 return getPersistence().countAll();
295 }
296
297 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
298 long pk) throws com.liferay.portal.kernel.exception.SystemException {
299 return getPersistence().getAssetCategories(pk);
300 }
301
302 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
303 long pk, int start, int end)
304 throws com.liferay.portal.kernel.exception.SystemException {
305 return getPersistence().getAssetCategories(pk, start, end);
306 }
307
308 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
309 long pk, int start, int end,
310 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
311 throws com.liferay.portal.kernel.exception.SystemException {
312 return getPersistence()
313 .getAssetCategories(pk, start, end, orderByComparator);
314 }
315
316 public static int getAssetCategoriesSize(long pk)
317 throws com.liferay.portal.kernel.exception.SystemException {
318 return getPersistence().getAssetCategoriesSize(pk);
319 }
320
321 public static boolean containsAssetCategory(long pk, long assetCategoryPK)
322 throws com.liferay.portal.kernel.exception.SystemException {
323 return getPersistence().containsAssetCategory(pk, assetCategoryPK);
324 }
325
326 public static boolean containsAssetCategories(long pk)
327 throws com.liferay.portal.kernel.exception.SystemException {
328 return getPersistence().containsAssetCategories(pk);
329 }
330
331 public static void addAssetCategory(long pk, long assetCategoryPK)
332 throws com.liferay.portal.kernel.exception.SystemException {
333 getPersistence().addAssetCategory(pk, assetCategoryPK);
334 }
335
336 public static void addAssetCategory(long pk,
337 com.liferay.portlet.asset.model.AssetCategory assetCategory)
338 throws com.liferay.portal.kernel.exception.SystemException {
339 getPersistence().addAssetCategory(pk, assetCategory);
340 }
341
342 public static void addAssetCategories(long pk, long[] assetCategoryPKs)
343 throws com.liferay.portal.kernel.exception.SystemException {
344 getPersistence().addAssetCategories(pk, assetCategoryPKs);
345 }
346
347 public static void addAssetCategories(long pk,
348 java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories)
349 throws com.liferay.portal.kernel.exception.SystemException {
350 getPersistence().addAssetCategories(pk, assetCategories);
351 }
352
353 public static void clearAssetCategories(long pk)
354 throws com.liferay.portal.kernel.exception.SystemException {
355 getPersistence().clearAssetCategories(pk);
356 }
357
358 public static void removeAssetCategory(long pk, long assetCategoryPK)
359 throws com.liferay.portal.kernel.exception.SystemException {
360 getPersistence().removeAssetCategory(pk, assetCategoryPK);
361 }
362
363 public static void removeAssetCategory(long pk,
364 com.liferay.portlet.asset.model.AssetCategory assetCategory)
365 throws com.liferay.portal.kernel.exception.SystemException {
366 getPersistence().removeAssetCategory(pk, assetCategory);
367 }
368
369 public static void removeAssetCategories(long pk, long[] assetCategoryPKs)
370 throws com.liferay.portal.kernel.exception.SystemException {
371 getPersistence().removeAssetCategories(pk, assetCategoryPKs);
372 }
373
374 public static void removeAssetCategories(long pk,
375 java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories)
376 throws com.liferay.portal.kernel.exception.SystemException {
377 getPersistence().removeAssetCategories(pk, assetCategories);
378 }
379
380 public static void setAssetCategories(long pk, long[] assetCategoryPKs)
381 throws com.liferay.portal.kernel.exception.SystemException {
382 getPersistence().setAssetCategories(pk, assetCategoryPKs);
383 }
384
385 public static void setAssetCategories(long pk,
386 java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories)
387 throws com.liferay.portal.kernel.exception.SystemException {
388 getPersistence().setAssetCategories(pk, assetCategories);
389 }
390
391 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
392 long pk) throws com.liferay.portal.kernel.exception.SystemException {
393 return getPersistence().getAssetTags(pk);
394 }
395
396 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
397 long pk, int start, int end)
398 throws com.liferay.portal.kernel.exception.SystemException {
399 return getPersistence().getAssetTags(pk, start, end);
400 }
401
402 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
403 long pk, int start, int end,
404 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
405 throws com.liferay.portal.kernel.exception.SystemException {
406 return getPersistence().getAssetTags(pk, start, end, orderByComparator);
407 }
408
409 public static int getAssetTagsSize(long pk)
410 throws com.liferay.portal.kernel.exception.SystemException {
411 return getPersistence().getAssetTagsSize(pk);
412 }
413
414 public static boolean containsAssetTag(long pk, long assetTagPK)
415 throws com.liferay.portal.kernel.exception.SystemException {
416 return getPersistence().containsAssetTag(pk, assetTagPK);
417 }
418
419 public static boolean containsAssetTags(long pk)
420 throws com.liferay.portal.kernel.exception.SystemException {
421 return getPersistence().containsAssetTags(pk);
422 }
423
424 public static void addAssetTag(long pk, long assetTagPK)
425 throws com.liferay.portal.kernel.exception.SystemException {
426 getPersistence().addAssetTag(pk, assetTagPK);
427 }
428
429 public static void addAssetTag(long pk,
430 com.liferay.portlet.asset.model.AssetTag assetTag)
431 throws com.liferay.portal.kernel.exception.SystemException {
432 getPersistence().addAssetTag(pk, assetTag);
433 }
434
435 public static void addAssetTags(long pk, long[] assetTagPKs)
436 throws com.liferay.portal.kernel.exception.SystemException {
437 getPersistence().addAssetTags(pk, assetTagPKs);
438 }
439
440 public static void addAssetTags(long pk,
441 java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags)
442 throws com.liferay.portal.kernel.exception.SystemException {
443 getPersistence().addAssetTags(pk, assetTags);
444 }
445
446 public static void clearAssetTags(long pk)
447 throws com.liferay.portal.kernel.exception.SystemException {
448 getPersistence().clearAssetTags(pk);
449 }
450
451 public static void removeAssetTag(long pk, long assetTagPK)
452 throws com.liferay.portal.kernel.exception.SystemException {
453 getPersistence().removeAssetTag(pk, assetTagPK);
454 }
455
456 public static void removeAssetTag(long pk,
457 com.liferay.portlet.asset.model.AssetTag assetTag)
458 throws com.liferay.portal.kernel.exception.SystemException {
459 getPersistence().removeAssetTag(pk, assetTag);
460 }
461
462 public static void removeAssetTags(long pk, long[] assetTagPKs)
463 throws com.liferay.portal.kernel.exception.SystemException {
464 getPersistence().removeAssetTags(pk, assetTagPKs);
465 }
466
467 public static void removeAssetTags(long pk,
468 java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags)
469 throws com.liferay.portal.kernel.exception.SystemException {
470 getPersistence().removeAssetTags(pk, assetTags);
471 }
472
473 public static void setAssetTags(long pk, long[] assetTagPKs)
474 throws com.liferay.portal.kernel.exception.SystemException {
475 getPersistence().setAssetTags(pk, assetTagPKs);
476 }
477
478 public static void setAssetTags(long pk,
479 java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags)
480 throws com.liferay.portal.kernel.exception.SystemException {
481 getPersistence().setAssetTags(pk, assetTags);
482 }
483
484 public static AssetEntryPersistence getPersistence() {
485 if (_persistence == null) {
486 _persistence = (AssetEntryPersistence)PortalBeanLocatorUtil.locate(AssetEntryPersistence.class.getName());
487 }
488
489 return _persistence;
490 }
491
492 public void setPersistence(AssetEntryPersistence persistence) {
493 _persistence = persistence;
494 }
495
496 private static AssetEntryPersistence _persistence;
497 }