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 orderByComparator)
134         throws com.liferay.portal.kernel.exception.SystemException {
135         return getPersistence()
136                    .findByCompanyId(companyId, start, end, orderByComparator);
137     }
138 
139     public static com.liferay.portlet.asset.model.AssetEntry findByCompanyId_First(
140         long companyId,
141         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142         throws com.liferay.portal.kernel.exception.SystemException,
143             com.liferay.portlet.asset.NoSuchEntryException {
144         return getPersistence()
145                    .findByCompanyId_First(companyId, orderByComparator);
146     }
147 
148     public static com.liferay.portlet.asset.model.AssetEntry findByCompanyId_Last(
149         long companyId,
150         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151         throws com.liferay.portal.kernel.exception.SystemException,
152             com.liferay.portlet.asset.NoSuchEntryException {
153         return getPersistence()
154                    .findByCompanyId_Last(companyId, orderByComparator);
155     }
156 
157     public static com.liferay.portlet.asset.model.AssetEntry[] findByCompanyId_PrevAndNext(
158         long entryId, long companyId,
159         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
160         throws com.liferay.portal.kernel.exception.SystemException,
161             com.liferay.portlet.asset.NoSuchEntryException {
162         return getPersistence()
163                    .findByCompanyId_PrevAndNext(entryId, companyId,
164             orderByComparator);
165     }
166 
167     public static com.liferay.portlet.asset.model.AssetEntry findByC_C(
168         long classNameId, long classPK)
169         throws com.liferay.portal.kernel.exception.SystemException,
170             com.liferay.portlet.asset.NoSuchEntryException {
171         return getPersistence().findByC_C(classNameId, classPK);
172     }
173 
174     public static com.liferay.portlet.asset.model.AssetEntry fetchByC_C(
175         long classNameId, long classPK)
176         throws com.liferay.portal.kernel.exception.SystemException {
177         return getPersistence().fetchByC_C(classNameId, classPK);
178     }
179 
180     public static com.liferay.portlet.asset.model.AssetEntry fetchByC_C(
181         long classNameId, long classPK, boolean retrieveFromCache)
182         throws com.liferay.portal.kernel.exception.SystemException {
183         return getPersistence()
184                    .fetchByC_C(classNameId, classPK, retrieveFromCache);
185     }
186 
187     public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll()
188         throws com.liferay.portal.kernel.exception.SystemException {
189         return getPersistence().findAll();
190     }
191 
192     public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll(
193         int start, int end)
194         throws com.liferay.portal.kernel.exception.SystemException {
195         return getPersistence().findAll(start, end);
196     }
197 
198     public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll(
199         int start, int end,
200         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
201         throws com.liferay.portal.kernel.exception.SystemException {
202         return getPersistence().findAll(start, end, orderByComparator);
203     }
204 
205     public static void removeByCompanyId(long companyId)
206         throws com.liferay.portal.kernel.exception.SystemException {
207         getPersistence().removeByCompanyId(companyId);
208     }
209 
210     public static void removeByC_C(long classNameId, long classPK)
211         throws com.liferay.portal.kernel.exception.SystemException,
212             com.liferay.portlet.asset.NoSuchEntryException {
213         getPersistence().removeByC_C(classNameId, classPK);
214     }
215 
216     public static void removeAll()
217         throws com.liferay.portal.kernel.exception.SystemException {
218         getPersistence().removeAll();
219     }
220 
221     public static int countByCompanyId(long companyId)
222         throws com.liferay.portal.kernel.exception.SystemException {
223         return getPersistence().countByCompanyId(companyId);
224     }
225 
226     public static int countByC_C(long classNameId, long classPK)
227         throws com.liferay.portal.kernel.exception.SystemException {
228         return getPersistence().countByC_C(classNameId, classPK);
229     }
230 
231     public static int countAll()
232         throws com.liferay.portal.kernel.exception.SystemException {
233         return getPersistence().countAll();
234     }
235 
236     public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
237         long pk) throws com.liferay.portal.kernel.exception.SystemException {
238         return getPersistence().getAssetCategories(pk);
239     }
240 
241     public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
242         long pk, int start, int end)
243         throws com.liferay.portal.kernel.exception.SystemException {
244         return getPersistence().getAssetCategories(pk, start, end);
245     }
246 
247     public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
248         long pk, int start, int end,
249         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
250         throws com.liferay.portal.kernel.exception.SystemException {
251         return getPersistence()
252                    .getAssetCategories(pk, start, end, orderByComparator);
253     }
254 
255     public static int getAssetCategoriesSize(long pk)
256         throws com.liferay.portal.kernel.exception.SystemException {
257         return getPersistence().getAssetCategoriesSize(pk);
258     }
259 
260     public static boolean containsAssetCategory(long pk, long assetCategoryPK)
261         throws com.liferay.portal.kernel.exception.SystemException {
262         return getPersistence().containsAssetCategory(pk, assetCategoryPK);
263     }
264 
265     public static boolean containsAssetCategories(long pk)
266         throws com.liferay.portal.kernel.exception.SystemException {
267         return getPersistence().containsAssetCategories(pk);
268     }
269 
270     public static void addAssetCategory(long pk, long assetCategoryPK)
271         throws com.liferay.portal.kernel.exception.SystemException {
272         getPersistence().addAssetCategory(pk, assetCategoryPK);
273     }
274 
275     public static void addAssetCategory(long pk,
276         com.liferay.portlet.asset.model.AssetCategory assetCategory)
277         throws com.liferay.portal.kernel.exception.SystemException {
278         getPersistence().addAssetCategory(pk, assetCategory);
279     }
280 
281     public static void addAssetCategories(long pk, long[] assetCategoryPKs)
282         throws com.liferay.portal.kernel.exception.SystemException {
283         getPersistence().addAssetCategories(pk, assetCategoryPKs);
284     }
285 
286     public static void addAssetCategories(long pk,
287         java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories)
288         throws com.liferay.portal.kernel.exception.SystemException {
289         getPersistence().addAssetCategories(pk, assetCategories);
290     }
291 
292     public static void clearAssetCategories(long pk)
293         throws com.liferay.portal.kernel.exception.SystemException {
294         getPersistence().clearAssetCategories(pk);
295     }
296 
297     public static void removeAssetCategory(long pk, long assetCategoryPK)
298         throws com.liferay.portal.kernel.exception.SystemException {
299         getPersistence().removeAssetCategory(pk, assetCategoryPK);
300     }
301 
302     public static void removeAssetCategory(long pk,
303         com.liferay.portlet.asset.model.AssetCategory assetCategory)
304         throws com.liferay.portal.kernel.exception.SystemException {
305         getPersistence().removeAssetCategory(pk, assetCategory);
306     }
307 
308     public static void removeAssetCategories(long pk, long[] assetCategoryPKs)
309         throws com.liferay.portal.kernel.exception.SystemException {
310         getPersistence().removeAssetCategories(pk, assetCategoryPKs);
311     }
312 
313     public static void removeAssetCategories(long pk,
314         java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories)
315         throws com.liferay.portal.kernel.exception.SystemException {
316         getPersistence().removeAssetCategories(pk, assetCategories);
317     }
318 
319     public static void setAssetCategories(long pk, long[] assetCategoryPKs)
320         throws com.liferay.portal.kernel.exception.SystemException {
321         getPersistence().setAssetCategories(pk, assetCategoryPKs);
322     }
323 
324     public static void setAssetCategories(long pk,
325         java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories)
326         throws com.liferay.portal.kernel.exception.SystemException {
327         getPersistence().setAssetCategories(pk, assetCategories);
328     }
329 
330     public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
331         long pk) throws com.liferay.portal.kernel.exception.SystemException {
332         return getPersistence().getAssetTags(pk);
333     }
334 
335     public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
336         long pk, int start, int end)
337         throws com.liferay.portal.kernel.exception.SystemException {
338         return getPersistence().getAssetTags(pk, start, end);
339     }
340 
341     public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
342         long pk, int start, int end,
343         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
344         throws com.liferay.portal.kernel.exception.SystemException {
345         return getPersistence().getAssetTags(pk, start, end, orderByComparator);
346     }
347 
348     public static int getAssetTagsSize(long pk)
349         throws com.liferay.portal.kernel.exception.SystemException {
350         return getPersistence().getAssetTagsSize(pk);
351     }
352 
353     public static boolean containsAssetTag(long pk, long assetTagPK)
354         throws com.liferay.portal.kernel.exception.SystemException {
355         return getPersistence().containsAssetTag(pk, assetTagPK);
356     }
357 
358     public static boolean containsAssetTags(long pk)
359         throws com.liferay.portal.kernel.exception.SystemException {
360         return getPersistence().containsAssetTags(pk);
361     }
362 
363     public static void addAssetTag(long pk, long assetTagPK)
364         throws com.liferay.portal.kernel.exception.SystemException {
365         getPersistence().addAssetTag(pk, assetTagPK);
366     }
367 
368     public static void addAssetTag(long pk,
369         com.liferay.portlet.asset.model.AssetTag assetTag)
370         throws com.liferay.portal.kernel.exception.SystemException {
371         getPersistence().addAssetTag(pk, assetTag);
372     }
373 
374     public static void addAssetTags(long pk, long[] assetTagPKs)
375         throws com.liferay.portal.kernel.exception.SystemException {
376         getPersistence().addAssetTags(pk, assetTagPKs);
377     }
378 
379     public static void addAssetTags(long pk,
380         java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags)
381         throws com.liferay.portal.kernel.exception.SystemException {
382         getPersistence().addAssetTags(pk, assetTags);
383     }
384 
385     public static void clearAssetTags(long pk)
386         throws com.liferay.portal.kernel.exception.SystemException {
387         getPersistence().clearAssetTags(pk);
388     }
389 
390     public static void removeAssetTag(long pk, long assetTagPK)
391         throws com.liferay.portal.kernel.exception.SystemException {
392         getPersistence().removeAssetTag(pk, assetTagPK);
393     }
394 
395     public static void removeAssetTag(long pk,
396         com.liferay.portlet.asset.model.AssetTag assetTag)
397         throws com.liferay.portal.kernel.exception.SystemException {
398         getPersistence().removeAssetTag(pk, assetTag);
399     }
400 
401     public static void removeAssetTags(long pk, long[] assetTagPKs)
402         throws com.liferay.portal.kernel.exception.SystemException {
403         getPersistence().removeAssetTags(pk, assetTagPKs);
404     }
405 
406     public static void removeAssetTags(long pk,
407         java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags)
408         throws com.liferay.portal.kernel.exception.SystemException {
409         getPersistence().removeAssetTags(pk, assetTags);
410     }
411 
412     public static void setAssetTags(long pk, long[] assetTagPKs)
413         throws com.liferay.portal.kernel.exception.SystemException {
414         getPersistence().setAssetTags(pk, assetTagPKs);
415     }
416 
417     public static void setAssetTags(long pk,
418         java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags)
419         throws com.liferay.portal.kernel.exception.SystemException {
420         getPersistence().setAssetTags(pk, assetTags);
421     }
422 
423     public static AssetEntryPersistence getPersistence() {
424         if (_persistence == null) {
425             _persistence = (AssetEntryPersistence)PortalBeanLocatorUtil.locate(AssetEntryPersistence.class.getName());
426         }
427 
428         return _persistence;
429     }
430 
431     public void setPersistence(AssetEntryPersistence persistence) {
432         _persistence = persistence;
433     }
434 
435     private static AssetEntryPersistence _persistence;
436 }