1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
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  /**
26   * <a href="AssetEntryUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * <p>
29   * ServiceBuilder generated this class. Modifications in this class will be
30   * overwritten the next time is generated.
31   * </p>
32   *
33   * @author    Brian Wing Shun Chan
34   * @see       AssetEntryPersistence
35   * @see       AssetEntryPersistenceImpl
36   * @generated
37   */
38  public class AssetEntryUtil {
39      /**
40       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
41       */
42      public static void clearCache() {
43          getPersistence().clearCache();
44      }
45  
46      /**
47       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
48       */
49      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
50          throws SystemException {
51          return getPersistence().findWithDynamicQuery(dynamicQuery);
52      }
53  
54      /**
55       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
56       */
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      /**
63       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
64       */
65      public static AssetEntry remove(AssetEntry assetEntry)
66          throws SystemException {
67          return getPersistence().remove(assetEntry);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
72       */
73      public static AssetEntry update(AssetEntry assetEntry, boolean merge)
74          throws SystemException {
75          return getPersistence().update(assetEntry, merge);
76      }
77  
78      public static void cacheResult(
79          com.liferay.portlet.asset.model.AssetEntry assetEntry) {
80          getPersistence().cacheResult(assetEntry);
81      }
82  
83      public static void cacheResult(
84          java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries) {
85          getPersistence().cacheResult(assetEntries);
86      }
87  
88      public static com.liferay.portlet.asset.model.AssetEntry create(
89          long entryId) {
90          return getPersistence().create(entryId);
91      }
92  
93      public static com.liferay.portlet.asset.model.AssetEntry remove(
94          long entryId)
95          throws com.liferay.portal.kernel.exception.SystemException,
96              com.liferay.portlet.asset.NoSuchEntryException {
97          return getPersistence().remove(entryId);
98      }
99  
100     public static com.liferay.portlet.asset.model.AssetEntry updateImpl(
101         com.liferay.portlet.asset.model.AssetEntry assetEntry, boolean merge)
102         throws com.liferay.portal.kernel.exception.SystemException {
103         return getPersistence().updateImpl(assetEntry, merge);
104     }
105 
106     public static com.liferay.portlet.asset.model.AssetEntry findByPrimaryKey(
107         long entryId)
108         throws com.liferay.portal.kernel.exception.SystemException,
109             com.liferay.portlet.asset.NoSuchEntryException {
110         return getPersistence().findByPrimaryKey(entryId);
111     }
112 
113     public static com.liferay.portlet.asset.model.AssetEntry fetchByPrimaryKey(
114         long entryId)
115         throws com.liferay.portal.kernel.exception.SystemException {
116         return getPersistence().fetchByPrimaryKey(entryId);
117     }
118 
119     public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByCompanyId(
120         long companyId)
121         throws com.liferay.portal.kernel.exception.SystemException {
122         return getPersistence().findByCompanyId(companyId);
123     }
124 
125     public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByCompanyId(
126         long companyId, int start, int end)
127         throws com.liferay.portal.kernel.exception.SystemException {
128         return getPersistence().findByCompanyId(companyId, start, end);
129     }
130 
131     public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByCompanyId(
132         long companyId, int start, int end,
133         com.liferay.portal.kernel.util.OrderByComparator obc)
134         throws com.liferay.portal.kernel.exception.SystemException {
135         return getPersistence().findByCompanyId(companyId, start, end, obc);
136     }
137 
138     public static com.liferay.portlet.asset.model.AssetEntry findByCompanyId_First(
139         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
140         throws com.liferay.portal.kernel.exception.SystemException,
141             com.liferay.portlet.asset.NoSuchEntryException {
142         return getPersistence().findByCompanyId_First(companyId, obc);
143     }
144 
145     public static com.liferay.portlet.asset.model.AssetEntry findByCompanyId_Last(
146         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
147         throws com.liferay.portal.kernel.exception.SystemException,
148             com.liferay.portlet.asset.NoSuchEntryException {
149         return getPersistence().findByCompanyId_Last(companyId, obc);
150     }
151 
152     public static com.liferay.portlet.asset.model.AssetEntry[] findByCompanyId_PrevAndNext(
153         long entryId, long companyId,
154         com.liferay.portal.kernel.util.OrderByComparator obc)
155         throws com.liferay.portal.kernel.exception.SystemException,
156             com.liferay.portlet.asset.NoSuchEntryException {
157         return getPersistence()
158                    .findByCompanyId_PrevAndNext(entryId, companyId, obc);
159     }
160 
161     public static com.liferay.portlet.asset.model.AssetEntry findByC_C(
162         long classNameId, long classPK)
163         throws com.liferay.portal.kernel.exception.SystemException,
164             com.liferay.portlet.asset.NoSuchEntryException {
165         return getPersistence().findByC_C(classNameId, classPK);
166     }
167 
168     public static com.liferay.portlet.asset.model.AssetEntry fetchByC_C(
169         long classNameId, long classPK)
170         throws com.liferay.portal.kernel.exception.SystemException {
171         return getPersistence().fetchByC_C(classNameId, classPK);
172     }
173 
174     public static com.liferay.portlet.asset.model.AssetEntry fetchByC_C(
175         long classNameId, long classPK, boolean retrieveFromCache)
176         throws com.liferay.portal.kernel.exception.SystemException {
177         return getPersistence()
178                    .fetchByC_C(classNameId, classPK, retrieveFromCache);
179     }
180 
181     public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll()
182         throws com.liferay.portal.kernel.exception.SystemException {
183         return getPersistence().findAll();
184     }
185 
186     public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll(
187         int start, int end)
188         throws com.liferay.portal.kernel.exception.SystemException {
189         return getPersistence().findAll(start, end);
190     }
191 
192     public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll(
193         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
194         throws com.liferay.portal.kernel.exception.SystemException {
195         return getPersistence().findAll(start, end, obc);
196     }
197 
198     public static void removeByCompanyId(long companyId)
199         throws com.liferay.portal.kernel.exception.SystemException {
200         getPersistence().removeByCompanyId(companyId);
201     }
202 
203     public static void removeByC_C(long classNameId, long classPK)
204         throws com.liferay.portal.kernel.exception.SystemException,
205             com.liferay.portlet.asset.NoSuchEntryException {
206         getPersistence().removeByC_C(classNameId, classPK);
207     }
208 
209     public static void removeAll()
210         throws com.liferay.portal.kernel.exception.SystemException {
211         getPersistence().removeAll();
212     }
213 
214     public static int countByCompanyId(long companyId)
215         throws com.liferay.portal.kernel.exception.SystemException {
216         return getPersistence().countByCompanyId(companyId);
217     }
218 
219     public static int countByC_C(long classNameId, long classPK)
220         throws com.liferay.portal.kernel.exception.SystemException {
221         return getPersistence().countByC_C(classNameId, classPK);
222     }
223 
224     public static int countAll()
225         throws com.liferay.portal.kernel.exception.SystemException {
226         return getPersistence().countAll();
227     }
228 
229     public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
230         long pk) throws com.liferay.portal.kernel.exception.SystemException {
231         return getPersistence().getAssetCategories(pk);
232     }
233 
234     public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
235         long pk, int start, int end)
236         throws com.liferay.portal.kernel.exception.SystemException {
237         return getPersistence().getAssetCategories(pk, start, end);
238     }
239 
240     public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
241         long pk, int start, int end,
242         com.liferay.portal.kernel.util.OrderByComparator obc)
243         throws com.liferay.portal.kernel.exception.SystemException {
244         return getPersistence().getAssetCategories(pk, start, end, obc);
245     }
246 
247     public static int getAssetCategoriesSize(long pk)
248         throws com.liferay.portal.kernel.exception.SystemException {
249         return getPersistence().getAssetCategoriesSize(pk);
250     }
251 
252     public static boolean containsAssetCategory(long pk, long assetCategoryPK)
253         throws com.liferay.portal.kernel.exception.SystemException {
254         return getPersistence().containsAssetCategory(pk, assetCategoryPK);
255     }
256 
257     public static boolean containsAssetCategories(long pk)
258         throws com.liferay.portal.kernel.exception.SystemException {
259         return getPersistence().containsAssetCategories(pk);
260     }
261 
262     public static void addAssetCategory(long pk, long assetCategoryPK)
263         throws com.liferay.portal.kernel.exception.SystemException {
264         getPersistence().addAssetCategory(pk, assetCategoryPK);
265     }
266 
267     public static void addAssetCategory(long pk,
268         com.liferay.portlet.asset.model.AssetCategory assetCategory)
269         throws com.liferay.portal.kernel.exception.SystemException {
270         getPersistence().addAssetCategory(pk, assetCategory);
271     }
272 
273     public static void addAssetCategories(long pk, long[] assetCategoryPKs)
274         throws com.liferay.portal.kernel.exception.SystemException {
275         getPersistence().addAssetCategories(pk, assetCategoryPKs);
276     }
277 
278     public static void addAssetCategories(long pk,
279         java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories)
280         throws com.liferay.portal.kernel.exception.SystemException {
281         getPersistence().addAssetCategories(pk, assetCategories);
282     }
283 
284     public static void clearAssetCategories(long pk)
285         throws com.liferay.portal.kernel.exception.SystemException {
286         getPersistence().clearAssetCategories(pk);
287     }
288 
289     public static void removeAssetCategory(long pk, long assetCategoryPK)
290         throws com.liferay.portal.kernel.exception.SystemException {
291         getPersistence().removeAssetCategory(pk, assetCategoryPK);
292     }
293 
294     public static void removeAssetCategory(long pk,
295         com.liferay.portlet.asset.model.AssetCategory assetCategory)
296         throws com.liferay.portal.kernel.exception.SystemException {
297         getPersistence().removeAssetCategory(pk, assetCategory);
298     }
299 
300     public static void removeAssetCategories(long pk, long[] assetCategoryPKs)
301         throws com.liferay.portal.kernel.exception.SystemException {
302         getPersistence().removeAssetCategories(pk, assetCategoryPKs);
303     }
304 
305     public static void removeAssetCategories(long pk,
306         java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories)
307         throws com.liferay.portal.kernel.exception.SystemException {
308         getPersistence().removeAssetCategories(pk, assetCategories);
309     }
310 
311     public static void setAssetCategories(long pk, long[] assetCategoryPKs)
312         throws com.liferay.portal.kernel.exception.SystemException {
313         getPersistence().setAssetCategories(pk, assetCategoryPKs);
314     }
315 
316     public static void setAssetCategories(long pk,
317         java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories)
318         throws com.liferay.portal.kernel.exception.SystemException {
319         getPersistence().setAssetCategories(pk, assetCategories);
320     }
321 
322     public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
323         long pk) throws com.liferay.portal.kernel.exception.SystemException {
324         return getPersistence().getAssetTags(pk);
325     }
326 
327     public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
328         long pk, int start, int end)
329         throws com.liferay.portal.kernel.exception.SystemException {
330         return getPersistence().getAssetTags(pk, start, end);
331     }
332 
333     public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
334         long pk, int start, int end,
335         com.liferay.portal.kernel.util.OrderByComparator obc)
336         throws com.liferay.portal.kernel.exception.SystemException {
337         return getPersistence().getAssetTags(pk, start, end, obc);
338     }
339 
340     public static int getAssetTagsSize(long pk)
341         throws com.liferay.portal.kernel.exception.SystemException {
342         return getPersistence().getAssetTagsSize(pk);
343     }
344 
345     public static boolean containsAssetTag(long pk, long assetTagPK)
346         throws com.liferay.portal.kernel.exception.SystemException {
347         return getPersistence().containsAssetTag(pk, assetTagPK);
348     }
349 
350     public static boolean containsAssetTags(long pk)
351         throws com.liferay.portal.kernel.exception.SystemException {
352         return getPersistence().containsAssetTags(pk);
353     }
354 
355     public static void addAssetTag(long pk, long assetTagPK)
356         throws com.liferay.portal.kernel.exception.SystemException {
357         getPersistence().addAssetTag(pk, assetTagPK);
358     }
359 
360     public static void addAssetTag(long pk,
361         com.liferay.portlet.asset.model.AssetTag assetTag)
362         throws com.liferay.portal.kernel.exception.SystemException {
363         getPersistence().addAssetTag(pk, assetTag);
364     }
365 
366     public static void addAssetTags(long pk, long[] assetTagPKs)
367         throws com.liferay.portal.kernel.exception.SystemException {
368         getPersistence().addAssetTags(pk, assetTagPKs);
369     }
370 
371     public static void addAssetTags(long pk,
372         java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags)
373         throws com.liferay.portal.kernel.exception.SystemException {
374         getPersistence().addAssetTags(pk, assetTags);
375     }
376 
377     public static void clearAssetTags(long pk)
378         throws com.liferay.portal.kernel.exception.SystemException {
379         getPersistence().clearAssetTags(pk);
380     }
381 
382     public static void removeAssetTag(long pk, long assetTagPK)
383         throws com.liferay.portal.kernel.exception.SystemException {
384         getPersistence().removeAssetTag(pk, assetTagPK);
385     }
386 
387     public static void removeAssetTag(long pk,
388         com.liferay.portlet.asset.model.AssetTag assetTag)
389         throws com.liferay.portal.kernel.exception.SystemException {
390         getPersistence().removeAssetTag(pk, assetTag);
391     }
392 
393     public static void removeAssetTags(long pk, long[] assetTagPKs)
394         throws com.liferay.portal.kernel.exception.SystemException {
395         getPersistence().removeAssetTags(pk, assetTagPKs);
396     }
397 
398     public static void removeAssetTags(long pk,
399         java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags)
400         throws com.liferay.portal.kernel.exception.SystemException {
401         getPersistence().removeAssetTags(pk, assetTags);
402     }
403 
404     public static void setAssetTags(long pk, long[] assetTagPKs)
405         throws com.liferay.portal.kernel.exception.SystemException {
406         getPersistence().setAssetTags(pk, assetTagPKs);
407     }
408 
409     public static void setAssetTags(long pk,
410         java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags)
411         throws com.liferay.portal.kernel.exception.SystemException {
412         getPersistence().setAssetTags(pk, assetTags);
413     }
414 
415     public static AssetEntryPersistence getPersistence() {
416         if (_persistence == null) {
417             _persistence = (AssetEntryPersistence)PortalBeanLocatorUtil.locate(AssetEntryPersistence.class.getName());
418         }
419 
420         return _persistence;
421     }
422 
423     public void setPersistence(AssetEntryPersistence persistence) {
424         _persistence = persistence;
425     }
426 
427     private static AssetEntryPersistence _persistence;
428 }