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  
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      public static void cacheResult(
41          com.liferay.portlet.tags.model.TagsProperty tagsProperty) {
42          getPersistence().cacheResult(tagsProperty);
43      }
44  
45      public static void cacheResult(
46          java.util.List<com.liferay.portlet.tags.model.TagsProperty> tagsProperties) {
47          getPersistence().cacheResult(tagsProperties);
48      }
49  
50      public static void clearCache() {
51          getPersistence().clearCache();
52      }
53  
54      public static com.liferay.portlet.tags.model.TagsProperty create(
55          long propertyId) {
56          return getPersistence().create(propertyId);
57      }
58  
59      public static com.liferay.portlet.tags.model.TagsProperty remove(
60          long propertyId)
61          throws com.liferay.portal.SystemException,
62              com.liferay.portlet.tags.NoSuchPropertyException {
63          return getPersistence().remove(propertyId);
64      }
65  
66      public static com.liferay.portlet.tags.model.TagsProperty remove(
67          com.liferay.portlet.tags.model.TagsProperty tagsProperty)
68          throws com.liferay.portal.SystemException {
69          return getPersistence().remove(tagsProperty);
70      }
71  
72      /**
73       * @deprecated Use {@link #update(TagsProperty, boolean merge)}.
74       */
75      public static com.liferay.portlet.tags.model.TagsProperty update(
76          com.liferay.portlet.tags.model.TagsProperty tagsProperty)
77          throws com.liferay.portal.SystemException {
78          return getPersistence().update(tagsProperty);
79      }
80  
81      /**
82       * Add, update, or merge, the entity. This method also calls the model
83       * listeners to trigger the proper events associated with adding, deleting,
84       * or updating an entity.
85       *
86       * @param  tagsProperty the entity to add, update, or merge
87       * @param  merge boolean value for whether to merge the entity. The default
88       *         value is false. Setting merge to true is more expensive and
89       *         should only be true when tagsProperty is transient. See
90       *         LEP-5473 for a detailed discussion of this method.
91       * @return the entity that was added, updated, or merged
92       */
93      public static com.liferay.portlet.tags.model.TagsProperty update(
94          com.liferay.portlet.tags.model.TagsProperty tagsProperty, boolean merge)
95          throws com.liferay.portal.SystemException {
96          return getPersistence().update(tagsProperty, merge);
97      }
98  
99      public static com.liferay.portlet.tags.model.TagsProperty updateImpl(
100         com.liferay.portlet.tags.model.TagsProperty tagsProperty, boolean merge)
101         throws com.liferay.portal.SystemException {
102         return getPersistence().updateImpl(tagsProperty, merge);
103     }
104 
105     public static com.liferay.portlet.tags.model.TagsProperty findByPrimaryKey(
106         long propertyId)
107         throws com.liferay.portal.SystemException,
108             com.liferay.portlet.tags.NoSuchPropertyException {
109         return getPersistence().findByPrimaryKey(propertyId);
110     }
111 
112     public static com.liferay.portlet.tags.model.TagsProperty fetchByPrimaryKey(
113         long propertyId) throws com.liferay.portal.SystemException {
114         return getPersistence().fetchByPrimaryKey(propertyId);
115     }
116 
117     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByCompanyId(
118         long companyId) throws com.liferay.portal.SystemException {
119         return getPersistence().findByCompanyId(companyId);
120     }
121 
122     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByCompanyId(
123         long companyId, int start, int end)
124         throws com.liferay.portal.SystemException {
125         return getPersistence().findByCompanyId(companyId, start, end);
126     }
127 
128     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByCompanyId(
129         long companyId, int start, int end,
130         com.liferay.portal.kernel.util.OrderByComparator obc)
131         throws com.liferay.portal.SystemException {
132         return getPersistence().findByCompanyId(companyId, start, end, obc);
133     }
134 
135     public static com.liferay.portlet.tags.model.TagsProperty findByCompanyId_First(
136         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
137         throws com.liferay.portal.SystemException,
138             com.liferay.portlet.tags.NoSuchPropertyException {
139         return getPersistence().findByCompanyId_First(companyId, obc);
140     }
141 
142     public static com.liferay.portlet.tags.model.TagsProperty findByCompanyId_Last(
143         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
144         throws com.liferay.portal.SystemException,
145             com.liferay.portlet.tags.NoSuchPropertyException {
146         return getPersistence().findByCompanyId_Last(companyId, obc);
147     }
148 
149     public static com.liferay.portlet.tags.model.TagsProperty[] findByCompanyId_PrevAndNext(
150         long propertyId, long companyId,
151         com.liferay.portal.kernel.util.OrderByComparator obc)
152         throws com.liferay.portal.SystemException,
153             com.liferay.portlet.tags.NoSuchPropertyException {
154         return getPersistence()
155                    .findByCompanyId_PrevAndNext(propertyId, companyId, obc);
156     }
157 
158     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByEntryId(
159         long entryId) throws com.liferay.portal.SystemException {
160         return getPersistence().findByEntryId(entryId);
161     }
162 
163     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByEntryId(
164         long entryId, int start, int end)
165         throws com.liferay.portal.SystemException {
166         return getPersistence().findByEntryId(entryId, start, end);
167     }
168 
169     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByEntryId(
170         long entryId, int start, int end,
171         com.liferay.portal.kernel.util.OrderByComparator obc)
172         throws com.liferay.portal.SystemException {
173         return getPersistence().findByEntryId(entryId, start, end, obc);
174     }
175 
176     public static com.liferay.portlet.tags.model.TagsProperty findByEntryId_First(
177         long entryId, com.liferay.portal.kernel.util.OrderByComparator obc)
178         throws com.liferay.portal.SystemException,
179             com.liferay.portlet.tags.NoSuchPropertyException {
180         return getPersistence().findByEntryId_First(entryId, obc);
181     }
182 
183     public static com.liferay.portlet.tags.model.TagsProperty findByEntryId_Last(
184         long entryId, com.liferay.portal.kernel.util.OrderByComparator obc)
185         throws com.liferay.portal.SystemException,
186             com.liferay.portlet.tags.NoSuchPropertyException {
187         return getPersistence().findByEntryId_Last(entryId, obc);
188     }
189 
190     public static com.liferay.portlet.tags.model.TagsProperty[] findByEntryId_PrevAndNext(
191         long propertyId, long entryId,
192         com.liferay.portal.kernel.util.OrderByComparator obc)
193         throws com.liferay.portal.SystemException,
194             com.liferay.portlet.tags.NoSuchPropertyException {
195         return getPersistence()
196                    .findByEntryId_PrevAndNext(propertyId, entryId, obc);
197     }
198 
199     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByC_K(
200         long companyId, java.lang.String key)
201         throws com.liferay.portal.SystemException {
202         return getPersistence().findByC_K(companyId, key);
203     }
204 
205     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByC_K(
206         long companyId, java.lang.String key, int start, int end)
207         throws com.liferay.portal.SystemException {
208         return getPersistence().findByC_K(companyId, key, start, end);
209     }
210 
211     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findByC_K(
212         long companyId, java.lang.String key, int start, int end,
213         com.liferay.portal.kernel.util.OrderByComparator obc)
214         throws com.liferay.portal.SystemException {
215         return getPersistence().findByC_K(companyId, key, start, end, obc);
216     }
217 
218     public static com.liferay.portlet.tags.model.TagsProperty findByC_K_First(
219         long companyId, java.lang.String key,
220         com.liferay.portal.kernel.util.OrderByComparator obc)
221         throws com.liferay.portal.SystemException,
222             com.liferay.portlet.tags.NoSuchPropertyException {
223         return getPersistence().findByC_K_First(companyId, key, obc);
224     }
225 
226     public static com.liferay.portlet.tags.model.TagsProperty findByC_K_Last(
227         long companyId, java.lang.String key,
228         com.liferay.portal.kernel.util.OrderByComparator obc)
229         throws com.liferay.portal.SystemException,
230             com.liferay.portlet.tags.NoSuchPropertyException {
231         return getPersistence().findByC_K_Last(companyId, key, obc);
232     }
233 
234     public static com.liferay.portlet.tags.model.TagsProperty[] findByC_K_PrevAndNext(
235         long propertyId, long companyId, java.lang.String key,
236         com.liferay.portal.kernel.util.OrderByComparator obc)
237         throws com.liferay.portal.SystemException,
238             com.liferay.portlet.tags.NoSuchPropertyException {
239         return getPersistence()
240                    .findByC_K_PrevAndNext(propertyId, companyId, key, obc);
241     }
242 
243     public static com.liferay.portlet.tags.model.TagsProperty findByE_K(
244         long entryId, java.lang.String key)
245         throws com.liferay.portal.SystemException,
246             com.liferay.portlet.tags.NoSuchPropertyException {
247         return getPersistence().findByE_K(entryId, key);
248     }
249 
250     public static com.liferay.portlet.tags.model.TagsProperty fetchByE_K(
251         long entryId, java.lang.String key)
252         throws com.liferay.portal.SystemException {
253         return getPersistence().fetchByE_K(entryId, key);
254     }
255 
256     public static com.liferay.portlet.tags.model.TagsProperty fetchByE_K(
257         long entryId, java.lang.String key, boolean retrieveFromCache)
258         throws com.liferay.portal.SystemException {
259         return getPersistence().fetchByE_K(entryId, key, retrieveFromCache);
260     }
261 
262     public static java.util.List<Object> findWithDynamicQuery(
263         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
264         throws com.liferay.portal.SystemException {
265         return getPersistence().findWithDynamicQuery(dynamicQuery);
266     }
267 
268     public static java.util.List<Object> findWithDynamicQuery(
269         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
270         int end) throws com.liferay.portal.SystemException {
271         return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
272     }
273 
274     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findAll()
275         throws com.liferay.portal.SystemException {
276         return getPersistence().findAll();
277     }
278 
279     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findAll(
280         int start, int end) throws com.liferay.portal.SystemException {
281         return getPersistence().findAll(start, end);
282     }
283 
284     public static java.util.List<com.liferay.portlet.tags.model.TagsProperty> findAll(
285         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
286         throws com.liferay.portal.SystemException {
287         return getPersistence().findAll(start, end, obc);
288     }
289 
290     public static void removeByCompanyId(long companyId)
291         throws com.liferay.portal.SystemException {
292         getPersistence().removeByCompanyId(companyId);
293     }
294 
295     public static void removeByEntryId(long entryId)
296         throws com.liferay.portal.SystemException {
297         getPersistence().removeByEntryId(entryId);
298     }
299 
300     public static void removeByC_K(long companyId, java.lang.String key)
301         throws com.liferay.portal.SystemException {
302         getPersistence().removeByC_K(companyId, key);
303     }
304 
305     public static void removeByE_K(long entryId, java.lang.String key)
306         throws com.liferay.portal.SystemException,
307             com.liferay.portlet.tags.NoSuchPropertyException {
308         getPersistence().removeByE_K(entryId, key);
309     }
310 
311     public static void removeAll() throws com.liferay.portal.SystemException {
312         getPersistence().removeAll();
313     }
314 
315     public static int countByCompanyId(long companyId)
316         throws com.liferay.portal.SystemException {
317         return getPersistence().countByCompanyId(companyId);
318     }
319 
320     public static int countByEntryId(long entryId)
321         throws com.liferay.portal.SystemException {
322         return getPersistence().countByEntryId(entryId);
323     }
324 
325     public static int countByC_K(long companyId, java.lang.String key)
326         throws com.liferay.portal.SystemException {
327         return getPersistence().countByC_K(companyId, key);
328     }
329 
330     public static int countByE_K(long entryId, java.lang.String key)
331         throws com.liferay.portal.SystemException {
332         return getPersistence().countByE_K(entryId, key);
333     }
334 
335     public static int countAll() throws com.liferay.portal.SystemException {
336         return getPersistence().countAll();
337     }
338 
339     public static TagsPropertyPersistence getPersistence() {
340         return _persistence;
341     }
342 
343     public void setPersistence(TagsPropertyPersistence persistence) {
344         _persistence = persistence;
345     }
346 
347     private static TagsPropertyPersistence _persistence;
348 }