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.TagsEntry;
30  
31  import java.util.List;
32  
33  /**
34   * <a href="TagsEntryUtil.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       TagsEntryPersistence
43   * @see       TagsEntryPersistenceImpl
44   * @generated
45   */
46  public class TagsEntryUtil {
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 TagsEntry remove(TagsEntry tagsEntry)
74          throws SystemException {
75          return getPersistence().remove(tagsEntry);
76      }
77  
78      /**
79       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
80       */
81      public static TagsEntry update(TagsEntry tagsEntry, boolean merge)
82          throws SystemException {
83          return getPersistence().update(tagsEntry, merge);
84      }
85  
86      public static void cacheResult(
87          com.liferay.portlet.tags.model.TagsEntry tagsEntry) {
88          getPersistence().cacheResult(tagsEntry);
89      }
90  
91      public static void cacheResult(
92          java.util.List<com.liferay.portlet.tags.model.TagsEntry> tagsEntries) {
93          getPersistence().cacheResult(tagsEntries);
94      }
95  
96      public static com.liferay.portlet.tags.model.TagsEntry create(long entryId) {
97          return getPersistence().create(entryId);
98      }
99  
100     public static com.liferay.portlet.tags.model.TagsEntry remove(long entryId)
101         throws com.liferay.portal.SystemException,
102             com.liferay.portlet.tags.NoSuchEntryException {
103         return getPersistence().remove(entryId);
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.TagsEntry update(
110         com.liferay.portlet.tags.model.TagsEntry tagsEntry)
111         throws com.liferay.portal.SystemException {
112         return getPersistence().update(tagsEntry);
113     }
114 
115     public static com.liferay.portlet.tags.model.TagsEntry updateImpl(
116         com.liferay.portlet.tags.model.TagsEntry tagsEntry, boolean merge)
117         throws com.liferay.portal.SystemException {
118         return getPersistence().updateImpl(tagsEntry, merge);
119     }
120 
121     public static com.liferay.portlet.tags.model.TagsEntry findByPrimaryKey(
122         long entryId)
123         throws com.liferay.portal.SystemException,
124             com.liferay.portlet.tags.NoSuchEntryException {
125         return getPersistence().findByPrimaryKey(entryId);
126     }
127 
128     public static com.liferay.portlet.tags.model.TagsEntry fetchByPrimaryKey(
129         long entryId) throws com.liferay.portal.SystemException {
130         return getPersistence().fetchByPrimaryKey(entryId);
131     }
132 
133     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> findByVocabularyId(
134         long vocabularyId) throws com.liferay.portal.SystemException {
135         return getPersistence().findByVocabularyId(vocabularyId);
136     }
137 
138     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> findByVocabularyId(
139         long vocabularyId, int start, int end)
140         throws com.liferay.portal.SystemException {
141         return getPersistence().findByVocabularyId(vocabularyId, start, end);
142     }
143 
144     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> findByVocabularyId(
145         long vocabularyId, int start, int end,
146         com.liferay.portal.kernel.util.OrderByComparator obc)
147         throws com.liferay.portal.SystemException {
148         return getPersistence().findByVocabularyId(vocabularyId, start, end, obc);
149     }
150 
151     public static com.liferay.portlet.tags.model.TagsEntry findByVocabularyId_First(
152         long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator obc)
153         throws com.liferay.portal.SystemException,
154             com.liferay.portlet.tags.NoSuchEntryException {
155         return getPersistence().findByVocabularyId_First(vocabularyId, obc);
156     }
157 
158     public static com.liferay.portlet.tags.model.TagsEntry findByVocabularyId_Last(
159         long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator obc)
160         throws com.liferay.portal.SystemException,
161             com.liferay.portlet.tags.NoSuchEntryException {
162         return getPersistence().findByVocabularyId_Last(vocabularyId, obc);
163     }
164 
165     public static com.liferay.portlet.tags.model.TagsEntry[] findByVocabularyId_PrevAndNext(
166         long entryId, long vocabularyId,
167         com.liferay.portal.kernel.util.OrderByComparator obc)
168         throws com.liferay.portal.SystemException,
169             com.liferay.portlet.tags.NoSuchEntryException {
170         return getPersistence()
171                    .findByVocabularyId_PrevAndNext(entryId, vocabularyId, obc);
172     }
173 
174     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> findByP_V(
175         long parentEntryId, long vocabularyId)
176         throws com.liferay.portal.SystemException {
177         return getPersistence().findByP_V(parentEntryId, vocabularyId);
178     }
179 
180     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> findByP_V(
181         long parentEntryId, long vocabularyId, int start, int end)
182         throws com.liferay.portal.SystemException {
183         return getPersistence()
184                    .findByP_V(parentEntryId, vocabularyId, start, end);
185     }
186 
187     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> findByP_V(
188         long parentEntryId, long vocabularyId, int start, int end,
189         com.liferay.portal.kernel.util.OrderByComparator obc)
190         throws com.liferay.portal.SystemException {
191         return getPersistence()
192                    .findByP_V(parentEntryId, vocabularyId, start, end, obc);
193     }
194 
195     public static com.liferay.portlet.tags.model.TagsEntry findByP_V_First(
196         long parentEntryId, long vocabularyId,
197         com.liferay.portal.kernel.util.OrderByComparator obc)
198         throws com.liferay.portal.SystemException,
199             com.liferay.portlet.tags.NoSuchEntryException {
200         return getPersistence().findByP_V_First(parentEntryId, vocabularyId, obc);
201     }
202 
203     public static com.liferay.portlet.tags.model.TagsEntry findByP_V_Last(
204         long parentEntryId, long vocabularyId,
205         com.liferay.portal.kernel.util.OrderByComparator obc)
206         throws com.liferay.portal.SystemException,
207             com.liferay.portlet.tags.NoSuchEntryException {
208         return getPersistence().findByP_V_Last(parentEntryId, vocabularyId, obc);
209     }
210 
211     public static com.liferay.portlet.tags.model.TagsEntry[] findByP_V_PrevAndNext(
212         long entryId, long parentEntryId, long vocabularyId,
213         com.liferay.portal.kernel.util.OrderByComparator obc)
214         throws com.liferay.portal.SystemException,
215             com.liferay.portlet.tags.NoSuchEntryException {
216         return getPersistence()
217                    .findByP_V_PrevAndNext(entryId, parentEntryId, vocabularyId,
218             obc);
219     }
220 
221     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> findAll()
222         throws com.liferay.portal.SystemException {
223         return getPersistence().findAll();
224     }
225 
226     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> findAll(
227         int start, int end) throws com.liferay.portal.SystemException {
228         return getPersistence().findAll(start, end);
229     }
230 
231     public static java.util.List<com.liferay.portlet.tags.model.TagsEntry> findAll(
232         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
233         throws com.liferay.portal.SystemException {
234         return getPersistence().findAll(start, end, obc);
235     }
236 
237     public static void removeByVocabularyId(long vocabularyId)
238         throws com.liferay.portal.SystemException {
239         getPersistence().removeByVocabularyId(vocabularyId);
240     }
241 
242     public static void removeByP_V(long parentEntryId, long vocabularyId)
243         throws com.liferay.portal.SystemException {
244         getPersistence().removeByP_V(parentEntryId, vocabularyId);
245     }
246 
247     public static void removeAll() throws com.liferay.portal.SystemException {
248         getPersistence().removeAll();
249     }
250 
251     public static int countByVocabularyId(long vocabularyId)
252         throws com.liferay.portal.SystemException {
253         return getPersistence().countByVocabularyId(vocabularyId);
254     }
255 
256     public static int countByP_V(long parentEntryId, long vocabularyId)
257         throws com.liferay.portal.SystemException {
258         return getPersistence().countByP_V(parentEntryId, vocabularyId);
259     }
260 
261     public static int countAll() throws com.liferay.portal.SystemException {
262         return getPersistence().countAll();
263     }
264 
265     public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getTagsAssets(
266         long pk) throws com.liferay.portal.SystemException {
267         return getPersistence().getTagsAssets(pk);
268     }
269 
270     public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getTagsAssets(
271         long pk, int start, int end) throws com.liferay.portal.SystemException {
272         return getPersistence().getTagsAssets(pk, start, end);
273     }
274 
275     public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getTagsAssets(
276         long pk, int start, int end,
277         com.liferay.portal.kernel.util.OrderByComparator obc)
278         throws com.liferay.portal.SystemException {
279         return getPersistence().getTagsAssets(pk, start, end, obc);
280     }
281 
282     public static int getTagsAssetsSize(long pk)
283         throws com.liferay.portal.SystemException {
284         return getPersistence().getTagsAssetsSize(pk);
285     }
286 
287     public static boolean containsTagsAsset(long pk, long tagsAssetPK)
288         throws com.liferay.portal.SystemException {
289         return getPersistence().containsTagsAsset(pk, tagsAssetPK);
290     }
291 
292     public static boolean containsTagsAssets(long pk)
293         throws com.liferay.portal.SystemException {
294         return getPersistence().containsTagsAssets(pk);
295     }
296 
297     public static void addTagsAsset(long pk, long tagsAssetPK)
298         throws com.liferay.portal.SystemException {
299         getPersistence().addTagsAsset(pk, tagsAssetPK);
300     }
301 
302     public static void addTagsAsset(long pk,
303         com.liferay.portlet.tags.model.TagsAsset tagsAsset)
304         throws com.liferay.portal.SystemException {
305         getPersistence().addTagsAsset(pk, tagsAsset);
306     }
307 
308     public static void addTagsAssets(long pk, long[] tagsAssetPKs)
309         throws com.liferay.portal.SystemException {
310         getPersistence().addTagsAssets(pk, tagsAssetPKs);
311     }
312 
313     public static void addTagsAssets(long pk,
314         java.util.List<com.liferay.portlet.tags.model.TagsAsset> tagsAssets)
315         throws com.liferay.portal.SystemException {
316         getPersistence().addTagsAssets(pk, tagsAssets);
317     }
318 
319     public static void clearTagsAssets(long pk)
320         throws com.liferay.portal.SystemException {
321         getPersistence().clearTagsAssets(pk);
322     }
323 
324     public static void removeTagsAsset(long pk, long tagsAssetPK)
325         throws com.liferay.portal.SystemException {
326         getPersistence().removeTagsAsset(pk, tagsAssetPK);
327     }
328 
329     public static void removeTagsAsset(long pk,
330         com.liferay.portlet.tags.model.TagsAsset tagsAsset)
331         throws com.liferay.portal.SystemException {
332         getPersistence().removeTagsAsset(pk, tagsAsset);
333     }
334 
335     public static void removeTagsAssets(long pk, long[] tagsAssetPKs)
336         throws com.liferay.portal.SystemException {
337         getPersistence().removeTagsAssets(pk, tagsAssetPKs);
338     }
339 
340     public static void removeTagsAssets(long pk,
341         java.util.List<com.liferay.portlet.tags.model.TagsAsset> tagsAssets)
342         throws com.liferay.portal.SystemException {
343         getPersistence().removeTagsAssets(pk, tagsAssets);
344     }
345 
346     public static void setTagsAssets(long pk, long[] tagsAssetPKs)
347         throws com.liferay.portal.SystemException {
348         getPersistence().setTagsAssets(pk, tagsAssetPKs);
349     }
350 
351     public static void setTagsAssets(long pk,
352         java.util.List<com.liferay.portlet.tags.model.TagsAsset> tagsAssets)
353         throws com.liferay.portal.SystemException {
354         getPersistence().setTagsAssets(pk, tagsAssets);
355     }
356 
357     public static TagsEntryPersistence getPersistence() {
358         if (_persistence == null) {
359             _persistence = (TagsEntryPersistence)PortalBeanLocatorUtil.locate(TagsEntryPersistence.class.getName());
360         }
361 
362         return _persistence;
363     }
364 
365     public void setPersistence(TagsEntryPersistence persistence) {
366         _persistence = persistence;
367     }
368 
369     private static TagsEntryPersistence _persistence;
370 }