1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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  /**
26   * <a href="TagsEntryUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public class TagsEntryUtil {
32      public static com.liferay.portlet.tags.model.TagsEntry create(long entryId) {
33          return getPersistence().create(entryId);
34      }
35  
36      public static com.liferay.portlet.tags.model.TagsEntry remove(long entryId)
37          throws com.liferay.portal.SystemException, 
38              com.liferay.portlet.tags.NoSuchEntryException {
39          return getPersistence().remove(entryId);
40      }
41  
42      public static com.liferay.portlet.tags.model.TagsEntry remove(
43          com.liferay.portlet.tags.model.TagsEntry tagsEntry)
44          throws com.liferay.portal.SystemException {
45          return getPersistence().remove(tagsEntry);
46      }
47  
48      public static com.liferay.portlet.tags.model.TagsEntry update(
49          com.liferay.portlet.tags.model.TagsEntry tagsEntry)
50          throws com.liferay.portal.SystemException {
51          return getPersistence().update(tagsEntry);
52      }
53  
54      public static com.liferay.portlet.tags.model.TagsEntry update(
55          com.liferay.portlet.tags.model.TagsEntry tagsEntry, boolean merge)
56          throws com.liferay.portal.SystemException {
57          return getPersistence().update(tagsEntry, merge);
58      }
59  
60      public static com.liferay.portlet.tags.model.TagsEntry updateImpl(
61          com.liferay.portlet.tags.model.TagsEntry tagsEntry, boolean merge)
62          throws com.liferay.portal.SystemException {
63          return getPersistence().updateImpl(tagsEntry, merge);
64      }
65  
66      public static com.liferay.portlet.tags.model.TagsEntry findByPrimaryKey(
67          long entryId)
68          throws com.liferay.portal.SystemException, 
69              com.liferay.portlet.tags.NoSuchEntryException {
70          return getPersistence().findByPrimaryKey(entryId);
71      }
72  
73      public static com.liferay.portlet.tags.model.TagsEntry fetchByPrimaryKey(
74          long entryId) throws com.liferay.portal.SystemException {
75          return getPersistence().fetchByPrimaryKey(entryId);
76      }
77  
78      public static com.liferay.portlet.tags.model.TagsEntry findByC_N(
79          long companyId, java.lang.String name)
80          throws com.liferay.portal.SystemException, 
81              com.liferay.portlet.tags.NoSuchEntryException {
82          return getPersistence().findByC_N(companyId, name);
83      }
84  
85      public static com.liferay.portlet.tags.model.TagsEntry fetchByC_N(
86          long companyId, java.lang.String name)
87          throws com.liferay.portal.SystemException {
88          return getPersistence().fetchByC_N(companyId, name);
89      }
90  
91      public static java.util.List findWithDynamicQuery(
92          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
93          throws com.liferay.portal.SystemException {
94          return getPersistence().findWithDynamicQuery(queryInitializer);
95      }
96  
97      public static java.util.List findWithDynamicQuery(
98          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
99          int begin, int end) throws com.liferay.portal.SystemException {
100         return getPersistence().findWithDynamicQuery(queryInitializer, begin,
101             end);
102     }
103 
104     public static java.util.List findAll()
105         throws com.liferay.portal.SystemException {
106         return getPersistence().findAll();
107     }
108 
109     public static java.util.List findAll(int begin, int end)
110         throws com.liferay.portal.SystemException {
111         return getPersistence().findAll(begin, end);
112     }
113 
114     public static java.util.List findAll(int begin, int end,
115         com.liferay.portal.kernel.util.OrderByComparator obc)
116         throws com.liferay.portal.SystemException {
117         return getPersistence().findAll(begin, end, obc);
118     }
119 
120     public static void removeByC_N(long companyId, java.lang.String name)
121         throws com.liferay.portal.SystemException, 
122             com.liferay.portlet.tags.NoSuchEntryException {
123         getPersistence().removeByC_N(companyId, name);
124     }
125 
126     public static void removeAll() throws com.liferay.portal.SystemException {
127         getPersistence().removeAll();
128     }
129 
130     public static int countByC_N(long companyId, java.lang.String name)
131         throws com.liferay.portal.SystemException {
132         return getPersistence().countByC_N(companyId, name);
133     }
134 
135     public static int countAll() throws com.liferay.portal.SystemException {
136         return getPersistence().countAll();
137     }
138 
139     public static java.util.List getTagsAssets(long pk)
140         throws com.liferay.portal.SystemException, 
141             com.liferay.portlet.tags.NoSuchEntryException {
142         return getPersistence().getTagsAssets(pk);
143     }
144 
145     public static java.util.List getTagsAssets(long pk, int begin, int end)
146         throws com.liferay.portal.SystemException, 
147             com.liferay.portlet.tags.NoSuchEntryException {
148         return getPersistence().getTagsAssets(pk, begin, end);
149     }
150 
151     public static java.util.List getTagsAssets(long pk, int begin, int end,
152         com.liferay.portal.kernel.util.OrderByComparator obc)
153         throws com.liferay.portal.SystemException, 
154             com.liferay.portlet.tags.NoSuchEntryException {
155         return getPersistence().getTagsAssets(pk, begin, end, obc);
156     }
157 
158     public static int getTagsAssetsSize(long pk)
159         throws com.liferay.portal.SystemException {
160         return getPersistence().getTagsAssetsSize(pk);
161     }
162 
163     public static boolean containsTagsAsset(long pk, long tagsAssetPK)
164         throws com.liferay.portal.SystemException {
165         return getPersistence().containsTagsAsset(pk, tagsAssetPK);
166     }
167 
168     public static boolean containsTagsAssets(long pk)
169         throws com.liferay.portal.SystemException {
170         return getPersistence().containsTagsAssets(pk);
171     }
172 
173     public static void addTagsAsset(long pk, long tagsAssetPK)
174         throws com.liferay.portal.SystemException, 
175             com.liferay.portlet.tags.NoSuchAssetException, 
176             com.liferay.portlet.tags.NoSuchEntryException {
177         getPersistence().addTagsAsset(pk, tagsAssetPK);
178     }
179 
180     public static void addTagsAsset(long pk,
181         com.liferay.portlet.tags.model.TagsAsset tagsAsset)
182         throws com.liferay.portal.SystemException, 
183             com.liferay.portlet.tags.NoSuchAssetException, 
184             com.liferay.portlet.tags.NoSuchEntryException {
185         getPersistence().addTagsAsset(pk, tagsAsset);
186     }
187 
188     public static void addTagsAssets(long pk, long[] tagsAssetPKs)
189         throws com.liferay.portal.SystemException, 
190             com.liferay.portlet.tags.NoSuchAssetException, 
191             com.liferay.portlet.tags.NoSuchEntryException {
192         getPersistence().addTagsAssets(pk, tagsAssetPKs);
193     }
194 
195     public static void addTagsAssets(long pk, java.util.List tagsAssets)
196         throws com.liferay.portal.SystemException, 
197             com.liferay.portlet.tags.NoSuchAssetException, 
198             com.liferay.portlet.tags.NoSuchEntryException {
199         getPersistence().addTagsAssets(pk, tagsAssets);
200     }
201 
202     public static void clearTagsAssets(long pk)
203         throws com.liferay.portal.SystemException, 
204             com.liferay.portlet.tags.NoSuchEntryException {
205         getPersistence().clearTagsAssets(pk);
206     }
207 
208     public static void removeTagsAsset(long pk, long tagsAssetPK)
209         throws com.liferay.portal.SystemException, 
210             com.liferay.portlet.tags.NoSuchAssetException, 
211             com.liferay.portlet.tags.NoSuchEntryException {
212         getPersistence().removeTagsAsset(pk, tagsAssetPK);
213     }
214 
215     public static void removeTagsAsset(long pk,
216         com.liferay.portlet.tags.model.TagsAsset tagsAsset)
217         throws com.liferay.portal.SystemException, 
218             com.liferay.portlet.tags.NoSuchAssetException, 
219             com.liferay.portlet.tags.NoSuchEntryException {
220         getPersistence().removeTagsAsset(pk, tagsAsset);
221     }
222 
223     public static void removeTagsAssets(long pk, long[] tagsAssetPKs)
224         throws com.liferay.portal.SystemException, 
225             com.liferay.portlet.tags.NoSuchAssetException, 
226             com.liferay.portlet.tags.NoSuchEntryException {
227         getPersistence().removeTagsAssets(pk, tagsAssetPKs);
228     }
229 
230     public static void removeTagsAssets(long pk, java.util.List tagsAssets)
231         throws com.liferay.portal.SystemException, 
232             com.liferay.portlet.tags.NoSuchAssetException, 
233             com.liferay.portlet.tags.NoSuchEntryException {
234         getPersistence().removeTagsAssets(pk, tagsAssets);
235     }
236 
237     public static void setTagsAssets(long pk, long[] tagsAssetPKs)
238         throws com.liferay.portal.SystemException, 
239             com.liferay.portlet.tags.NoSuchAssetException, 
240             com.liferay.portlet.tags.NoSuchEntryException {
241         getPersistence().setTagsAssets(pk, tagsAssetPKs);
242     }
243 
244     public static void setTagsAssets(long pk, java.util.List tagsAssets)
245         throws com.liferay.portal.SystemException, 
246             com.liferay.portlet.tags.NoSuchAssetException, 
247             com.liferay.portlet.tags.NoSuchEntryException {
248         getPersistence().setTagsAssets(pk, tagsAssets);
249     }
250 
251     public static TagsEntryPersistence getPersistence() {
252         return _getUtil()._persistence;
253     }
254 
255     public void setPersistence(TagsEntryPersistence persistence) {
256         _persistence = persistence;
257     }
258 
259     private static TagsEntryUtil _getUtil() {
260         if (_util == null) {
261             _util = (TagsEntryUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
262         }
263 
264         return _util;
265     }
266 
267     private static final String _UTIL = TagsEntryUtil.class.getName();
268     private static TagsEntryUtil _util;
269     private TagsEntryPersistence _persistence;
270 }