1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.tags.service.persistence;
24  
25  import com.liferay.portal.SystemException;
26  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
27  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
28  
29  import com.liferay.portlet.tags.model.TagsAsset;
30  
31  import java.util.List;
32  
33  /**
34   * <a href="TagsAssetUtil.java.html"><b><i>View Source</i></b></a>
35   *
36   * <p>
37   * ServiceBuilder generated this class. Modifications in this class will be
38   * overwritten the next time is generated.
39   * </p>
40   *
41   * @author    Brian Wing Shun Chan
42   * @see       TagsAssetPersistence
43   * @see       TagsAssetPersistenceImpl
44   * @generated
45   */
46  public class TagsAssetUtil {
47      /**
48       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
49       */
50      public static void clearCache() {
51          getPersistence().clearCache();
52      }
53  
54      /**
55       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
56       */
57      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
58          throws SystemException {
59          return getPersistence().findWithDynamicQuery(dynamicQuery);
60      }
61  
62      /**
63       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
64       */
65      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
66          int start, int end) throws SystemException {
67          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
72       */
73      public static TagsAsset remove(TagsAsset tagsAsset)
74          throws SystemException {
75          return getPersistence().remove(tagsAsset);
76      }
77  
78      /**
79       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
80       */
81      public static TagsAsset update(TagsAsset tagsAsset, boolean merge)
82          throws SystemException {
83          return getPersistence().update(tagsAsset, merge);
84      }
85  
86      public static void cacheResult(
87          com.liferay.portlet.tags.model.TagsAsset tagsAsset) {
88          getPersistence().cacheResult(tagsAsset);
89      }
90  
91      public static void cacheResult(
92          java.util.List<com.liferay.portlet.tags.model.TagsAsset> tagsAssets) {
93          getPersistence().cacheResult(tagsAssets);
94      }
95  
96      public static com.liferay.portlet.tags.model.TagsAsset create(long assetId) {
97          return getPersistence().create(assetId);
98      }
99  
100     public static com.liferay.portlet.tags.model.TagsAsset remove(long assetId)
101         throws com.liferay.portal.SystemException,
102             com.liferay.portlet.tags.NoSuchAssetException {
103         return getPersistence().remove(assetId);
104     }
105 
106     /**
107      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
108      */
109     public static com.liferay.portlet.tags.model.TagsAsset update(
110         com.liferay.portlet.tags.model.TagsAsset tagsAsset)
111         throws com.liferay.portal.SystemException {
112         return getPersistence().update(tagsAsset);
113     }
114 
115     public static com.liferay.portlet.tags.model.TagsAsset updateImpl(
116         com.liferay.portlet.tags.model.TagsAsset tagsAsset, boolean merge)
117         throws com.liferay.portal.SystemException {
118         return getPersistence().updateImpl(tagsAsset, merge);
119     }
120 
121     public static com.liferay.portlet.tags.model.TagsAsset findByPrimaryKey(
122         long assetId)
123         throws com.liferay.portal.SystemException,
124             com.liferay.portlet.tags.NoSuchAssetException {
125         return getPersistence().findByPrimaryKey(assetId);
126     }
127 
128     public static com.liferay.portlet.tags.model.TagsAsset fetchByPrimaryKey(
129         long assetId) throws com.liferay.portal.SystemException {
130         return getPersistence().fetchByPrimaryKey(assetId);
131     }
132 
133     public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findByCompanyId(
134         long companyId) throws com.liferay.portal.SystemException {
135         return getPersistence().findByCompanyId(companyId);
136     }
137 
138     public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findByCompanyId(
139         long companyId, int start, int end)
140         throws com.liferay.portal.SystemException {
141         return getPersistence().findByCompanyId(companyId, start, end);
142     }
143 
144     public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findByCompanyId(
145         long companyId, int start, int end,
146         com.liferay.portal.kernel.util.OrderByComparator obc)
147         throws com.liferay.portal.SystemException {
148         return getPersistence().findByCompanyId(companyId, start, end, obc);
149     }
150 
151     public static com.liferay.portlet.tags.model.TagsAsset findByCompanyId_First(
152         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
153         throws com.liferay.portal.SystemException,
154             com.liferay.portlet.tags.NoSuchAssetException {
155         return getPersistence().findByCompanyId_First(companyId, obc);
156     }
157 
158     public static com.liferay.portlet.tags.model.TagsAsset findByCompanyId_Last(
159         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
160         throws com.liferay.portal.SystemException,
161             com.liferay.portlet.tags.NoSuchAssetException {
162         return getPersistence().findByCompanyId_Last(companyId, obc);
163     }
164 
165     public static com.liferay.portlet.tags.model.TagsAsset[] findByCompanyId_PrevAndNext(
166         long assetId, long companyId,
167         com.liferay.portal.kernel.util.OrderByComparator obc)
168         throws com.liferay.portal.SystemException,
169             com.liferay.portlet.tags.NoSuchAssetException {
170         return getPersistence()
171                    .findByCompanyId_PrevAndNext(assetId, companyId, obc);
172     }
173 
174     public static com.liferay.portlet.tags.model.TagsAsset findByC_C(
175         long classNameId, long classPK)
176         throws com.liferay.portal.SystemException,
177             com.liferay.portlet.tags.NoSuchAssetException {
178         return getPersistence().findByC_C(classNameId, classPK);
179     }
180 
181     public static com.liferay.portlet.tags.model.TagsAsset fetchByC_C(
182         long classNameId, long classPK)
183         throws com.liferay.portal.SystemException {
184         return getPersistence().fetchByC_C(classNameId, classPK);
185     }
186 
187     public static com.liferay.portlet.tags.model.TagsAsset fetchByC_C(
188         long classNameId, long classPK, boolean retrieveFromCache)
189         throws com.liferay.portal.SystemException {
190         return getPersistence()
191                    .fetchByC_C(classNameId, classPK, retrieveFromCache);
192     }
193 
194     public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findAll()
195         throws com.liferay.portal.SystemException {
196         return getPersistence().findAll();
197     }
198 
199     public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findAll(
200         int start, int end) throws com.liferay.portal.SystemException {
201         return getPersistence().findAll(start, end);
202     }
203 
204     public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> findAll(
205         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
206         throws com.liferay.portal.SystemException {
207         return getPersistence().findAll(start, end, obc);
208     }
209 
210     public static void removeByCompanyId(long companyId)
211         throws com.liferay.portal.SystemException {
212         getPersistence().removeByCompanyId(companyId);
213     }
214 
215     public static void removeByC_C(long classNameId, long classPK)
216         throws com.liferay.portal.SystemException,
217             com.liferay.portlet.tags.NoSuchAssetException {
218         getPersistence().removeByC_C(classNameId, classPK);
219     }
220 
221     public static void removeAll() throws com.liferay.portal.SystemException {
222         getPersistence().removeAll();
223     }
224 
225     public static int countByCompanyId(long companyId)
226         throws com.liferay.portal.SystemException {
227         return getPersistence().countByCompanyId(companyId);
228     }
229 
230     public static int countByC_C(long classNameId, long classPK)
231         throws com.liferay.portal.SystemException {
232         return getPersistence().countByC_C(classNameId, classPK);
233     }
234 
235     public static int countAll() throws com.liferay.portal.SystemException {
236         return getPersistence().countAll();
237     }
238 
239     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getTagsEntries(
240         long pk) throws com.liferay.portal.SystemException {
241         return getPersistence().getTagsEntries(pk);
242     }
243 
244     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getTagsEntries(
245         long pk, int start, int end) throws com.liferay.portal.SystemException {
246         return getPersistence().getTagsEntries(pk, start, end);
247     }
248 
249     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> getTagsEntries(
250         long pk, int start, int end,
251         com.liferay.portal.kernel.util.OrderByComparator obc)
252         throws com.liferay.portal.SystemException {
253         return getPersistence().getTagsEntries(pk, start, end, obc);
254     }
255 
256     public static int getTagsEntriesSize(long pk)
257         throws com.liferay.portal.SystemException {
258         return getPersistence().getTagsEntriesSize(pk);
259     }
260 
261     public static boolean containsTagsEntry(long pk, long tagsEntryPK)
262         throws com.liferay.portal.SystemException {
263         return getPersistence().containsTagsEntry(pk, tagsEntryPK);
264     }
265 
266     public static boolean containsTagsEntries(long pk)
267         throws com.liferay.portal.SystemException {
268         return getPersistence().containsTagsEntries(pk);
269     }
270 
271     public static void addTagsEntry(long pk, long tagsEntryPK)
272         throws com.liferay.portal.SystemException {
273         getPersistence().addTagsEntry(pk, tagsEntryPK);
274     }
275 
276     public static void addTagsEntry(long pk,
277         com.liferay.portlet.tags.model.TagsEntry tagsEntry)
278         throws com.liferay.portal.SystemException {
279         getPersistence().addTagsEntry(pk, tagsEntry);
280     }
281 
282     public static void addTagsEntries(long pk, long[] tagsEntryPKs)
283         throws com.liferay.portal.SystemException {
284         getPersistence().addTagsEntries(pk, tagsEntryPKs);
285     }
286 
287     public static void addTagsEntries(long pk,
288         java.util.List<com.liferay.portlet.tags.model.TagsEntry> tagsEntries)
289         throws com.liferay.portal.SystemException {
290         getPersistence().addTagsEntries(pk, tagsEntries);
291     }
292 
293     public static void clearTagsEntries(long pk)
294         throws com.liferay.portal.SystemException {
295         getPersistence().clearTagsEntries(pk);
296     }
297 
298     public static void removeTagsEntry(long pk, long tagsEntryPK)
299         throws com.liferay.portal.SystemException {
300         getPersistence().removeTagsEntry(pk, tagsEntryPK);
301     }
302 
303     public static void removeTagsEntry(long pk,
304         com.liferay.portlet.tags.model.TagsEntry tagsEntry)
305         throws com.liferay.portal.SystemException {
306         getPersistence().removeTagsEntry(pk, tagsEntry);
307     }
308 
309     public static void removeTagsEntries(long pk, long[] tagsEntryPKs)
310         throws com.liferay.portal.SystemException {
311         getPersistence().removeTagsEntries(pk, tagsEntryPKs);
312     }
313 
314     public static void removeTagsEntries(long pk,
315         java.util.List<com.liferay.portlet.tags.model.TagsEntry> tagsEntries)
316         throws com.liferay.portal.SystemException {
317         getPersistence().removeTagsEntries(pk, tagsEntries);
318     }
319 
320     public static void setTagsEntries(long pk, long[] tagsEntryPKs)
321         throws com.liferay.portal.SystemException {
322         getPersistence().setTagsEntries(pk, tagsEntryPKs);
323     }
324 
325     public static void setTagsEntries(long pk,
326         java.util.List<com.liferay.portlet.tags.model.TagsEntry> tagsEntries)
327         throws com.liferay.portal.SystemException {
328         getPersistence().setTagsEntries(pk, tagsEntries);
329     }
330 
331     public static TagsAssetPersistence getPersistence() {
332         if (_persistence == null) {
333             _persistence = (TagsAssetPersistence)PortalBeanLocatorUtil.locate(TagsAssetPersistence.class.getName());
334         }
335 
336         return _persistence;
337     }
338 
339     public void setPersistence(TagsAssetPersistence persistence) {
340         _persistence = persistence;
341     }
342 
343     private static TagsAssetPersistence _persistence;
344 }