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.AssetEntry;
22
23 import java.util.List;
24
25
38 public class AssetEntryUtil {
39
42 public static void clearCache() {
43 getPersistence().clearCache();
44 }
45
46
49 public static void clearCache(AssetEntry assetEntry) {
50 getPersistence().clearCache(assetEntry);
51 }
52
53
56 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
57 throws SystemException {
58 return getPersistence().countWithDynamicQuery(dynamicQuery);
59 }
60
61
64 public static List<AssetEntry> findWithDynamicQuery(
65 DynamicQuery dynamicQuery) throws SystemException {
66 return getPersistence().findWithDynamicQuery(dynamicQuery);
67 }
68
69
72 public static List<AssetEntry> findWithDynamicQuery(
73 DynamicQuery dynamicQuery, int start, int end)
74 throws SystemException {
75 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76 }
77
78
81 public static AssetEntry remove(AssetEntry assetEntry)
82 throws SystemException {
83 return getPersistence().remove(assetEntry);
84 }
85
86
89 public static AssetEntry update(AssetEntry assetEntry, boolean merge)
90 throws SystemException {
91 return getPersistence().update(assetEntry, merge);
92 }
93
94 public static void cacheResult(
95 com.liferay.portlet.asset.model.AssetEntry assetEntry) {
96 getPersistence().cacheResult(assetEntry);
97 }
98
99 public static void cacheResult(
100 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries) {
101 getPersistence().cacheResult(assetEntries);
102 }
103
104 public static com.liferay.portlet.asset.model.AssetEntry create(
105 long entryId) {
106 return getPersistence().create(entryId);
107 }
108
109 public static com.liferay.portlet.asset.model.AssetEntry remove(
110 long entryId)
111 throws com.liferay.portal.kernel.exception.SystemException,
112 com.liferay.portlet.asset.NoSuchEntryException {
113 return getPersistence().remove(entryId);
114 }
115
116 public static com.liferay.portlet.asset.model.AssetEntry updateImpl(
117 com.liferay.portlet.asset.model.AssetEntry assetEntry, boolean merge)
118 throws com.liferay.portal.kernel.exception.SystemException {
119 return getPersistence().updateImpl(assetEntry, merge);
120 }
121
122 public static com.liferay.portlet.asset.model.AssetEntry findByPrimaryKey(
123 long entryId)
124 throws com.liferay.portal.kernel.exception.SystemException,
125 com.liferay.portlet.asset.NoSuchEntryException {
126 return getPersistence().findByPrimaryKey(entryId);
127 }
128
129 public static com.liferay.portlet.asset.model.AssetEntry fetchByPrimaryKey(
130 long entryId)
131 throws com.liferay.portal.kernel.exception.SystemException {
132 return getPersistence().fetchByPrimaryKey(entryId);
133 }
134
135 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByCompanyId(
136 long companyId)
137 throws com.liferay.portal.kernel.exception.SystemException {
138 return getPersistence().findByCompanyId(companyId);
139 }
140
141 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByCompanyId(
142 long companyId, int start, int end)
143 throws com.liferay.portal.kernel.exception.SystemException {
144 return getPersistence().findByCompanyId(companyId, start, end);
145 }
146
147 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByCompanyId(
148 long companyId, int start, int end,
149 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150 throws com.liferay.portal.kernel.exception.SystemException {
151 return getPersistence()
152 .findByCompanyId(companyId, start, end, orderByComparator);
153 }
154
155 public static com.liferay.portlet.asset.model.AssetEntry findByCompanyId_First(
156 long companyId,
157 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
158 throws com.liferay.portal.kernel.exception.SystemException,
159 com.liferay.portlet.asset.NoSuchEntryException {
160 return getPersistence()
161 .findByCompanyId_First(companyId, orderByComparator);
162 }
163
164 public static com.liferay.portlet.asset.model.AssetEntry findByCompanyId_Last(
165 long companyId,
166 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
167 throws com.liferay.portal.kernel.exception.SystemException,
168 com.liferay.portlet.asset.NoSuchEntryException {
169 return getPersistence()
170 .findByCompanyId_Last(companyId, orderByComparator);
171 }
172
173 public static com.liferay.portlet.asset.model.AssetEntry[] findByCompanyId_PrevAndNext(
174 long entryId, long companyId,
175 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
176 throws com.liferay.portal.kernel.exception.SystemException,
177 com.liferay.portlet.asset.NoSuchEntryException {
178 return getPersistence()
179 .findByCompanyId_PrevAndNext(entryId, companyId,
180 orderByComparator);
181 }
182
183 public static com.liferay.portlet.asset.model.AssetEntry findByC_C(
184 long classNameId, long classPK)
185 throws com.liferay.portal.kernel.exception.SystemException,
186 com.liferay.portlet.asset.NoSuchEntryException {
187 return getPersistence().findByC_C(classNameId, classPK);
188 }
189
190 public static com.liferay.portlet.asset.model.AssetEntry fetchByC_C(
191 long classNameId, long classPK)
192 throws com.liferay.portal.kernel.exception.SystemException {
193 return getPersistence().fetchByC_C(classNameId, classPK);
194 }
195
196 public static com.liferay.portlet.asset.model.AssetEntry fetchByC_C(
197 long classNameId, long classPK, boolean retrieveFromCache)
198 throws com.liferay.portal.kernel.exception.SystemException {
199 return getPersistence()
200 .fetchByC_C(classNameId, classPK, retrieveFromCache);
201 }
202
203 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll()
204 throws com.liferay.portal.kernel.exception.SystemException {
205 return getPersistence().findAll();
206 }
207
208 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll(
209 int start, int end)
210 throws com.liferay.portal.kernel.exception.SystemException {
211 return getPersistence().findAll(start, end);
212 }
213
214 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll(
215 int start, int end,
216 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
217 throws com.liferay.portal.kernel.exception.SystemException {
218 return getPersistence().findAll(start, end, orderByComparator);
219 }
220
221 public static void removeByCompanyId(long companyId)
222 throws com.liferay.portal.kernel.exception.SystemException {
223 getPersistence().removeByCompanyId(companyId);
224 }
225
226 public static void removeByC_C(long classNameId, long classPK)
227 throws com.liferay.portal.kernel.exception.SystemException,
228 com.liferay.portlet.asset.NoSuchEntryException {
229 getPersistence().removeByC_C(classNameId, classPK);
230 }
231
232 public static void removeAll()
233 throws com.liferay.portal.kernel.exception.SystemException {
234 getPersistence().removeAll();
235 }
236
237 public static int countByCompanyId(long companyId)
238 throws com.liferay.portal.kernel.exception.SystemException {
239 return getPersistence().countByCompanyId(companyId);
240 }
241
242 public static int countByC_C(long classNameId, long classPK)
243 throws com.liferay.portal.kernel.exception.SystemException {
244 return getPersistence().countByC_C(classNameId, classPK);
245 }
246
247 public static int countAll()
248 throws com.liferay.portal.kernel.exception.SystemException {
249 return getPersistence().countAll();
250 }
251
252 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
253 long pk) throws com.liferay.portal.kernel.exception.SystemException {
254 return getPersistence().getAssetCategories(pk);
255 }
256
257 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
258 long pk, int start, int end)
259 throws com.liferay.portal.kernel.exception.SystemException {
260 return getPersistence().getAssetCategories(pk, start, end);
261 }
262
263 public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
264 long pk, int start, int end,
265 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
266 throws com.liferay.portal.kernel.exception.SystemException {
267 return getPersistence()
268 .getAssetCategories(pk, start, end, orderByComparator);
269 }
270
271 public static int getAssetCategoriesSize(long pk)
272 throws com.liferay.portal.kernel.exception.SystemException {
273 return getPersistence().getAssetCategoriesSize(pk);
274 }
275
276 public static boolean containsAssetCategory(long pk, long assetCategoryPK)
277 throws com.liferay.portal.kernel.exception.SystemException {
278 return getPersistence().containsAssetCategory(pk, assetCategoryPK);
279 }
280
281 public static boolean containsAssetCategories(long pk)
282 throws com.liferay.portal.kernel.exception.SystemException {
283 return getPersistence().containsAssetCategories(pk);
284 }
285
286 public static void addAssetCategory(long pk, long assetCategoryPK)
287 throws com.liferay.portal.kernel.exception.SystemException {
288 getPersistence().addAssetCategory(pk, assetCategoryPK);
289 }
290
291 public static void addAssetCategory(long pk,
292 com.liferay.portlet.asset.model.AssetCategory assetCategory)
293 throws com.liferay.portal.kernel.exception.SystemException {
294 getPersistence().addAssetCategory(pk, assetCategory);
295 }
296
297 public static void addAssetCategories(long pk, long[] assetCategoryPKs)
298 throws com.liferay.portal.kernel.exception.SystemException {
299 getPersistence().addAssetCategories(pk, assetCategoryPKs);
300 }
301
302 public static void addAssetCategories(long pk,
303 java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories)
304 throws com.liferay.portal.kernel.exception.SystemException {
305 getPersistence().addAssetCategories(pk, assetCategories);
306 }
307
308 public static void clearAssetCategories(long pk)
309 throws com.liferay.portal.kernel.exception.SystemException {
310 getPersistence().clearAssetCategories(pk);
311 }
312
313 public static void removeAssetCategory(long pk, long assetCategoryPK)
314 throws com.liferay.portal.kernel.exception.SystemException {
315 getPersistence().removeAssetCategory(pk, assetCategoryPK);
316 }
317
318 public static void removeAssetCategory(long pk,
319 com.liferay.portlet.asset.model.AssetCategory assetCategory)
320 throws com.liferay.portal.kernel.exception.SystemException {
321 getPersistence().removeAssetCategory(pk, assetCategory);
322 }
323
324 public static void removeAssetCategories(long pk, long[] assetCategoryPKs)
325 throws com.liferay.portal.kernel.exception.SystemException {
326 getPersistence().removeAssetCategories(pk, assetCategoryPKs);
327 }
328
329 public static void removeAssetCategories(long pk,
330 java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories)
331 throws com.liferay.portal.kernel.exception.SystemException {
332 getPersistence().removeAssetCategories(pk, assetCategories);
333 }
334
335 public static void setAssetCategories(long pk, long[] assetCategoryPKs)
336 throws com.liferay.portal.kernel.exception.SystemException {
337 getPersistence().setAssetCategories(pk, assetCategoryPKs);
338 }
339
340 public static void setAssetCategories(long pk,
341 java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories)
342 throws com.liferay.portal.kernel.exception.SystemException {
343 getPersistence().setAssetCategories(pk, assetCategories);
344 }
345
346 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
347 long pk) throws com.liferay.portal.kernel.exception.SystemException {
348 return getPersistence().getAssetTags(pk);
349 }
350
351 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
352 long pk, int start, int end)
353 throws com.liferay.portal.kernel.exception.SystemException {
354 return getPersistence().getAssetTags(pk, start, end);
355 }
356
357 public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
358 long pk, int start, int end,
359 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
360 throws com.liferay.portal.kernel.exception.SystemException {
361 return getPersistence().getAssetTags(pk, start, end, orderByComparator);
362 }
363
364 public static int getAssetTagsSize(long pk)
365 throws com.liferay.portal.kernel.exception.SystemException {
366 return getPersistence().getAssetTagsSize(pk);
367 }
368
369 public static boolean containsAssetTag(long pk, long assetTagPK)
370 throws com.liferay.portal.kernel.exception.SystemException {
371 return getPersistence().containsAssetTag(pk, assetTagPK);
372 }
373
374 public static boolean containsAssetTags(long pk)
375 throws com.liferay.portal.kernel.exception.SystemException {
376 return getPersistence().containsAssetTags(pk);
377 }
378
379 public static void addAssetTag(long pk, long assetTagPK)
380 throws com.liferay.portal.kernel.exception.SystemException {
381 getPersistence().addAssetTag(pk, assetTagPK);
382 }
383
384 public static void addAssetTag(long pk,
385 com.liferay.portlet.asset.model.AssetTag assetTag)
386 throws com.liferay.portal.kernel.exception.SystemException {
387 getPersistence().addAssetTag(pk, assetTag);
388 }
389
390 public static void addAssetTags(long pk, long[] assetTagPKs)
391 throws com.liferay.portal.kernel.exception.SystemException {
392 getPersistence().addAssetTags(pk, assetTagPKs);
393 }
394
395 public static void addAssetTags(long pk,
396 java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags)
397 throws com.liferay.portal.kernel.exception.SystemException {
398 getPersistence().addAssetTags(pk, assetTags);
399 }
400
401 public static void clearAssetTags(long pk)
402 throws com.liferay.portal.kernel.exception.SystemException {
403 getPersistence().clearAssetTags(pk);
404 }
405
406 public static void removeAssetTag(long pk, long assetTagPK)
407 throws com.liferay.portal.kernel.exception.SystemException {
408 getPersistence().removeAssetTag(pk, assetTagPK);
409 }
410
411 public static void removeAssetTag(long pk,
412 com.liferay.portlet.asset.model.AssetTag assetTag)
413 throws com.liferay.portal.kernel.exception.SystemException {
414 getPersistence().removeAssetTag(pk, assetTag);
415 }
416
417 public static void removeAssetTags(long pk, long[] assetTagPKs)
418 throws com.liferay.portal.kernel.exception.SystemException {
419 getPersistence().removeAssetTags(pk, assetTagPKs);
420 }
421
422 public static void removeAssetTags(long pk,
423 java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags)
424 throws com.liferay.portal.kernel.exception.SystemException {
425 getPersistence().removeAssetTags(pk, assetTags);
426 }
427
428 public static void setAssetTags(long pk, long[] assetTagPKs)
429 throws com.liferay.portal.kernel.exception.SystemException {
430 getPersistence().setAssetTags(pk, assetTagPKs);
431 }
432
433 public static void setAssetTags(long pk,
434 java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags)
435 throws com.liferay.portal.kernel.exception.SystemException {
436 getPersistence().setAssetTags(pk, assetTags);
437 }
438
439 public static AssetEntryPersistence getPersistence() {
440 if (_persistence == null) {
441 _persistence = (AssetEntryPersistence)PortalBeanLocatorUtil.locate(AssetEntryPersistence.class.getName());
442 }
443
444 return _persistence;
445 }
446
447 public void setPersistence(AssetEntryPersistence persistence) {
448 _persistence = persistence;
449 }
450
451 private static AssetEntryPersistence _persistence;
452 }