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.TagsSource;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="TagsSourceUtil.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       TagsSourcePersistence
35   * @see       TagsSourcePersistenceImpl
36   * @generated
37   */
38  public class TagsSourceUtil {
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 TagsSource remove(TagsSource tagsSource)
66          throws SystemException {
67          return getPersistence().remove(tagsSource);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
72       */
73      public static TagsSource update(TagsSource tagsSource, boolean merge)
74          throws SystemException {
75          return getPersistence().update(tagsSource, merge);
76      }
77  
78      public static void cacheResult(
79          com.liferay.portlet.tags.model.TagsSource tagsSource) {
80          getPersistence().cacheResult(tagsSource);
81      }
82  
83      public static void cacheResult(
84          java.util.List<com.liferay.portlet.tags.model.TagsSource> tagsSources) {
85          getPersistence().cacheResult(tagsSources);
86      }
87  
88      public static com.liferay.portlet.tags.model.TagsSource create(
89          long sourceId) {
90          return getPersistence().create(sourceId);
91      }
92  
93      public static com.liferay.portlet.tags.model.TagsSource remove(
94          long sourceId)
95          throws com.liferay.portal.SystemException,
96              com.liferay.portlet.tags.NoSuchSourceException {
97          return getPersistence().remove(sourceId);
98      }
99  
100     /**
101      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
102      */
103     public static com.liferay.portlet.tags.model.TagsSource update(
104         com.liferay.portlet.tags.model.TagsSource tagsSource)
105         throws com.liferay.portal.SystemException {
106         return getPersistence().update(tagsSource);
107     }
108 
109     public static com.liferay.portlet.tags.model.TagsSource updateImpl(
110         com.liferay.portlet.tags.model.TagsSource tagsSource, boolean merge)
111         throws com.liferay.portal.SystemException {
112         return getPersistence().updateImpl(tagsSource, merge);
113     }
114 
115     public static com.liferay.portlet.tags.model.TagsSource findByPrimaryKey(
116         long sourceId)
117         throws com.liferay.portal.SystemException,
118             com.liferay.portlet.tags.NoSuchSourceException {
119         return getPersistence().findByPrimaryKey(sourceId);
120     }
121 
122     public static com.liferay.portlet.tags.model.TagsSource fetchByPrimaryKey(
123         long sourceId) throws com.liferay.portal.SystemException {
124         return getPersistence().fetchByPrimaryKey(sourceId);
125     }
126 
127     public static java.util.List<com.liferay.portlet.tags.model.TagsSource> findAll()
128         throws com.liferay.portal.SystemException {
129         return getPersistence().findAll();
130     }
131 
132     public static java.util.List<com.liferay.portlet.tags.model.TagsSource> findAll(
133         int start, int end) throws com.liferay.portal.SystemException {
134         return getPersistence().findAll(start, end);
135     }
136 
137     public static java.util.List<com.liferay.portlet.tags.model.TagsSource> findAll(
138         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
139         throws com.liferay.portal.SystemException {
140         return getPersistence().findAll(start, end, obc);
141     }
142 
143     public static void removeAll() throws com.liferay.portal.SystemException {
144         getPersistence().removeAll();
145     }
146 
147     public static int countAll() throws com.liferay.portal.SystemException {
148         return getPersistence().countAll();
149     }
150 
151     public static TagsSourcePersistence getPersistence() {
152         if (_persistence == null) {
153             _persistence = (TagsSourcePersistence)PortalBeanLocatorUtil.locate(TagsSourcePersistence.class.getName());
154         }
155 
156         return _persistence;
157     }
158 
159     public void setPersistence(TagsSourcePersistence persistence) {
160         _persistence = persistence;
161     }
162 
163     private static TagsSourcePersistence _persistence;
164 }