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  import com.liferay.portal.kernel.util.ReferenceRegistry;
21  
22  import com.liferay.portlet.tags.model.TagsProperty;
23  
24  import java.util.List;
25  
26  /**
27   * <a href="TagsPropertyUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * @author    Brian Wing Shun Chan
35   * @see       TagsPropertyPersistence
36   * @see       TagsPropertyPersistenceImpl
37   * @generated
38   */
39  public class TagsPropertyUtil {
40      /**
41       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
42       */
43      public static void clearCache() {
44          getPersistence().clearCache();
45      }
46  
47      /**
48       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(TagsProperty)
49       */
50      public static void clearCache(TagsProperty tagsProperty) {
51          getPersistence().clearCache(tagsProperty);
52      }
53  
54      /**
55       * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
56       */
57      public int countWithDynamicQuery(DynamicQuery dynamicQuery)
58          throws SystemException {
59          return getPersistence().countWithDynamicQuery(dynamicQuery);
60      }
61  
62      /**
63       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
64       */
65      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
66          throws SystemException {
67          return getPersistence().findWithDynamicQuery(dynamicQuery);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
72       */
73      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
74          int start, int end) throws SystemException {
75          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76      }
77  
78      /**
79       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
80       */
81      public static TagsProperty remove(TagsProperty tagsProperty)
82          throws SystemException {
83          return getPersistence().remove(tagsProperty);
84      }
85  
86      /**
87       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
88       */
89      public static TagsProperty update(TagsProperty tagsProperty, boolean merge)
90          throws SystemException {
91          return getPersistence().update(tagsProperty, merge);
92      }
93  
94      public static void cacheResult(
95          com.liferay.portlet.tags.model.TagsProperty tagsProperty) {
96          getPersistence().cacheResult(tagsProperty);
97      }
98  
99      public static void cacheResult(
100         java.util.List<com.liferay.portlet.tags.model.TagsProperty> tagsProperties) {
101         getPersistence().cacheResult(tagsProperties);
102     }
103 
104     public static com.liferay.portlet.tags.model.TagsProperty create(
105         long propertyId) {
106         return getPersistence().create(propertyId);
107     }
108 
109     public static com.liferay.portlet.tags.model.TagsProperty remove(
110         long propertyId)
111         throws com.liferay.portal.SystemException,
112             com.liferay.portlet.tags.NoSuchPropertyException {
113         return getPersistence().remove(propertyId);
114     }
115 
116     /**
117      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
118      */
119     public static com.liferay.portlet.tags.model.TagsProperty update(
120         com.liferay.portlet.tags.model.TagsProperty tagsProperty)
121         throws com.liferay.portal.SystemException {
122         return getPersistence().update(tagsProperty);
123     }
124 
125     public static com.liferay.portlet.tags.model.TagsProperty updateImpl(
126         com.liferay.portlet.tags.model.TagsProperty tagsProperty, boolean merge)
127         throws com.liferay.portal.SystemException {
128         return getPersistence().updateImpl(tagsProperty, merge);
129     }
130 
131     public static com.liferay.portlet.tags.model.TagsProperty findByPrimaryKey(
132         long propertyId)
133         throws com.liferay.portal.SystemException,
134             com.liferay.portlet.tags.NoSuchPropertyException {
135         return getPersistence().findByPrimaryKey(propertyId);
136     }
137 
138     public static com.liferay.portlet.tags.model.TagsProperty fetchByPrimaryKey(
139         long propertyId) throws com.liferay.portal.SystemException {
140         return getPersistence().fetchByPrimaryKey(propertyId);
141     }
142 
143     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByCompanyId(
144         long companyId) throws com.liferay.portal.SystemException {
145         return getPersistence().findByCompanyId(companyId);
146     }
147 
148     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByCompanyId(
149         long companyId, int start, int end)
150         throws com.liferay.portal.SystemException {
151         return getPersistence().findByCompanyId(companyId, start, end);
152     }
153 
154     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByCompanyId(
155         long companyId, int start, int end,
156         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
157         throws com.liferay.portal.SystemException {
158         return getPersistence()
159                    .findByCompanyId(companyId, start, end, orderByComparator);
160     }
161 
162     public static com.liferay.portlet.tags.model.TagsProperty findByCompanyId_First(
163         long companyId,
164         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165         throws com.liferay.portal.SystemException,
166             com.liferay.portlet.tags.NoSuchPropertyException {
167         return getPersistence()
168                    .findByCompanyId_First(companyId, orderByComparator);
169     }
170 
171     public static com.liferay.portlet.tags.model.TagsProperty findByCompanyId_Last(
172         long companyId,
173         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
174         throws com.liferay.portal.SystemException,
175             com.liferay.portlet.tags.NoSuchPropertyException {
176         return getPersistence()
177                    .findByCompanyId_Last(companyId, orderByComparator);
178     }
179 
180     public static com.liferay.portlet.tags.model.TagsProperty[] findByCompanyId_PrevAndNext(
181         long propertyId, long companyId,
182         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
183         throws com.liferay.portal.SystemException,
184             com.liferay.portlet.tags.NoSuchPropertyException {
185         return getPersistence()
186                    .findByCompanyId_PrevAndNext(propertyId, companyId,
187             orderByComparator);
188     }
189 
190     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByEntryId(
191         long entryId) throws com.liferay.portal.SystemException {
192         return getPersistence().findByEntryId(entryId);
193     }
194 
195     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByEntryId(
196         long entryId, int start, int end)
197         throws com.liferay.portal.SystemException {
198         return getPersistence().findByEntryId(entryId, start, end);
199     }
200 
201     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByEntryId(
202         long entryId, int start, int end,
203         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
204         throws com.liferay.portal.SystemException {
205         return getPersistence()
206                    .findByEntryId(entryId, start, end, orderByComparator);
207     }
208 
209     public static com.liferay.portlet.tags.model.TagsProperty findByEntryId_First(
210         long entryId,
211         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
212         throws com.liferay.portal.SystemException,
213             com.liferay.portlet.tags.NoSuchPropertyException {
214         return getPersistence().findByEntryId_First(entryId, orderByComparator);
215     }
216 
217     public static com.liferay.portlet.tags.model.TagsProperty findByEntryId_Last(
218         long entryId,
219         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
220         throws com.liferay.portal.SystemException,
221             com.liferay.portlet.tags.NoSuchPropertyException {
222         return getPersistence().findByEntryId_Last(entryId, orderByComparator);
223     }
224 
225     public static com.liferay.portlet.tags.model.TagsProperty[] findByEntryId_PrevAndNext(
226         long propertyId, long entryId,
227         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
228         throws com.liferay.portal.SystemException,
229             com.liferay.portlet.tags.NoSuchPropertyException {
230         return getPersistence()
231                    .findByEntryId_PrevAndNext(propertyId, entryId,
232             orderByComparator);
233     }
234 
235     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByC_K(
236         long companyId, java.lang.String key)
237         throws com.liferay.portal.SystemException {
238         return getPersistence().findByC_K(companyId, key);
239     }
240 
241     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByC_K(
242         long companyId, java.lang.String key, int start, int end)
243         throws com.liferay.portal.SystemException {
244         return getPersistence().findByC_K(companyId, key, start, end);
245     }
246 
247     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByC_K(
248         long companyId, java.lang.String key, int start, int end,
249         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
250         throws com.liferay.portal.SystemException {
251         return getPersistence()
252                    .findByC_K(companyId, key, start, end, orderByComparator);
253     }
254 
255     public static com.liferay.portlet.tags.model.TagsProperty findByC_K_First(
256         long companyId, java.lang.String key,
257         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
258         throws com.liferay.portal.SystemException,
259             com.liferay.portlet.tags.NoSuchPropertyException {
260         return getPersistence()
261                    .findByC_K_First(companyId, key, orderByComparator);
262     }
263 
264     public static com.liferay.portlet.tags.model.TagsProperty findByC_K_Last(
265         long companyId, java.lang.String key,
266         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
267         throws com.liferay.portal.SystemException,
268             com.liferay.portlet.tags.NoSuchPropertyException {
269         return getPersistence().findByC_K_Last(companyId, key, orderByComparator);
270     }
271 
272     public static com.liferay.portlet.tags.model.TagsProperty[] findByC_K_PrevAndNext(
273         long propertyId, long companyId, java.lang.String key,
274         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
275         throws com.liferay.portal.SystemException,
276             com.liferay.portlet.tags.NoSuchPropertyException {
277         return getPersistence()
278                    .findByC_K_PrevAndNext(propertyId, companyId, key,
279             orderByComparator);
280     }
281 
282     public static com.liferay.portlet.tags.model.TagsProperty findByE_K(
283         long entryId, java.lang.String key)
284         throws com.liferay.portal.SystemException,
285             com.liferay.portlet.tags.NoSuchPropertyException {
286         return getPersistence().findByE_K(entryId, key);
287     }
288 
289     public static com.liferay.portlet.tags.model.TagsProperty fetchByE_K(
290         long entryId, java.lang.String key)
291         throws com.liferay.portal.SystemException {
292         return getPersistence().fetchByE_K(entryId, key);
293     }
294 
295     public static com.liferay.portlet.tags.model.TagsProperty fetchByE_K(
296         long entryId, java.lang.String key, boolean retrieveFromCache)
297         throws com.liferay.portal.SystemException {
298         return getPersistence().fetchByE_K(entryId, key, retrieveFromCache);
299     }
300 
301     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findAll()
302         throws com.liferay.portal.SystemException {
303         return getPersistence().findAll();
304     }
305 
306     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findAll(
307         int start, int end) throws com.liferay.portal.SystemException {
308         return getPersistence().findAll(start, end);
309     }
310 
311     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findAll(
312         int start, int end,
313         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
314         throws com.liferay.portal.SystemException {
315         return getPersistence().findAll(start, end, orderByComparator);
316     }
317 
318     public static void removeByCompanyId(long companyId)
319         throws com.liferay.portal.SystemException {
320         getPersistence().removeByCompanyId(companyId);
321     }
322 
323     public static void removeByEntryId(long entryId)
324         throws com.liferay.portal.SystemException {
325         getPersistence().removeByEntryId(entryId);
326     }
327 
328     public static void removeByC_K(long companyId, java.lang.String key)
329         throws com.liferay.portal.SystemException {
330         getPersistence().removeByC_K(companyId, key);
331     }
332 
333     public static void removeByE_K(long entryId, java.lang.String key)
334         throws com.liferay.portal.SystemException,
335             com.liferay.portlet.tags.NoSuchPropertyException {
336         getPersistence().removeByE_K(entryId, key);
337     }
338 
339     public static void removeAll() throws com.liferay.portal.SystemException {
340         getPersistence().removeAll();
341     }
342 
343     public static int countByCompanyId(long companyId)
344         throws com.liferay.portal.SystemException {
345         return getPersistence().countByCompanyId(companyId);
346     }
347 
348     public static int countByEntryId(long entryId)
349         throws com.liferay.portal.SystemException {
350         return getPersistence().countByEntryId(entryId);
351     }
352 
353     public static int countByC_K(long companyId, java.lang.String key)
354         throws com.liferay.portal.SystemException {
355         return getPersistence().countByC_K(companyId, key);
356     }
357 
358     public static int countByE_K(long entryId, java.lang.String key)
359         throws com.liferay.portal.SystemException {
360         return getPersistence().countByE_K(entryId, key);
361     }
362 
363     public static int countAll() throws com.liferay.portal.SystemException {
364         return getPersistence().countAll();
365     }
366 
367     public static TagsPropertyPersistence getPersistence() {
368         if (_persistence == null) {
369             _persistence = (TagsPropertyPersistence)PortalBeanLocatorUtil.locate(TagsPropertyPersistence.class.getName());
370 
371             ReferenceRegistry.registerReference(TagsPropertyUtil.class,
372                 "_persistence");
373         }
374 
375         return _persistence;
376     }
377 
378     public void setPersistence(TagsPropertyPersistence persistence) {
379         _persistence = persistence;
380 
381         ReferenceRegistry.registerReference(TagsPropertyUtil.class,
382             "_persistence");
383     }
384 
385     private static TagsPropertyPersistence _persistence;
386 }