1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
14  
15  package com.liferay.portlet.tags.service.persistence;
16  
17  import com.liferay.portal.SystemException;
18  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
19  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
20  
21  import com.liferay.portlet.tags.model.TagsAsset;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="TagsAssetUtil.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       TagsAssetPersistence
35   * @see       TagsAssetPersistenceImpl
36   * @generated
37   */
38  public class TagsAssetUtil {
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 TagsAsset remove(TagsAsset tagsAsset)
66          throws SystemException {
67          return getPersistence().remove(tagsAsset);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
72       */
73      public static TagsAsset update(TagsAsset tagsAsset, boolean merge)
74          throws SystemException {
75          return getPersistence().update(tagsAsset, merge);
76      }
77  
78      public static void cacheResult(
79          com.liferay.portlet.tags.model.TagsAsset tagsAsset) {
80          getPersistence().cacheResult(tagsAsset);
81      }
82  
83      public static void cacheResult(
84          java.util.List<com.liferay.portlet.tags.model.TagsAsset> tagsAssets) {
85          getPersistence().cacheResult(tagsAssets);
86      }
87  
88      public static com.liferay.portlet.tags.model.TagsAsset create(long assetId) {
89          return getPersistence().create(assetId);
90      }
91  
92      public static com.liferay.portlet.tags.model.TagsAsset remove(long assetId)
93          throws com.liferay.portal.SystemException,
94              com.liferay.portlet.tags.NoSuchAssetException {
95          return getPersistence().remove(assetId);
96      }
97  
98      /**
99       * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
100      */
101     public static com.liferay.portlet.tags.model.TagsAsset update(
102         com.liferay.portlet.tags.model.TagsAsset tagsAsset)
103         throws com.liferay.portal.SystemException {
104         return getPersistence().update(tagsAsset);
105     }
106 
107     public static com.liferay.portlet.tags.model.TagsAsset updateImpl(
108         com.liferay.portlet.tags.model.TagsAsset tagsAsset, boolean merge)
109         throws com.liferay.portal.SystemException {
110         return getPersistence().updateImpl(tagsAsset, merge);
111     }
112 
113     public static com.liferay.portlet.tags.model.TagsAsset findByPrimaryKey(
114         long assetId)
115         throws com.liferay.portal.SystemException,
116             com.liferay.portlet.tags.NoSuchAssetException {
117         return getPersistence().findByPrimaryKey(assetId);
118     }
119 
120     public static com.liferay.portlet.tags.model.TagsAsset fetchByPrimaryKey(
121         long assetId) throws com.liferay.portal.SystemException {
122         return getPersistence().fetchByPrimaryKey(assetId);
123     }
124 
125     public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findByCompanyId(
126         long companyId) throws com.liferay.portal.SystemException {
127         return getPersistence().findByCompanyId(companyId);
128     }
129 
130     public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findByCompanyId(
131         long companyId, int start, int end)
132         throws com.liferay.portal.SystemException {
133         return getPersistence().findByCompanyId(companyId, start, end);
134     }
135 
136     public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findByCompanyId(
137         long companyId, int start, int end,
138         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
139         throws com.liferay.portal.SystemException {
140         return getPersistence()
141                    .findByCompanyId(companyId, start, end, orderByComparator);
142     }
143 
144     public static com.liferay.portlet.tags.model.TagsAsset findByCompanyId_First(
145         long companyId,
146         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
147         throws com.liferay.portal.SystemException,
148             com.liferay.portlet.tags.NoSuchAssetException {
149         return getPersistence()
150                    .findByCompanyId_First(companyId, orderByComparator);
151     }
152 
153     public static com.liferay.portlet.tags.model.TagsAsset findByCompanyId_Last(
154         long companyId,
155         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
156         throws com.liferay.portal.SystemException,
157             com.liferay.portlet.tags.NoSuchAssetException {
158         return getPersistence()
159                    .findByCompanyId_Last(companyId, orderByComparator);
160     }
161 
162     public static com.liferay.portlet.tags.model.TagsAsset[] findByCompanyId_PrevAndNext(
163         long assetId, long companyId,
164         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165         throws com.liferay.portal.SystemException,
166             com.liferay.portlet.tags.NoSuchAssetException {
167         return getPersistence()
168                    .findByCompanyId_PrevAndNext(assetId, companyId,
169             orderByComparator);
170     }
171 
172     public static com.liferay.portlet.tags.model.TagsAsset findByC_C(
173         long classNameId, long classPK)
174         throws com.liferay.portal.SystemException,
175             com.liferay.portlet.tags.NoSuchAssetException {
176         return getPersistence().findByC_C(classNameId, classPK);
177     }
178 
179     public static com.liferay.portlet.tags.model.TagsAsset fetchByC_C(
180         long classNameId, long classPK)
181         throws com.liferay.portal.SystemException {
182         return getPersistence().fetchByC_C(classNameId, classPK);
183     }
184 
185     public static com.liferay.portlet.tags.model.TagsAsset fetchByC_C(
186         long classNameId, long classPK, boolean retrieveFromCache)
187         throws com.liferay.portal.SystemException {
188         return getPersistence()
189                    .fetchByC_C(classNameId, classPK, retrieveFromCache);
190     }
191 
192     public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findAll()
193         throws com.liferay.portal.SystemException {
194         return getPersistence().findAll();
195     }
196 
197     public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findAll(
198         int start, int end) throws com.liferay.portal.SystemException {
199         return getPersistence().findAll(start, end);
200     }
201 
202     public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findAll(
203         int start, int end,
204         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
205         throws com.liferay.portal.SystemException {
206         return getPersistence().findAll(start, end, orderByComparator);
207     }
208 
209     public static void removeByCompanyId(long companyId)
210         throws com.liferay.portal.SystemException {
211         getPersistence().removeByCompanyId(companyId);
212     }
213 
214     public static void removeByC_C(long classNameId, long classPK)
215         throws com.liferay.portal.SystemException,
216             com.liferay.portlet.tags.NoSuchAssetException {
217         getPersistence().removeByC_C(classNameId, classPK);
218     }
219 
220     public static void removeAll() throws com.liferay.portal.SystemException {
221         getPersistence().removeAll();
222     }
223 
224     public static int countByCompanyId(long companyId)
225         throws com.liferay.portal.SystemException {
226         return getPersistence().countByCompanyId(companyId);
227     }
228 
229     public static int countByC_C(long classNameId, long classPK)
230         throws com.liferay.portal.SystemException {
231         return getPersistence().countByC_C(classNameId, classPK);
232     }
233 
234     public static int countAll() throws com.liferay.portal.SystemException {
235         return getPersistence().countAll();
236     }
237 
238     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getTagsEntries(
239         long pk) throws com.liferay.portal.SystemException {
240         return getPersistence().getTagsEntries(pk);
241     }
242 
243     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getTagsEntries(
244         long pk, int start, int end) throws com.liferay.portal.SystemException {
245         return getPersistence().getTagsEntries(pk, start, end);
246     }
247 
248     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getTagsEntries(
249         long pk, int start, int end,
250         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
251         throws com.liferay.portal.SystemException {
252         return getPersistence().getTagsEntries(pk, start, end, orderByComparator);
253     }
254 
255     public static int getTagsEntriesSize(long pk)
256         throws com.liferay.portal.SystemException {
257         return getPersistence().getTagsEntriesSize(pk);
258     }
259 
260     public static boolean containsTagsEntry(long pk, long tagsEntryPK)
261         throws com.liferay.portal.SystemException {
262         return getPersistence().containsTagsEntry(pk, tagsEntryPK);
263     }
264 
265     public static boolean containsTagsEntries(long pk)
266         throws com.liferay.portal.SystemException {
267         return getPersistence().containsTagsEntries(pk);
268     }
269 
270     public static void addTagsEntry(long pk, long tagsEntryPK)
271         throws com.liferay.portal.SystemException {
272         getPersistence().addTagsEntry(pk, tagsEntryPK);
273     }
274 
275     public static void addTagsEntry(long pk,
276         com.liferay.portlet.tags.model.TagsEntry tagsEntry)
277         throws com.liferay.portal.SystemException {
278         getPersistence().addTagsEntry(pk, tagsEntry);
279     }
280 
281     public static void addTagsEntries(long pk, long[] tagsEntryPKs)
282         throws com.liferay.portal.SystemException {
283         getPersistence().addTagsEntries(pk, tagsEntryPKs);
284     }
285 
286     public static void addTagsEntries(long pk,
287         java.util.List<com.liferay.portlet.tags.model.TagsEntry> tagsEntries)
288         throws com.liferay.portal.SystemException {
289         getPersistence().addTagsEntries(pk, tagsEntries);
290     }
291 
292     public static void clearTagsEntries(long pk)
293         throws com.liferay.portal.SystemException {
294         getPersistence().clearTagsEntries(pk);
295     }
296 
297     public static void removeTagsEntry(long pk, long tagsEntryPK)
298         throws com.liferay.portal.SystemException {
299         getPersistence().removeTagsEntry(pk, tagsEntryPK);
300     }
301 
302     public static void removeTagsEntry(long pk,
303         com.liferay.portlet.tags.model.TagsEntry tagsEntry)
304         throws com.liferay.portal.SystemException {
305         getPersistence().removeTagsEntry(pk, tagsEntry);
306     }
307 
308     public static void removeTagsEntries(long pk, long[] tagsEntryPKs)
309         throws com.liferay.portal.SystemException {
310         getPersistence().removeTagsEntries(pk, tagsEntryPKs);
311     }
312 
313     public static void removeTagsEntries(long pk,
314         java.util.List<com.liferay.portlet.tags.model.TagsEntry> tagsEntries)
315         throws com.liferay.portal.SystemException {
316         getPersistence().removeTagsEntries(pk, tagsEntries);
317     }
318 
319     public static void setTagsEntries(long pk, long[] tagsEntryPKs)
320         throws com.liferay.portal.SystemException {
321         getPersistence().setTagsEntries(pk, tagsEntryPKs);
322     }
323 
324     public static void setTagsEntries(long pk,
325         java.util.List<com.liferay.portlet.tags.model.TagsEntry> tagsEntries)
326         throws com.liferay.portal.SystemException {
327         getPersistence().setTagsEntries(pk, tagsEntries);
328     }
329 
330     public static TagsAssetPersistence getPersistence() {
331         if (_persistence == null) {
332             _persistence = (TagsAssetPersistence)PortalBeanLocatorUtil.locate(TagsAssetPersistence.class.getName());
333         }
334 
335         return _persistence;
336     }
337 
338     public void setPersistence(TagsAssetPersistence persistence) {
339         _persistence = persistence;
340     }
341 
342     private static TagsAssetPersistence _persistence;
343 }