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.TagsProperty;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="TagsPropertyUtil.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       TagsPropertyPersistence
35   * @see       TagsPropertyPersistenceImpl
36   * @generated
37   */
38  public class TagsPropertyUtil {
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 TagsProperty remove(TagsProperty tagsProperty)
66          throws SystemException {
67          return getPersistence().remove(tagsProperty);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
72       */
73      public static TagsProperty update(TagsProperty tagsProperty, boolean merge)
74          throws SystemException {
75          return getPersistence().update(tagsProperty, merge);
76      }
77  
78      public static void cacheResult(
79          com.liferay.portlet.tags.model.TagsProperty tagsProperty) {
80          getPersistence().cacheResult(tagsProperty);
81      }
82  
83      public static void cacheResult(
84          java.util.List<com.liferay.portlet.tags.model.TagsProperty> tagsProperties) {
85          getPersistence().cacheResult(tagsProperties);
86      }
87  
88      public static com.liferay.portlet.tags.model.TagsProperty create(
89          long propertyId) {
90          return getPersistence().create(propertyId);
91      }
92  
93      public static com.liferay.portlet.tags.model.TagsProperty remove(
94          long propertyId)
95          throws com.liferay.portal.SystemException,
96              com.liferay.portlet.tags.NoSuchPropertyException {
97          return getPersistence().remove(propertyId);
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.TagsProperty update(
104         com.liferay.portlet.tags.model.TagsProperty tagsProperty)
105         throws com.liferay.portal.SystemException {
106         return getPersistence().update(tagsProperty);
107     }
108 
109     public static com.liferay.portlet.tags.model.TagsProperty updateImpl(
110         com.liferay.portlet.tags.model.TagsProperty tagsProperty, boolean merge)
111         throws com.liferay.portal.SystemException {
112         return getPersistence().updateImpl(tagsProperty, merge);
113     }
114 
115     public static com.liferay.portlet.tags.model.TagsProperty findByPrimaryKey(
116         long propertyId)
117         throws com.liferay.portal.SystemException,
118             com.liferay.portlet.tags.NoSuchPropertyException {
119         return getPersistence().findByPrimaryKey(propertyId);
120     }
121 
122     public static com.liferay.portlet.tags.model.TagsProperty fetchByPrimaryKey(
123         long propertyId) throws com.liferay.portal.SystemException {
124         return getPersistence().fetchByPrimaryKey(propertyId);
125     }
126 
127     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByCompanyId(
128         long companyId) throws com.liferay.portal.SystemException {
129         return getPersistence().findByCompanyId(companyId);
130     }
131 
132     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByCompanyId(
133         long companyId, int start, int end)
134         throws com.liferay.portal.SystemException {
135         return getPersistence().findByCompanyId(companyId, start, end);
136     }
137 
138     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByCompanyId(
139         long companyId, int start, int end,
140         com.liferay.portal.kernel.util.OrderByComparator obc)
141         throws com.liferay.portal.SystemException {
142         return getPersistence().findByCompanyId(companyId, start, end, obc);
143     }
144 
145     public static com.liferay.portlet.tags.model.TagsProperty findByCompanyId_First(
146         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
147         throws com.liferay.portal.SystemException,
148             com.liferay.portlet.tags.NoSuchPropertyException {
149         return getPersistence().findByCompanyId_First(companyId, obc);
150     }
151 
152     public static com.liferay.portlet.tags.model.TagsProperty findByCompanyId_Last(
153         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
154         throws com.liferay.portal.SystemException,
155             com.liferay.portlet.tags.NoSuchPropertyException {
156         return getPersistence().findByCompanyId_Last(companyId, obc);
157     }
158 
159     public static com.liferay.portlet.tags.model.TagsProperty[] findByCompanyId_PrevAndNext(
160         long propertyId, long companyId,
161         com.liferay.portal.kernel.util.OrderByComparator obc)
162         throws com.liferay.portal.SystemException,
163             com.liferay.portlet.tags.NoSuchPropertyException {
164         return getPersistence()
165                    .findByCompanyId_PrevAndNext(propertyId, companyId, obc);
166     }
167 
168     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByEntryId(
169         long entryId) throws com.liferay.portal.SystemException {
170         return getPersistence().findByEntryId(entryId);
171     }
172 
173     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByEntryId(
174         long entryId, int start, int end)
175         throws com.liferay.portal.SystemException {
176         return getPersistence().findByEntryId(entryId, start, end);
177     }
178 
179     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByEntryId(
180         long entryId, int start, int end,
181         com.liferay.portal.kernel.util.OrderByComparator obc)
182         throws com.liferay.portal.SystemException {
183         return getPersistence().findByEntryId(entryId, start, end, obc);
184     }
185 
186     public static com.liferay.portlet.tags.model.TagsProperty findByEntryId_First(
187         long entryId, com.liferay.portal.kernel.util.OrderByComparator obc)
188         throws com.liferay.portal.SystemException,
189             com.liferay.portlet.tags.NoSuchPropertyException {
190         return getPersistence().findByEntryId_First(entryId, obc);
191     }
192 
193     public static com.liferay.portlet.tags.model.TagsProperty findByEntryId_Last(
194         long entryId, com.liferay.portal.kernel.util.OrderByComparator obc)
195         throws com.liferay.portal.SystemException,
196             com.liferay.portlet.tags.NoSuchPropertyException {
197         return getPersistence().findByEntryId_Last(entryId, obc);
198     }
199 
200     public static com.liferay.portlet.tags.model.TagsProperty[] findByEntryId_PrevAndNext(
201         long propertyId, long entryId,
202         com.liferay.portal.kernel.util.OrderByComparator obc)
203         throws com.liferay.portal.SystemException,
204             com.liferay.portlet.tags.NoSuchPropertyException {
205         return getPersistence()
206                    .findByEntryId_PrevAndNext(propertyId, entryId, obc);
207     }
208 
209     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByC_K(
210         long companyId, java.lang.String key)
211         throws com.liferay.portal.SystemException {
212         return getPersistence().findByC_K(companyId, key);
213     }
214 
215     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByC_K(
216         long companyId, java.lang.String key, int start, int end)
217         throws com.liferay.portal.SystemException {
218         return getPersistence().findByC_K(companyId, key, start, end);
219     }
220 
221     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByC_K(
222         long companyId, java.lang.String key, int start, int end,
223         com.liferay.portal.kernel.util.OrderByComparator obc)
224         throws com.liferay.portal.SystemException {
225         return getPersistence().findByC_K(companyId, key, start, end, obc);
226     }
227 
228     public static com.liferay.portlet.tags.model.TagsProperty findByC_K_First(
229         long companyId, java.lang.String key,
230         com.liferay.portal.kernel.util.OrderByComparator obc)
231         throws com.liferay.portal.SystemException,
232             com.liferay.portlet.tags.NoSuchPropertyException {
233         return getPersistence().findByC_K_First(companyId, key, obc);
234     }
235 
236     public static com.liferay.portlet.tags.model.TagsProperty findByC_K_Last(
237         long companyId, java.lang.String key,
238         com.liferay.portal.kernel.util.OrderByComparator obc)
239         throws com.liferay.portal.SystemException,
240             com.liferay.portlet.tags.NoSuchPropertyException {
241         return getPersistence().findByC_K_Last(companyId, key, obc);
242     }
243 
244     public static com.liferay.portlet.tags.model.TagsProperty[] findByC_K_PrevAndNext(
245         long propertyId, long companyId, java.lang.String key,
246         com.liferay.portal.kernel.util.OrderByComparator obc)
247         throws com.liferay.portal.SystemException,
248             com.liferay.portlet.tags.NoSuchPropertyException {
249         return getPersistence()
250                    .findByC_K_PrevAndNext(propertyId, companyId, key, obc);
251     }
252 
253     public static com.liferay.portlet.tags.model.TagsProperty findByE_K(
254         long entryId, java.lang.String key)
255         throws com.liferay.portal.SystemException,
256             com.liferay.portlet.tags.NoSuchPropertyException {
257         return getPersistence().findByE_K(entryId, key);
258     }
259 
260     public static com.liferay.portlet.tags.model.TagsProperty fetchByE_K(
261         long entryId, java.lang.String key)
262         throws com.liferay.portal.SystemException {
263         return getPersistence().fetchByE_K(entryId, key);
264     }
265 
266     public static com.liferay.portlet.tags.model.TagsProperty fetchByE_K(
267         long entryId, java.lang.String key, boolean retrieveFromCache)
268         throws com.liferay.portal.SystemException {
269         return getPersistence().fetchByE_K(entryId, key, retrieveFromCache);
270     }
271 
272     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findAll()
273         throws com.liferay.portal.SystemException {
274         return getPersistence().findAll();
275     }
276 
277     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findAll(
278         int start, int end) throws com.liferay.portal.SystemException {
279         return getPersistence().findAll(start, end);
280     }
281 
282     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findAll(
283         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
284         throws com.liferay.portal.SystemException {
285         return getPersistence().findAll(start, end, obc);
286     }
287 
288     public static void removeByCompanyId(long companyId)
289         throws com.liferay.portal.SystemException {
290         getPersistence().removeByCompanyId(companyId);
291     }
292 
293     public static void removeByEntryId(long entryId)
294         throws com.liferay.portal.SystemException {
295         getPersistence().removeByEntryId(entryId);
296     }
297 
298     public static void removeByC_K(long companyId, java.lang.String key)
299         throws com.liferay.portal.SystemException {
300         getPersistence().removeByC_K(companyId, key);
301     }
302 
303     public static void removeByE_K(long entryId, java.lang.String key)
304         throws com.liferay.portal.SystemException,
305             com.liferay.portlet.tags.NoSuchPropertyException {
306         getPersistence().removeByE_K(entryId, key);
307     }
308 
309     public static void removeAll() throws com.liferay.portal.SystemException {
310         getPersistence().removeAll();
311     }
312 
313     public static int countByCompanyId(long companyId)
314         throws com.liferay.portal.SystemException {
315         return getPersistence().countByCompanyId(companyId);
316     }
317 
318     public static int countByEntryId(long entryId)
319         throws com.liferay.portal.SystemException {
320         return getPersistence().countByEntryId(entryId);
321     }
322 
323     public static int countByC_K(long companyId, java.lang.String key)
324         throws com.liferay.portal.SystemException {
325         return getPersistence().countByC_K(companyId, key);
326     }
327 
328     public static int countByE_K(long entryId, java.lang.String key)
329         throws com.liferay.portal.SystemException {
330         return getPersistence().countByE_K(entryId, key);
331     }
332 
333     public static int countAll() throws com.liferay.portal.SystemException {
334         return getPersistence().countAll();
335     }
336 
337     public static TagsPropertyPersistence getPersistence() {
338         if (_persistence == null) {
339             _persistence = (TagsPropertyPersistence)PortalBeanLocatorUtil.locate(TagsPropertyPersistence.class.getName());
340         }
341 
342         return _persistence;
343     }
344 
345     public void setPersistence(TagsPropertyPersistence persistence) {
346         _persistence = persistence;
347     }
348 
349     private static TagsPropertyPersistence _persistence;
350 }